Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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?
 
You can't have everything. Where would you put it?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic