Re: Jsp mapping

2005-03-05 Thread Rahul Akolkar
> This example explains as to make mapping filter on servlet:

> How to make mapping with JSP ?

Have you tried ? (instead of  in the filter mapping)

Since I'm all for precompilation, I don't see JSPs differently ;-)
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html

-Rahul

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



Jsp mapping

2005-03-04 Thread Bogomolov Sergey
Hi all!

This example explains as to make mapping filter on servlet:


SecureFilter
ru.centernt.filter.SecureFilter


SecureFilter
auth

How to make mapping with JSP ?

Thanks for the help!

Best regards,
Sergey Bogomolov



Re: web.XML - JSP mapping ?

2001-08-26 Thread Craig R. McClanahan



On Sun, 26 Aug 2001, Frot wrote:

> Date: Sun, 26 Aug 2001 15:21:38 +0200
> From: Frot <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: web.XML - JSP mapping ?
>
> Hi,
>
> Also a bit off subject, but I need some mapping for JSP pages.
>
> I get the thing working for servlets fine, using  & .
> I dont seems to get it working for a JSP page.
>
> Could someone be so kind to define the web.xml stuff for following small setup :
>
>   jsp page to be mapped : /subdir/jsppage.jsp
>   logical name for page : do-jsppage
>
> My code should do something like :
>
>   dorRedirect("do-jsppage") ;
>
> Thanx,
> Fred
>
>
>

Every JSP page has an *implicit* mapping that matches it's name
("/subdir/jsppage.jsp" in the case above).  If you want to give this page
a different mapping, you can do so like this:

  
Remapped JSP Page
/subdir/jsppage.jsp
  

  ...

  
Remapped JSP Page
/do-jsppage
  

and now a URL like this:

  http://www.mycompany.com/myapp/do-jsppage

will execute the requested page.

Craig





web.XML - JSP mapping ?

2001-08-26 Thread Frot

Hi,

Also a bit off subject, but I need some mapping for JSP pages.

I get the thing working for servlets fine, using  & .
I dont seems to get it working for a JSP page.

Could someone be so kind to define the web.xml stuff for following small setup :

jsp page to be mapped : /subdir/jsppage.jsp
logical name for page : do-jsppage

My code should do something like :

dorRedirect("do-jsppage") ;

Thanx,
Fred





Question regarding servlet/jsp mapping using uriworkermap.properties

2001-08-10 Thread Eric Wu

I have a question regarding mapping with uriworkermap.properties.
We have Tomcat running with IIS and I would like to set things up so that
IIS serves up static content (html files) leaving Tomcat to handle JSP and
Struts.

My question is this:  if the directories holding the JSPs are structured as
follows:

\myContext\jsp\a1\b1\ {some JSP files}
\myContext\jsp\a1\b2\ {some JSP files}
\myContext\jsp\a2\c1\ {some JSP files}
\myContext\jsp\a3\c2\ {some JSP files}

Can I map these to Tomcat using the following entries in
uriworkermap.properties?
\myContext\jsp\*.jsp=ajp12

Or will I need to specify a rule for each directory?
\myContext\jsp\a1\b1\*.jsp=ajp12
\myContext\jsp\a1\b2\*.jsp=ajp12
\myContext\jsp\a2\c1\*.jsp=ajp12
\myContext\jsp\a3\c2\*.jsp=ajp12



Eric Wu  
Java Architect   
GlobalMedic Inc., a Canadian Medical Association subsidiary

8200 Decarie Blvd., Suite 205
Montreal, Qc.
Canada, H4P 2P5
Tel: (514) 738-6770 Ext. 239
Fax: (514) 738-4827
Email: [EMAIL PROTECTED] 
Web:  
Gold Medal Winner at the 2000 WWW Health Awards





Re: jsp mapping

2001-07-26 Thread Craig R. McClanahan



On Thu, 12 Jul 2001, Kevin HaleBoyes wrote:

> First off, I'm running Tomcat 4b5 (standalone) on Linux RedHat 7.1.
> 
> I've been looking at (and learning from) the Java Pet Store from Sun and
> have been writing some custom Taglibs for my application.  I'm currently doing
> lists of things that use the NextFormTag and PrevFormTag extensions from
> a jsp file/program.  These tags generate  elements to move to the next
> and previous pages where you specify the "action" of the form.  Here is an
> example (snippet):
> 
>
>  
>
>
>  
>
> 
> This generates the following HTML output:
> 
> 
> 
> 
> 
> 
> 
> I'm having trouble specifying the action element of the form.  From above,
> listorders is actually a JSP file.  I need to provide a mapping from the
> actual JSP file "/cust/listorders.jsp" to "/cust/listorders" but I'm not sure
> how to go about it.
> 
> I tried to put the following in my web.xml file but it didn't work:
> 
> 
> listorders
> /cust/listorders.jsp
> 
> 

