Help with Struts Action mapping
        Posted  
        
            by nicotine
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by nicotine
        
        
        
        Published on 2010-06-08T02:27:35Z
        Indexed on 
            2010/06/08
            2:32 UTC
        
        
        Read the original article
        Hit count: 361
        
I am having a problem with my struts application it is a class enrollment app and when the user clicks on a "show enrolled courses" button it is supposed to show the courses they are enrolled in but it shows nothing at the moment. Struts/Apache does not return any errors, it Just shows a blank page and I cannot figure out why.
My action mapping in my struts-config:
    <action 
        path="/showEnrolled"            
        type="actions.ShowEnrolledAction"           
        name="UserFormEnrolled" 
        scope="request" 
        validate="true"         
        input="/students/StudentMenu.jsp"> 
    <forward 
        name="success" 
        path="/students/enrolled.jsp"/> </action>
My link to the jsp enrolled.jsp page:
<li><html:form action="/showEnrolled">
<html:hidden property="id" value= "<%=request.getRemoteUser()%>"/> <html:submit value = "View Enrolled Classes"/>
</html:form> </li>
When I click the link I get nothing but my menu on the page. The text headings for the page are not even displayed.
© Stack Overflow or respective owner