Andrew Para wrote:
Is there any way to obtain a refference to the action form associated with a jsp from the jsp itself
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
David Newton wrote:You could also get it using the same mechanism Struts does (it's either in the request or session depending on your configuration). As Sagar said--I would be *extremely* wary of going down this road; it's a Bad Idea.
Andrew Para wrote:
David Newton wrote:You could also get it using the same mechanism Struts does (it's either in the request or session depending on your configuration). As Sagar said--I would be *extremely* wary of going down this road; it's a Bad Idea.
I don't necessarily want to go down this road.
But I can't think of anything better to do.
I am open to any suggestions.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
Andrew Para wrote:
David Newton wrote:You could also get it using the same mechanism Struts does (it's either in the request or session depending on your configuration). As Sagar said--I would be *extremely* wary of going down this road; it's a Bad Idea.
I don't necessarily want to go down this road.
But I can't think of anything better to do.
I am open to any suggestions.
I think your problem is like this:
"Display the datagrid, if there is any data in the list to be shown, otherwise don't show anything"
For the above problem, I do something like this;:
In Action class
In JSP
HTH
Andrew Para wrote:
but I don't understand one thing
what goes between <table> and </table>?
Andrew Para wrote:and where is the collection?
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
Andrew Para wrote:
but I don't understand one thing
what goes between <table> and </table>?
Your data
Andrew Para wrote:and where is the collection?
In Action class
Andrew Para wrote:SO I don't understand why there is a table tag there?
Does my layout:collection go in there instead?
Andrew Para wrote:how can I modify my code so that I can avoid the null pointer exception.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
Andrew Para wrote:how can I modify my code so that I can avoid the null pointer exception.
Never return a null list, either empty or with some data, and my previous reply shown how to do that in Action class.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|