This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looking for Action instance for class test.struts.LoginAction

 
rakshini nithya
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
am developing an application in strutsmy jboss server runs up to this
Looking for Action instance for class test.struts.LoginAction
but it cannot locate the action file
but i have mapped the action files creately
can anyone help me in this issue
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show your entries in the struts-config file
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
rakshini nithya
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

<struts-config>

<!-- ========== Form Bean Definitions ============ -->
<form-beans>
<form-bean name="login" type="test.struts.LoginForm" />
</form-beans>


<!-- ========== Global Forward Definitions ========= -->
<global-forwards>
</global-forwards>


<!-- ========== Action Mapping Definitions ======== -->
<action-mappings>
<action
path="/login"
type="test.struts.LoginAction"
name="login"
input="/LoginView.jsp"
validate="true">

<forward name="valid" path="/MainMenu.jsp" />
<forward name="invalid" path="/LoginView.jsp" />
</action>
</action-mappings>

</struts-config>
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check whether LoginAction and LoginForm correctly falls under package structure test.struts

Also Check whether LoginAction extends Action class and LoginForm extends ActionForm
 
rakshini nithya
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes both are inside the same package,
and they are also extedning Action and ActionForm
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show your jsp and stack trace of errors
[ June 16, 2006: Message edited by: vidya sagar ]
 
rakshini nithya
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!-- LoginView.jsp -->

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts.tld" prefix="struts" %>

<HTML>
<HEAD><TITLE>Login Screen</TITLE></HEAD>
<BODY>
<H2>Enter your user information</H2>
<html:errors />
<html:form action="login.do">
<p>
User ID:
<html:text property="userId" size="10" />
<br>
Password:
<html assword property="passWord" size="10" />
<br><br>
<html:submit>
Login
</html:submit>
</html:form>
</BODY>
</HTML>
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:form action="login.do">


change to
<html:form action="/login.do">

Try now.Still error show Stack trace error too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic