How do I write these two in Struts -
<%
if(session.getAttribute("username") != null ||
request.getAttribute("pageno") != null) {
//do something
}
String s1 = request.getParameter("pageno");
String s2 = request.getAttribute("pageno");
%>
------------------------------------------------------------------------------------------------------------------------------
Andrew Stepanenko-2 wrote:
>
> AFAIK, you can try this in JSP:
>
> ${sessionScope['username']}
>
> This question should probably be directed to Struts user list.
>
> Regards,
> Andrew Stepanenko
>
> On 9/12/06, ashishabrol <[EMAIL PROTECTED]> wrote:
>>
>> How can I write <% String userName = session.getAttribute("username") %>
>> is
>> Struts ?
>>
>> Thanks
>> Ashish Abrol
>> --
>> View this message in context:
>> http://www.nabble.com/Alternative-of-session.getAttribute-in-Struts-tf2257427.html#a6261738
>> Sent from the Struts - Dev forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Alternative-of-session.getAttribute-in-Struts-tf2257427.html#a6284201
Sent from the Struts - Dev forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]