Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and Servlet Program  RSS feed

 
Murugan Mani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys..
I am doing practice on Servlet and jsp. Given below is the snapshot of my program
URL : http://localhost:8080/App02Servlet/ when I press enter it shows the following page.[find the attachement below]
When I press the Action Update it show another jsp page. In that page I have to load the previous Data in the Update Page[user.jsp] the screen shot is attached
My problem I am not getting the data which I displayed in first Jsp form so kindly rectify the problem where it is
User.jsp

UserDao.java

2015-07-28_192142.jpg
[Thumbnail for 2015-07-28_192142.jpg]
2015-07-28_192027.jpg
[Thumbnail for 2015-07-28_192027.jpg]
 
Paweł Baczyński
Bartender
Posts: 2018
42
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I moved your topic to Servlets forum as Ranch Office is meant for topics related to the Ranch itself.

Also, I added code tags to your post. Doesn't it look better?
You can read about code tags here: UseCodeTags.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Few things about your servlet.
1. Don't use the constructor. Repeat, don't use the servlet constructor. If you want any sort of initialization, use the init() method instead.
2. I don't get why you are adding a request attribute after a forward. What do you intent to achieve by doing that?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!