If form tag does not contain action it is posted to the same page.
On Tuesday, May 22, 2001 11:55 AM, Jim Cheesman [SMTP:[EMAIL PROTECTED]] wrote:
> Given the following (edited) jsp:
> ************************
> <jsp:useBean id="kk" class="test.TestBean" scope="session" />
> <jsp:setProperty name="kk" property="*" />
>
> <form method=post>
> <select single name="testValue1">
> ...
> <input type="submit">
> </form>
> <hr>
>
> <%
> if (kk.isValid())
> {
> %>
> <jsp:forward page="/jsp/test2.jsp" />
> <%
> }
> %>
> ************************
>
> The jsp works, in that the bean kk is "filled" with the values of the
form,
> and if valid, forwards to test2.jsp. What I don't understand is how: Does
> clicking on "submit" call the compiled jsp (_jspService) on tomcat, which
> then checks the value, or what?
>
> (kk is previously instantiated by a servlet, which returns the page
above.)
>
> I should emphasise that this works and is not urgent, but more a question
> of my curiosity... ;)
>
> Jim
>
>
>
> --
>
> * Jim Cheesman *
> Trabajo:
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> My identity lies
> in not knowing who I am.
>
__________________________________________________________________
Tato komunikace je urcena vyhradne pro adresata a je duverna.
This communication is intended solely for the addressee and is confidential.