On Wed, 02 Oct 2002 Naveen Gaurav wrote :
>
>Hi everyone,
>
>When i am putting my .jsp file in the root directory and setting
>the struts-config.xml file for the same... everything seems to be
>fine..(the root directory is as
>C:\jakarta-tomcat-3.2.3\webapps\struts) and the server.xml shows
>the entry as
>
> <Context path="/struts"
> docBase="webapps/struts"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
>So far so good.
>
>But this is not the way i will manage my files.. so i created
>another folder in the root directory (JSP) as
>C:\jakarta-tomcat-3.2.3\webapps\struts\JSP and placed all my jsp
>files there.
>
>The first page is being shown perfectly but the forward is not
>working.. actually it is not able to find the .do mapping..
>Error message is The page cannot be displayed. "
>http://localhost:8080/struts/JSP/searchContacts.do "
>
>The various settings are as under.
>The server.xml is as above.
>The struts-config.xml is as under....
>
> <action path="/searchContacts"
>
>type="org.apache.struts.webapp.example.SearchContactsAction"
> name="SearchContactsForm"
> scope="request"
> validate="false"
> input="/searchContacts.jsp">
> <forward name="List"
>path="/ListContacts.jsp"/>
> </action
>
> <form-bean name="SearchContactsForm"
>
>type="org.apache.struts.webapp.example.SearchContactsForm"/>
>
>And in the First Jsp from where i am calling another jsp this is
>the desc.
>
> <form name = "foMessagePage" action="searchContacts.do"
>focus="companyName" METHOD="post">
>
>Please help me.
>
>Thanks in advance.
>
>regards,
>Naveen
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>