Karl,
You were answering another question at the time, but your note inspires me
to ask....
You've noted that if a form has no action statement, then it automatically
submits
back to itself.
First, I assume that it actually automatically submits back to whatever URL
was used to
get the data in the first place. If the data was obtained from a servlet
via a forward to
a jsp page, the submit would still send data to the servlet URL. (Is this a
correct
assumption?)
Do you know whether or not sessions can be maintained without an explicit
action statement
if URL rewriting is being used for this purpose? (Cookies are disabled.)
Thanks,
-AMT
> Hint... if you want the form in your input file to be generic ,
> ie not have to
> specify the name of the page it's action points to then leave out
> the ACTION and
> your browser will assume that the action is pointing back to its self.
> eg
>
> <!-- contents of input file inForm.html nb No ACTION statement-->
> <FORM METHOD=GET >
> <INPUT TYPE=TEXT NAME="account" SIZE="4"><p>
> <INPUT TYPE=SUBMIT>
> </FORM>
> <!-- end of inForm.html -->
>
> now the jsp
>
> <!-- contents of testBean.jsp -->
> <%@ page import="SearchBean" %>
>
> <jsp:useBean id="searchcriteria" scope="session" class="SearchBean" >
> <jsp:setProperty name="searchcriteria" property="account"
> </jsp:useBean>
>
> <HTML>
> <HEAD><TITLE>Test Bean</TITLE></HEAD>
> <BODY>
> <jsp:include page="inForm.html" flush="true" /> <P>
> <HR>
> The value of account is = <jsp:getProperty name="searchcriteria"
> property="account" />
> </BODY>
> </HTML>
> <!-- End of testBean.jsp -->
>
> Hope this helps
>
> Karl
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html