I am a new to JAVA and Struts. I had a working application until I decided to clean-up a few things (removed some SystemOut statements, removed duplicate code, etc.). Now the application is not working and I can't figure out why. Of course, I didn't bother to create a backup!!! I didn’t modify the jsp or the struts-config.xml file. There are no error messages in the console. Before I include pieces of my code, I wanted to know where to look to try to determine what’s causing the problem. Here’s a high level flow of what’s happening:
Index.jsp invokes an action that will load values into a dropdown box. It forwards “success”
RptReq2.jsp is invoked if “success” is returned
Form is displayed and the dropdown list is populated
Once a value is selected from the dropdown, an onchange event will trigger a JAVA script function that will populate the values in another dropdown box (same form is submitted)
There is a button on the form that will trigger another function via an onclick event (same form is submitted)
There is a submit button to create a report based on the values in the form (same form is submitted)
Everything was working okay as described above. Now that I have done some cleanup, the form comes up as expected and the first dropdown list is populated. However, when I make a selection nothing happens. I put alerts in the functions to see if they were being invoked, but I am not getting alerts now. I even added a temporary button to see if I could invoke a function, but no alerts where thrown. I put a sysout in the load action to make sure I was reaching the point where “success” is returned. I can see it on the console:
SystemOut O about to return success from LoadAction
[4/1/10 9:42:18:734 EDT] 0000002b ServletWrappe I SRVE0242I: [StrutsErrQueRptEAR] [/StrutsErrQueRpt] [/RptReq2.jsp]: Initialization successful
Any idea where I should start looking to try to figure out what is going on?
Liana Daughtry wrote:I didn't bother to create a backup
Or use a repository?! Horrible, horrible idea. And your IDE doesn't keep any local history?
I wanted to know where to look to try to determine what’s causing the problem.
Turn DEBUG logging on and check the logs.
However, when I make a selection nothing happens.
Joined: Mar 27, 2010