File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes i'm not able to access my Result after i execute action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "i Watch "i New topic
Author

i'm not able to access my Result after i execute action

prasad gowda
Greenhorn

Joined: Aug 17, 2010
Posts: 3
My project is consist of both strut 1 and struts2 code and when i use struts 2 action class the action is executed but the result is not mapped .??? please anyone help me..
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Prasad welcome to javaranch.

Prasad without looking at any source code or error message its almost impossible to tell what the problem is. Can you show us the configuration of the action which is not working, the error that you are getting (in the browser or the server logs)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
prasad gowda
Greenhorn

Joined: Aug 17, 2010
Posts: 3
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="fare" extends="struts-default" namespace="/htm/fare">
<action name="mileage" class="aero.sita.fare.misa.mileage.action.MileageAction">
<result name="success">/htm/fare/successPage.jsp</result>
</action>
</package>
</struts>

this is what i have written in my xml file and the JSP pafe is in out side webcontent in web/htm/fare
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: i'm not able to access my Result after i execute action