
| Key: |
WW-1402
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Sohel Katchi
|
| Votes: |
0
|
| Watchers: |
2
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
I am experiencing a problem with my web application when it reads the xwork.xml file.
I have the following entry in my xwork.xml file:
<action name="DiarySetupAddDaily"
class="com.xxx.controller.DiaryAction"
method="addDaily">
<result name="success" type="dispatcher">profile_management/diary/message.jsp</result>
<result name="error" type="dispatcher">shared/error.jsp</result>
</action>
If I try to go to /DiarySetupAddDaily.action I get a 404 not found error and then it says "result (null) not found."
I load up the config-browser by enabling it in the xwork.xml
<xwork>
...
<include file="config-browser.xml"/>
...
</xwork>
When I look at the details for the action, it also shows a NULL entry for the "SUCCESS" result:
Action information
Action information - DiarySetupAddDaily
Action name: DiarySetupAddDaily
Namespace:
Action class: com.jpmorgan.gcrm.clive.profile.controller.DiaryAction
Action method: addDaily
Parameters:
Default location: /clive/DiarySetupAddDaily.action
Results
Name: error Type: com.opensymphony.webwork.dispatcher.ServletDispatcherResult Parameters: location = shared/error.jsp
Name: success Type: com.opensymphony.webwork.dispatcher.ServletDispatcherResult Parameters:
Apart from that bug, I try to move the action entry further down in my xwork.xml and it worked! The config-browser correctly picked up the SUCCESS entry as I specified in my xwork.xml. HOWEVER, another action entry was read incorrectly (the SUCCESS result reads in as NULL instead of the one specified in the XML).
There is no consistency in which action entries fail to load correctly, I'm completely stumped on how this could actually happen.
|
|
Description
|
I am experiencing a problem with my web application when it reads the xwork.xml file.
I have the following entry in my xwork.xml file:
<action name="DiarySetupAddDaily"
class="com.xxx.controller.DiaryAction"
method="addDaily">
<result name="success" type="dispatcher">profile_management/diary/message.jsp</result>
<result name="error" type="dispatcher">shared/error.jsp</result>
</action>
If I try to go to /DiarySetupAddDaily.action I get a 404 not found error and then it says "result (null) not found."
I load up the config-browser by enabling it in the xwork.xml
<xwork>
...
<include file="config-browser.xml"/>
...
</xwork>
When I look at the details for the action, it also shows a NULL entry for the "SUCCESS" result:
Action information
Action information - DiarySetupAddDaily
Action name: DiarySetupAddDaily
Namespace:
Action class: com.jpmorgan.gcrm.clive.profile.controller.DiaryAction
Action method: addDaily
Parameters:
Default location: /clive/DiarySetupAddDaily.action
Results
Name: error Type: com.opensymphony.webwork.dispatcher.ServletDispatcherResult Parameters: location = shared/error.jsp
Name: success Type: com.opensymphony.webwork.dispatcher.ServletDispatcherResult Parameters:
Apart from that bug, I try to move the action entry further down in my xwork.xml and it worked! The config-browser correctly picked up the SUCCESS entry as I specified in my xwork.xml. HOWEVER, another action entry was read incorrectly (the SUCCESS result reads in as NULL instead of the one specified in the XML).
There is no consistency in which action entries fail to load correctly, I'm completely stumped on how this could actually happen. |
Show » |
|