Biju Nambisan wrote:

> Greetings list,
>
> I have written a JSP page which has some HTML code(Two Text Boxes and A
> submit button) ..After this I have a <jsp:forward
> page="/servlet/myservlet" />
> My requirement is
> First it should display the text boxes and Submit button which when
> submitted with input parameters should be taken by the servlet and do
> some processing .Now when I load the JSP it is directly displaying the
> output of the servlet without displaying the text boxes and submit
> button..
> I am not looking for a post action method implementation which is  known
> to me
>
> Can somebody in the list help me out finding a solution to this...
> An early response is Solicited..
> TIA..
>
> Regards,
> Biju

Did you set a condition before you call your forward tag? If not, do something like
the following,

<%
    if(request.getParameter("foo") != null && request.getParamater("bar") != null)
{ %>
        <jsp:forward blah />
<% } %>


This isn't the greatest code example but you get the general idea.

Regards,

Fz

===========================================================================
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

Reply via email to