Hi folks. I have a problem using session variables, I hope u can help me.
In my jsp:
bean:write name=lstTipoCambio property=strValor /
In my action:
if (session.getAttribute(lstTipoCambio)==null)
session.setAttribute(lstTipoCambio,articuloDAO.getTipoCambio());
In my DAO:
: Problem using session var
Hi folks. I have a problem using session variables, I hope u can help me.
In my jsp:
bean:write name=lstTipoCambio property=strValor /
In my action:
if (session.getAttribute(lstTipoCambio)==null)
session.setAttribute(lstTipoCambio,articuloDAO.getTipoCambio
I didn't know about capitalization of bean:write.
So, how can i know in order to print some data in my jsp?. using
session vars...
Using JSTL?..
I don't know.
--
Rafael Taboada
-
To unsubscribe, e-mail: [EMAIL
This has nothing to do with sessions - it is just standard bean naming, and
AFAIK, all jsp tags will stick to this.
The methods getXxx and setXxx create a property named xxx.
One more naming issue to watch out for is this one: The methods getXName and
setXName create a property named XName,
I renamed my methods but nothing happened.
My new getters and setters:
getStrValor()
setStrValor()
But it's still the same error.
But I did this:
logic:iterate id=lista name=lstTipoCambio
bean:write name=lista property=strValor /
/logic:iterate
And it worked Do u know why?
: Re: Problem using session var
I renamed my methods but nothing happened.
My new getters and setters:
getStrValor()
setStrValor()
But it's still the same error.
But I did this:
logic:iterate id=lista name=lstTipoCambio
bean:write name=lista property=strValor /
/logic:iterate
Yes, I used logic:iterate with getstrValor and setstrValor and it worked fine..
But I tried with logic:iterate and getStrValor and setStrValor and it
worked too...
So, what's the problem???... Is my
bean:write name=lstTipoCambio property=strValor /
Has it to be inside a iteration
My bad... I cleaned and rebuilt and
It works without logic:iterate and getStrValor and setStrValor and
strValor attribute. :)
But. Why does it work using logic:iterate and getstrValor and setstrValor?
Thanks for help me.
--
Rafael Taboada
Hi!
bean write tag just takes a bean under name key form the scope where you
indicates with scope or with findAttrinute searching in every scopes if you
omit the scope attribute.
Once the bean is found, the tag, takes the value of the property attribute as
String and
-first replace the first
9 matches
Mail list logo