Dave Ken

Greenhorn
+ Follow
since Jul 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Ken

Hello, let me start off by saying I am using a somewhat antiquated version of STRUTS (1.2.9). I have a seemingly simple problem but the use of actions and forms is making this much more difficult.

What I have is a system to enter warranty claims, as everyone knows - warranty claims have a lot of data - and many times that data is repeatable. To help curb this we are giving our users the ability to save and utilize templates.

What our original plan was to create a claim entry JSP file and then reuse it - it is this reuse of the JSP that is causing pain. We have a form bean for claim entry that gets sent to the claim entry action and this works fine. Now we are working on this template piece - so we have a manage templates JSP that displays to the user all of their templates, a form bean for storing all these templates and other things to be displayed on the screen, and finally a manage templates action. The user first comes into Manage Templates and a manage templates bean is created and sent to the manage templates JSP . Then the user clicks on a button to create a new template, we send them over to the claim entry JSP with a claim entry bean - the user fills out the claim entry form and then saves their template (here comes the rub). This sends all of that claim data in its claim entry bean over to the manage templates action... whoa put on the brakes I cannot submit more than one bean type to any given action, so I am stuck!

My initial thought is to have the manage templates form extend the claim entry form - allowing it to still work on the claim entry JSP and work for my purposes on the manage templates all in one. Does anyone else have a better approach?

Thanks!
11 years ago
I have a similar issue to this one... The thing displays just fine but when I try to go back from the JSP to the form it gives me the 'No Bean specified error'

manageUsers.jsp - problem chunk


currentUser is a User Object... it is inside of my bean. The User object has a Role object inside of it and I want to set the role of the user....
Also insde of my bean I have an arraylist called Roles with all the roles avaliable to be assigned to a user

Thanks in advance!
14 years ago