Shoaib Gauhar wrote:
Hello,
Here is the scenrio. I have two action classes. ClassA and ClassB. There is
no relationship among these classes. You might say that if there is no
relationship then why i have to put them in one single jsp. Well its a
client's requirement.
That's an implementation detail, not a functional requirement. Why does
the client care how you structure your actions?
In a single jsp there are two tabs. Tab1ForClassA and Tab2ForClassB.
Each tab has fields concerned to their classes as defined above. Tab1 ->
ClassA and Tab2 -> ClassB.
Can we do it? I have tried this but what happens is that when i submit the
data on Tab1, Tab2's data becomes empty.
A request is only processed by one action. If you need both actions to
be able to process all the input from both tabs, you'll have to have
them both aware of the full dataset. There are a number of ways you
might achieve that, depending on what you're trying to achieve.
So, any ideas will be highly appreciated. Furthermore, i am quite new to
tabbed panel and would require clear tips and ideas.
I haven't used that widget in Struts 2 so can't offer specific tips.
However, if you start by defining the functional requirements (rather
than the implementation details), it'll be easier to offer advice.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]