You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Alexander Demidovich <al...@softhome.net> on 2001/06/17 18:46:14 UTC

JSP uploading?

Hello

How can I upload JSPs?

Here is part from my log:
2001-06-17 06:03:56 - ContextManager: SimpleMapper1: Default map
/files/snoop.jsp null
2001-06-17 06:03:56 - ContextManager: SM: Extension match /slide
/files/snoop.jsp .jsp
2001-06-17 06:03:56 - ContextManager: SimpleMapper1: SM: Found extension
mapping jsp(org.apache.jasper.servlet.JspServlet/null)...

I don't have *.jsp mapping in my web.xml but it comes from the Tomcat...

But anyway, the problem is more bigger. It means if I have some mapping
in my web.xml file - it looks like I can't upload these files...

I'm using SimpleMapper1. Should I use something different?


Re: JSP uploading?

Posted by Remy Maucherat <re...@apache.org>.
> > I wrote a small webpage about it :
> > http://jakarta.apache.org/slide/server.html
> >
> > It's included with the 06/17 nightly (there was a config problem with
Gump
> > which made the build fail before).
>
> I don't undestand what's happend
> when I make a query to http://localhost/snoop.jsp

The default configuration doesn't use port 80, only ports 8080, 8081 and
8082.

On 8080, the above URL will be passed to Jasper. The 06/17 binaries have
some issues with Jasper, though. All these issues have been fixed since
then, but aren't available yet as a binary download.

> This snoop.jsp is under Slide in MySQL database.
>
> Who is catching queries to /? Which class is working?

/ on 8080 should be Catalina's default servlet (which handles static
content).

Remy


RE: JSP uploading?

Posted by Alexander Demidovich <a_...@yahoo.com>.
> I wrote a small webpage about it :
> http://jakarta.apache.org/slide/server.html
>
> It's included with the 06/17 nightly (there was a config problem with Gump
> which made the build fail before).

I don't undestand what's happend
when I make a query to http://localhost/snoop.jsp

This snoop.jsp is under Slide in MySQL database.

Who is catching queries to /? Which class is working?

Thanks.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


RE: JSP uploading?

Posted by Alexander Demidovich <a_...@yahoo.com>.
> I wrote a small webpage about it :
> http://jakarta.apache.org/slide/server.html
>
> It's included with the 06/17 nightly (there was a config problem with Gump
> which made the build fail before).

THANKS!

It answers on most of my questions at the moment.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: JSP uploading?

Posted by Remy Maucherat <re...@apache.org>.
> > You may want to check out the Tomcat 4 based binaries built using the
> > catalina-dist target, and which allows to have web applications
> > running off
> > a Slide namespace (one web application is mapped to one Slide
namespace).
> > This is still an early build, but I think it gives a good idea at
> > the level
> > of integration which will be achived.
>
> Hmm... This is unclear....
> Can you explain how to do this?

I wrote a small webpage about it :
http://jakarta.apache.org/slide/server.html

It's included with the 06/17 nightly (there was a config problem with Gump
which made the build fail before).

Remy


RE: JSP uploading?

Posted by Alexander Demidovich <a_...@yahoo.com>.
> You may want to check out the Tomcat 4 based binaries built using the
> catalina-dist target, and which allows to have web applications 
> running off
> a Slide namespace (one web application is mapped to one Slide namespace).
> This is still an early build, but I think it gives a good idea at 
> the level
> of integration which will be achived.

Hmm... This is unclear....
Can you explain how to do this?

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: JSP uploading?

Posted by Remy Maucherat <re...@apache.org>.
> Hello
>
> How can I upload JSPs?
>
> Here is part from my log:
> 2001-06-17 06:03:56 - ContextManager: SimpleMapper1: Default map
> /files/snoop.jsp null
> 2001-06-17 06:03:56 - ContextManager: SM: Extension match /slide
> /files/snoop.jsp .jsp
> 2001-06-17 06:03:56 - ContextManager: SimpleMapper1: SM: Found extension
> mapping jsp(org.apache.jasper.servlet.JspServlet/null)...
>
> I don't have *.jsp mapping in my web.xml but it comes from the Tomcat...
>
> But anyway, the problem is more bigger. It means if I have some mapping
> in my web.xml file - it looks like I can't upload these files...
>
> I'm using SimpleMapper1. Should I use something different?

Tomcat has the annoying tendency to add the default mappings. The latest
versions of Tomcat 3.x don't have the problem, according to Costin.

I ran into the issue when I did some integration work with Catalina, and I
ended up writing some code to remove all non-Slide related mappings so that
it's actually possible to manipulate *.jsp files (there was also a problem
with *.shtml).

I don't think it's possible to achive the level of integration you may want
with Tomcat 3.x with Slide (ie, uploading the JSP, and then running it with
Jasper), because Tomcat 3.x is designed only to run off the filesystem. Of
course, with the appropriate stores, it's possible to get Slide to
manipulate files.

You may want to check out the Tomcat 4 based binaries built using the
catalina-dist target, and which allows to have web applications running off
a Slide namespace (one web application is mapped to one Slide namespace).
This is still an early build, but I think it gives a good idea at the level
of integration which will be achived.

Remy