Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 27 Dec 2009 23:16:49 -0000 Issue 8969

user-digest-help

2009-12-27


Author LoginPost Reply

user Digest 27 Dec 2009 23:16:49 -0000 Issue 8969

Topics (messages 204407 through 204419):

Struts 2.1.8 with Spring Web Flow plugin
 204407 by: Celinio Fernandes
 204408 by: Musachy Barroso
 204409 by: Celinio Fernandes

Re: how to access struts2 propery from jsp or vice versa
 204410 by: Gabriel Belingueres

Merry Christmas!
 204411 by: ashish shrivastava

Which jQuery plugin to use
 204412 by: Sanjay Patel

paramsPrepareParamsStack not catching the params
 204413 by: Sanjay Patel

<s:Date> and timeZone
 204414 by: Sanjay Patel

S2 Can I use java templates for all tags except form?
 204415 by: Néstor Boscán
 204416 by: Neil Aggarwal
 204417 by: Saeed Iqbal
 204419 by: Néstor Boscán

int validator stopped working after upgrade to 2.1.8 from 2.1.6
 204418 by: Parm Lehal

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------


Attachment: user_204407.ezm (zipped)
Hi,
does anyone know a tutorial or an example about Struts 2 with the Spring Web Flow plugin ?
There is this one :
http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html

But it's kind of old and not very informative.

What is the status of that Spring Web Flow plugin in Struts 2.1.8 ?

Thanks.






   

Attachment: user_204408.ezm (zipped)
It needs to be fixed to work with SWF 2.

musachy

On Fri, Dec 25, 2009 at 11:54 AM, Celinio Fernandes <cel975@(protected):
> Hi,
> does anyone know a tutorial or an example about Struts 2 with the Spring Web Flow plugin ?
> There is this one :
> http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html
>
> But it's kind of old and not very informative.
>
> What is the status of that Spring Web Flow plugin in Struts 2.1.8 ?
>
> Thanks.
>
>
>
>
>
>
>


Attachment: user_204409.ezm (zipped)
thanks for the info. I will not be wasting my time trying to use it then.

--- On Fri, 12/25/09, Musachy Barroso <musachy@(protected):

From: Musachy Barroso <musachy@(protected)>
Subject: Re: Struts 2.1.8 with Spring Web Flow plugin
To: "Struts Users Mailing List" <user@(protected)>
Date: Friday, December 25, 2009, 12:58 PM

It needs to be fixed to work with SWF 2.

musachy

On Fri, Dec 25, 2009 at 11:54 AM, Celinio Fernandes <cel975@(protected):
> Hi,
> does anyone know a tutorial or an example about Struts 2 with the Spring Web Flow plugin ?
> There is this one :
> http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html
>
> But it's kind of old and not very informative.
>
> What is the status of that Spring Web Flow plugin in Struts 2.1.8 ?
>
> Thanks.
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)




   

Attachment: user_204410.ezm (zipped)
something like this?

<result name="someRedirectResult" type="redirect">
http://www.blahblah.com/something?param1=${value1}&param2=${value2}
</result>

Here, value1 and value2 are searched in the value stack (usually your
action object is at the top of the stack).

2009/12/24 Wes Wannemacher <wesw@(protected)>:
> There is an http header result type and two redirect result types that
> are much better suited for this. You can use properties in the
> struts.xml file as params for the result. I am on my phone, but
> perhaps someone else can post an example.
>
> -W
>
> On 12/24/09, Parm Lehal <plehal@(protected):
>> Hello,
>>
>> I am stuck in trying to access some variables from value stack in jsp
>> page. Is there anyway to do it easily?
>> Is there anyway to communicate with a bean defined in jsp with
>> <jsp:useBean  tag from struts2?  I can access values in struts but not
>> from jsp side. ..Basically I am trying to do something similar to
>>
>> <%
>>
>> response.sendRedirect(..........url based on....<s:property
>> value="%{GRTGRTGT}"/>  .....);
>>
>>
>> Please, tell me if and how can I accomplish something like this.
>>
>>
>>
>> Regards,
>>
>> Parminder Lehal
>>
>>
>>
>> ________________________________________________________________________
>>
>>
>> -----Original Message-----
>> From: Wes Wannemacher <wesw@(protected)>
>> Reply-to: "Struts Users Mailing List" <user@(protected)>
>> To: Struts Users Mailing List <user@(protected)>
>> Subject: Re: if tag with #parameters
>> Date: Wed, 23 Dec 2009 09:35:59 -0500
>>
>>
>> I have used a similar construct quite a bit, but normally, I refer to
>> parameters like this -
>>
>> <s:if test="%{#parameters['view'] != null}">
>> view
>> </s:if>
>> <s:else>
>> not view
>> </s:else>
>>
>> In cases like this, I just want to affect the way a view is rendered.
>> So, leaving the getter/setter off of the action is the way to go.
>>
>> -Wes
>>
>> On Tue, Dec 22, 2009 at 6:05 AM, foo bar <linutrix@(protected):
>>> Hi,
>>>
>>> I would prefer not to use getter/setter.
>>> What I really want to know is, why is this not working as expected ?
>>>
>>> Anyway, I solved it
>>>
>>> <s:if test="#parameters.messageKey[0] == 'yes'">
>>>
>>> #parameters.messageKey is of type String[], which make sense now
>>>
>>>
>>> On Tue, Dec 22, 2009 at 9:46 PM, Saeed Iqbal <saeedcs@(protected):
>>>> If it is a request parameter, then make a setter for it to get set and
>>>> getter to retrieve it and use % instead of #
>>>>
>>>> If you want to have the parameter in the page context use the s:set with
>>>> id
>>>>
>>>>
>>>>
>>>> On Tue, Dec 22, 2009 at 3:36 PM, foo bar <linutrix@(protected):
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm testing for the existence of a request parameter in a jsp page in
>>>>> Struts 2
>>>>>
>>>>> <%@(protected)"%>
>>>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>>>>> "http://www.w3.org/TR/html4/strict.dtd">
>>>>> <s:property value="#parameters.messageKey"/><br/>
>>>>> <s:if test="%{#parameters.messageKey == 'yes'}">
>>>>> yes
>>>>> </s:if>
>>>>> <s:else>
>>>>> no
>>>>> </s:else>
>>>>>
>>>>> But, whatever I do, result is always "no"
>>>>>
>>>>> Tested with these cases:
>>>>>
>>>>> test.jsp
>>>>> test.jsp?messageKey=
>>>>> test.jsp?messageKey=yes
>>>>> test.jsp?messageKey=no
>>>>>
>>>>> Changed it to <s:if test="#parameters.messageKey == 'yes'">, same
>>>>> results
>>>>> Changed it to <s:if test="{#parameters.messageKey == 'yes'}">, results
>>>>> are negated as above, ie you got "no" when previously you got "yes"
>>>>>
>>>>> What's the solution here ?
>>>>>
>>>>> Cheers
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Saeed Iqbal
>>>> Independant Consultant
>>>> J2EE - Application Architect / Developer
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>>
>>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_204411.ezm (zipped)
Merry Christmas,
I am willing to give you a big surprise:   www.bsord.com.
I bought an Apple Mac book one week ago from this website. Now, I have
received it. This product quality is very good, the price is very
cheap and competitive,the delivery is on time.
They also sell phones, TV, motors and so on. By the way, they mainly
sell new and original products and they have many good feedback.
Because of the coming Christmas and New Year,now ,they are holding
sales promotion activity, all the product are sold at a discount. If
you need these products, you can have a look.
Hurry up,because the promotion activity only keeps 1 month . It is a
good chance that you should not lose.
Greetings!


Attachment: user_204412.ezm (zipped)
Hi,

I found two jQuery plugins: http://code.google.com/p/struts2-jquery/ and
http://code.google.com/p/struts2-jquery-plugin/

Needing some inputs on which one to use. I read somewhere that both are
merging.

--
Thanks,
Sanjay
www.sanjaypatel.name

Attachment: user_204413.ezm (zipped)
Hi,

Using paramsPrepareParamsStack with ModelDriven, I want to receive an userId
and then retrieve the user and display it. I see a strange behavior - even
if I pass something like http://localhost:8080/gweb/profile?userId=5 (having
an action property userId) and try to catch it in prepare or getModel, I do
not get the value. But in execute the value is there.

Can't understand why. Any clues would help.

--
Thanks,
Sanjay
www.sanjaypatel.name

Attachment: user_204414.ezm (zipped)
Hi,

In an application, we are storing the timeZone of the users and wish to
display the dates according to their timeZone. As I saw, that there is on
timeZone support in <s:Date> tag.

Any suggestion would help.

--
Thanks,
Sanjay
www.sanjaypatel.name

Attachment: user_204415.ezm (zipped)
Hi



Is there a way I can use java templates for all tags except form?. I want to
gain on the performance of the java tags but still maintain the validation
features of the form tag.



Regards,



Néstor Boscán

Attachment: user_204416.ezm (zipped)
Nestor:

> Is there a way I can use java templates for all tags except form?

You can mix and match struts UI tags and normal
HTML tags in your JSPs. I do it all the time and
it will not hurt anything.

 Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your Struts app on a CentOS VPS for only $25/month!
Unmetered bandwidth = no overage charges, 7 day free trial



Attachment: user_204417.ezm (zipped)
And thats the beauty of struts

On Sunday, December 27, 2009, Neil Aggarwal <neil@(protected):
> Nestor:
>
>> Is there a way I can use java templates for all tags except form?
>
> You can mix and match struts UI tags and normal
> HTML tags in your JSPs.  I do it all the time and
> it will not hurt anything.
>
>        Neil
>
> --
> Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
> Host your Struts app on a CentOS VPS for only $25/month!
> Unmetered bandwidth = no overage charges, 7 day free trial
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer


Attachment: user_204419.ezm (zipped)
Hi

Thanks for the quick reply.

What I'm refering is: instead of using only the Struts 2 Tags with the
FreeMarker XHTML template combine the "Form" Struts 2 Tag with FreeMarker
XHTML template and the rest of the tags with Java Templates. What I want is
to gain on the performance of the Java Templates but still use the form tag
for validation.

Regards,

Néstor Boscán

On Sun, Dec 27, 2009 at 12:39 PM, Neil Aggarwal <neil@(protected):

> Nestor:
>
> > Is there a way I can use java templates for all tags except form?
>
> You can mix and match struts UI tags and normal
> HTML tags in your JSPs. I do it all the time and
> it will not hurt anything.
>
>     Neil
>
> --
> Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
> Host your Struts app on a CentOS VPS for only $25/month!
> Unmetered bandwidth = no overage charges, 7 day free trial
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_204418.ezm (zipped)
Hello my int validator stopped working after upgrade to 2.1.8 from
2.1.6. Can someone please, provide some insight?

My validators are defined like this and they used to work fine before.
Now string validators are working but not the int ones.
.......................................................
<field name="t1gen.vint9">
    <field-validator type="int">
      <param name="min">1</param>
      <param name="max">2</param>
      <message >xxxxxx must be selected</message>
   </field-validator>

----------------------------------------



Regards,

Parminder Lehal



________________________________________________________________________


©2008 gg3721.com - Jax Systems, LLC, U.S.A.