This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes how do I  submit without a submit button textarea contents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how do I  submit without a submit button textarea contents" Watch "how do I  submit without a submit button textarea contents" New topic
Author

how do I submit without a submit button textarea contents

Amithkumar Kota
Greenhorn

Joined: Jul 26, 2001
Posts: 10
<form method="post" action="save.jsp" target="exright_frame">
<textarea name="area" rows=24 cols=75>
class collapse_condition : public singleton_rule {
const_param<int> n, num_iteration ;
param<bool> simulation_finished ;
</textarea>
<input type="reset" name="reset" value= " Reset " >
<input name = "rule" type = "hidden" value = <%= ruleType %> >
<input type="submit" name="save" value="Save" >
</form>
how do i get the contents of the above textarea into another jsp file...with out a submit button... however, i can submit the other input text using save button....does this mean that i get the contents of the textarea to the other jsp file as the form is submitted.....
what do i need to write..
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
If the textarea is part of a form that has been submitted (which it is in this case) then its contents will be avaliable to the JSP file that you submitted to in the normal way (request.getParameter(parameterName) etc)
Rgds
Sam

<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do I submit without a submit button textarea contents