hi Priya,
                Seems you havent gone through the struts docs or books
properly. Have you created any action mapping for that link ? Unless and
untill u dont do that, how come struts framework will know about it
?anyways, you have got two options either include one action mapping for
that href in config file or use struts forward action . Use of either of
them would solve your problem.

sachin
xoriant, mumbai

-----Original Message-----
From: Priya Jotwani [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:39 PM
To: Struts Users Mailing List
Subject: RE: Problem going to my Next JSP by Href tag


Thanks for the reply. But I have actually included my application path. I
think there is no problem in the path.
All I am worried about is will this calling of MyJSPPage would follow the
Struts framework process i.e going to ActionServlet and then to Action
Class...etc or would it be just a NORMAL html href tag. Because I am
following the normal Html approach and I have not written anything in my
ActionForm or ActionClass for the same.
What could be wrong ???

Thanks Again,
Priya


-----Original Message-----
From: Bj [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 8:35 PM
To: Struts Users Mailing List
Subject: Re: Problem going to my Next JSP by Href tag

Yes you don't need any processing in your struts-config file.

The application path seems to miss, no ?
<a href = "/MyWebappName/MyJSPPage.jsp">Click Here</a>

but you should use struts tag to avoid path issue :
<html:rewrite page="/MyJSPPage.jsp"/>

or if the page is on another server/application, you should put the 
complete url (http://MyServerName:8080/MyJSPPAge.jsp)

Bj


Priya Jotwani a écrit :
> Hi,
> 
>  
> 
> I want to build my application on existing Struts code. I have a main
> page where I just want to include a hyperlink. Clicking on the hyperlink
> should take me to one JSP Page (but since the data fetching logic is
> still under process, its only the HTML content in MYJSPPage)  But this
> doesn't works. Since I am not doing any processing, I don't think I
> should be making an entry in my Struts-Config(for the time being..just
> to see if my page loads when I click on the link on the main page). I
> have only made the changes in my Main JSP to include a href tag .
> 
>  
> 
> I have included the following line in my Main Page
> 
> <a href = "/MyJSPPage.jsp">Click Here</a>
> 
>  
> 
> What am I missing ? 
> 
>  
> 
> TIA,
> Priya
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to