• 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
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

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: 2235
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 showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic