wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
upload an avatar or other file
How to get the text in a TextArea using javabeans
how can i compile a file on the server using a button in jsp..
How to keep a button from submitting a form.
submitting a form and clearing it first