You can just rewrite the path with html:rewrite or c:url, or get the
context in jstl/scriptlet and add that to the path (like suggested).
">
or
">
otherwise you can just use an action form.
Cheers Mark
On 2 Feb 2004, at 18:23, Slattery, Tim - BLS wrote:
Yes, but the server would have to fin
> Yes, but the server would have to find an app with the
> web.xml first, right? If my URL is at
> "http://my.domain.com/mywebapp1/jsp/Login.jsp"; and the form
> is submitted to , it would map to
> "http://my.domain.com/Login.do";.
> Of course if the web app was deployed as the root
> applic
Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: 02 February 2004 16:27
> To: 'Struts Users Mailing List'
> Subject: RE: Problems when not using html:form
>
> > Wouldn't "/Login.do" make the server look for a "Login.do"
> > resource at the root
Yes, but the server would have to find an app with the web.xml first, right?
If my URL is at "http://my.domain.com/mywebapp1/jsp/Login.jsp"; and the form
is submitted to , it would map to
"http://my.domain.com/Login.do";.
Of course if the web app was deployed as the root application, then the
web
> Wouldn't "/Login.do" make the server look for a "Login.do"
> resource at the root of the server?
Web.xml is usually set up to intercept *any* request ending in .do and send
it to the Struts ActionServlet. ActionServlet will then look for "/Login"
(in this case) in an "action" definition in stru
Wouldn't "/Login.do" make the server look for a "Login.do" resource at the
root of the server?
You need to provide the path to your action relative to how the browser found
your input form. If your input form is /jsp/Login.jsp and this is what shows
in the URL when requested (meaning, it didn't g
I think that if you just fully-qualify the action of your form, it would work.
That is,
Joe
At 10:10 AM -0500 2/2/04, [EMAIL PROTECTED] wrote:
Hi folks,
For a variety of reasons, I can't use the struts HTML tags in my jsps. To
get things started, I got it working using html:form, but now I hav
7 matches
Mail list logo