This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes problem in setAttribute() and getAttribute() functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem in setAttribute() and getAttribute() functions" Watch "problem in setAttribute() and getAttribute() functions" New topic
Author

problem in setAttribute() and getAttribute() functions

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
im my application..i need to do modification to my file...i m trying to get values which already exists in combo box...here is my code..



down in method im calling 'strCombo'.. i need help whats wrong with my code..
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 539

Are you getting any error or what? Also, when you set attribute in request, it is available only when, the control is passed to the servlet or a JSP. I suggest, you to use session, for this..
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
kk.i'll try and let you know..then no need of javascript validation
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
i tired but im not getting values in jsp page..here is my modified code..



can you tell me where to change my code..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I don't understand what you're trying to do, nor do you provide the JSP code that you want to work.At this point there's an empty string in the session, and an empty string in the servlet.

Is that what you want? And why go to so much trouble to make it that way?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in setAttribute() and getAttribute() functions