Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 19 May 2008 18:30:15 -0000 Issue 8036

user-digest-help

2008-05-19


Author LoginPost Reply

user Digest 19 May 2008 18:30:15 -0000 Issue 8036

Topics (messages 186565 through 186579):

How to pass OGNL expressions to JSP includes
 186565 by: Wes Gamble
 186568 by: Randy Burgess
 186569 by: Wes Gamble
 186570 by: Randy Burgess
 186571 by: Dave Newton
 186572 by: Wes Gamble
 186579 by: Randy Burgess

Re: Jsp struts
 186566 by: Laurie Harper

Action Framework Standard
 186567 by: Frans Thamura

Re: [Struts 2] Datetimepicker tag Bug ?!
 186573 by: Milan Milanovic

Problems with forms field
 186574 by: Felipe Lorenz
 186577 by: Jim Kiley

Re: [Struts2] Table pagination (paging)?
 186575 by: Oleg Mikheev

Expressions and migration from 2.0.9
 186576 by: Oleg Mikheev

Re: Upgrade from 2.06 to 2.011.1 Error
 186578 by: Oleg Mikheev

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_186565.ezm (zipped)
All,

It's been a while since I've done any Struts (JSP for that matter) development, and I'm trying to get started with Struts 2.

Here's a very simple template that pulls in an include that provides the <head>...</head> content for the page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ taglib prefix="s" uri="/struts-tags" %>

<jsp:include page="/include/head.jsp" flush="true">
  <jsp:param name="title" value="<s:property value="pageTitle"/>" />
  <jsp:param name="companyName" value="<s:property value="companyName"/>" />
</jsp:include>

<body>
</body>
</html>

I have an action that sets the values of pageTitle and companyName and I've verified that they have values.

My problem is I don't know how to co rrectly pass the pageTitle and companyName values set in my action (and retrievable only through OGNL, AFAIK) to the include via the standard <jsp:param> tag.  What is above doesn't work because of the double quotes.  So, here are my questions...

1) Is there a way to quote the contents of the <s:property> tag so that I can pass it successfully to the include?
2) Do I have to put the value of <s:property value="pageTitle"> (for example) into a local JSP variable just to pass it to the include?

What am I doing wrong?

Thanks,
Wes

Attachment: user_186568.ezm (zipped)
You can use EL outside of Struts tags.

Try  <jsp:param name="title" value="${pageTitle}" />.

Properties in an action will be at the top of the stack.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications




From: Wes Gamble <weyus@(protected)>
Reply-To: Struts Users Mailing List <user@(protected)>
Date: Mon, 19 May 2008 16:25:26 +0000
To: <user@(protected)>
Subject: How to pass OGNL expressions to JSP includes

All,

It's been a while since I've done any Struts (JSP for that matter)
development, and I'm trying to get started with Struts 2.

Here's a very simple template that pulls in an include that provides the
<head>...</head> content for the page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@(protected)" %>

<jsp:include page="/include/head.jsp" flush="true">
<jsp:param name="title" value="<s:property value="pageTitle"/>" />
<jsp:param name="companyName" value="<s:property value="companyName"/>" />
</jsp:include>

<body>
</body>
</html>

I have an action that sets the values of pageTitle and companyName and I've
verified that they have values.

My problem is I don't know how to co rrectly pass the pageTitle and
companyName values set in my action (and retrievable only through OGNL,
AFAIK) to the include via the standard <jsp:param> tag. What is above
doesn't work because of the double quotes. So, here are my questions...

1) Is there a way to quote the contents of the <s:property> tag so that I
can pass it successfully to the include?
2) Do I have to put the value of <s:property value="pageTitle"> (for
example) into a local JSP variable just to pass it to the include?

What am I doing wrong?

Thanks,
Wes




This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment: user_186569.ezm (zipped)
Randy,

Thanks!  So, in general, is this an alternative way to reference these properties?  Where can I find out more about the ${...} syntax?

You said "EL" in your reply.  So, is this standard JSP EL or is it OGNL?  Are they different, or is "EL" in Struts actually OGNL?

Thanks,
Wes
-------------- Original message from Randy Burgess <RBurgess@nuvox.com>: --------------


