i even tried doing like that but its not coming!!!

Regards,
naveen

-----Original Message-----
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 1:52 PM
To: Struts Users Mailing List; Naveen Gaurav
Subject: RE: How to map the jsp files in different folder with the
ActionServlet!!


The action is allway mapped to /XXXXXXX.do, so you must call it like this,
not like /JSP/XXXXXXXX.do.

If you want the second way, you can do:

      <action    path="/JSP/searchContacts"

type="org.apache.struts.webapp.example.SearchContactsAction"
                name="SearchContactsForm"
                scope="request"
                validate="false"
          input="/searchContacts.jsp">
               <forward name="List"
path="/ListContacts.jsp"/>
            </action>

Regards,
Miguel

-----Mensaje original-----
De: Naveen Gaurav [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles, 02 de octubre de 2002 10:19
Para: [EMAIL PROTECTED]
Asunto: How to map the jsp files in different folder with the
ActionServlet!!


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]>


--
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]>

Reply via email to