This is close but not quite right.  Try:

  
listorders
/cust/listorders.jsp
  


> 
> listorders
> /cust/listorders
> 
> 
> When I click the Next button I get the following in my browser:
> 
> HTTP Status 404 - /cust/listorders
> The requested resource (/cust/listorders) is not available. 
> 
> 
> Can anyone help?  I searched the archives at mikal but didn't come up with
> anything that was applicable.
> 

As someone else pointed out, you could also have modified your actions to
be the name of the JSP page instead (/cust/listorders.jsp).

> Many thanks,
> Kevin.
> 


Craig McClanahan




RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Sampige, Srinivas

Jann
 Somebody did reply to my question .Here is what i got...
--
Hello:
>From what I can tell:
(1) In your PronServlet.java service() method, you are manually parsing the
form data using the stream returned by request.getInputStream()
(2) In the JSP page, Tomcat is attempting to parse the form data again.
The servlet API docs specify that you can only call getInputStream() once
on a request, and that doing so may cause problems reading parameters, so I
suspect that's the source of your problem. I'm not entirely sure why the
generated JSP servlet is trying to read the parameters. Perhaps you're using
the parameters in the JSP page, or perhaps the JSP engine just reads it by
default, which would seem reasonable to me.
The simple workaround would be not to parse the form data in your
PronServlet, but to just use request.getParameter() and let Tomcat handle
it. That's the way I've done it in the past, and haven't had problems.
---
thanks
Srinivas


-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 3:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem with JSP mapping to subdirectory


That should have said "servlet mapping"
-Original Message-
From: Jann VanOver 
Sent: Wednesday, July 18, 2001 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem with JSP mapping to subdirectory


Please look at Web.XML.  You need TWO elements in Web.xml for each server mapping you 
want to set up.
-Original Message-
From: Renato Weiner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 3:35 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Problem with JSP mapping to subdirectory


Hi all,

I'm having a problem using JSP/Servlets in a subdirectory other than root.
To whomever want to test these are the steps:
- httpd.conf:

