aspose file tools*
The moose likes Struts and the fly likes web portal in struts and nothing is working at all Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "web portal in struts and nothing is working at all" Watch "web portal in struts and nothing is working at all" New topic
Author

web portal in struts and nothing is working at all

Aditi agarwal
Ranch Hand

Joined: Feb 23, 2011
Posts: 225
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

Joined: Feb 24, 2011
Posts: 25

Please show the Folder structure of your structs application..
Nicolas Conde
Greenhorn

Joined: Feb 24, 2011
Posts: 3

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

Joined: Jan 10, 2002
Posts: 61413
    
  67

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Aditi agarwal
Ranch Hand

Joined: Feb 23, 2011
Posts: 225
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

Joined: Feb 23, 2011
Posts: 225
@Bear I am sorry once again but thanks for posting it in struts forum

thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web portal in struts and nothing is working at all