Problem using session var

2005-05-11 Thread Rafael Taboada
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:

RE: Problem using session var

2005-05-11 Thread David G. Friedman
: 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

Re: Problem using session var

2005-05-11 Thread Rafael Taboada
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

Re: Problem using session var

2005-05-11 Thread Larry Meadors
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,

Re: Problem using session var

2005-05-11 Thread Rafael Taboada
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

2005-05-11 Thread David G. Friedman
: 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

Re: Problem using session var

2005-05-11 Thread Rafael Taboada
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

Re: Problem using session var

2005-05-11 Thread Rafael Taboada
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

Re: Problem using session var

2005-05-11 Thread Lucas Bern
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