Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread Nils-Helge Garli Hegvik
I'm seriously impressed! On Mon, Jan 5, 2009 at 12:32 AM, Dave Newton wrote: > From: Musachy Barroso > >> > > > Who is John Galt? > > (It's up to you to guess if I'm actually asking, or showing off my literary > chops by quoting ;) > > Dave > > -

Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread Dave Newton
From: Musachy Barroso > Who is John Galt? (It's up to you to guess if I'm actually asking, or showing off my literary chops by quoting ;) Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comm

Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread Musachy Barroso
11:59 AM, Dave Newton wrote: >> Couldn't you just use and concatenate the strings using OGNL? >> >> Dave >> >> >> >> - Original Message >>> From: David Erickson >>> To: user@struts.apache.org >>> Sent: Sunday, Janua

Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread David Erickson
ing OGNL? > > Dave > > > > - Original Message >> From: David Erickson >> To: user@struts.apache.org >> Sent: Sunday, January 4, 2009 2:28:06 PM >> Subject: [S2] Easy way to create and place a String into page context built >> using s:property t

Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread Dave Newton
Couldn't you just use and concatenate the strings using OGNL? Dave - Original Message > From: David Erickson > To: user@struts.apache.org > Sent: Sunday, January 4, 2009 2:28:06 PM > Subject: [S2] Easy way to create and place a String into page context built > u

[S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread David Erickson
Hi all, I would like to use the struts tag libraries to instantiate a String that is composed of static text as well as multiple other struts properties, something akin to: aProp: '', aProp2: '' However I see no way to set the constructor on the Strin

page context

2007-10-13 Thread Adam Hardy
Not directly a struts question, apart from the fact that I search through the ServletActionContext to try to find my answer, but what is the most direct route to get access (statically) to the PageContext? Thanks Adam - To uns

Re: static access to request / response / page context objects?

2007-10-12 Thread Zarar Siddiqi
Looks like you need a dose of ServletActionContext: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html Zarar On 10/11/07, Adam Hardy <[EMAIL PROTECTED]> wrote: > I'm writing a few static methods to use as taglib functions in my JSPs, in > particular r

static access to request / response / page context objects?

2007-10-11 Thread Adam Hardy
I'm writing a few static methods to use as taglib functions in my JSPs, in particular right now I'm writing a method to return an internationalised string from the resource bundles for use such as this: Somewhere For this example I need access to the locale in use. I suspect that my optio

Is there a 'right' way to get a resource bundel given a JSP Page Context?

2006-03-21 Thread Bart Busschots
The Struts app I'm developing uses a number of customs JSP tags that we have written oursevelves in an attempt to speed up repetative tasks and to compltely remove the need for us to use Scriptlets which not nice to have floating round your code. I developed a static helper function that is use

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

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

page context

2005-11-25 Thread Bahadır Yağan
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. -- Bahadir Yagan ---

Re: How to use with values stored in the request or page context

2005-08-14 Thread Laurie Harper
Wendy Smoak wrote: From: "Néstor Boscán" <[EMAIL PROTECTED]> How can I use or with values that are stored in the request or page context?. I would like to do something like "/> without using the <% %> tags. Is there a way to use the JSTL Expression Language or

RE: How to use with values stored in the request or page context

2005-08-14 Thread Néstor Boscán
Thanks Wendy Regards, Néstor Boscán -Mensaje original- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: Sunday, August 14, 2005 6:08 PM Para: Struts Users Mailing List Asunto: Re: How to use with values stored in the request or page context From: "Néstor Boscán&quo

Re: How to use with values stored in the request or page context

2005-08-14 Thread Wendy Smoak
From: "Néstor Boscán" <[EMAIL PROTECTED]> The problem is that in the form bean you only set the values of the or that are selected, not all of them. So to draw all of them you need to take the values from somewhere else, tipically an object that is in request or session context. True. :) He

RE: How to use with values stored in the request or page context

2005-08-14 Thread Néstor Boscán
-Mensaje original- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: Sunday, August 14, 2005 4:37 PM Para: Struts Users Mailing List Asunto: Re: How to use with values stored in the request or page context From: "Néstor Boscán" <[EMAIL PROTECTED]> > How can I u

Re: How to use with values stored in the request or page context

2005-08-14 Thread Wendy Smoak
From: "Néstor Boscán" <[EMAIL PROTECTED]> How can I use or with values that are stored in the request or page context?. I would like to do something like "/> without using the <% %> tags. Is there a way to use the JSTL Expression Language or tell the tag to g

Re: How to use with values stored in the request or page context

2005-08-14 Thread Laurie Harper
Néstor Boscán wrote: How can I use or with values that are stored in the request or page context?. I would like to do something like "/> without using the <% %> tags. Is there a way to use the JSTL Expression Language or tell the tag to get the value from an attributo?. --

How to use with values stored in the request or page context

2005-08-14 Thread Néstor Boscán
Hi How can I use or with values that are stored in the request or page context?. I would like to do something like "/> without using the <% %> tags. Is there a way to use the JSTL Expression Language or tell the tag to get the value from an attributo?. Regards,

Re: retrieving exception from page context using tags

2005-08-03 Thread Tremal Naik
2005/8/3, Laurie Harper <[EMAIL PROTECTED]>: > Huh? From the documentation: "page - Expose a specified item from the page > context as a bean." yes, I saw it, if you read deeply my post you'd notice it, but the lets me retrieving only some objects, not the exception.

Re: retrieving exception from page context using tags

2005-08-03 Thread Laurie Harper
ailable to your web app. hth, woodchuck --- Tremal Naik <[EMAIL PROTECTED]> wrote: Hi, according to the article which url is http://java.sun.com/developer/EJTechTips/2003/tt0114.html in case an exception is thrown by a web component a new implicit variable named exception is pu

Re: retrieving exception from page context using tags

2005-08-03 Thread Woodchuck
you will need to have jstl.jar and standard.jar available to your web app. hth, woodchuck --- Tremal Naik <[EMAIL PROTECTED]> wrote: > Hi, > according to the article which url is > > http://java.sun.com/developer/EJTechTips/2003/tt0114.html > > in case an excep

Re: retrieving exception from page context using tags

2005-08-03 Thread Laurie Harper
Tremal Naik wrote: Hi, according to the article which url is http://java.sun.com/developer/EJTechTips/2003/tt0114.html in case an exception is thrown by a web component a new implicit variable named exception is put in the page context. The exception can be retrieved by a scriplet (it works, i

retrieving exception from page context using tags

2005-08-03 Thread Tremal Naik
Hi, according to the article which url is http://java.sun.com/developer/EJTechTips/2003/tt0114.html in case an exception is thrown by a web component a new implicit variable named exception is put in the page context. The exception can be retrieved by a scriplet (it works, i tried it