WebSphere HATS - Struts Action Forwards

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HATS > October 2005 > Struts Action Forwards





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Struts Action Forwards
kenny

2005-10-24, 8:57 am

Is anyone using struts out there? I'm having an issue with my action
forwards. I think it might be the order in which my servlets are loaded
as the action servlet is the last to load. Ideas?
Rick Pezzimenti

2005-10-24, 8:57 am

kenny wrote:
> Is anyone using struts out there? I'm having an issue with my action
> forwards. I think it might be the order in which my servlets are loaded
> as the action servlet is the last to load. Ideas?

I've used hats with struts on a project. Can you describe your problem
and maybe we can work out what the problem is?
kenny

2005-10-26, 5:45 pm

Rick Pezzimenti wrote:
> kenny wrote:
>
>
> I've used hats with struts on a project. Can you describe your problem
> and maybe we can work out what the problem is

For example, the following forward from my struts-config:
<forward name="GetBodyPartCodes" path="/BodyPartCodesAction.do" />

If I enter BodyPartCodesAction.do in my browser, it properly navigates
to the action. If I enter the forward, I get Error 404: SRVE0190E: File
not found: /GetBodyPartCodes.

Here is the Action mapping:
<action input="struts/BodyPartCodesInput.jsp"
name=" WorkersCompClaims_BodyPartCodesActionFor
m"
path="/BodyPartCodesAction"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="struts/BodyPartCodesOutput.jsp" />
<forward name="failure" path="BasicIOErrorPage.jsp" />
<forward name="error" path="BasicIOErrorPage.jsp" />
</action>

Ideas?
Rick Pezzimenti

2005-10-26, 8:45 pm

kenny wrote:
> Rick Pezzimenti wrote:
>
>
> For example, the following forward from my struts-config:
> <forward name="GetBodyPartCodes" path="/BodyPartCodesAction.do" />
>
> If I enter BodyPartCodesAction.do in my browser, it properly navigates
> to the action. If I enter the forward, I get Error 404: SRVE0190E: File
> not found: /GetBodyPartCodes.
>
> Here is the Action mapping:
> <action input="struts/BodyPartCodesInput.jsp"
> name=" WorkersCompClaims_BodyPartCodesActionFor
m"
> path="/BodyPartCodesAction"
> type="org.springframework.web.struts.DelegatingActionProxy">
> <forward name="success"
> path="struts/BodyPartCodesOutput.jsp" />
> <forward name="failure" path="BasicIOErrorPage.jsp" />
> <forward name="error" path="BasicIOErrorPage.jsp" />
> </action>
>
> Ideas?


What does your action inside the HATS event look like? Are you
forwarding to /GetBodyPartCodes.do or /GetBodyPartCodes

Here is the xml action of a project we were on were we forwarded to a
struts action.

<actions>
<forwardtoURL enabled="true" startStateLabel="startLabel"
url="/ControllingScreen_Dispatcher.do?navigationAction=paymentDirections"/>
</actions>

Of course you don't need to worry about the ?navigationAction... stuff.
I'm guessing that yours should look something like

<actions>
<forwardtoURL enabled="true" startStateLabel="startLabel"
url="/BodyPartCodesAction.do"/>
</actions>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com