• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web portal in struts and nothing is working at all

 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first of all i am sory i dont know which is correct forum for this problem as i am new to JavaRanch bt still i am posting it

i developing a web portal using struts with jsp pages
my pages is developed but the action is not called at all


as i run my page index.jsp is shownn but after that nothng happens


Index.jsp file




My web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<data-sources />
<form-beans >
<form-bean name="loginform" type="login.loginform"/>
</form-beans>
<global-exceptions />
<global-forwards >
<forward name="login" path="login.do"></forward>
</global-forwards>
<action-mappings >
<action attribute="loginform" input="index.jsp" name="loginform" path="/login" scope="request" type="login.loginaction" validate="false" >
<forward name="success" path="home.jsp"></forward>
<forward name="failure" path="index.jsp"></forward>
</action>

</action-mappings>
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>

[/code]


loginaction.java





loginform.java




i am working on this problem for last 1 & a half month please help me

I have also included my struts.jar

thank you

 
Muralidharan Raju
Greenhorn
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show the Folder structure of your structs application..
 
Nicolas Conde
Greenhorn
Posts: 3
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aditi... please put your struts-config.xml the problem is there. Second loginaction.java you dont put the extends of Action
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys thanks for your replies and concern in this topic.

But my this problem is solved
& i would like to tell solution to this problem is in only Myeclipse help center in he software MYEclipse
 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bear I am sorry once again but thanks for posting it in struts forum

thank you
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic