struts - application missing something?

struts - application missing something?

Hello

I added a parameter for condition to my GetLogoutAction. I've got the action and forward in the struts working and all is great till I close JBoss or the server gets shut down and Strut-config.xml is generated again. My action forwards are no longer there.

I can manually enter them and they work. Action is called correctly and they are taken to correct location.

What am I missing? The JSP, Java Class, struts-config.xml are all updated. I didn't use anything new that hasn't already been defined in web.xml????

Any thoughts? Do I need to do anything with the servlet? I have the servlet action and mapping already created....?

I'm only used to working in the presentation layer no deeper than struts-config. I know Java but I'm way out of practice. I'd appreciate any direction. Tina

View Answers

July 13, 2012 at 3:23 AM

I found out that I didn't have... annotations in my Java class.

I guess the format for these are set sometime prior to the main framework and because there doesn't seem to be any documentation on annotations they can appear very arbitrary to the class - like a comment.

I hope this helps others. I saw some one line called annotations that were like

@Override and ours is /** * @struts.action....

Tina


July 13, 2012 at 10:34 PM

Ohh, You have answer yourself, anyways here is a deeper thought about struts 2.0 which talk about the flow and troubleshooting these scenario.

Regards,
Bhanu Pratap

Learning Technologies at pace









Related Tutorials/Questions & Answers:
Missing message for key tenant.lbl - Struts
missing bundles eclipse
Advertisements
framework for discovering missing links
missing package-info.java file
ModuleNotFoundError: No module named 'Missing'
Struts
STRUTS
STRUTS
Struts
Struts
STRUTS
jfree missing import file
jfree missing import file
jfree missing import file
jfree missing import file
struts
Struts
struts
struts
Struts
ModuleNotFoundError: No module named 'find-missing'
ModuleNotFoundError: No module named 'find-missing'
ModuleNotFoundError: No module named 'missing-abhishek'
ModuleNotFoundError: No module named 'missing-aditri'
ModuleNotFoundError: No module named 'missing-data'
ModuleNotFoundError: No module named 'missing-data-101703013'
ModuleNotFoundError: No module named 'Missing-Data-101703402'
ModuleNotFoundError: No module named 'missing_license'
ModuleNotFoundError: No module named 'missing-mnv'
ModuleNotFoundError: No module named 'missing-py'
ModuleNotFoundError: No module named 'missing-pypck'
ModuleNotFoundError: No module named 'Missing-value-3579'
ModuleNotFoundError: No module named 'missing-values'
ModuleNotFoundError: No module named 'missing-values-101703081'
ModuleNotFoundError: No module named 'missing-values-101703100-101703100'
ModuleNotFoundError: No module named 'Missing-Values-101703101'
ModuleNotFoundError: No module named 'Missing-values-101703112'
ModuleNotFoundError: No module named 'Missing-Values-101703122'
ModuleNotFoundError: No module named 'missing-values-101703283'
ModuleNotFoundError: No module named 'Missing-Values-101703291'
ModuleNotFoundError: No module named 'Missing-Values-101703363'
ModuleNotFoundError: No module named 'missing-values-101703382'
ModuleNotFoundError: No module named 'Missing-Values-101703525'
ModuleNotFoundError: No module named 'Missing-values-101883058'
ModuleNotFoundError: No module named 'python-missing'
ModuleNotFoundError: No module named 'python-missing'
ModuleNotFoundError: No module named 'django-missing'
ModuleNotFoundError: No module named 'find-missing'
struts
struts

Ads