Author Login
Post Reply
user Digest 15 Jul 2008 19:52:49 -0000 Issue 8143
Topics (messages 188923 through 188952):
Re: Struts 2.1 tags + JSTL EL?
188923 by: Jeromy Evans
Re: an issue with my Action class - help me
188924 by: Dave Newton
Re: Validator plugin error
188925 by: Dani
188926 by: Lukasz Lenart
188931 by: Dani
188932 by: Dave Newton
188935 by: Lukasz Lenart
188941 by: Dani
188942 by: Lukasz Lenart
188945 by: Dani
DateTimePicker
188927 by: Pablo Vázquez Blázquez
188928 by: ManiKanta G
Re: Struts 2 Ajax DEBUG: widget ID collision on ID: xxx Problem!?
188929 by: netslow
Re: web.xml servlet/filter-mappings
188930 by: Alberto A. Flores
Re: Struts2 and Jquery problem with LightBox or thickbox
188933 by: prashanth2
188934 by: Dave Newton
188944 by: prashanth2
188946 by: Struts Two
188947 by: Ian Roughley
188948 by: prashanth2
188949 by: prashanth2
188950 by: Ian Roughley
Javascript validation error
188936 by: Dimitris Mouchritsas
188940 by: Lukasz Lenart
Re: Controlling GET variables
188937 by: Tom Frost
Submit a struts form using javascript
188938 by: rapsy
188939 by: Lukasz Lenart
Re: Struts2 application doesn't work with Firefox 3
188943 by: thogau
Re: struts2 jsp s:set question
188951 by: Harden ZHU
View State
188952 by: Francisco Spaeth
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_188923.ezm (zipped)Oleg Mikheev wrote:
> Hi
>
>
> And, where can I find the changes between Struts 2 and 2.1?
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
Release notes and migration guides are also a good start:
2.1.2:
http://struts.apache.org/2.1.2/docs/version-notes-212.html
https://issues.apache.org/struts/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=21861
2.1.3
https://issues.apache.org/struts/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=21864
> Any 2.1 documentation available yet?
>
Latest:
http://struts.apache.org/2.x/index.html
Revision stamped at release time:
http://struts.apache.org/2.1.2/index.html
http://struts.apache.org/2.0.11.2/index.html
but as mentioned by Chris, the pages of the site that are wiki-generated
on-the-fly aren't version controlled and show the latest.

Attachment:
user_188924.ezm (zipped)--- On Tue, 7/15/08, Narayana S <narayanasgs1@(protected):
> I am new to struts 2. my page is having a list which
> is dynamically generated by action, so while calling
> the jsp page itself from a menu, I am calling URL
> "/mymodule1/EditEmployee.action", which is mapped to
> EditEmplyeeAction.java. first time when i am generating
> the page I am generating list values dynamically and returning
> *ActionSupport.INPUT*, if Save button is clicked on my page
> i am again going to the EditEmployeeAction and this time i am
> doing my process and returning *ActionSupport.SUCCESS*.
>
> but here the problem is, i have validation annotations
> implemented for all the fields, which are executed and
> reporting error messages when i am loading the page for
> the first time itself. but it should not happen to my
> page, first time it should be executed with out
> validations, and when save button is clicked only
> it should check for validations...
In addition to the information provided by Lukasz I'd add that typically this would be handled by (a) separate actions, or (b) by using the input() and execute() methods in a single action, accessed via separate action configurations (or dynamic method invocation if enabled).
Note that ActionSupport provides a default input() method that returns ActionSupport.INPUT, meaning (a) you write less code, and (b) the code you write is focused on a single task, rather than implementing a conditional that can be handled automatically by the framework.
An action's input() method will skip validation by default ([1], [2]). The list values may be created in either both input() and execute() methods, or perhaps more cleanly by implementing the Prepareable interface [3] used by the "prepare" interceptor [4].
Dave "Too much information" Newton
[1] "validation" interceptor:
http://struts.apache.org/2.x/docs/validation-interceptor.html
[2] Default S2 config defining "validation"'s skipped methods:
http://struts.apache.org/2.x/docs/struts-defaultxml.html
[3] Preparable interface:
http://struts.apache.org/2.1.2/struts2-core/apidocs/index.html
[4] "prepare" interceptor:
http://struts.apache.org/2.x/docs/prepare-interceptor.html

