Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
prasad gowda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9520
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)...
 
prasad gowda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<?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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic