No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
Did you tried lastIndexOf() and deleteCharAt() of StringBuffer? Try something like this : int lastComma = replacement.lastIndexOf(","); replacement.deleteCharAt(lastComma) ; For more info, Go through this [url]http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html[/url] Hope this helps!
Hello, Just remember that SimpleDateFormat.parse(String source) returns java.util.Date and PreparedStatement.setDate(int i, Date d) takes java.sql.Date . So, while passing the date parameter here, casting is required. 2nd thing keep in mind that while converting a String to Date - take care of format according to your database. Some may take …
Hello, Use RequestDispatcher() and forward(), instead of sendRedirect(). Forwarding is not so very different from request redirection (Servlet Request.sendRedirect()). However, forwarding has an advantage—the request information (parameters and attributes) are preserved. Hope it helps.
hello, There is a good example on the below site : [url]http://www.roseindia.net/jdbc/save_image.shtml[/url] [url]http://www.theserverside.com/discussions/thread.tss?thread_id=41805[/url]
Hello, Just try to use trim() for id and pin i.e when retrieving from database and then compare with loginid and loginpin. I hope it solves the problem.
According to me - try this : [code=java]HttpSession session = request.getSession(); MailUserBean nameBean = (MailUserBean)session.getAttribute("nameBean"); if (nameBean == null) { ...Your steps //String firstName = request.getParameter("firstName"); //String lastName = request.getParameter("lastName"); //nameBean = new MailUserBean(firstName, lastName); session.setAttribute("nameBean", nameBean); }[/code] Do let me know, if it works. If it does not do …
Have you inserted username and password in Service.connect()?
The End.
deepalihanand