> You can use EL outside of Struts tags.
>
> Try .
>
> Properties in an action will be at the top of the stack.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
>
> From: Wes Gamble
> Reply-To: Struts Users Mailing List
> Date: Mon, 19 May 2008 16:25:26 +0000
> To:
> Subject: How to pass OGNL expressions to JSP includes
>
> All,
>
> It's been a while since I've done any Struts (JSP for that matter)
> development, and I'm trying to get started with Struts 2.
>
> Here's a very simple template that pulls in an include that provides the
> ...content for the page.
>
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <%@ taglib prefix="s" uri="/struts-tags" %>
>
>
> " />
> " />
>

>
>
>
>
>
> I have an action that sets the values of pageTitle and companyName and I've
> verified that they have values.
>
> My problem is I don't know how to co rrectly pass the pageTitle and
> companyName values set in my action (and retrievable only through OGNL,
> AFAIK) to the include via the standard tag. What is above
> doesn't work because of the double quotes. So, here are my questions...
>
> 1) Is there a way to quote the contents of the tag so that I
> can pass it successfully to the include?
> 2) Do I have to put the value of (for
> example) into a local JSP variable just to pass it to the include?
>
> What am I doing wrong?
>
> Thanks,
> Wes
>
>
>
>
> This email and any attachments ("Message") may contain legally privileged and/or
> confidential information. If you are not the addressee, or if this Message has
> been addressed to you in error, you are not authorized to read, copy, or
> distribute it, and we ask that you please delete it (including all copies) and
> notify the sender by return email. Delivery of this Message to any person other
> than the intended recipient(s) shall not be deemed a waiver of confidentiality
> and/or a privilege.

Attachment: user_186570.ezm (zipped)
Yes, outside of Struts tags. No that is JSP EL (Expression Language), which
is different from OGNL, however you can get values from the OGNL stack using
EL like in my example. There are at least a couple of links in the
documentation to OGNL. I would check that first, as to EL there are tons of
links on the Œnet, just Google it.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications




From: Wes Gamble <weyus@(protected)>
Reply-To: Struts Users Mailing List <user@(protected)>
Date: Mon, 19 May 2008 16:38:51 +0000
To: Struts Users Mailing List <user@(protected)>
Subject: Re: How to pass OGNL expressions to JSP includes


Randy,

Thanks! So, in general, is this an alternative way to reference these
properties? Where can I find out more about the ${...} syntax?

You said "EL" in your reply. So, is this standard JSP EL or is it OGNL?
Are they different, or is "EL" in Struts actually OGNL?

Thanks,
Wes
> -------------- Original message from Randy Burgess <RBurgess@(protected)>:
> --------------
>
>
>> > You can use EL outside of Struts tags.
>> >
>> > Try  .
>> >
>> > Properties in an action will be at the top of the stack.
>> >
>> > Regards,
>> > Randy Burgess
>> > Sr. Web Applications Developer
>> > Nuvox Communications
>> >
>> >
>> >
>> >
>> > From: Wes Gamble
>> > Reply-To: Struts Users Mailing List
>> > Date: Mon, 19 May 2008 16:25:26 +0000
>> > To:
>> > Subject: How to pass OGNL expressions to JSP includes
>> >
>> > All,
>> >
>> > It's been a while since I've done any Struts (JSP for that matter)
>> > development, and I'm trying to get started with Struts 2.
>> >
>> > Here's a very simple template that pulls in an include that provides the
>> > ...content for the page.
>> >
>> >
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> >
>> > <%@(protected)" %>
>> >
>> >
>> >  " />
>> >  " />
>> >
>> >
>> >
>> >
>> >
>> >
>> > I have an action that sets the values of pageTitle and companyName and I've
>> > verified that they have values.
>> >
>> > My problem is I don't know how to co rrectly pass the pageTitle and
>> > companyName values set in my action (and retrievable only through OGNL,
>> > AFAIK) to the include via the standard tag. What is above
>> > doesn't work because of the double quotes. So, here are my questions...
>> >
>> > 1) Is there a way to quote the contents of the tag so that I
>> > can pass it successfully to the include?
>> > 2) Do I have to put the value of (for
>> > example) into a local JSP variable just to pass it to the include?
>> >
>> > What am I doing wrong?
>> >
>> > Thanks,
>> > Wes
>> >
>> >
>> >
>> >
>> > This email and any attachments ("Message") may contain legally privileged
>> and/or
>> > confidential information. If you are not the addressee, or if this Message
>> has
>> > been addressed to you in error, you are not authorized to read, copy, or
>> > distribute it, and we ask that you please delete it (including all copies)
>> and
>> > notify the sender by return email. Delivery of this Message to any person
>> other
>> > than the intended recipient(s) shall not be deemed a waiver of
>> confidentiality
>> > and/or a privilege.
>