Attachment:
user_188925.ezm (zipped)
Attachment:
user_188926.ezm (zipped)Check this
http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312
Maybe either you have duplicated commons-validator.jar or in wrong version?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188931.ezm (zipped)Lukasz Lenart escribió:
> Check this
>
> http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312
>
> Maybe either you have duplicated commons-validator.jar or in wrong version?
>
>
> Regards
>
I have updated commons-validator.jar to latest version 1.3.1 replacing
the jar file in /WEB-INF/lib
Now I get the following error on loading Tomcat:
15-jul-2008 15:06:33
org.apache.commons.digester.Digester fatalError
GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
Should I update the depencies of commons-validator 1.3.1. as shown in
this link?
http://mvnrepository.com/artifact/commons-validator/commons-validator/1.3.1
I´ve been "googling" around but didn´t see any clues.
Regards,

Attachment:
user_188932.ezm (zipped)--- On Tue, 7/15/08, Dani <danipruebas@(protected):
> Should I update the depencies of commons-validator 1.3.1.
> as shown in this link?
Well yes; you can't just update a library and assume that it will work without its dependencies.
Dave

Attachment:
user_188935.ezm (zipped)> 15-jul-2008 15:06:33
org.apache.commons.digester.Digester fatalError
> GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
>
org.xml.sax.SAXParseException: Premature end of file.
You should also change dtd headers for validator-rules.xml and
validations.xml to reflect new common-validator.jar
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188941.ezm (zipped)Hi again,
After updating all the dependencies and changing the DTD for the
validation.xml and validation-rules.xml:
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD
Commons Validator Rules Configuration 1.3.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd";>
I get the following warning:
file cannot be validated as the host "jakarta.apache.org" is currently
unreachable
I suposed I can specify a path in local to the DTD, but I wouldn´t like to
do it.
As a possible clue, I haven´t got Internet connection in the laptop i´m
developing the project (only at home).
Any suggestions? Thx
----- Original Message -----
From: "Lukasz Lenart" <lukasz.lenart@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Tuesday, July 15, 2008 3:36 PM
Subject: Re: Validator plugin error
>> 15-jul-2008 15:06:33
org.apache.commons.digester.Digester fatalError
>> GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
>>
org.xml.sax.SAXParseException: Premature end of file.
>
> You should also change dtd headers for validator-rules.xml and
> validations.xml to reflect new common-validator.jar
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
> Email procesado por MailFoundry
>

Attachment:
user_188942.ezm (zipped)As I remember, there is a bug with this, out dtd to WEB-INF and add
reference to it
http://www.developerdotstar.com/community/node/472
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188945.ezm (zipped)OMG, this is an EPIC FAIL : )
Yes, i have saved and referenced it in WEB-INF.
Best regards,
----- Original Message -----
From: "Lukasz Lenart" <lukasz.lenart@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Tuesday, July 15, 2008 7:23 PM
Subject: Re: Validator plugin error
> As I remember, there is a bug with this, out dtd to WEB-INF and add
> reference to it
> http://www.developerdotstar.com/community/node/472
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
> Email procesado por MailFoundry
>

Attachment:
user_188927.ezm (zipped)Hello,
I have several problems with DateTimePicker widget used for selecting
times (type="time")
a) If no time is in the text input, I can´t write (without using the
widget) any. I can use the widget, but I also would like to be able to
write it by myself.
b) If a time value is in the input text, when I want to edit the time
value, I can only set 5 multiples values (if I write 10:01 it is
converted to 10:00).
Thanks.

Attachment:
user_188928.ezm (zipped)I would suggest Struts2JSCalendar plug-in, which has lot of
features,which is working fine for me.
http://code.google.com/p/struts2jscalendarplugin/
Regards,
ManiKanta
Pablo Vázquez Blázquez wrote:
> Hello,
>
> I have several problems with DateTimePicker widget used for selecting
> times (type="time")
>
>
> a) If no time is in the text input, I can´t write (without using the
> widget) any. I can use the widget, but I also would like to be able to
> write it by myself.
>
> b) If a time value is in the input text, when I want to edit the time
> value, I can only set 5 multiples values (if I write 10:01 it is
> converted to 10:00).
>
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)

