Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in setAttribute() and getAttribute() functions

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kk.i'll try and let you know..then no need of javascript validation
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic