RE: Mapping JSP

2005-03-17 Thread Jimmy Ray
Thank-you, that worked famously. Regards, Jimmy Ray --- "Ramu, Vinod" <[EMAIL PROTECTED]> wrote: > Use XML element (under node) in > your web.xml. Then > dispatch the request to this resource using > ServletContext.getNamedDispatcher("nameoftheresource"). > If you use this > method there is no n

RE: Mapping JSP

2005-03-17 Thread Ramu, Vinod
Use XML element (under node) in your web.xml. Then dispatch the request to this resource using ServletContext.getNamedDispatcher("nameoftheresource"). If you use this method there is no need to use any path. It identifies the resources based on the name that you pass. Vinod -Original Messag

Re: Mapping .jsp to controller servlet

2003-02-24 Thread Erik Price
Januski, Ken wrote: Thanks Eric, I know that I do need to learn about filters. It's just something I don't feel like I'm up for at the moment, though I may find it surprisingly easy once I finally look into it. I'll take a look at the articles. I felt the same way until I took a closer look and

RE: Mapping .jsp to controller servlet

2003-02-24 Thread Januski, Ken
Price [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:58 AM To: Tomcat Users List Subject: Re: Mapping .jsp to controller servlet Januski, Ken wrote: > I've found a workaround for the time being. Each .jsp page has access to a > bean that includes login info. I changed jsp pag

Re: Mapping .jsp to controller servlet

2003-02-24 Thread Erik Price
Januski, Ken wrote: I've found a workaround for the time being. Each .jsp page has access to a bean that includes login info. I changed jsp page to test to see if the login flag is true. If so nothing happens. If not then I use jsp:forward to send it back to the login.jsp page. So this will work

RE: Mapping .jsp to controller servlet

2003-02-24 Thread Cox, Charlie
] > Sent: Friday, February 21, 2003 4:05 PM > To: Tomcat Users List > Subject: RE: Mapping .jsp to controller servlet > > > I've found a workaround for the time being. Each .jsp page > has access to a > bean that includes login info. I changed jsp page to test to > see if

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Wendy Smoak
Ken wrote: > I found the following code from struts user list archive and it does what I > want. I'm not sure why I couldn't get WEB-INF to work but this may be a > better solution all in all. It may be... I hear that putting JSP's under WEB-INF isn't portable across containers. At least one of t

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Januski, Ken
uld be put in this role. nobody Ken -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 4:20 PM To: 'Tomcat Users List' Subject: RE: Mapping .jsp to controller servlet > I've found a workaround for the ti

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Wendy Smoak
> I've found a workaround for the time being. Each .jsp page has access to a > bean that includes login info. I changed jsp page to test to see if the > login flag is true. If so nothing happens. If not then I use jsp:forward to > send it back to the login.jsp page. > So this will work until I feel

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Januski, Ken
ready to explore filters. -Original Message- From: Januski, Ken [mailto:kjanuski@xx] Sent: Friday, February 21, 2003 1:33 PM To: Tomcat Users List Subject: RE: Mapping .jsp to controller servlet Thanks Erik, I'm going to hold off for awhile and see if anyone clarifies

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Januski, Ken
questions about them. Ken -Original Message- From: Erik Price [mailto:eprice@xxx] Sent: Friday, February 21, 2003 12:40 PM To: Tomcat Users List Subject: Re: Mapping .jsp to controller servlet Januski, Ken wrote: > Erik, > > Thanks. Sorry I haven't been

Re: Mapping .jsp to controller servlet

2003-02-21 Thread Erik Price
Januski, Ken wrote: Erik, Thanks. Sorry I haven't been clearer. The servlet does use request.include. I just added a try/catch to it and noticed that it fails when trying to include the file that I've put in WEB-INF. The error is "javax.servlet.ServletException: queries.jsp". Oh. Sorry about th

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Januski, Ken
at's your theory. If it's correct then for now I'll pursue getting that to work. If not then I guess I'll need to take a closer look at filters. Thanks again, Ken -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 11:51

Re: Mapping .jsp to controller servlet

2003-02-21 Thread Erik Price
Januski, Ken wrote: Hmm. I got a 404 error after moving one jsp file to WEB-INF and trying to directly access it. That's not great but at least it prevents access. Worse though is that when I then try to go to page after having logged in I get a "root cause: file not found error". So it looks to

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Januski, Ken
like you can't move your .jsp files out of the root web-app directory. Can anyone shed any more light on this? -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 11:36 AM To: Tomcat Users List Subject: RE: Mapping .jsp to controller ser

RE: Mapping .jsp to controller servlet

2003-02-21 Thread Januski, Ken
ubject: Re: Mapping .jsp to controller servlet I may not be entirely clear on what you're saying, but if you're saying that no one should directly be able to request your JSPs and instead they should only access the contents of your site by requesting Servlet resources (which

Re: Mapping .jsp to controller servlet

2003-02-21 Thread Erik Price
I may not be entirely clear on what you're saying, but if you're saying that no one should directly be able to request your JSPs and instead they should only access the contents of your site by requesting Servlet resources (which then forward to JSPs), perhaps it would be worth moving the JSPs