Nondescripthandle
Programmer
This is something that is dead easy in straight JSP, but I want to know how to do it in struts.
I have a URL which is passing parameters sub and func.
In JSP, I'd just do
<% String subject=request.getParameter("sub"
String function=request.getParameter("func"
%>
In struts, I'm trying to do this:
<logic:notPresent scope="request" name="func">
<bean:define id="function" value="none"/>
</logic:notPresent>
<logic:notPresent scope="request" name="sub">
No sub-heading passed
<bean:define id="subject" value="none"/>
</logic:notPresent>
<logicresent scope="request" name="func">
<bean:define id="function" name="request" property="func"/>
</logicresent>
<logicresent scope="request" name="sub">
Found one
<bean:define id="subject" name="request" property="sub"/>
</logicresent>
No matter what I do, the logic tags never find the request parameters in the request object. Is there something really dumb-assed that I'm missing?
Thanks
-Hugh
I have a URL which is passing parameters sub and func.
In JSP, I'd just do
<% String subject=request.getParameter("sub"
String function=request.getParameter("func"
%>
In struts, I'm trying to do this:
<logic:notPresent scope="request" name="func">
<bean:define id="function" value="none"/>
</logic:notPresent>
<logic:notPresent scope="request" name="sub">
No sub-heading passed
<bean:define id="subject" value="none"/>
</logic:notPresent>
<logicresent scope="request" name="func">
<bean:define id="function" name="request" property="func"/>
</logicresent>
<logicresent scope="request" name="sub">
Found one
<bean:define id="subject" name="request" property="sub"/>
</logicresent>
No matter what I do, the logic tags never find the request parameters in the request object. Is there something really dumb-assed that I'm missing?
Thanks
-Hugh