James Li

Greenhorn
+ Follow
since Mar 18, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James Li

Also forgot to mention that the portion of code that is currently not working is in a header that is substituted into all our pages.
15 years ago
JSP
We recently had an upgrade from Tomcat 4 to Tomcat 6.0.18. Previously we used the code snippet below to create a link in our JSP
that spawns a new window with the a printer friendly version of the screen.

JSP link snippet
[<a class="supnav" href="<%= request.getRequestURL() + "?" + request.getQueryString() %>&printerFriendly=true" target="_blank" >Printer Friendly Version</a>]

Before the upgrade request.getRequestURL() would return http://localhost:8081/Portal/project/projectGroupAction.do in my test environment. After the upgrade it returns http://localhost:8081/template/tile_definition.jsp . Context path also comes back as null but the query string is fine. When the user clicks on the link to create the print friendly version we get the following error message

javax.servlet.ServletException: javax.servlet.jsp.JspException: Error - Tag Insert : At least one of the following attribute must be defined : template|page|attribute|definition|name|beanName. Check tag syntax
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.template.tile_005fdefinition_jsp._jspService(tile_005fdefinition_jsp.java:146)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)...


This was working fine before the upgrade but after the upgrade stopped working. Any help will be greatly appreciated.




15 years ago
JSP