• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP and Servlet Program

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Bartender
Posts: 2236
63
IntelliJ IDE Firefox Browser Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
I am going to test your electrical conductivity with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic