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
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
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
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
--- 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
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
> 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
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!
>>
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
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
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
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
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
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
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
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.
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
>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?
>
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
>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
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:
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
22 matches
Mail list logo