A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Frustration about including JSP source in tag hangler
Joined: May 13, 2008
May 23, 2008 13:57:00
I've came a cross with a following situation. I'm writing my own tag hangler and would like in doStartTag() include a
in doStartTag() i'm writing:
pageContext.setAttribute("username", "User", PageContex.PAGE_SCOPE)
Why it is not working?
I thougt, that it will the same translation
, so it must see the attribute...
Only when I'm dealing with REQUEST_SCOPE it works.
Can you help? Thanks in advance
Joined: Dec 11, 2004
May 23, 2008 14:10:00
Page scope is just that.
Page scopped variables can only be seen inside the page.
How to ask a question...
Simple Servlet Examples
It is sorta covered in the
JavaRanch Style Guide
subject: Frustration about including JSP source in tag hangler
Custom Tag Compilation
JSP Tag LIBRARY.....
Taglib uri..problem..(need help)
doAfterBody() is not executed using BodyTagSupport
Quick custom tag problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015