JSP pages can't be directly accessed.  If you look at the web.xml,
it's configured to accept only requests that end with .html suffix.
And everything goes through the Spring MVC dispatcher and thus, can
only be accessed through a controller.  See Spring documentation
chapter 13 for MVC 
http://static.springframework.org/spring/docs/2.0.x/reference/mvc.html

The basic request flow goes like this.  Browser request -> Tomcat ->
Spring MVC dispatcher (looks up request to controller mapping) ->
controller (processes request) -> JSP (strictly view, no processing) -
> server response.

The reason that direct access to jsp's are blocked is because clients
are required to go through the request processing logic.  Otherwise,
you're providing security holes into the application.  On the other
hand, if you put logic into the jsp's to handle any direct requests,
then this becomes the php model.

So to directly answer your question.  You need something like this:

<a href="<c:url value="tools.html"/>">

Cynick

On Feb 25, 10:15 pm, "Anthony Perritano" <[EMAIL PROTECTED]> wrote:
> even if i put tools.jsp on the same level as all the other jsp. i still
> can't link to it with this:
>
> <a href="<c:url value="tools.jsp"/>">
>
> or
>
> <a href="tools.jsp"/>
>
> On 2/25/07, Anthony Perritano <[EMAIL PROTECTED]> wrote:
>
>
>
> > cynick,
>
> > i put this is in the offering jsp:
>
> > <a href="<c:url value="wise/tools.jsp"/>">
>
> > wise is dir under jsp, i keep getting page not found. any clue?
>
> > -Tony


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to