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
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
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.
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.
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
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
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
7 matches
Mail list logo