tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Gruszynski <uw...@yahoo.com>
Subject RE: Form method always a get.
Date Wed, 05 May 2004 03:03:01 GMT
Thanks for answering.  The following is what I'm trying to
execute:

<body>
<link rel="stylesheet" href="include/styles.css"
type="text/css">

<script language="JavaScript">
function preSubmit(thePage) {
  document.welcomeform.actionelement.value=thePage;
  document.welcomeform.submit();
}
</script>
<script language="JavaScript">
function newStudy(theURL) {
 
window.open(theURL,'Docs','scrollbars=yes,resizable=yes,width=830,height=780');
}
</script>
<form method="POST" name="welcomeform" action="/tsr" >
<input  type="hidden" name="actionelement" value=""/>
<input type="hidden" name="currpage" value="empty"/>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
  <tr> 
    <td><img src="images/tsr_logo.gif" width=170
height=61></td>
    <td align="left" class="font18b">TITLE</font></td>
  </tr>
  <tr> 
    <td colspan="2" background="images/gradient.gif"><img
src="images/gradient.gif" width="100%" height=4></td>
  </tr>
  <tr> 
    <td valign="top" colspan="2">
      <table align="center" cellpadding="0" cellspacing="0"
border="0">
        <tr><td><br></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table>
  <tr><td class="font16b" align="center"
colspan="2">Welcome to TITLE application site.</td></tr>
  <tr><td><br></td></tr>
  <tr>
    <td class="element">
      <a
href="javascript:newStudy('/tsr?actionelement=new')">Submit
a new study.</a>
    </td>
    <td class="element">Presents the form to submit a NEW
study.</td>
  </tr>
  <tr><td colspan="2"><br></td></tr>
  <tr>
    <td class="element" colspan="2">The following
applications require you to login: </td>
  </tr>
  <tr><td colspan="2"><br></td></tr>
  <tr>
    <td class="element"><a
href="javascript:preSubmit('summary')">Edit an existing
study.</a>
    </td>
    <td class="element">Enter the TSR management
application.</td>
  </tr>
</form>
</body>

Any sugestions welcome.

A.


--- Budi Kurniawan <budi@brainysoftware.com> wrote:
> You're probably missing the closing quote after the
> method name:
> 
> <form method="post >
> 
> Rgds,
> Budi
> Author of "How Tomcat Works" 
> 
> -----Original Message-----
> From: Adam Gruszynski [mailto:uwo54@yahoo.com] 
> Sent: Wednesday, May 05, 2004 12:52 PM
> To: Tomcat Users List
> Subject: Form method always a get.
> 
> I hope this is just a simple lack of understanding but
> when I submit a html
> form using any tomcat version greater than 406, the
> servlet always recieves
> it as a get.  Even when explicitly setting the form
> method as a POST.  Am I
> making some sort of oversight or coding error?  
> 
> Thank you,
> 
> Adam
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message