This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment: user_186571.ezm (zipped)
The value stack should be available in a <jsp:include...>'ed tag, and
you should be able to reference your action's properties in any of the
supported ways.

Also note that S2 uses a request wrapper so that you may access value
stack variables via JSP EL (e.g. ${anActionProperty}). Note that the
normal scopes are searched *first*, before looking on the value stack.

Dave

--- Wes Gamble <weyus@(protected):
> It's been a while since I've done any Struts (JSP for that matter)
> development, and I'm trying to get started with Struts 2.
>
> Here's a very simple template that pulls in an include that provides
> the <head>...</head> content for the page.
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <%@(protected)" %>
>
> <jsp:include page="/include/head.jsp" flush="true">
>  <jsp:param name="title" value="<s:property value="pageTitle"/>" />
>  <jsp:param name="companyName" value="<s:property
> value="companyName"/>" />
> </jsp:include>
>
> <body>
> </body>
> </html>
>
> I have an action that sets the values of pageTitle and companyName
> and I've verified that they have values.
>
> My problem is I don't know how to correctly pass the pageTitle and
> companyName values set in my action (and retrievable only through
> OGNL, AFAIK) to the include via the standard <jsp:param> tag. What
> is above doesn't work because of the double quotes. So, here are my
> questions...
>
> 1) Is there a way to quote the contents of the <s:property> tag so
> that I can pass it successfully to the include?
> 2) Do I have to put the value of <s:property value="pageTitle"> (for
> example) into a local JSP variable just to pass it to the include?


Attachment: user_186572.ezm (zipped)
I'm reading that OGNL is not only very slow, but also that development on it has basically halted.

How can I ensure that I'm not using OGNL in my view?

Is the Apache commons-el different than the EL that comes w/the standard J2EE stack?  If so, how can I use that?  Should I?

Wes
 
-------------- Original message from Randy Burgess <RBurgess@nuvox.com>: --------------


> Yes, outside of Struts tags. No that is JSP EL (Expression Language), which
> is different from OGNL, however you can get values from the OGNL stack using
> EL like in my example. There are at least a couple of links in the
> documentation to OGNL. I would check that first, as to EL there are tons of
> links on the Œnet, just Google it.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
>
> From: Wes Gamble
> Reply-To: Struts Users Mailing List
> Date: Mon, 19 May 2008 16:38:51 +0000
> To: Struts Users Mailing List
> Subject: Re: How to pass OGNL expressions to JSP includes
>
>
> Randy,
>
> Thanks! So, in general, is this an alternative way to reference these
> properties? Where can I find out more about the ${...} syntax?
>
> You said "EL" in your reply. So, is this standard JSP EL or is it OGNL?
> Are they different, or is "EL" in Struts actually OGNL?
>
> Thanks,
> Wes
> > -------------- Original message from Randy Burgess :
> > --------------
> >
> >
> >> > You can use EL outside of Struts tags.
> >> >
> >> > Try .
> >> >
> >> > Properties in an action will be at the top of the stack.
> >> >
> >> > Regards,
> >> > Randy Burgess
> >> > Sr. Web Applications Developer
> >> > Nuvox Communications
> >> >
> >> >
> >> >
> >> >
> >> > From: Wes Gamble
> >> > Reply-To: Struts Users Mailing List
> >> > Date: Mon, 19 May 2008 16:25:26 +0000
> >> > To:
> >> > Subject: How to pass OGNL expressions to JSP includes
> >> >
> >> > All,
> >> >
> >> > It's been a while since I've done any Struts (JSP for that matter)
> >> > development, and I'm trying to get started with Struts 2.
> >> >
> >> > Here's a very simple template that pulls in an include that provides the
> >> > ...content for the page.
> >> >
> >> >
> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >> >
> >> > <%@ taglib prefix="s" uri="/struts-tags" %>
> >> >
> >> >
> >> > " />
> >> > " />
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > I have an action that sets the values of pageTitle and companyName and I've
> >> > verified that they have values.
> >> >
> >> > My problem is I don't know how to co rrectly pass the pageTitle and
> >> > companyName values set in my action (and retrievable only through OGNL,
> >> > AFAIK) to the include via the standard tag. What is above
> >> > doesn't work because of the double quotes. So, here are my questions...
> >> >
> >> > 1) Is there a way to quote the contents of the tag so that I
> >> > can pass it successfully to the include?
> >> > 2) Do I have to put the value of (for
> >> > example) into a local JSP variable just to pass it to the include?
> >> >
> >> > What am I doing wrong?
> >> >
> >> > Thanks,
> >> > Wes
> >> >
> >> >
> >> >
> >> >
> >> > This email and any attachments ("Message") may contain legally privileged
> >> and/or
> >> > confidential information. If you are not the addressee, or if this Message
> >> has
> >> > been addressed to you in error, you are not authorized to read, copy, or
> >> > distribute it, and we ask that you please delete it (including all copies)
> >> and
> >> > notify the sender by return email. Delivery of this Message to any person
> >> other
> >> > than the intended recipient(s) shall not be deemed a waiver of
> >> confidentiality
> >> > and/or a privilege.
> >
>
>
>
> This email and any attachments ("Message") may contain legally privileged and/or
> confidential information. If you are not the addressee, or if this Message has
> been addressed to you in error, you are not authorized to read, copy, or
> distribute it, and we ask that you please delete it (including all copies) and
> notify the sender by return email. Delivery of this Message to any person other
> than the intended recipient(s) shall not be deemed a waiver of confidentiality
> and/or a privilege.