JkMount /test/*.jsp ajp12
JkMount /servlet_test/* ajp12

- server.xml



 

I can run a servlet since it loads the right web.xml in test.
log: 
2001-07-18 19:27:17 - Ctx( ... ): Reading /home/name/public_html/test/WEB-INF/web.xml
URL:
http://www.name.com/servlet_test/MyServlet
But when I try to run a JSP I got a 404 error message. Looking at the logs:
2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp /home/name/
/public_html/test/test/Hello.jsp /home/name/public_html/test

2001-07-18 19:29:18 - Ctx( ... ): 404 R(  + /test/Hello.jsp + null) JSP file not found
URL: 
http://www.name.com/test/Hello.jsp
Am I doing something wrong ? Or is it a problem??
Renato.





Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 a year!
http://personal.mail.yahoo.com/



RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Jann VanOver



That 
should have said "servlet mapping"

  -Original Message-From: Jann VanOver 
  Sent: Wednesday, July 18, 2001 3:37 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: Problem with JSP 
  mapping to subdirectory
  Please look at Web.XML.  You need TWO elements in Web.xml for each 
  server mapping you want to set up.
  
-Original Message-From: Renato Weiner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 3:35 
PMTo: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: Problem with JSP mapping to 
subdirectory
Hi all,
I'm having a problem using JSP/Servlets in a subdirectory other than 
root.
To whomever want to test these are the steps:
- httpd.conf:
JkMount /test/*.jsp ajp12JkMount 
/servlet_test/* ajp12

- server.xml
    
className="org.apache.tomcat.request.InvokerInterceptor"    
debug="9" prefix="/servlet_test/" />

www.name.com"> 
I can run a servlet since it loads the right web.xml in test.log: 
2001-07-18 19:27:17 - Ctx( ... ): Reading 
/home/name/public_html/test/WEB-INF/web.xmlURL:http://www.name.com/servlet_test/MyServlet
But when I try to run a JSP I got a 404 error message. Looking at the 
logs:
2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp 
/home/name//public_html/test/test/Hello.jsp 
/home/name/public_html/test2001-07-18 
19:29:18 - Ctx( ... ): 404 R(  + /test/Hello.jsp + null) JSP file not 
found
URL: http://www.name.com/test/Hello.jsp
Am I doing something wrong ? Or is it a problem??
Renato.


Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
only $35 a year!http://personal.mail.yahoo.com/


RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Jann VanOver



Please 
look at Web.XML.  You need TWO elements in Web.xml for each server mapping 
you want to set up.

  -Original Message-From: Renato Weiner 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 3:35 
  PMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Problem with JSP mapping to 
  subdirectory
  Hi all,
  I'm having a problem using JSP/Servlets in a subdirectory other than 
  root.
  To whomever want to test these are the steps:
  - httpd.conf:
  JkMount /test/*.jsp ajp12JkMount 
  /servlet_test/* ajp12
  
  - server.xml
      
  className="org.apache.tomcat.request.InvokerInterceptor"    
  debug="9" prefix="/servlet_test/" />
  
  www.name.com"> 
  I can run a servlet since it loads the right web.xml in test.log: 
  2001-07-18 19:27:17 - Ctx( ... ): Reading 
  /home/name/public_html/test/WEB-INF/web.xmlURL:http://www.name.com/servlet_test/MyServlet
  But when I try to run a JSP I got a 404 error message. Looking at the 
  logs:
  2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp 
  /home/name//public_html/test/test/Hello.jsp 
  /home/name/public_html/test2001-07-18 
  19:29:18 - Ctx( ... ): 404 R(  + /test/Hello.jsp + null) JSP file not 
  found
  URL: http://www.name.com/test/Hello.jsp
  Am I doing something wrong ? Or is it a problem??
  Renato.
  
  
  Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
  only $35 a year!http://personal.mail.yahoo.com/


RE: jsp mapping

2001-07-12 Thread Jann VanOver

Maybe I'm dense, but why don't you just put:
  action="/cust/listorders.jsp" in your tag 

-Original Message-
From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 8:57 AM
To: [EMAIL PROTECTED]
Subject: jsp mapping


First off, I'm running Tomcat 4b5 (standalone) on Linux RedHat 7.1.

I've been looking at (and learning from) the Java Pet Store from Sun and
have been writing some custom Taglibs for my application.  I'm currently
doing
lists of things that use the NextFormTag and PrevFormTag extensions from
a jsp file/program.  These tags generate  elements to move to the next
and previous pages where you specify the "action" of the form.  Here is an
example (snippet):

   
 
   
   
 
   

This generates the following HTML output:







I'm having trouble specifying the action element of the form.  From above,
listorders is actually a JSP file.  I need to provide a mapping from the
actual JSP file "/cust/listorders.jsp" to "/cust/listorders" but I'm not
sure
how to go about it.

I tried to put the following in my web.xml file but it didn't work:


listorders
/cust/listorders.jsp



listorders
/cust/listorders


When I click the Next button I get the following in my browser:

HTTP Status 404 - /cust/listorders
The requested resource (/cust/listorders) is not available. 


Can anyone help?  I searched the archives at mikal but didn't come up with
anything that was applicable.

Many thanks,
Kevin.




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



jsp mapping

2001-07-12 Thread Kevin HaleBoyes

First off, I'm running Tomcat 4b5 (standalone) on Linux RedHat 7.1.

I've been looking at (and learning from) the Java Pet Store from Sun and
have been writing some custom Taglibs for my application.  I'm currently doing
lists of things that use the NextFormTag and PrevFormTag extensions from
a jsp file/program.  These tags generate  elements to move to the next
and previous pages where you specify the "action" of the form.  Here is an
example (snippet):

   
 
   
   
 
   

This generates the following HTML output:







I'm having trouble specifying the action element of the form.  From above,
listorders is actually a JSP file.  I need to provide a mapping from the
actual JSP file "/cust/listorders.jsp" to "/cust/listorders" but I'm not sure
how to go about it.

I tried to put the following in my web.xml file but it didn't work:


listorders
/cust/listorders.jsp



listorders
/cust/listorders


When I click the Next button I get the following in my browser:

HTTP Status 404 - /cust/listorders
The requested resource (/cust/listorders) is not available. 


Can anyone help?  I searched the archives at mikal but didn't come up with
anything that was applicable.

Many thanks,
Kevin.




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Glad it worked.  Maybe I'll summarize the process a little more clearly.

To change the configuration:
1. Change server.xml to your desired config.
2. Stop tomcat
3. Start tomcat
4. At this point tomcat generates a new tomcat-apache.conf
5. Test the new config using "apachectl configtest"
6. Restart apache using "apachectl graceful"
7. When apache restarts, it will reload its config, including the 
tomcat-apache.conf

hope this helps some ppl as well as you (o:

cheesr
dim


On Tue, 19 Jun 2001 17:34, you wrote:
> Dim,
>
> Very nice, this tip solved my problem.
> I've added the line  and now I can run
> root JSP file that are
> mapped to c\winnt.
>
> Actually, I've tried it before, but I was expecting to see the lines in the
> server.xml to be
> reflected in the tomcat-apache.conf file, as it was in other lines I have
> inserted to server.xml
> (for example:
> adding  to
> server.xml
> caused Tomcat to add ( in it's restart ) the following lines to
> tomcat-apache.conf:
>
>   Alias /MyJspDirectory "c:/winnt"
>   
>   Options Indexes FollowSymLinks
>   
>   ApJServMount /MyJspDirectory/servlet /MyJspDirectory
>   
>   AllowOverride None
>   deny from all
>   
>   
>   AllowOverride None
>   deny from all
>   
>   
>   AllowOverride None
>   deny from all
>   
>   
>   AllowOverride None
>   deny from all
>   
> )
>
> And since tomcat-apache.conf was not changed I didn't even try to check
> root JSPs.
>
> Although there is some anomaly here, it is working fine, thank you.
>
> ( Maybe the answer is in the tomcat-apache.conf line
> ApJServMount /servlet /ROOT
>  that force Apache to mount root JSPs to Tomcat root directory, and then
> Tomcat, according to it's
>  server.xml maps root files to c:\winnt )
>
> All the best,
> Eitan
>
> > -Original Message-
> > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 4:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP mapping
> >
> >
> > Eitan,
> >
> > Yep - editing tomcat-apache.conf by hand is a bad idea as it is
> > generated by tomcat every time it starts, which would explain why your
> > changes disappear (o:  I'm assuming that in your server.xml you have a
> > line  or something
> > similar?  If
> > you change the docbase in that to point to "c:/winnt", you should be
> > able to remove the context mapping you've put in atm and find that
> > http://foo/bar.jsp will work (as will
> > http://foo/servlet/myservletmapping).
> >
> > hope this does the trick
> > cheers
> > dim
> >
> > Eitan Ben Noach wrote:
> > > Thanks dim,
> > >
> > > I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> > >
> > > No meter what I've tried to do on the tomact-apache.conf
> >
> > and server.xml
> >
> > > files, Tomcat will not
> > > let me map root JSP files to a directory other then
> > > c:\jakarta-tomcat-3.2.3\webapps\root
> > >
> > > Is there any doc that defines the exact syntax of the ApJServMount
> > > directive?
> > > The user guide gives examples but does not specify the
> >
> > exact definition.
> >
> > > I've tried the following at the tomact-apache.conf:
> > >
> > > ApJServMount /  /MyJspDirectory
> > >
> > > and then in the server.xml define:
> > > 
> > >
> > > When restarting Tomcat the line "ApJServMount /
> >
> > /MyJspDirectory" at the
> >
> > > tomact-apache.conf had been removed!
> > >
> > > Trying the line:
> > > ApJServMount /servlet  /MyJspDirectory
> > >
> > > has the same results
> > >
> > > Eitan
> > >
> > > > -Original Message-
> > > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, June 18, 2001 4:05 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: JSP mapping
> > > >
> > > >
> > > > Eitan,
> > > >
> > > > Are you running standalone or with a web server?  Assuming you're
> > > > running standalone, and that there's not much else you're
> >
> > using tomcat
> >
> > &

RE: JSP mapping

2001-06-18 Thread Eitan Ben Noach

Dim,

Very nice, this tip solved my problem.
I've added the line  and now I can run
root JSP file that are 
mapped to c\winnt.

Actually, I've tried it before, but I was expecting to see the lines in the
server.xml to be
reflected in the tomcat-apache.conf file, as it was in other lines I have
inserted to server.xml
(for example:
adding  to
server.xml
caused Tomcat to add ( in it's restart ) the following lines to
tomcat-apache.conf:

Alias /MyJspDirectory "c:/winnt"

Options Indexes FollowSymLinks

ApJServMount /MyJspDirectory/servlet /MyJspDirectory 

AllowOverride None
deny from all


AllowOverride None
deny from all


AllowOverride None
deny from all


AllowOverride None
deny from all

)

And since tomcat-apache.conf was not changed I didn't even try to check root
JSPs.
 
Although there is some anomaly here, it is working fine, thank you.

( Maybe the answer is in the tomcat-apache.conf line  
ApJServMount /servlet /ROOT
 that force Apache to mount root JSPs to Tomcat root directory, and then
Tomcat, according to it's
 server.xml maps root files to c:\winnt )

All the best,
Eitan


> -Original Message-
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP mapping
> 
> 
> Eitan,
> 
> Yep - editing tomcat-apache.conf by hand is a bad idea as it is
> generated by tomcat every time it starts, which would explain why your
> changes disappear (o:  I'm assuming that in your server.xml you have a
> line  or something 
> similar?  If
> you change the docbase in that to point to "c:/winnt", you should be
> able to remove the context mapping you've put in atm and find that
> http://foo/bar.jsp will work (as will
> http://foo/servlet/myservletmapping).
> 
> hope this does the trick
> cheers
> dim
> 
> Eitan Ben Noach wrote:
> > 
> > Thanks dim,
> > 
> > I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> > 
> > No meter what I've tried to do on the tomact-apache.conf 
> and server.xml
> > files, Tomcat will not
> > let me map root JSP files to a directory other then
> > c:\jakarta-tomcat-3.2.3\webapps\root
> > 
> > Is there any doc that defines the exact syntax of the ApJServMount
> > directive?
> > The user guide gives examples but does not specify the 
> exact definition.
> > 
> > I've tried the following at the tomact-apache.conf:
> > 
> > ApJServMount /  /MyJspDirectory
> > 
> > and then in the server.xml define:
> > 
> > 
> > When restarting Tomcat the line "ApJServMount /  
> /MyJspDirectory" at the
> > tomact-apache.conf had been removed!
> > 
> > Trying the line:
> > ApJServMount /servlet  /MyJspDirectory
> > 
> > has the same results
> > 
> > Eitan
> > 
> > > -Original Message-
> > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, June 18, 2001 4:05 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: JSP mapping
> > >
> > >
> > > Eitan,
> > >
> > > Are you running standalone or with a web server?  Assuming you're
> > > running standalone, and that there's not much else you're 
> using tomcat
> > > for, all you need to do is remove the "/"MyJspDirectory" from the
> > > context path and it should work fine.
> > >
> > > cheesr
> > > dim
> > >
> > > Eitan Ben Noach wrote:
> > > >
> > > > HI,
> > > >
> > > > I want to map JSPs called by browser at the http server 
> root, like
> > > > http://victoria.xx.yy/zz.jsp to be handled by JSP file that
> > > is located some
> > > > were else then
> > > > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
> > > for example by
> > > > c:\winnt\zz.jsp.
> > > >
> > > > I've succeeded on configuring Tomcat to handle JSP files at
> > > the context path
> > > > /MyJspDirectory to be handled by JSP files at the c:\winnt
> > > directory by
> > > > changing the server.xml file by defining:
> > > >   
> > > >
> > > > In that way the browser link
> > > http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > > > handles by  c:\

Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Yep - editing tomcat-apache.conf by hand is a bad idea as it is
generated by tomcat every time it starts, which would explain why your
changes disappear (o:  I'm assuming that in your server.xml you have a
line  or something similar?  If
you change the docbase in that to point to "c:/winnt", you should be
able to remove the context mapping you've put in atm and find that
http://foo/bar.jsp will work (as will
http://foo/servlet/myservletmapping).

hope this does the trick
cheers
dim

Eitan Ben Noach wrote:
> 
> Thanks dim,
> 
> I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> 
> No meter what I've tried to do on the tomact-apache.conf and server.xml
> files, Tomcat will not
> let me map root JSP files to a directory other then
> c:\jakarta-tomcat-3.2.3\webapps\root
> 
> Is there any doc that defines the exact syntax of the ApJServMount
> directive?
> The user guide gives examples but does not specify the exact definition.
> 
> I've tried the following at the tomact-apache.conf:
> 
> ApJServMount /  /MyJspDirectory
> 
> and then in the server.xml define:
> 
> 
> When restarting Tomcat the line "ApJServMount /  /MyJspDirectory" at the
> tomact-apache.conf had been removed!
> 
> Trying the line:
> ApJServMount /servlet  /MyJspDirectory
> 
> has the same results
> 
> Eitan
> 
> > -Original Message-----
> > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 4:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP mapping
> >
> >
> > Eitan,
> >
> > Are you running standalone or with a web server?  Assuming you're
> > running standalone, and that there's not much else you're using tomcat
> > for, all you need to do is remove the "/"MyJspDirectory" from the
> > context path and it should work fine.
> >
> > cheesr
> > dim
> >
> > Eitan Ben Noach wrote:
> > >
> > > HI,
> > >
> > > I want to map JSPs called by browser at the http server root, like
> > > http://victoria.xx.yy/zz.jsp to be handled by JSP file that
> > is located some
> > > were else then
> > > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
> > for example by
> > > c:\winnt\zz.jsp.
> > >
> > > I've succeeded on configuring Tomcat to handle JSP files at
> > the context path
> > > /MyJspDirectory to be handled by JSP files at the c:\winnt
> > directory by
> > > changing the server.xml file by defining:
> > >   
> > >
> > > In that way the browser link
> > http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > > handles by  c:\winnt\zz.jsp.
> > > How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
> > >
> > > It seems that it should be solved through the
> > "ApJServMount" and  "Alias"
> > > directives as well as the server.xml ( and maybe web.xml ),
> > > but how?
> > >
> > > Thanks
> > > -
> > > Eitan Ben-Noach
> > > Proficiency, Ltd.
> > >
> > > Tel: +972.2.548.0287
> > > Fax: +972.2.586.3871
> > > email: [EMAIL PROTECTED]
> > >
> > > The Intelligence in Engineering Supply Chain Collaboration
> > > <http://www.proficiency.com/>
> > >
> > > > - Original Message -
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, June 18, 2001 2:13 PM
> > > > Subject: Re: Vs: Vs: mod_webapp.so needed
> > > >
> > > >
> > > > > Give this a whirl:
> > > > >
> > > > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > > > >
> > > > > The next part is actually configuring it?!
> > > > >
> > > > > James
> > > > > >
> > > > > > why notI can´t lose anything...:)thanks! and yes,
> > > > we are talking about RH.
> > > > > > Will you give me address where I can download it?
> > > > > >
> > > > > > -jari
> > > > > >
> > > > > > - Original Message -
> > > > > > From: <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > > > Subject: Re: Vs: mod_webapp.so needed
> > > > > >
> > > > > >
> > > > > > > I've got it compiled for Redhat 6.2, although that's a
> > > > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > > > 2.4. If you want to give it a try I'll upload it to my server?
> > > > > > >
> > > > > > > James
> > > > > > > >
> > > > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > - Original Message -
> > > > > > > > From: <[EMAIL PROTECTED]>
> > > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > > > Subject: Re: mod_webapp.so needed
> > > > > > > >
> > > > > > > >
> > > > > > > > > It would help if you specified for which platform.
> > > > > > > > > >
> > > > > > > > > > Hi,
> > > > > > > > > >
> > > > > > > > > > Can somebody tell me where I can get
> > > > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > > > >
> > > > > > > > > > thanks
> > > > > > > > > >
> > > > > > > > > > -jari
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> >



RE: JSP mapping

2001-06-18 Thread Eitan Ben Noach

Thanks dim,

I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.

No meter what I've tried to do on the tomact-apache.conf and server.xml
files, Tomcat will not
let me map root JSP files to a directory other then
c:\jakarta-tomcat-3.2.3\webapps\root

Is there any doc that defines the exact syntax of the ApJServMount
directive?
The user guide gives examples but does not specify the exact definition.

I've tried the following at the tomact-apache.conf:

ApJServMount /  /MyJspDirectory

and then in the server.xml define:


When restarting Tomcat the line "ApJServMount /  /MyJspDirectory" at the
tomact-apache.conf had been removed!

Trying the line:
ApJServMount /servlet  /MyJspDirectory

has the same results

Eitan

> -Original Message-
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 4:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP mapping
> 
> 
> Eitan,
> 
> Are you running standalone or with a web server?  Assuming you're
> running standalone, and that there's not much else you're using tomcat
> for, all you need to do is remove the "/"MyJspDirectory" from the
> context path and it should work fine.
> 
> cheesr
> dim
> 
> Eitan Ben Noach wrote:
> > 
> > HI,
> > 
> > I want to map JSPs called by browser at the http server root, like
> > http://victoria.xx.yy/zz.jsp to be handled by JSP file that 
> is located some
> > were else then
> > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, 
> for example by
> > c:\winnt\zz.jsp.
> > 
> > I've succeeded on configuring Tomcat to handle JSP files at 
> the context path
> > /MyJspDirectory to be handled by JSP files at the c:\winnt 
> directory by
> > changing the server.xml file by defining:
> >   
> > 
> > In that way the browser link 
> http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > handles by  c:\winnt\zz.jsp.
> > How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
> > 
> > It seems that it should be solved through the 
> "ApJServMount" and  "Alias"
> > directives as well as the server.xml ( and maybe web.xml ),
> > but how?
> > 
> > Thanks
> > -
> > Eitan Ben-Noach
> > Proficiency, Ltd.
> > 
> > Tel: +972.2.548.0287
> > Fax: +972.2.586.3871
> > email: [EMAIL PROTECTED]
> > 
> > The Intelligence in Engineering Supply Chain Collaboration
> > <http://www.proficiency.com/>
> > 
> > > - Original Message -
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 18, 2001 2:13 PM
> > > Subject: Re: Vs: Vs: mod_webapp.so needed
> > >
> > >
> > > > Give this a whirl:
> > > >
> > > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > > >
> > > > The next part is actually configuring it?!
> > > >
> > > > James
> > > > >
> > > > > why notI can´t lose anything...:)thanks! and yes,
> > > we are talking about RH.
> > > > > Will you give me address where I can download it?
> > > > >
> > > > > -jari
> > > > >
> > > > > - Original Message -
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > > Subject: Re: Vs: mod_webapp.so needed
> > > > >
> > > > >
> > > > > > I've got it compiled for Redhat 6.2, although that's a
> > > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > > 2.4. If you want to give it a try I'll upload it to my server?
> > > > > >
> > > > > > James
> > > > > > >
> > > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > - Original Message -
> > > > > > > From: <[EMAIL PROTECTED]>
> > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > > Subject: Re: mod_webapp.so needed
> > > > > > >
> > > > > > >
> > > > > > > > It would help if you specified for which platform.
> > > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > Can somebody tell me where I can get
> > > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > > >
> > > > > > > > > thanks
> > > > > > > > >
> > > > > > > > > -jari
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> 



Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Are you running standalone or with a web server?  Assuming you're
running standalone, and that there's not much else you're using tomcat
for, all you need to do is remove the "/"MyJspDirectory" from the
context path and it should work fine.

cheesr
dim

Eitan Ben Noach wrote:
> 
> HI,
> 
> I want to map JSPs called by browser at the http server root, like
> http://victoria.xx.yy/zz.jsp to be handled by JSP file that is located some
> were else then
> the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, for example by
> c:\winnt\zz.jsp.
> 
> I've succeeded on configuring Tomcat to handle JSP files at the context path
> /MyJspDirectory to be handled by JSP files at the c:\winnt directory by
> changing the server.xml file by defining:
>   
> 
> In that way the browser link http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> handles by  c:\winnt\zz.jsp.
> How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
> 
> It seems that it should be solved through the "ApJServMount" and  "Alias"
> directives as well as the server.xml ( and maybe web.xml ),
> but how?
> 
> Thanks
> -
> Eitan Ben-Noach
> Proficiency, Ltd.
> 
> Tel: +972.2.548.0287
> Fax: +972.2.586.3871
> email: [EMAIL PROTECTED]
> 
> The Intelligence in Engineering Supply Chain Collaboration
> 
> 
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 18, 2001 2:13 PM
> > Subject: Re: Vs: Vs: mod_webapp.so needed
> >
> >
> > > Give this a whirl:
> > >
> > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > >
> > > The next part is actually configuring it?!
> > >
> > > James
> > > >
> > > > why notI can´t lose anything...:)thanks! and yes,
> > we are talking about RH.
> > > > Will you give me address where I can download it?
> > > >
> > > > -jari
> > > >
> > > > - Original Message -
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > Subject: Re: Vs: mod_webapp.so needed
> > > >
> > > >
> > > > > I've got it compiled for Redhat 6.2, although that's a
> > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > 2.4. If you want to give it a try I'll upload it to my server?
> > > > >
> > > > > James
> > > > > >
> > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > Subject: Re: mod_webapp.so needed
> > > > > >
> > > > > >
> > > > > > > It would help if you specified for which platform.
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > Can somebody tell me where I can get
> > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > >
> > > > > > > > thanks
> > > > > > > >
> > > > > > > > -jari
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >



JSP mapping

2001-06-18 Thread Eitan Ben Noach

HI,

I want to map JSPs called by browser at the http server root, like
http://victoria.xx.yy/zz.jsp to be handled by JSP file that is located some
were else then
the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, for example by
c:\winnt\zz.jsp.

I've succeeded on configuring Tomcat to handle JSP files at the context path
/MyJspDirectory to be handled by JSP files at the c:\winnt directory by
changing the server.xml file by defining:
  

In that way the browser link http://victoria.xx.yy/MyJspDirectory/zz.jsp is
handles by  c:\winnt\zz.jsp.
How can I do the same for the link http://victoria.xx.yy/zz.jsp ?

It seems that it should be solved through the "ApJServMount" and  "Alias"
directives as well as the server.xml ( and maybe web.xml ),
but how?

Thanks
-
Eitan Ben-Noach
Proficiency, Ltd.

Tel: +972.2.548.0287
Fax: +972.2.586.3871
email: [EMAIL PROTECTED]

The Intelligence in Engineering Supply Chain Collaboration





> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 2:13 PM
> Subject: Re: Vs: Vs: mod_webapp.so needed
> 
> 
> > Give this a whirl:
> > 
> > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > 
> > The next part is actually configuring it?!
> > 
> > James
> > > 
> > > why notI can´t lose anything...:)thanks! and yes, 
> we are talking about RH.
> > > Will you give me address where I can download it?
> > > 
> > > -jari
> > > 
> > > - Original Message - 
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 18, 2001 1:46 PM
> > > Subject: Re: Vs: mod_webapp.so needed
> > > 
> > > 
> > > > I've got it compiled for Redhat 6.2, although that's a 
> 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is 
> 2.4. If you want to give it a try I'll upload it to my server?
> > > > 
> > > > James
> > > > > 
> > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > 
> > > > > 
> > > > > 
> > > > > - Original Message - 
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > Subject: Re: mod_webapp.so needed
> > > > > 
> > > > > 
> > > > > > It would help if you specified for which platform.
> > > > > > > 
> > > > > > > Hi,
> > > > > > > 
> > > > > > > Can somebody tell me where I can get 
> mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > 
> > > > > > > thanks
> > > > > > > 
> > > > > > > -jari
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > > 
> > > 
> > 
> > 
> 



Need help for servlet and jsp mapping

2001-01-28 Thread Gunawan Tanudy

HI..
Can somebody help me , i got really frustrated regarding mapping servlet
and jsp file to tomcat.
I use Apache+ tomcat.
the example files run well.
i have made the context path in server.xml like the following

 
 

then in myserver directory i make the tree like this:
/WEB-INF/classes
/servlets



i write the servlet in a package called devguide.chap1.MultiDemo.class
and i put the directory devguide which is a package directory into
classess directory
can somebody tell me how to configure web.xml(in WEB-INF directory)

one more question : 
i put the jsp file under the myserver directory
Should i map the jsp file in the web.xml too ? if so, then how ?

Help will be really appreciated.
thanks in advance..




Rgds,

Gun

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




RE: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Dave Newton

> Is that the only way to achieve that

As far as I know, unless you want to use the older,
unrecommended mod_jserv.

> What is mod_jk by the way???

It's an apache module that communicates between apache
and tomcat, like you asked.

Dave




Re: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Joseph Wong

Is that the only way to achieve that

What is mod_jk by the way???


>From: "Jeffrey Miller" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Servlet and JSP mapping in Tomcat + Apache
>Date: Thu, 21 Dec 2000 07:25:50 -0500
>
>You'll have to setup mod_jk to let Tomcat and Apache communicate - there 
is
>a nice howto that will help you
>
>- Original Message -
>From: "Joseph Wong" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, December 21, 2000 5:24 AM
>Subject: Servlet and JSP mapping in Tomcat + Apache
>
>
> > Hi,
> >
> > I want to use Apache + Tomcat to develop JSP and Servlet programs, 
where
> > Apache serves HTML pages and Tomcat serves JSP and Servlet.
> >
> > How to make mappings for JSP and Srvlet such that:
> >
> > 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
> > 2) http://host-name/servlet/servlet-name --> go to servlet directory 
and
> > run servlet.
> > ??
> >
> > And jsp and servlet should be in the same context so that jsp and 
servlet
> > programs can communicate.
> > ??
> >
> > I have tried to create a context "/jsp" and mapped to jsp directory, 
also
> > created "web-inf\classes" under jsp directory to hold servlet programs. 
In
> > that way, i can call servlet programs by "/jsp/servlet/servlet-name".
> > However I CANNOT call servlet programs by "/servlet/servlet-name" in
> > url?
> >
> >
> > Please help.
> > 
_
> > Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.
> >
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Jeffrey Miller

You'll have to setup mod_jk to let Tomcat and Apache communicate - there is
a nice howto that will help you

- Original Message -
From: "Joseph Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 5:24 AM
Subject: Servlet and JSP mapping in Tomcat + Apache


> Hi,
>
> I want to use Apache + Tomcat to develop JSP and Servlet programs, where
> Apache serves HTML pages and Tomcat serves JSP and Servlet.
>
> How to make mappings for JSP and Srvlet such that:
>
> 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
> 2) http://host-name/servlet/servlet-name --> go to servlet directory and
> run servlet.
> ??
>
> And jsp and servlet should be in the same context so that jsp and servlet
> programs can communicate.
> ??
>
> I have tried to create a context "/jsp" and mapped to jsp directory, also
> created "web-inf\classes" under jsp directory to hold servlet programs. In
> that way, i can call servlet programs by "/jsp/servlet/servlet-name".
> However I CANNOT call servlet programs by "/servlet/servlet-name" in
> url?
>
>
> Please help.
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>




Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Joseph Wong

Hi,

I want to use Apache + Tomcat to develop JSP and Servlet programs, where 
Apache serves HTML pages and Tomcat serves JSP and Servlet.

How to make mappings for JSP and Srvlet such that: 

1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
2) http://host-name/servlet/servlet-name --> go to servlet directory and 
run servlet.
??

And jsp and servlet should be in the same context so that jsp and servlet 
programs can communicate.
??

I have tried to create a context "/jsp" and mapped to jsp directory, also 
created "web-inf\classes" under jsp directory to hold servlet programs. In 
that way, i can call servlet programs by "/jsp/servlet/servlet-name". 
However I CANNOT call servlet programs by "/servlet/servlet-name" in 
url?


Please help.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.