Hi,

For instance , I have a XSP logicsheet that declares:

String person = request.getParameter("person");

I then use this variable in a custom XSP tag library that is declared in
the namespace of the XSP logicsheet. Is this possible because the "person"
variable is static?

Also, In my XSP tag library that I created, I have instantiated several
variables:

private String sPrefix;
private String sFirstName;
private String sLastName;
private String sMiddleName;

These variables are behaving like static variables. Every session on the
webserver will be looking at the same variable in the tag library. I wanted
to use tag library because I really like the notion of separating content
and logic and tag library made this very easy by just dropping in dynamic
data place holders in your XML. But if every session is looking at one
static variable in my tag library, then I can't use tag libraries the way I
want.
I was hoping somebody could explain the scope of variables declared in XSP
taglibs versus variables declared in logicsheets.
I basically want variables that persist only in a specific session.

thanks


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to