Solved

struts No input attribute for mapping path

Posted on 2004-03-24
5
6,023 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
grep code 4 206
IE doesn't Invoke servlet in iframe 1 123
maven j2ee examles 2 64
maven webservice example issue 2 157
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
In order to fulfill our mission of inspiring learning in the technology community, Experts Exchange is launching a Course of the Month program. Premium and Team Account members will have access to one course per month as a part of their membership, …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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