Hi Binh,
For struts-conf file:
<action path="/login"
type="com.fnet.struts.login.LoginAction"
name="loginForm"
scope="request"
validate="true"
input="/jsp/login.jsp">
<forward name="success" path="/dispatch.ctl"/>
</action>
For form file:
<html:form action="/login.do">
....
</html:form>
I have something similar to that setup and It works fine.
HTH
Long B. Nguyen
-----Original Message-----
From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 3:44 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: MAPPING PROBLEM
Hi,
Please help me with this problem, I spent hours on it,
but still canotsolve it.
I have a jsp page named "login.jsp" in my application
named "furnnet", also this is the application path, so
if I use Tomcat, the application path looks like this:
TAMCAT_HOME/webapps/furnnet/
in order to oeganize my jsp, my application will look
like
furnnet/
jsp/login.jsp
...
...
WEB-INF/
lib/
....
and here below is a snippet from struts-config:
<action-mappings>
<!-- Process a user login -->
<action path="/jsp/login"
type="com.fnet.struts.login.LoginAction"
name="loginForm"
scope="request"
validate="true"
input="/jsp/login.jsp">
<forward name="success"
path="/dispatch.ctl"/>
</action>
and from the page login.jsp
<form name="loginForm" method="POST"
action="jsp/login.do">
it seems that nothing will happen if I have the
login.jsp under the directory jsp.
if I move the jsp to the root directory and change the
config file accordingly, then it works. But then
application structure will look so ugly because I will
have to put all the jsp pages in the root...can
someone help me solve the problem.
Thank you very much
Binh
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>