struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Crossley <>
Subject Re: 1001st time this question gets asked
Date Fri, 19 Apr 2002 21:54:33 GMT
Jim Crossley <> writes:

> > <form action="/login.action" method="get" name="loginForm">
> That won't work.  For the above action, your jsp should contain this:
> <html:form action="/login">
> If you insist on not using struts tags, the equivalent is this:
> <form action="/YourWebAppName/" method="post" name="loginForm">

Actually, you never want to embed the web app's name in a jsp.  A
more robust equivalent is this:

<form action="<%=request.getContextPath()%>/" method="post" name="loginForm">

But that's even more gross to read, so you should just use the struts
tag instead.  :-)

Jim Crossley

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message