Attachment: user_186579.ezm (zipped)
To the best of my knowledge S2 uses OGNL extensively so not using it is
probably not an option. Anyone please feel free to correct me if I¹m wrong
about this. I have never used commons-el personally so I couldn¹t tell you,
sometimes the commons stuff like that extends and enhances some framework or
API, you would have to check the docs to be sure.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications




From: Wes Gamble <weyus@(protected)>
Reply-To: Struts Users Mailing List <user@(protected)>
Date: Mon, 19 May 2008 16:48:31 +0000
To: Struts Users Mailing List <user@(protected)>
Subject: Re: How to pass OGNL expressions to JSP includes

I'm reading that OGNL is not only very slow, but also that development on
it has basically halted.

How can I ensure that I'm not using OGNL in my view?

Is the Apache commons-el different than the EL that comes w/the standard
J2EE stack? If so, how can I use that? Should I?

Wes

> -------------- Original message from Randy Burgess <RBurgess@(protected)>:
> --------------
>
>
>> > Yes, outside of Struts tags. No that is JSP EL (Expression Language), which
>> > is different from OGNL, however you can get values from the OGNL stack
>> using
>> > EL like in my example. There are at least a couple of links in the
>> > documentation to OGNL. I would check that first, as to EL there are tons of
>> > links on the Œnet, just Google it.
>> >
>> > Regards,
>> > Randy Burgess
>> > Sr. Web Applications Developer
>> > Nuvox Communications
>> >
>> >
>> >
>> >
>> > From: Wes Gamble
>> > Reply-To: Struts Users Mailing List
>> > Date: Mon, 19 May 2008 16:38:51 +0000
>> > To: Struts Users Mailing List
>> > Subject: Re: How to pass OGNL expressions to JSP includes
>> >
>> >
>> > Randy,
>> >
>> > Thanks! So, in general, is this an alternative way to reference these
>> > properties? Where can I find out more about the ${...} syntax?
>> >
>> > You said "EL" in your reply. So, is this standard JSP EL or is it OGNL?
>> > Are they different, or is "EL" in Struts actually OGNL?
>> >
>> > Thanks,
>> > Wes
>>> > > -------------- Original message from Randy Burgess :
>>> > > --------------
>>> > >
>>> > >
>>>>> > >> > You can use EL outside of Struts tags.
>>>>> > >> >
>>>>> > >> > Try  .
>>>>> > >> >
>>>>> > >> > Properties in an action will be at the top of the stack.
>>>>> > >> >
>>>>> > >> > Regards,
>>>>> > >> > Randy Burgess
>>>>> > >> > Sr. Web Applications Developer
>>>>> > >> > Nuvox Communications
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> > From: Wes Gamble
>>>>> > >> > Reply-To: Struts Users Mailing List
>>>>> > >> > Date: Mon, 19 May 2008 16:25:26 +0000
>>>>> > >> > To:
>>>>> > >> > Subject: How to pass OGNL expressions to JSP includes
>>>>> > >> >
>>>>> > >> > All,
>>>>> > >> >
>>>>> > >> > It's been a while since I've done any Struts (JSP for that matter)
>>>>> > >> > development, and I'm trying to get started with Struts 2.
>>>>> > >> >
>>>>> > >> > Here's a very simple template that pulls in an include that
>>>>> provides the
>>>>> > >> > ...content for the page.
>>>>> > >> >
>>>>> > >> >
>>>>> > >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>>> > >> >
>>>>> > >> > <%@(protected)" %>
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >  " />
>>>>> > >> >  " />
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> > I have an action that sets the values of pageTitle and companyName
>>>>> and I've
>>>>> > >> > verified that they have values.
>>>>> > >> >
>>>>> > >> > My problem is I don't know how to co rrectly pass the pageTitle and
>>>>> > >> > companyName values set in my action (and retrievable only through
OGNL,
>>>>> > >> > AFAIK) to the include via the standard tag. What is above
>>>>> > >> > doesn't work because of the double quotes. So, here are my
>>>>> questions...
>>>>> > >> >
>>>>> > >> > 1) Is there a way to quote the contents of the tag so that I
>>>>> > >> > can pass it successfully to the include?
>>>>> > >> > 2) Do I have to put the value of (for
>>>>> > >> > example) into a local JSP variable just to pass it to the include?
>>>>> > >> >
>>>>> > >> > What am I doing wrong?
>>>>> > >> >
>>>>> > >> > Thanks,
>>>>> > >> > Wes
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> >
>>>>> > >> > This email and any attachments ("Message") may contain legally
>>>>> privileged
>>>> > >> and/or
>>>>> > >> > confidential information. If you are not the addressee, or if this
>>>>> Message
>>>> > >> has
>>>>> > >> > been addressed to you in error, you are not authorized to read,
>>>>> copy, or
>>>>> > >> > distribute it, and we ask that you please delete it (including all
>>>>> copies)
>>>> > >> and
>>>>> > >> > notify the sender by return email. Delivery of this Message to any
>>>>> person
>>>> > >> other
>>>>> > >> > than the intended recipient(s) shall not be deemed a waiver of
>>>> > >> confidentiality
>>>>> > >> > and/or a privilege.
>>> > >
>> >
>> >
>> >
>> > This email and any attachments ("Message") may contain legally privileged
>> and/or
>> > confidential information. If you are not the addressee, or if this Message
>> has
>> > been addressed to you in error, you are not authorized to read, copy, or
>> > distribute it, and we ask that you please delete it (including all copies)
>> and
>> > notify the sender by return email. Delivery of this Message to any person
>> other
>> > than the intended recipient(s) shall not be deemed a waiver of
>> confidentiality
>> > and/or a privilege.
>



