Solved

struts No input attribute for mapping path

Posted on 2004-03-24
5
5,940 Views
Last Modified: 2012-05-04
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
Comment
Question by:m_sharma98
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 10665380
what r the errors?
0
 
LVL 14

Accepted Solution

by:
kennethxu earned 50 total points
ID: 10668801
change
parameter="/login.jsp"/>
to
input="/login.jsp"/>
0
 

Expert Comment

by:ksfoong
ID: 10701085
0
 

Author Comment

by:m_sharma98
ID: 10701237
Thanks kennethxu,
At last I also got it with the same problem.
Anyway thanx for your help.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10701316
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
spring AOP 6 79
spring dependency injection using java config 2 81
Spring MVC - sending raw charset to backend 3 190
Suggestion on WebSite Template Sites 6 83
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now