Re: page context

2005-11-25 Thread Michael Jouravlev
On 11/25/05, Bahadır Yağan <[EMAIL PROTECTED]> wrote: > Sorry, my forward was defined as redirect="true". Now it works, thanks. > > So one other question. Is is normal to write an Action for every page, > to register these variables.(no forms in page so far.) Or there is a > simpler solution? Simp

Re: page context

2005-11-25 Thread Laurie Harper
Bahadır Yağan wrote: So one other question. Is is normal to write an Action for every page, to register these variables.(no forms in page so far.) Or there is a simpler solution? The normal pattern in Struts is to have a 'setup action' which loads any data the page needs to display and then f

Re: page context

2005-11-25 Thread Gareth Evans
Are you doing any kind of redirect? Try printing the value of ${clist}, does this collection/list definatly contain data? because if logic:iterate can't find the bean then it throws a JspException Bahadır Yağan wrote: I tried it but couldn't get it working. Here is my code: Action: request.

Re: page context

2005-11-25 Thread Bahadır Yağan
Sorry, my forward was defined as redirect="true". Now it works, thanks. So one other question. Is is normal to write an Action for every page, to register these variables.(no forms in page so far.) Or there is a simpler solution? Bahadır Yağan wrote: I tried it but couldn't get it working.

Re: page context

2005-11-25 Thread Bahadır Yağan
I tried it but couldn't get it working. Here is my code: Action: request.setAttribute("clist", clist); JSP: href="sunum.jsp?cid=${category.cid}">${category.name} ps: no it is not a form bean. Gareth Evans wrote: request.setAttribute() ? Bahadır Yağan wrote: Hi! Is

RE: page context

2005-11-25 Thread VAN BROECK Jimmy
If its a formbean you are referring to, set the scope parameter inside the action def. to request. -Original Message- From: Bahadir Yagan [mailto:[EMAIL PROTECTED] Sent: vrijdag 25 november 2005 10:22 To: user@struts.apache.org Subject: page context Hi! Is there a way to register a b

Re: page context

2005-11-25 Thread Gareth Evans
request.setAttribute() ? Bahadır Yağan wrote: Hi! Is there a way to register a bean from inside an Action, only for the next response. I have data to display on a JSP page. But it will only be needed for that page, so registering it to session seems an overhead to me. -- Gareth Evans M