File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pass value....urgent

 
meena latha
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all.

I need this very urgently.
I am not able to get the value of textbox from the jsp page to my action class.
What are the things that i should look into.
request.getAttribute("Textboxname") is returning null value.

Thanks in advance
 
Atchuta Penmatsa
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You have to use getParameter() method when retrieving values from a JSP.

example:
request.getParameter("Textboxname");

-Atchuta
 
meena latha
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried that also....no still not working
 
Atchuta Penmatsa
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure, how you are sending data to the Action class. Try to post some sample code.
 
subu ananthram
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
form.get("textboxName")
typecast it to string or whatever
will get you the data you want from your JSP
Hope that helps..
 
Raghavendra nandavar
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
actually, if u are using a struts component, u can get the value from the form , if u r using a html component, then u can get the value from the request - request.getParameter("componentName");
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic