Share on Google+Share on Google+

Tina McCauley
struts - application missing something?
2 Answer(s)      4 years and 9 months ago
Posted in : Struts

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

Ads

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










Tutorials   
Java Spring Hibernate Struts Training Dynamic tabs in struts 1.2 Unable to upload a file to mysql database using struts1 Pagination in struts 2 struts2 filterdispatcher is deprecated please use the new filters viewing How to add struts2 dependency in Maven? Struts Exception Handling can you check below code if any erors multimedia how to display the value of termcell name in label class not found exception Where to learn Struts 2? dropdown cacheing Upload and Download Large files in jsp What is Struts 2 framework struts and hibernate based health care project source code struts and hibernate based health care project source code Struts 2 Integration with Struts 1 About captcha of strut2 About captcha of strut2 Which is the good website for struts 2 tutorials? advance java source code source code In Struts 2 how to pass the Struts struts internationalization for Korean language struts2 Struts2 and Hibernate Fetch Data Base Value Struts2 and Hibernate Fetch Data Base Value Struts2 and Hibernate i want to create an application with only a button which on click displays table from database using struts2 and hibernate on eclipse Struts2 and Hibernate Struts2 and Hibernate Struts2 validation Procedure Struts2 validation Procedure Struts2 validation Procedure Struts2 validation Procedure Struts 2 action-validation.xml not loading Struts-2 and Ajax integration STRUTS QUESTION conerting web project into .exe file About Select tag ScartApplication aplicacion ecommerce struts 1.3 struts 1.3 sms prob Need to know struts1 all jar file names struts with hibernate

Ads

 
Advertisement null

Ads