Attachment:
user_188929.ezm (zipped)
I have the same problem. And, as I think, it causes the following error:
"WARNING: Parameters: Invalid chunk ignored". I have a lot of files, and I
won't post them for now.
Any ideas?
Noob2k8 wrote:
>
> Hi,
>
> ive got a small problem with a simple Ajax example.
>
> My whole app is too big so ive created a small example which produces the
> same error.
>
> ajaxTest.jsp
>
> <%@(protected)"
> pageEncoding="ISO-8859-1"%>
> <%@(protected)" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <s:head theme="ajax" debug="true"/>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <title>Insert title here</title>
>
> </head>
> <body>
>
>
> <s:a theme="ajax" href="asTest.jsp" targets="a1" >try it</s:a>
>
>
> <s:div id="a1" cssStyle="height:300px;width:300px;">
>
> </s:div>
>
> </body>
> </html>
>
> -----------------------------------
>
> asTest.jsp
>
> <%@(protected)" %>
>
> Test1
> <s:div executeScripts="true" theme="ajax" id="new3423"
> href="test.jsp"></s:div>
>
>
> -------------------------------------
>
> test.jsp:
>
> <p>
> test.jsp
> ....
> </p>
>
> ------------------------------------
>
>
> if i click more than once on the link "try it" i get the following error:
>
> DEBUG: widget ID collision on ID: new3423
>
> the last few hours ive tried to fix this problem.. but no luck.
>
> i hope someone here can help me out.
>
> Thx in advance
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188930.ezm (zipped)Also, please remember that the order of the <filter-mapping> in web.xml
is VERY important.
Don Brown wrote:
> Could you post more information? Struts should only be responding to
> URI's that contain configured extensions via the
> struts.action.extension setting, which defaults to "action".
>
> Don
>
> On Tue, Jul 15, 2008 at 7:01 PM, Mikkel Lindhard <mlindhard@(protected):
>> Hello list
>>
>> I have an web-application which use both Struts 2 and Axis 2.
>>
>> Before struts 2.1 i didn't have a problem using the following configuration
>> in web-xml
>>
>> <servlet-mapping>
>> <servlet-name>AxisServlet</servlet-name>
>> <url-pattern>/services/*</url-pattern>
>> </servlet-mapping>
>>
>> <filter-mapping>
>> <filter-name>struts2</filter-name>
>> <url-pattern>/*</url-pattern>
>> </filter-mapping>
>>
>> The problem with Struts2.1.x is that the /service/xxx calls are taken over
>> by the struts filter even though it doesnt have a mapping for it.
>>
>> is there a way i can configure struts to not handle the request if the
>> mapping doesnt exist?
>>
>> Or might there be another solution? :)
>>
>> Thanks in advance.
>>
>> Mikkel
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Alberto A. Flores
http://www.linkedin.com/in/aflores

Attachment:
user_188933.ezm (zipped)CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK BOX>>
prashanth2 wrote:
>
> I tried to implement thickbox functionality in a jsp ,to display iframe in
> a thickbox. If I use a simple a href using a jsp,thickbox works fine, but
> if i use s:url with *.action as the url ,and if i pass height,width
> attributes ,iam getting an error .I tried removing height and width, but
> iam getting an exception saying ParametersInterceptor exception using
> "random" ."Random" variable is used by jQuery.js internally.
>
> If i can not use Jquery 'thickbox, what other frameworks support thickbox
> kind of functionality, as i need thick box to show some dynamic
> content,such as user's information or it can be a form submit.
>
>
> Jul 2, 2008 3:39:54 PM
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'height' on 'class com.hicom.web.action.UserSignupAction:
> Error setting expression 'height' with value
> '[Ljava.lang.String;@(protected)'
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188934.ezm (zipped)DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
--- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
> From: prashanth2 <munigala.prashanth@(protected)>
> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
> To: user@(protected)
> Date: Tuesday, July 15, 2008, 9:17 AM
> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
> BOX>>
>
> prashanth2 wrote:
> >
> > I tried to implement thickbox functionality in a jsp
> ,to display iframe in
> > a thickbox. If I use a simple a href using a
> jsp,thickbox works fine, but
> > if i use s:url with *.action as the url ,and if i pass
> height,width
> > attributes ,iam getting an error .I tried removing
> height and width, but
> > iam getting an exception saying ParametersInterceptor
> exception using
> > "random" ."Random" variable is
> used by jQuery.js internally.
> >
> > If i can not use Jquery 'thickbox, what other
> frameworks support thickbox
> > kind of functionality, as i need thick box to show
> some dynamic
> > content,such as user's information or it can be a
> form submit.
> >
> >
> > Jul 2, 2008 3:39:54 PM
> >
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor> setParameters
> > SEVERE: ParametersInterceptor - [setParameters]:
> Unexpected Exception
> > caught setting 'height' on 'class
> com.hicom.web.action.UserSignupAction:
> > Error setting expression 'height' with value
> > '[Ljava.lang.String;@(protected)'
> >
>
> --
> View this message in context:
> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment:
user_188944.ezm (zipped)I dont understand what u asked, anyways iam getting the below exception, and
thickbox/lightbox never opened for me.
Jul 2, 2008 3:39:54 PM
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
setting expression 'height' with value '[Ljava.lang.String;@(protected)'
newton.dave wrote:
>
> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>
>
> --- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
>
>> From: prashanth2 <munigala.prashanth@(protected)>
>> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>> To: user@(protected)
>> Date: Tuesday, July 15, 2008, 9:17 AM
>> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
>> BOX>>
>>
>> prashanth2 wrote:
>> >
>> > I tried to implement thickbox functionality in a jsp
>> ,to display iframe in
>> > a thickbox. If I use a simple a href using a
>> jsp,thickbox works fine, but
>> > if i use s:url with *.action as the url ,and if i pass
>> height,width
>> > attributes ,iam getting an error .I tried removing
>> height and width, but
>> > iam getting an exception saying ParametersInterceptor
>> exception using
>> > "random" ."Random" variable is
>> used by jQuery.js internally.
>> >
>> > If i can not use Jquery 'thickbox, what other
>> frameworks support thickbox
>> > kind of functionality, as i need thick box to show
>> some dynamic
>> > content,such as user's information or it can be a
>> form submit.
>> >
>> >
>> > Jul 2, 2008 3:39:54 PM
>> >
>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor>> setParameters
>> > SEVERE: ParametersInterceptor - [setParameters]:
>> Unexpected Exception
>> > caught setting 'height' on 'class
>> com.hicom.web.action.UserSignupAction:
>> > Error setting expression 'height' with value
>> > '[Ljava.lang.String;@(protected)'
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail:
>> user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188946.ezm (zipped)What was meant is:
Does you applicaiton functionsas expected despite the exception you see on ur console or the exception brings your application (or some functionality) to a halt.
----- Original Message ----
From: prashanth2 <munigala.prashanth@(protected)>
To: user@(protected)
Sent: Tuesday, July 15, 2008 1:46:49 PM
Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
I dont understand what u asked, anyways iam getting the below exception, and
thickbox/lightbox never opened for me.
Jul 2, 2008 3:39:54 PM
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
setting expression 'height' with value '[Ljava.lang.String;@(protected)'
newton.dave wrote:
>
> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>
>
> --- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
>
>> From: prashanth2 <munigala.prashanth@(protected)>
>> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>> To: user@(protected)
>> Date: Tuesday, July 15, 2008, 9:17 AM
>> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
>> BOX>>
>>
>> prashanth2 wrote:
>> >
>> > I tried to implement thickbox functionality in a jsp
>> ,to display iframe in
>> > a thickbox. If I use a simple a href using a
>> jsp,thickbox works fine, but
>> > if i use s:url with *.action as the url ,and if i pass
>> height,width
>> > attributes ,iam getting an error .I tried removing
>> height and width, but
>> > iam getting an exception saying ParametersInterceptor
>> exception using
>> > "random" ."Random" variable is
>> used by jQuery.js internally.
>> >
>> > If i can not use Jquery 'thickbox, what other
>> frameworks support thickbox
>> > kind of functionality, as i need thick box to show
>> some dynamic
>> > content,such as user's information or it can be a
>> form submit.
>> >
>> >
>> > Jul 2, 2008 3:39:54 PM
>> >
>>
com.opensymphony.xwork2..interceptor.ParametersInterceptor>> setParameters
>> > SEVERE: ParametersInterceptor - [setParameters]:
>> Unexpected Exception
>> > caught setting 'height' on 'class
>> com.hicom.web.action.UserSignupAction:
>> > Error setting expression 'height' with value
>> > '[Ljava.lang.String;@(protected)'
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail:
>> user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com..
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
__________________________________________________________________
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

Attachment:
user_188947.ezm (zipped)I've used lightbox successfully without problem. If this is the error
message it looks like you are passing the height and width attributes as
URL params and they are being applied against the action (hence the
error). I bet (I don't have the code anymore) these are instead meant
to be passed to the jQuery plugin - perhaps as HTML attributes.
/Ian
prashanth2 wrote:
> I dont understand what u asked, anyways iam getting the below exception, and
> thickbox/lightbox never opened for me.
>
> Jul 2, 2008 3:39:54 PM
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
> setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
> setting expression 'height' with value '[Ljava.lang.String;@(protected)'
>
> newton.dave wrote:
>
>> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>>
>>
>> --- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
>>
>>
>>> From: prashanth2 <munigala.prashanth@(protected)>
>>> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>>> To: user@(protected)
>>> Date: Tuesday, July 15, 2008, 9:17 AM
>>> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
>>> BOX>>
>>>
>>> prashanth2 wrote:
>>>
>>>> I tried to implement thickbox functionality in a jsp
>>>>
>>> ,to display iframe in
>>>
>>>> a thickbox. If I use a simple a href using a
>>>>
>>> jsp,thickbox works fine, but
>>>
>>>> if i use s:url with *.action as the url ,and if i pass
>>>>
>>> height,width
>>>
>>>> attributes ,iam getting an error .I tried removing
>>>>
>>> height and width, but
>>>
>>>> iam getting an exception saying ParametersInterceptor
>>>>
>>> exception using
>>>
>>>> "random" ."Random" variable is
>>>>
>>> used by jQuery.js internally.
>>>
>>>> If i can not use Jquery 'thickbox, what other
>>>>
>>> frameworks support thickbox
>>>
>>>> kind of functionality, as i need thick box to show
>>>>
>>> some dynamic
>>>
>>>> content,such as user's information or it can be a
>>>>
>>> form submit.
>>>
>>>> Jul 2, 2008 3:39:54 PM
>>>>
>>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor>>> setParameters
>>>
>>>> SEVERE: ParametersInterceptor - [setParameters]:
>>>>
>>> Unexpected Exception
>>>
>>>> caught setting 'height' on 'class
>>>>
>>> com.hicom.web.action.UserSignupAction:
>>>
>>>> Error setting expression 'height' with value
>>>> '[Ljava.lang.String;@(protected)'
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
>>> Sent from the Struts - User mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail:
>>> user-help@(protected)
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>

Attachment:
user_188948.ezm (zipped)I tried removing the height and width attributes as URL parameters, but the
problem is JQuery internally uses a variable 'random', so s2 complains
ParametersInterceptor exception. Great to hear tht u have a working sample,
could u pl tell me, was that u were displaying dynamic content or static
content. And which ajax framework have u used for thick/light box.
In My case I need to get the data from DB, and display accordingly on the
THICKBOX.
An early reply would be appreciatable.
Thanks
Ian Roughley wrote:
>
> I've used lightbox successfully without problem. If this is the error
> message it looks like you are passing the height and width attributes as
> URL params and they are being applied against the action (hence the
> error). I bet (I don't have the code anymore) these are instead meant
> to be passed to the jQuery plugin - perhaps as HTML attributes.
>
> /Ian
>
> prashanth2 wrote:
>> I dont understand what u asked, anyways iam getting the below exception,
>> and
>> thickbox/lightbox never opened for me.
>>
>> Jul 2, 2008 3:39:54 PM
>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>> caught
>> setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
>> setting expression 'height' with value '[Ljava.lang.String;@(protected)'
>>
>> newton.dave wrote:
>>
>>> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>>>
>>>
>>> --- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
>>>
>>>
>>>> From: prashanth2 <munigala.prashanth@(protected)>
>>>> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>>>> To: user@(protected)
>>>> Date: Tuesday, July 15, 2008, 9:17 AM
>>>> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
>>>> BOX>>
>>>>
>>>> prashanth2 wrote:
>>>>
>>>>> I tried to implement thickbox functionality in a jsp
>>>>>
>>>> ,to display iframe in
>>>>
>>>>> a thickbox. If I use a simple a href using a
>>>>>
>>>> jsp,thickbox works fine, but
>>>>
>>>>> if i use s:url with *.action as the url ,and if i pass
>>>>>
>>>> height,width
>>>>
>>>>> attributes ,iam getting an error .I tried removing
>>>>>
>>>> height and width, but
>>>>
>>>>> iam getting an exception saying ParametersInterceptor
>>>>>
>>>> exception using
>>>>
>>>>> "random" ."Random" variable is
>>>>>
>>>> used by jQuery.js internally.
>>>>
>>>>> If i can not use Jquery 'thickbox, what other
>>>>>
>>>> frameworks support thickbox
>>>>
>>>>> kind of functionality, as i need thick box to show
>>>>>
>>>> some dynamic
>>>>
>>>>> content,such as user's information or it can be a
>>>>>
>>>> form submit.
>>>>
>>>>> Jul 2, 2008 3:39:54 PM
>>>>>
>>>>>
>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor>>>> setParameters
>>>>
>>>>> SEVERE: ParametersInterceptor - [setParameters]:
>>>>>
>>>> Unexpected Exception
>>>>
>>>>> caught setting 'height' on 'class
>>>>>
>>>> com.hicom.web.action.UserSignupAction:
>>>>
>>>>> Error setting expression 'height' with value
>>>>> '[Ljava.lang.String;@(protected)'
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
>>>> Sent from the Struts - User mailing list archive at
>>>> Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail:
>>>> user-help@(protected)
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188949.ezm (zipped)I see the error on my console, my app never got halt.
Struts Two wrote:
>
> What was meant is:
> Does you applicaiton functionsas expected despite the exception you see on
> ur console or the exception brings your application (or some
> functionality) to a halt.
>
> ----- Original Message ----
> From: prashanth2 <munigala.prashanth@(protected)>
> To: user@(protected)
> Sent: Tuesday, July 15, 2008 1:46:49 PM
> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>
>
>
> I dont understand what u asked, anyways iam getting the below exception,
> and
> thickbox/lightbox never opened for me.
>
> Jul 2, 2008 3:39:54 PM
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught
> setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
> setting expression 'height' with value '[Ljava.lang.String;@(protected)'
>
> newton.dave wrote:
>>
>> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>>
>>
>> --- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
>>
>>> From: prashanth2 <munigala.prashanth@(protected)>
>>> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>>> To: user@(protected)
>>> Date: Tuesday, July 15, 2008, 9:17 AM
>>> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
>>> BOX>>
>>>
>>> prashanth2 wrote:
>>> >
>>> > I tried to implement thickbox functionality in a jsp
>>> ,to display iframe in
>>> > a thickbox. If I use a simple a href using a
>>> jsp,thickbox works fine, but
>>> > if i use s:url with *.action as the url ,and if i pass
>>> height,width
>>> > attributes ,iam getting an error .I tried removing
>>> height and width, but
>>> > iam getting an exception saying ParametersInterceptor
>>> exception using
>>> > "random" ."Random" variable is
>>> used by jQuery.js internally.
>>> >
>>> > If i can not use Jquery 'thickbox, what other
>>> frameworks support thickbox
>>> > kind of functionality, as i need thick box to show
>>> some dynamic
>>> > content,such as user's information or it can be a
>>> form submit.
>>> >
>>> >
>>> > Jul 2, 2008 3:39:54 PM
>>> >
>>>
com.opensymphony.xwork2..interceptor.ParametersInterceptor>>> setParameters
>>> > SEVERE: ParametersInterceptor - [setParameters]:
>>> Unexpected Exception
>>> > caught setting 'height' on 'class
>>> com.hicom.web.action.UserSignupAction:
>>> > Error setting expression 'height' with value
>>> > '[Ljava.lang.String;@(protected)'
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
>>> Sent from the Struts - User mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail:
>>> user-help@(protected)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18471126.html
> Sent from the Struts - User mailing list archive at Nabble.com..
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> __________________________________________________________________
> Connect with friends from any web browser - no download required. Try the
> new Yahoo! Canada Messenger for the Web BETA at
> http://ca.messenger.yahoo.com/webmessengerpromo.php
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188950.ezm (zipped)I can't remember the framework used now (customer code), but it was
displaying dynamically generated code.
The random property is not your problem - s2 is reporting the problem,
but should be continuing execution (have you debugged/logged to check
this?). If you want to stop the error message, take a look at the
http://struts.apache.org/2.1.2/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ParametersInterceptor.html
- in particular the "excludeMethods" parameter.
Until you sort out what the underlying problem is, I would recommend
using a <a href="" /> and place the action name or s:property in the
href value.
/Ian
prashanth2 wrote:
> I tried removing the height and width attributes as URL parameters, but the
> problem is JQuery internally uses a variable 'random', so s2 complains
> ParametersInterceptor exception. Great to hear tht u have a working sample,
> could u pl tell me, was that u were displaying dynamic content or static
> content. And which ajax framework have u used for thick/light box.
>
> In My case I need to get the data from DB, and display accordingly on the
> THICKBOX.
>
> An early reply would be appreciatable.
> Thanks
>
> Ian Roughley wrote:
>
>> I've used lightbox successfully without problem. If this is the error
>> message it looks like you are passing the height and width attributes as
>> URL params and they are being applied against the action (hence the
>> error). I bet (I don't have the code anymore) these are instead meant
>> to be passed to the jQuery plugin - perhaps as HTML attributes.
>>
>> /Ian
>>
>> prashanth2 wrote:
>>
>>> I dont understand what u asked, anyways iam getting the below exception,
>>> and
>>> thickbox/lightbox never opened for me.
>>>
>>> Jul 2, 2008 3:39:54 PM
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught
>>> setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
>>> setting expression 'height' with value '[Ljava.lang.String;@(protected)'
>>>
>>> newton.dave wrote:
>>>
>>>
>>>> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>>>>
>>>>
>>>> --- On Tue, 7/15/08, prashanth2 <munigala.prashanth@(protected):
>>>>
>>>>
>>>>
>>>>> From: prashanth2 <munigala.prashanth@(protected)>
>>>>> Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
>>>>> To: user@(protected)
>>>>> Date: Tuesday, July 15, 2008, 9:17 AM
>>>>> CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
>>>>> BOX>>
>>>>>
>>>>> prashanth2 wrote:
>>>>>
>>>>>
>>>>>> I tried to implement thickbox functionality in a jsp
>>>>>>
>>>>>>
>>>>> ,to display iframe in
>>>>>
>>>>>
>>>>>> a thickbox. If I use a simple a href using a
>>>>>>
>>>>>>
>>>>> jsp,thickbox works fine, but
>>>>>
>>>>>
>>>>>> if i use s:url with *.action as the url ,and if i pass
>>>>>>
>>>>>>
>>>>> height,width
>>>>>
>>>>>
>>>>>> attributes ,iam getting an error .I tried removing
>>>>>>
>>>>>>
>>>>> height and width, but
>>>>>
>>>>>
>>>>>> iam getting an exception saying ParametersInterceptor
>>>>>>
>>>>>>
>>>>> exception using
>>>>>
>>>>>
>>>>>> "random" ."Random" variable is
>>>>>>
>>>>>>
>>>>> used by jQuery.js internally.
>>>>>
>>>>>
>>>>>> If i can not use Jquery 'thickbox, what other
>>>>>>
>>>>>>
>>>>> frameworks support thickbox
>>>>>
>>>>>
>>>>>> kind of functionality, as i need thick box to show
>>>>>>
>>>>>>
>>>>> some dynamic
>>>>>
>>>>>
>>>>>> content,such as user's information or it can be a
>>>>>>
>>>>>>
>>>>> form submit.
>>>>>
>>>>>
>>>>>> Jul 2, 2008 3:39:54 PM
>>>>>>
>>>>>>
>>>>>>
>>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor>>>>> setParameters
>>>>>
>>>>>
>>>>>> SEVERE: ParametersInterceptor - [setParameters]:
>>>>>>
>>>>>>
>>>>> Unexpected Exception
>>>>>
>>>>>
>>>>>> caught setting 'height' on 'class
>>>>>>
>>>>>>
>>>>> com.hicom.web.action.UserSignupAction:
>>>>>
>>>>>
>>>>>> Error setting expression 'height' with value
>>>>>> '[Ljava.lang.String;@(protected)'
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
>>>>> Sent from the Struts - User mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail:
>>>>> user-help@(protected)
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>

Attachment:
user_188936.ezm (zipped)Hi all,
I'm trying to use javascript validation with validator, as well as
server side validation.
Server side validation works just great. But when I try to use client
side validation I
get a validateRequired not found error.
This is my jsp:
....
<html:javascript formName="LoginForm" />
<html:form action="/login" onsubmit="return validateLoginForm(this)">
....
and this is the result produced from the tags:
.....
<script type="text/javascript">
//<![CDATA[
var bCancel = false;
function validateLoginForm(form) {
if (bCancel) {
return true;
} else {
var formValidationResult;
formValidationResult = validateRequired(form);
return (formValidationResult == 1);
}
}
function LoginForm_required () {
this.a0 = new Array("username", "Username is required.", new Function ("varName", " return this[varName];"));
this.a1 = new Array("password", "Password is required.", new Function ("varName", " return this[varName];"));
}
//]]>
</script>
<form id="LoginForm" method="post" action="/ceproc/login.do" onsubmit="return validateLoginForm(this)">
.......
Now I understand why the error happens, but where do I locate this
validateRequired function? How do I include it in my jsp?
Thanks
Dimitris

Attachment:
user_188940.ezm (zipped)It should be rendered just before your validations, it's called Static
JavaScript [1], check if you has it.
[1] http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#html:javascript
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188937.ezm (zipped)
That's what I needed! Thank you :)
Tom
Lukasz Lenart wrote:
>
> Hi,
>
> I'm not sure what you want to achieve, but maybe you should take a
> look at s:url tag [1], you can define parameters as you want.
>
> [1] http://struts.apache.org/2.1.2/docs/url.html
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188938.ezm (zipped)
I am using struts 1.1 and having problem submitting first form from inside
the second form.
What happens when the first form is submitted from the second form using
javascript? Does it call the 'execute" method of first form?
For example:
Here is the code:
<form name='secondForm' method='post' action='secondForm.do'>
<input type="submit" name="method" value="Go"
onclick="javascript:document.forms['firstForm'].submit();" />
</form>
In the above code, "firstForm" is a struts form and it not getting
submitted. The values are getting lost.
The weird thing is works on my local machine but when I deploy on production
server it doesn't work. Any help is greatly appreciated.
Thank you!
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188939.ezm (zipped)> I am using struts 1.1 and having problem submitting first form from inside
> the second form.
> What happens when the first form is submitted from the second form using
> javascript? Does it call the 'execute" method of first form?
I don't understand exactly what you mean, when you talk about "inside
form", could you show some real page?
> For example:
> Here is the code:
> <form name='secondForm' method='post' action='secondForm.do'>
>
> <input type="submit" name="method" value="Go"
> onclick="javascript:document.forms['firstForm'].submit();" />
> </form>
>
> In the above code, "firstForm" is a struts form and it not getting
> submitted. The values are getting lost.
What you mean "not getting submitted"? Do you have any JavaScript error or what?
> The weird thing is works on my local machine but when I deploy on production
> server it doesn't work. Any help is greatly appreciated.
Do you have locally the same server as on production? Did you try to
access application which is running on your dev machine from some
other computer?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188943.ezm (zipped)
Thanks for the link Dave, I can't test it right now but at least I have
something to show to my customers.
Frankly, I don't really get the 'why' it's not working and I don't get
eather why it's not failing in 100% of requests...
I simply hope the concerned folks will fix this so as I don't have to ask my
customers to tweak their browser if they want to use my software...
BTW here is the link for those like me who would spend time in searching it
in this list (it is in the dev list) :
http://dojotoolkit.org/support/faq/why-does-dojo-fail-load-file-urls-firefox-3
newton.dave wrote:
>
> There *is* a workaround, and I provided the link for it yesterday.
>
> Dave
>
-----
http://www.thogau.net --thogau
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188951.ezm (zipped)So Is there anyway that I can expose the OGNL variable to jsp and have
direct access like <%=company.formartName("aa")%>?
Thanks.
On Tue, Jul 15, 2008 at 1:23 AM, Lukasz Lenart
<lukasz.lenart@(protected):
> Hi,
>
> s:set tag [1] put variable in given OGNL scope, try to use
> scope=request or you can try to use <s:property
> value="%{#company.formartName('aa')}" />
>
> [1] http://struts.apache.org/2.1.2/docs/set.html
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188952.ezm (zipped)Hello...
Is there any way to create a view state like ASP.Net does to retain action
properties and load them before execute action methods? I do it with
serialization but it is a little bit a manual work :).
Thanks in advance.
Francisco Spaeth