You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/03/28 10:27:54 UTC

DO NOT REPLY [Bug 41964] New: - missing links on the examples application.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41964

           Summary: missing links on the examples application.
           Product: Tomcat 6
           Version: 6.0.10
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kanekotky@gmail.com


Hi,

I found missing links on the examples application.
It's because jsp-examples and servlet-examples were moved to under the examples.

Here is a patch.

Index:
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/WEB-INF/classes/servletToJsp.java
===================================================================
---
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/WEB-INF/classes/servletToJsp.java
(revision 522964)
+++
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/WEB-INF/classes/servletToJsp.java
(working copy)
@@ -24,7 +24,7 @@
 	try {
 	    // Set the attribute and Forward to hello.jsp
 	    request.setAttribute ("servletName", "servletToJsp");
-	   
getServletConfig().getServletContext().getRequestDispatcher("/jsptoserv/hello.jsp").forward(request,
response);
+	   
getServletConfig().getServletContext().getRequestDispatcher("/jsp/jsptoserv/hello.jsp").forward(request,
response);
 	} catch (Exception ex) {
 	    ex.printStackTrace ();
 	}
Index:
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/include/include.jsp
===================================================================
---
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/include/include.jsp
(revision 522964)
+++
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/include/include.jsp
(working copy)
@@ -26,7 +26,7 @@
 
 <%@ include file="foo.jsp" %>
 
-<p> <jsp:include page="/include/foo.html" flush="true"/> by including the
output of another JSP:
+<p> <jsp:include page="foo.html" flush="true"/> by including the output of
another JSP:
 
 <jsp:include page="foo.jsp" flush="true"/>
 
Index: C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/error/err.jsp
===================================================================
---
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/error/err.jsp
(revision 522964)
+++
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/error/err.jsp
(working copy)
@@ -24,7 +24,7 @@
 
 		if (request.getParameter("name") == null) {
 	%>
-	<%@ include file="/error/error.html" %>
+	<%@ include file="error.html" %>
 	<%
 		} else {
 		  foo.setName(request.getParameter("name"));
Index:
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/forward/forward.jsp
===================================================================
---
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/forward/forward.jsp
(revision 522964)
+++
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/forward/forward.jsp
(working copy)
@@ -11,7 +11,7 @@
    if (percent < 0.5) { 
 %>
 
-<jsp:forward page="/forward/one.jsp"/>
+<jsp:forward page="one.jsp"/>
 
 <% } else { %>
 
Index:
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/sessions/carts.jsp
===================================================================
---
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/sessions/carts.jsp
(revision 522964)
+++
C:/eclipse_workspaces/tomcat_trunk/tomcat6/webapps/examples/jsp/sessions/carts.jsp
(working copy)
@@ -40,5 +40,5 @@
 </FONT>
 
 <hr>
-<%@ include file ="/sessions/carts.html" %>
+<%@ include file ="carts.html" %>
 </html>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41964] - missing links on the examples application.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41964


kanekotky@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From kanekotky@gmail.com  2007-03-28 23:14 -------


*** This bug has been marked as a duplicate of 41684 ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org