This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment: user_186566.ezm (zipped)
Sapan wrote:
> Hi,
> I got
> ???en_US.errors.required??????en_US.errors.required???
> this error on my entry form before submit any button andd I used <input
> type="button" value="Submit As Draft" onclick="return validateKForm(this)">
> at end of form
> i want to show my message on message or dialog box I donot know where it
> goes wrong

Difficult to say, since you didn't include any of your code or
configuration, or even specify which version of Struts you're using.
There are a number of factors that could be involved here, which are
different between Struts 1 and Struts 2 and also depend on how you're
getting the required messages onto the page.

You need to tell us, at least, what version of Struts you are using,
what you're JSP code looks like for the field with the error message,
how you have validation configured, what your action mappings look like
and what property bundles you have deployed where.

Try to reduce your problem to the absolute minimum amount of code and
configuration necessary to reproduce it, and then post that for review
if you still don't see what's wrong.

L.


Attachment: user_186567.ezm (zipped)
hi all

is it possible that S2 posted to JCP so we can have action framework
standard?

F

Attachment: user_186573.ezm (zipped)
By using this name="delivery.date" attribute it reads the date good, but it can't store it back! It generates this error below 'ParametersInterceptor' ?
 
--
Thx, Milan

Milan Milanovic <milanmilanovich@(protected):
And when I add "value" attribute to this tag like this:

