ooops, soory, when i reread my post, it seems like i'm in a bit of a friday
mood as well......
what i meant to say was.....
the servlet is accessed via:
http://localmachine:8080/EntryPointServlet
it forwards the request to a jsp page at:
/Web-content/start.jsp
in this page is a link to another page in the same
folder, but i want the request to go to the servlet, and then the servlet
forwards it to the appropriate page, which is:
/EntryPointServlet/Web-content/next.jsp
i can find the page directly using
/Web-content/start.jsp
but not via the servlet....
thanks for the reply dan - not quite a mind reader but given my initial
email, pretty good. any more advice gratefully receieved....
cheers, simon
----- Original Message -----
From: Dan - Blue Lotus Software <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 4:45 PM
Subject: RE: [JBoss-user] routing web page request via servlet
> Your intentions are not really clear based upon what you say here. Let me
> try to paraphrase, to see if I've got it correct.
>
> You're using /EntryPointServlet as a controller in an MVC/Model 2
> architecture. That is, all requests for pages are *supposed* to go
through
> /EntryPointServlet, which then routes the request to the "real" resource
> (/Web-content/start.jsp).
>
> The problem is that /Web-content/start.jsp tries to include another
resource
> (it looks like you've said that it includes "start.jsp" again...surely
that
> is a mis-statement). Being a certified mind reader (not really, but go
with
> me on this one), I'm guessing you meant that it includes another file, say
> "myfile.jsp".
>
> Now, when it looks for "Web-content/myfile.jsp", it is actually tries
> looking for "/EntryPointServlet/Web-content/myfile.jsp", instead of
looking
> for "/Web-content/myfile.jsp". Is that right?
>
> Well, if it is, then all you need to do is to refer to the included file
by
> its absolute path. That is, instead of including
"Web-content/myfile.jsp",
> include "/Web-content/myfile.jsp". You see, when you include
> "Web-content/myfile.jsp", it attempts to include the file relative to the
> current resource. The location of the current resource is not
> "/Web-content/"--it's actually "/EntryPointServlet". If you specify an
> absolute path, all is fixed.
>
> If that's not what you're trying to do, can you rephrase what you're
asking?
> As it is stated, it sounds like "start.jsp" is recursively including
> "start.jsp". That doesn't sound right. But, then again, my mind-reading
> capabilities are a little off today--it's Friday, and I'm ready for the
> weekend.
>
> -dan
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Simon
> BATESON
> Sent: Friday, June 01, 2001 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] routing web page request via servlet
>
>
> i'm hoping someone can anyone throw some light on this problem -
>
> i've deployed my ear file on jboss, and accessed the servlet therein via
the
> address:
>
> http://localmachine:8080/EntryPointServlet
>
> this servlet forwards the requests to a jsp page at:
>
> /Web-content/start.jsp
>
> no problem so far. however, this page has a link to another page in the
same
> folder, but the request is routed via the servlet using:
>
> /EntryPointServlet/Web-content/start.jsp
>
> however, i get file not found. if i use:
>
> /Web-content/start.jsp
>
> the page is found, but the request doesn't go via the servlet....
>
> - any ideas anyone?
>
> thanks in advance
>
> simon
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user