• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get value from textarea that retrieve from session

 
janice white
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get a textarea value when the value is retrieve from session??

Code:

<textarea rows="5" cols="37" id="desc" name="desc"><%=announce[i].getaDesc() %></textarea>

I keep getting a null when i use

String a = request.getParameter("desc");

Is there any method where i can retrieve the value?
 
Prajakta Acharya
Ranch Hand
Posts: 138
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the form submission method? Get or Post?

What is the actual value in the text area?

Note: Please use code tags while posting any code.

 
Alex Theedom
Author
Ranch Hand
Posts: 77
5
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you post the code of the JSP and the servlet so that we can see exactly whats going on.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem I would use the browser "view source" or similar plug-in to see exactly what the HTML for that form is.

You may be surprised.

Bill
 
gautam Khanna
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what form submission method are you using [GET/POST]?

what is the values in the text area?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!