Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6300
  • Last Modified:

struts No input attribute for mapping path

I have a struts application with logon form and struts-config.xml files
I have done exact mapping for form submit action but after submitting the form it is giving errors my code is below

<!-- login.jsp-->
  <html:form action="login.do">
        <table border="0" cellspacing="1" cellpadding="1">
            <tr>
                <td><b>Login Info</b></td>
            </tr>
            <tr>
                <td>
                  <bean:message key="prompt.login" />
                   <html:text property="login" />
                  </td>
                  <tr>
                  <td>
                  <bean:message key="prompt.password" />
                   <html:password property="password" />
                  </td>
                  </tr>
                  <tr>
                  <td>
                   <html:submit>
                  <bean:message key="index.login" />
                  </html:submit>
                  <html:errors/>                  
                </td>
            </tr>
        </table>
<html:errors property="login"/>
<html:errors property="password"/>
</html:form>

<!- struts-config.xml-->
<form-beans>

<form-bean name="loginForm" type="LoginForm"/>
<form-beans>

  <action-mappings>

            <action path="/login" type="LoginAction" name="loginForm" scope="request" parameter="/login.jsp"/>

  </action-mappings>

----------------------------------

Please help me to short out where I'm doing the mistake.

0
m_sharma98
Asked:
m_sharma98
1 Solution
 
objectsCommented:
what r the errors?
0
 
kennethxuCommented:
change
parameter="/login.jsp"/>
to
input="/login.jsp"/>
0
 
ksfoongCommented:
0
 
m_sharma98Author Commented:
Thanks kennethxu,
At last I also got it with the same problem.
Anyway thanx for your help.
0
 
kennethxuCommented:
you are welcome, but is there any thing wrong leads to a C grade?
http://www.experts-exchange.com/Web/Web_Languages/JSP/help.jsp#hi73
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now