Solved

struts No input attribute for mapping path

Posted on 2004-03-24
5
5,904 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with Pie chart in Jsp 20 181
parse example 13 86
mask rule in struts validation.xml 5 69
listing all functions in JavaScript 19 103
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

16 Experts available now in Live!

Get 1:1 Help Now