Hi Sudhakar and Fritz,
Thanks for the replies.
@Sudhakar
When I try the jsp:param, I get
"The jsp:param action must not be used outside the jsp:include, jsp:forward, or jsp:params elements"
Quite expected, as I want them to be passed on as attributes to the showTag tag and not as parameters.
@Fritz
With the <jsp:attribute> you are defining attributes for the enclosing <c:forEach> tag, and if you do that you have to define a <jsp:body> (because the body of <c:forEach> is not defined as empty)
Alrite, this din't strike me before. So what I want to achieve looks quite impossible now
Anyways, I want to add parameter name as attribute name and the parameter's value as attribute's value to the tag-file.
So when I make a request like /sample.jsp?attr1=value1&attr2=value2&...
I want to convert this to : <tag:showTag attr1=value1 attr2=value2/> in the JSP file
And my showTag.tag file is something like this :
Trust I was clear. Any possible solution to this?