NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Struts

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
ceyezumma



Joined: 02 Feb 2009
Posts: 122

PostPosted: Wed Feb 18, 2009 5:47 am    Post subject: Struts Reply with quote

Struts

I am working on a struts tutorial I get this error.

Code:

HTTP Status 500 -

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve mapping for action /login

root cause

javax.servlet.jsp.JspException: Cannot retrieve mapping for action /login

note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_02 logs.
Sun Java System Application Server 9.1_02


I am inquiring because I would like to see if someone could lead me in a direction while I search for the prob.(Hey its worth a try)

anyway my first guess is that I think it may be here in the struts-config.xml
Code:

<!--path="/login.jsp" may be just path="/login"-->/////////////////////////////////////////////
    <action-mappings>
        <action name="LoginForm" path="/login.jsp" scope="request" type="com.myapp.struts.LoginAction" validate="false">
            <forward name="success" path="/WEB-INF/success.jsp"/>
            <forward name="failure" path="/login.jsp.do"/>/////////////////////////////
        </action>
        <action path="/Welcome" forward="/welcomeStruts.jsp"/>
    </action-mappings>


or

Code:

 <body>
        <h1>Hello World!</h1>
        <html:form action="/login">
            <table border="0">
                <thead>
                    <tr>
                        <th></th>
                        <th></th>


As a start I think the extenstions are messed up.I'm not sure if *.do or *.jsp is used

Thanks for any help.
-Steve
Back to top
ceyezumma



Joined: 02 Feb 2009
Posts: 122

PostPosted: Thu Feb 19, 2009 4:21 am    Post subject: figured it out Reply with quote

I figured it out.
missing an extention.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo