Re: SImple question on bypassing prepare

2010-04-01 Thread jayakumar ala
Thanks... I got to know how to handle this. On Thu, Apr 1, 2010 at 1:21 PM, Kawczynski, David < david_kawczyn...@merck.com> wrote: > Extend ActionSupport or one of its subclasses, override the > prepare( ) method, to call your customized method, then call > super.prepare( ). > > > -Original M

RE: SImple question on bypassing prepare

2010-04-01 Thread Kawczynski, David
Extend ActionSupport or one of its subclasses, override the prepare( ) method, to call your customized method, then call super.prepare( ). > -Original Message- > From: jayakumar ala [mailto:alajay...@gmail.com] > Sent: Thursday, April 01, 2010 2:05 PM > To: Struts Users Mailing List > Su

Re: SImple question on bypassing prepare

2010-04-01 Thread Chris Pratt
What is it that calls your customized set method? If it's form parameter data, move the prepare interceptor below the params interceptor in your interceptor stack. (*Chris*) On Thu, Apr 1, 2010 at 11:04 AM, jayakumar ala wrote: > Hi All, > I am new to struts2 and need small help on how i can

Re: Simple Question?

2008-12-16 Thread Mark Rollins
Thanks Dave, that's sorted it. I've worked with many technologies over many years, but the quirks of OGNL with Struts2 seem to defy reason for me. Totally frustrating! But thanks again for your help. >The answer is that OGNL interprets a single character between single quotes as a character, n

Re: Simple Question?

2008-12-16 Thread Dave Newton
--- On Tue, 12/16/08, Oscar Alvarez wrote: > try puting a comparator in your action like this > > public Boolean isPipeEditAction(){ >return "|".equals(getEditAction()); > } > > and then test it in your view I think your font is fooling you--the original question was regarding a capital

Re: Simple Question?

2008-12-16 Thread Oscar Alvarez
try puting a comparator in your action like this public Boolean isPipeEditAction(){ return "|".equals(getEditAction()); } and then test it in your view 2008/12/16 Dave Newton > > Famoso Struts OGNL :-)! > > Or typical Java. > > OGNL one-ups Java, in fact, as OGNL will treat multiple cha

Re: Simple Question?

2008-12-16 Thread Dave Newton
> Famoso Struts OGNL :-)! Or typical Java. OGNL one-ups Java, in fact, as OGNL will treat multiple characters within single-quotes as a string, but falls back to standard Java if it's a single character. Dave > Musachy Barroso wrote: > > > > I think OGNL will try 'I' as a character, so > the

Re: Simple Question?

2008-12-16 Thread Milan Milanovic
Famoso Struts OGNL :-)! Musachy Barroso wrote: > > I think OGNL will try 'I' as a character, so they will never match, > just a hunch :) > > musachy > > On Tue, Dec 16, 2008 at 11:58 AM, Mark Rollins > wrote: >> >> I know this should be obvious. Perhaps I'm just too thick to use Struts2! >>

Re: Simple Question?

2008-12-16 Thread Musachy Barroso
I think OGNL will try 'I' as a character, so they will never match, just a hunch :) musachy On Tue, Dec 16, 2008 at 11:58 AM, Mark Rollins wrote: > > I know this should be obvious. Perhaps I'm just too thick to use Struts2! > > I have an action class with a private String editAction and correspo

Re: Simple Question about FreeMarker + Struts 2

2007-09-11 Thread Kenton
I identified the issue and this isn't related to NULL references. To summarize: This syntax will work with a getter method OR directly with the raw member variable if the getter method isn't present: <@s.property value="myActionProperty.subProperty" /> This syntax requires a getter method and wo

Re: Simple Question about FreeMarker + Struts 2

2007-09-08 Thread Jim Cushing
Some other things you can use: ${myActionProperty.subProperty!} Prints nothing if subProperty doesn't exist or is null ${myActionProperty.subProperty?default("default value") Prints "default value" if subProperty doesn't exist or is null The first expression (ending with !) is most similar in

Re: Simple Question about FreeMarker + Struts 2

2007-09-08 Thread Zarar Siddiqi
Freemarker considers null references errors. When myActionProperty.subProperty is referenced in the Struts tag, it is printed regardless of its value. However, when Freemarker encounters ${myActionProperty.subProperty}, it will give you an error if subProperty is null. When trying to print Freem

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Doh, missed a ... regards On 11/8/06, Greg Reddin <[EMAIL PROTECTED]> wrote: On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote: > Vinicius Carvalho ha scritto: >> I have a list that is going to be iterated, and the bean inside it >> will be checked, depending on a certain flag a tiles defini

Re: Simple Question about Tiles

2006-11-08 Thread Greg Reddin
On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote: Vinicius Carvalho ha scritto: I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition will be used to display the content, kinda like this: And the list goes on

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Hi there Antonio, thanks for the quick response. I did not specified, the code is pretty much the same I'm using (only the bean name is other) Inside my tiles I have this: <%@ page language="java" contentType="text/html" pageEncoding="ISO-8859-1"%> <%@ include file="include/taglibs.jsp" %> SIM

Re: Simple Question about Tiles

2006-11-08 Thread Antonio Petrelli
Vinicius Carvalho ha scritto: I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition will be used to display the content, kinda like this: And the list goes on ... Now, inside my tiles I need to access someBean.

Re: Simple question about shale-clay responding with the raw jsp instead of html

2006-01-25 Thread xzuma
This is the MyViewController#createList method (it is a slightly changed Rolodex#createTabs method): public void createList(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object displayElementRoot) { List beans

Re: Simple question about shale-clay responding with the raw jsp instead of html

2006-01-25 Thread Gary VanMatre
>From: xzuma <[EMAIL PROTECTED]> > > Thanks for quick reply, Gary. I should have been more verbose, however, I > thought this behaviour (printing raw jsp instead of html) was a very simple > simptom of a simple problem. Well, does you jsp file name end with a .jsp suffix or .html suffix? >

Re: Simple question about shale-clay responding with the raw jsp instead of html

2006-01-25 Thread xzuma
Thanks for quick reply, Gary. I should have been more verbose, however, I thought this behaviour (printing raw jsp instead of html) was a very simple simptom of a simple problem. I am putting a clay component into a working JSF application (I need to be able to assemble a page dynamically from seve

Re: Simple question about shale-clay responding with the raw jsp instead of html

2006-01-25 Thread Gary VanMatre
>From: xzuma <[EMAIL PROTECTED]> > > Hello, > > I just started implementing my shale-clay application (looking at rolodex > example) and upon creating a command link in my view controller, Do you mean that you have an action method in the view controller? Or, are you binding a JSF control t

RE: simple Question

2004-07-16 Thread Geeta Ramani
Hi Alvin: This question has appeared a few times, so you may benefit from searching the archives. Short answer(s): either use tokens (like you suggested) or use a redirect instead of a forward. Regards, Geeta > -Original Message- > From: Alvin Antony [mailto:[EMAIL PROTECTED] > Sent:

RE: simple Question

2004-07-16 Thread Paul McCulloch
I use a two pronged approach: 1) After a save do a redirecting forward. This means that refresh will not resubmit the save process. 2) Use tokens so that if somehow the user manages to resubmit the save process you can intercept this. Paul > -Original Message- > From: Alvin Antony [mailto