--- aum strut <[EMAIL PROTECTED]> wrote:
> i am using two jsp pages here namely index.jsp for getting inputs
> HelloWorld.jsp-->for displaying the results..
>  as indexs .jsp is being displayed on start up i have configuredit in
> web.xml

Okay, I've said like a million times that if you access the JSP page
directly, not through an action, the HTML rendered by the form tag will be
incorrect: <s:form...> will not create the "action" attribute property
correctly.

If you access index.jsp directly without going through an action the
<s:form...> tag will generate a <form...> tag that looks something like this:

<form id="TestExample" name="TestExample" onsubmit="return true;"
action="/aum1/jsp/TestExample.action" method="post">

Notice how the action of the <form...> tag is wrong: it's getting the jsp
directory added to it. Bypassing an action and expecting the S2 tags to work
will lead to issues.

If you access index.jsp going through an action the <s:form...> tag will
generate a <form...> tag that looks something like this:

<form id="TestExample" name="TestExample" onsubmit="return true;"
action="/aum1/TestExample.action" method="post">

See the difference?

Do you understand what I'm saying? I'm not going to answer this question
again; somebody else may, though, if you keep asking it.

> Are you doing any validation? no as  i know i have not validated 
> the inputs not at client side not at my action class.

Are you entering a valid date? A type conversion error can also send you back
to the "input" result.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to