tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aiken, David" <>
Subject Tomcat 4.0.1 Jasper web.xml ambiguous
Date Mon, 21 Jan 2002 19:33:13 GMT
hi all..

I've just upgraded to Tomcat 4.0.1 from 3.2.2 and i'm having problems with
the servlet-name elements in the web.xml generated by the Jasper compiler. I
have multiple index.jsp files within a web context. Each results in a
separate entry in the web.xml:


This would seem to be ambiguous. How is it possible to distinguish between
the different .index classes? 

In Tomcat 3.2.2, the servlet names/classes were unique (they were prefixed
by the directory containing the JSP page). Looking at the release notes
(RELEASE-NOTES-4.0-RC1.txt, 'Jasper New Features'), it seems that the
directory name has been removed because it is implied by the location of the
servlet in the work directory - i can see that this might be true if a
servlet is generated dynamically at runtime, but the web.xml declarations
generated by Jasper don't seem to reflect the directory structure anymore.

Sample web.xml files from tomcat 3.2.2 (good) and tomcat 4.0.1 (ambiguous?)
Jasper compilers are attached.

I've probably missed something :>(. Any help would be appreciated!

David Aiken
BMC Software

-----Original Message-----
From: Brian Adams []
Sent: Monday, January 21, 2002 5:35 AM
To: 'Tomcat Users List'
Subject: RE: use JSP open new window

yes,  I was thinking about this too and I would (if you had to) make the
call to the jsp page that wanted in a new window with a parameter like:

then in your window.jsp page put:

<script type='text/JavaScript'>openWindow()</script> 


That is if you wanted to have a page that could be seen in the original
window or in a seperate window.  I don't know if you need that function...

-----Original Message-----
From: Guillermo Labatte []
Sent: Monday, January 21, 2002 5:55 AM
To: Tomcat Users List
Subject: Re: use JSP open new window

Galbayar wrote:

>how to use sendRedirect method to open new browser window?
As far as I know, sendRedirect works at the HTTP level. In order to open 
a new browser window you need to operate at the HTML/JavaScript level.

Use something like <script type='text/JavaScript'>openWindow()</script> 
in your HTML code in order to open a new window without user 
intervention. Please check the exact syntax in your HTML/JavaScript manuals.

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message