format="#yyyy-#MM-#dd" name="delivery.date" />

it generates and exception:

18:24:22,531 ERROR org.apache.struts2.components.DateTimePicker:316 - Could not parse date
java.text.ParseException: Unparseable date: "pregled.odPeriod"
at java.text.DateFormat.parse(Unknown Source)
at org.apache.struts2.components.DateTimePicker.format (DateTimePicker.java:309)
at org.apache.struts2.components.DateTimePicker.evaluateParams (DateTimePicker.java:202)
at org.apache.struts2.components.UIBean.end (UIBean.java:481)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag (ComponentTagSupport.java:43)
...


Milan Milanovic wrote:
It seems that there is a bug with tag. I defined it as in documentation:



I have delivery object in my action class with date field (of type java.util.Date) and all necessary get/set methods. But when I submit the form I get this error:

17:55:47,968 ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'delivery.date' on 'class com.myProject.actions.MyTestAction: Error setting expression 'delivery.date' with value '[Ljava.lang.String;@(protected)'

It seems that Struts 2 always send String for any type of tag and that it cannot set Date ?

--
Thx in advance, Milan





   

Attachment: user_186574.ezm (zipped)
Hi,

i did work with struts, and im work with it. But, i dont how, the value of
field are not send to Action class.. for example:

My forms have 3 fields.. text.. normal.. simple..

so, when i submit this the form only the last filed are set.

I put a System.out in my action class, and i see only the last field seted..
the other stay NULL...

Why?

Attachment: user_186577.ezm (zipped)
Felipe,

It would be much easier for others to help you if you would include relevant
parts of your code, as well as let us know what version of Struts you are
using.

jk

On Mon, May 19, 2008 at 2:15 PM, Felipe Lorenz <felipe.lorenz@(protected)>
wrote:

> Hi,
>
> i did work with struts, and im work with it. But, i dont how, the value of
> field are not send to Action class.. for example:
>
> My forms have 3 fields.. text.. normal.. simple..
>
> so, when i submit this the form only the last filed are set.
>
> I put a System.out in my action class, and i see only the last field
> seted..
> the other stay NULL...
>
> Why?
>



--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment: user_186575.ezm (zipped)
sol myr wrote:
>  What's the Strut2 recommendation for Table Pagination (AKA Paging)?
>  We're showing a large table (say, 500 records) and need to break it down to 25 pages (20 records per page).

http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html


Attachment: user_186576.ezm (zipped)
I was trying to upgrade from 2.0.9 to the latest Struts 2 and
encountered this issue:
http://issues.apache.org/struts/browse/WW-2107

If I have a lot of code like this:

<s:checkbox id="${transactionType}form_qoInceptionPPDO_${forStatus.index}"

name="qoInceptionPPDO_${forStatus.index}" theme="simple"

fieldValue="${requestScope[tmpVar]}" value="${not empty renewaledId ?
false : requestScope[tmpVar]}"
                                  onclick="${not empty
renewaledId ? 'return false' : ''}"

onchange="document.getElementById('${transactionType}form_qoInceptionPPDO_${forStatus.index}').value=document.getElementById('${transactionType}form_qoInceptionPPDO_${forStatus.index}').checked"/>

is there any 'easy' way of making it work with the latest Struts2?
If there is no easy way I will continue using Struts 2.0.9 since trying
to port that stuff will become a nightmare.


Attachment: user_186578.ezm (zipped)
Hoying, Ken wrote:
> Editorial: I cannot help but wonder if these consecutive painful
> upgrades are going to have an adverse affect on Struts2 adoption, future
> user base and perception. I have been a big proponent of Struts2 up
> till now, but must admit that I am finding myself questioning if there
> are not better frameworks with friendlier release strategies available.
> If it was a vendor rather than open source that did this to me, I would
> be one very unhappy customer.

Same here.
Not being able to use expressions inside struts tags is not acceptable.

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