This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I experience a strange problem in my Struts 1.3.10 application. Basically I get the following exception if I try to invoke one of my dispatch actions:
My (shortened) struts-config:
My (shortened) action:
The action's abort method is never called, I verified this in debug mode. The JSP calling the action looks like this:
As you can see we use JS onclicks to determine the dispatch action's method to call. Funny: if I remove the whole content of div "tab2" (from line 252 to 723, basically many divs marking specific areas ion the JSP) the appropriate action is called, so there must be a simple, stupid mistake I make in that area. I would expect the thrown exception if I forgot to define a form bean in struts-config or something basic like that, but the definition is there. Accessing the form and its content in general is possible as well since I can read the form bean's properties by EL. Any hints are appreciated.
It'd be handy to show the line from the action where the exception is happening...
Joined: Apr 12, 2006
thanks for your advice, I reworded a few sentences in my previous post. The JSP is very long, I know, but I didn't want to leave out anything since I have no clue what's wrong here and I didn't want to cut out anything important. The main parts are a div containing text fields (->search filters) followed by a status bar and several "containers" (->divs) which structure the page. The containers show the search results. If I remove the containers from line 252 to 723 the actions work, if I put them back I get the mentioned exception. The action is not called when submitting the form (I debugged that), thus the exception isn't thrown by the action itself but by Struts' internal logic. I was thinking of a missing tag or something, but I couldn't find any.