[ANN] Struts 2.0.11.2 General Availability Release with Important Security Fix

2008-07-15 Thread Rene Gielen
Apache Struts 2.0.11.2 is now available from
.

This release is a fast track security fix release, including a security
fixed version 2.0.5 of XWork, which corrects a serious vulnerability in
ParametersInterceptor allowing malicious users to remotely change server
side context objects. For more information about the exploit, visit our
security bulletins page at
.

IMPORTANT ADDITIONAL NOTES:
There are two known issues with this release:
1. the integrated XWork 2.0.5 jar may cause problems when used in a
combination of WebSphere 6.1 runtime environments with validation
configuration via XML files.
Possible Workarounds:
- use annotation based validation definition instead XML based
- stay with Struts 2.0.11.1 including XWork 2.0.4, applying the
  following exclude rule to your parameter interceptor refs in
  struts.xml
  
  .*[[^\\p{Graph}][#:=]].*
  
2. the filtering mechanism implemeted in XWork's ParametersInterceptor
to fix the described security issue does not completely avoid any
possible malicious parameter name.
Possible Workaround:
- apply the following exclude rule to your parameter interceptor refs in
  struts.xml to avoid the usage of backslash characters in parameter
  names
  
  .*\\.*
  
Both issues will be addressed in a soon upcoming XWork 2.0.6 release,
followed by a new Struts 2.0 GA release including this new XWork version.

* All developers are advised to either update Struts 2 applications to
Struts 2.0.11.2 or manually exchange usages of xwork-2.0.x.jar with the
fixed xwork-2.0.5.jar to prevent remotety induced context manipulations.

For the complete release notes for Struts 2.0.11.2, see
.


- The Apache Struts Team.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts menu problem

2008-07-15 Thread nauke .
Hi,

Thanks for replying.
It occurs in firefox too.
the customer for this will predominantly use IE so will have to get it
working for IE in the end anyway :( :( :(

On Wed, Jul 16, 2008 at 4:04 PM, Lukasz Lenart <[EMAIL PROTECTED]>
wrote:

> Try with other browser than IE, it looks like a common problem in IE
> with layering.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: struts menu problem

2008-07-15 Thread Lukasz Lenart
Try with other browser than IE, it looks like a common problem in IE
with layering.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit a struts form using javascript

2008-07-15 Thread Lukasz Lenart
> I am trying to submit two forms at once.

Khe? As I know, it isn't possible. If you send them to the same
action, just use one form for all the fields. If you send them to
separated actions (different action attribute), you have to made two
request at the same time, but there isn't something like
multithreading in JavaScript/WebBrowser ;-)
It can works if you will use AJAX to submit values.

> The first form is being submitted by "onclick" event which calls javascript
> form.submit()

An the request goes... and browser is waiting for response

> and the second form is submitted by submit button itself when
> it is clicked. The first form submission is failing i.e when I try to
> retrieve the values of the first form later in the application it is blank.

And probably, the second request override the first one, that's why
you got blank form.

> It is working on local machine but not on production server. Can there be
> some network latency issue?

Did you try access your local machine from other computer? Web browser
can behave differently base on localhost address, it allows for more
for localhost, than for remote address. Try to access your local
version from some other computer.

> Is there a better way to submit two forms?

AJAX


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2 jsp s:set question

2008-07-15 Thread Lukasz Lenart
> In struts1.x, there is tag like "bean:define". Anything like in struts2?

The problem is in OGNL, which is using ValueStack, it's totally
separated from common request objects.
I don't understand why you want to access variable in <% %> ? It's is
good for constants and not for logic. As I show you, you can call
directly methods from actions or other classes (static for example).
It's much more clean solution.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: an issue with my Action class - help me

2008-07-15 Thread Narayana S
Thanks Dave and Lukasz,

i got the concept, and solved the issue.

Thank you very much.

On Tue, Jul 15, 2008 at 4:47 PM, Dave Newton <[EMAIL PROTECTED]> wrote:

> --- On Tue, 7/15/08, Narayana S <[EMAIL PROTECTED]> wrote:
> > 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
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts tags ID generation

2008-07-15 Thread Wes Wannemacher
Sure, specify your own id attribute...

-Wes

On Wed, 2008-07-16 at 15:45 +1000, Phan Le wrote:
> Thanks for the response Wes, I do use maven to build.
> Is there anyway that I can force struts NOT to auto-generate IDs for  
> me? any properties?
> Thanks
> 
> 
> On 16/07/2008, at 3:15 PM, Wes Wannemacher wrote:
> 
> > Struts 2 will create an id for you when using it's built-in tags. I've
> > never seen it quite as long as yours... Perhaps you built from a maven
> > archetype and might have passed in some parameters wrong?
> >
> > When you leave it up to struts, it will generate unique ids and it  
> > will
> > work w/o intervention. It also works fine if you specify an id, so  
> > it's
> > mostly a matter of preference and whether or not you need to know  
> > the id
> > for some added javascript.
> >
> > -Wes
> >
> > On Wed, 2008-07-16 at 14:33 +1000, Phan Le wrote:
> >> Hi there,
> >> I am new to this mailing list and currently experiencing strange
> >> behavior when rendering ids for HTML elements.
> >> I have something like this in my HTML code
> >>
> >>  >>  class="fieldWrap" id="wwctrl_com.mycompany.profile:profile-app:war:
> >> 0.0.1-SNAPSHOT">
> >> I didn't specify any id in my  tag
> >>
> >> Any one know how Struts 2 do this?
> >> Thanks
> >>
> >>
> >>
> >>
> >> This email, including attachments, is intended only for the addressee
> >> and may be confidential, privileged and subject to copyright.  If you
> >> have received this email in error, please advise the sender and  
> >> delete
> >> it.  If you are not the intended recipient of this email, you must  
> >> not
> >> communicate to others content that is confidential or subject to
> >> copyright, unless you have the consent of the content owner.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts tags ID generation

2008-07-15 Thread Phan Le

Thanks for the response Wes, I do use maven to build.
Is there anyway that I can force struts NOT to auto-generate IDs for  
me? any properties?

Thanks


On 16/07/2008, at 3:15 PM, Wes Wannemacher wrote:


Struts 2 will create an id for you when using it's built-in tags. I've
never seen it quite as long as yours... Perhaps you built from a maven
archetype and might have passed in some parameters wrong?

When you leave it up to struts, it will generate unique ids and it  
will
work w/o intervention. It also works fine if you specify an id, so  
it's
mostly a matter of preference and whether or not you need to know  
the id

for some added javascript.

-Wes

On Wed, 2008-07-16 at 14:33 +1000, Phan Le wrote:

Hi there,
I am new to this mailing list and currently experiencing strange
behavior when rendering ids for HTML elements.
I have something like this in my HTML code


I didn't specify any id in my  tag

Any one know how Struts 2 do this?
Thanks




This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and  
delete
it.  If you are not the intended recipient of this email, you must  
not

communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.1 tags + JSTL EL?

2008-07-15 Thread Chris Pratt
The Struts 2 Tag Libraries are completely written around OGNL and
FreeMarker, which makes it hard to remove either of those technologies
from the stack.

I have written some tags, not based on the Struts 2 component support,
that safely allow both JSTL and OGNL EL's and don't rely on
FreeMarker.  They seem to work quite well and I've grown quite fond of
them (obviously).
  (*Chris*)


On Tue, Jul 15, 2008 at 9:56 PM, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
> Chris Pratt wrote:
>>
>> I proposed a method of enabling JSTL EL safely a while ago, but I
>> haven't heard anything (or had any time to actually do anything about
>> it myself).
>
> But if they had to get rid of one of two ELs why did they decide to
> keep OGNL?
> Isn't JSTL more popular and more standard?
>
> Oleg
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts2 file (how to define files of type)

2008-07-15 Thread Nicole Luneburg
oh bummer that sucks :(
I just read that comment from the link you sent me:

"Current browsers generally ignore the ACCEPT attribute."

Grrr

Thanks for showing me that, I won't give up just yet so fingers crossed!
Maybe there's a workaround hehe!

Nicole

-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 July 2008 2:49 PM
To: Struts Users Mailing List
Subject: Re: struts2 file (how to define files of type)

I could be wrong, but I don't think there is a reliable method to
accomplish what you're looking for...

http://htmlhelp.com/reference/html40/forms/input.html#file

Although it looks like it's part of the spec, I think browsers ignore
attempts at setting "accept"



On Wed, 2008-07-16 at 14:06 +0930, Nicole Luneburg wrote:
> Hi all,
>
> Got another prob that I've also been trying to fix for a while ...
> I have a file upload tag like:
>
> 
>
> I want to be able to specify what types of files are shown in the File Upload 
> dialogue's "Files of type" field.
> Right now it just says "All Files". I want to limit this to say *.csv files.
>
> I have tried adding this:
>
> accept="application/csv"
>
> also tried:
>
> accept="csv"
>
> but none of these appears to change anything at all.
>
> What am I doing wrong?
>
> Thanks!
> Nicole
>
> 
> The contents of this email are confidential and may be subject to legal or 
> professional privilege and copyright. No representation is made that this 
> email is free of viruses or other defects. If you have received this 
> communication in error, you may not copy or distribute any part of it or 
> otherwise disclose its contents to anyone. Please advise the sender of your 
> incorrect receipt of this correspondence.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


The contents of this email are confidential and may be subject to legal or 
professional privilege and copyright. No representation is made that this email 
is free of viruses or other defects. If you have received this communication in 
error, you may not copy or distribute any part of it or otherwise disclose its 
contents to anyone. Please advise the sender of your incorrect receipt of this 
correspondence.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2 file (how to define files of type)

2008-07-15 Thread Wes Wannemacher
I could be wrong, but I don't think there is a reliable method to
accomplish what you're looking for... 

http://htmlhelp.com/reference/html40/forms/input.html#file

Although it looks like it's part of the spec, I think browsers ignore
attempts at setting "accept"



On Wed, 2008-07-16 at 14:06 +0930, Nicole Luneburg wrote:
> Hi all,
> 
> Got another prob that I've also been trying to fix for a while ...
> I have a file upload tag like:
> 
> 
> 
> I want to be able to specify what types of files are shown in the File Upload 
> dialogue's "Files of type" field.
> Right now it just says "All Files". I want to limit this to say *.csv files.
> 
> I have tried adding this:
> 
> accept="application/csv"
> 
> also tried:
> 
> accept="csv"
> 
> but none of these appears to change anything at all.
> 
> What am I doing wrong?
> 
> Thanks!
> Nicole
> 
> 
> The contents of this email are confidential and may be subject to legal or 
> professional privilege and copyright. No representation is made that this 
> email is free of viruses or other defects. If you have received this 
> communication in error, you may not copy or distribute any part of it or 
> otherwise disclose its contents to anyone. Please advise the sender of your 
> incorrect receipt of this correspondence.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts tags ID generation

2008-07-15 Thread Wes Wannemacher
Struts 2 will create an id for you when using it's built-in tags. I've
never seen it quite as long as yours... Perhaps you built from a maven
archetype and might have passed in some parameters wrong? 

When you leave it up to struts, it will generate unique ids and it will
work w/o intervention. It also works fine if you specify an id, so it's
mostly a matter of preference and whether or not you need to know the id
for some added javascript. 

-Wes

On Wed, 2008-07-16 at 14:33 +1000, Phan Le wrote:
> Hi there,
> I am new to this mailing list and currently experiencing strange  
> behavior when rendering ids for HTML elements.
> I have something like this in my HTML code
> 
>class="fieldWrap" id="wwctrl_com.mycompany.profile:profile-app:war: 
> 0.0.1-SNAPSHOT">
> I didn't specify any id in my  tag
> 
> Any one know how Struts 2 do this?
> Thanks
> 
>   
>   
> 
> This email, including attachments, is intended only for the addressee
> and may be confidential, privileged and subject to copyright.  If you
> have received this email in error, please advise the sender and delete
> it.  If you are not the intended recipient of this email, you must not
> communicate to others content that is confidential or subject to
> copyright, unless you have the consent of the content owner.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 'include' struts.xml stuff is broken?

2008-07-15 Thread Wes Wannemacher
When you use an include, the entire included document is parsed and
added to the configuration. This means that the included document must
work as if it were a stand-alone configuration file. You'll have to not
only create well-formed struts xml files, but package configuration as
well. If you're going to reuse interceptors, etc., then you'll need to
pull them in with "extends".

-Wes

On Tue, 2008-07-15 at 23:53 -0400, Dave Belfer-Shevett wrote:
> This seems like it should work, but I'm getting all sorts of hassles, and 
> the documentation page for this, naturally, provides no examples of what 
> the include file should look like.
> 
> My struts.xml has...
> 
>   "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
>  "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
>   
>   
>   
>   [blah blah blah]
>   
>   (more actions)
>   
> 
> 
> The 'struts-editevent.xml' has:
>class="com.stonekeep.congo.coconut.EditEvent">
>   
>name="success">/WEB-INF/jsp/coconut/EditEventForm.jsp
>type="redirect-action">coconut/showloginpage
>   
> 
>class="com.stonekeep.congo.coconut.EditEvent">
>   
>name="success">/WEB-INF/jsp/coconut/Maintenance.jsp
>name="input">/WEB-INF/jsp/coconut/EditEventForm.jsp
>type="redirect-action">coconut/showloginpage
>   
> 
> A basic block of actions.
> 
> I'm getting XML validatoin errors up the wazoo because the 
> struts-editevent.xml file isn't well-formed.  If I put it in  
> blocks, I get "you're referencing interceptors that don't exist".
> 
> If I try and duplicate the entire package, interceptors, and DTD 
> definition into the include file, I get package collisions.
> 
> My take is the  function does not work as described in the 
> documentation.  It should be a linear include, and the resulting document 
> is parsed by SAX, but that doesn't seem to be happening.
> 
> Can someone give me an example of an included XML file that actually 
> works?
> 
> Here are links to what I'm seeing:
> My main struts.xml: http://pastebin.stonekeep.com/4955
> 
> My struts-editevent.xml: http://pastebin.stonekeep.com/4956
> 
> What happens when I deploy:
> 
> http://pastebin.stonekeep.com/4957
> 
> Note that says "no grammar found".  Adding the DTD says "you need a 
> package name in your struts block" - etc etc etc.  It never really 
> resolves.
> 
> Can someone show me an  setup that actually works?
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.1 tags + JSTL EL?

2008-07-15 Thread Oleg Mikheev

Chris Pratt wrote:

I proposed a method of enabling JSTL EL safely a while ago, but I
haven't heard anything (or had any time to actually do anything about
it myself).


But if they had to get rid of one of two ELs why did they decide to
keep OGNL?
Isn't JSTL more popular and more standard?

Oleg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts2 file (how to define files of type)

2008-07-15 Thread Nicole Luneburg
Hi all,

Got another prob that I've also been trying to fix for a while ...
I have a file upload tag like:



I want to be able to specify what types of files are shown in the File Upload 
dialogue's "Files of type" field.
Right now it just says "All Files". I want to limit this to say *.csv files.

I have tried adding this:

accept="application/csv"

also tried:

accept="csv"

but none of these appears to change anything at all.

What am I doing wrong?

Thanks!
Nicole


The contents of this email are confidential and may be subject to legal or 
professional privilege and copyright. No representation is made that this email 
is free of viruses or other defects. If you have received this communication in 
error, you may not copy or distribute any part of it or otherwise disclose its 
contents to anyone. Please advise the sender of your incorrect receipt of this 
correspondence.


Struts tags ID generation

2008-07-15 Thread Phan Le


Hi there,
I am new to this mailing list and currently experiencing strange  
behavior when rendering ids for HTML elements.

I have something like this in my HTML code

 class="fieldWrap" id="wwctrl_com.mycompany.profile:profile-app:war: 
0.0.1-SNAPSHOT">

I didn't specify any id in my  tag

Any one know how Struts 2 do this?
Thanks

 
 


This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.

Re: struts menu problem

2008-07-15 Thread nauke .
Hi,

I don't suppose anyone knows why this issue is occurring ... ?

Thanks

On Mon, Jul 14, 2008 at 4:30 PM, nauke. <[EMAIL PROTECTED]> wrote:

> Hi!
>
> I'm using struts version 2.0.11.
> I am using struts menu, which works provided it is not on top of a table
> ...
> Please see screenshot of issue here:
> http://mytmpdir.googlepages.com/menu.jpg
>
> No idea how I can fix this!
> Does anyone?
>
> Thanks guys
>
>
>


'include' struts.xml stuff is broken?

2008-07-15 Thread Dave Belfer-Shevett
This seems like it should work, but I'm getting all sorts of hassles, and 
the documentation page for this, naturally, provides no examples of what 
the include file should look like.


My struts.xml has...

http://struts.apache.org/dtds/struts-2.0.dtd";>




[blah blah blah]

(more actions)



The 'struts-editevent.xml' has:
	class="com.stonekeep.congo.coconut.EditEvent">


		name="success">/WEB-INF/jsp/coconut/EditEventForm.jsp
		type="redirect-action">coconut/showloginpage



	class="com.stonekeep.congo.coconut.EditEvent">


		name="success">/WEB-INF/jsp/coconut/Maintenance.jsp
		name="input">/WEB-INF/jsp/coconut/EditEventForm.jsp
		type="redirect-action">coconut/showloginpage



A basic block of actions.

I'm getting XML validatoin errors up the wazoo because the 
struts-editevent.xml file isn't well-formed.  If I put it in  
blocks, I get "you're referencing interceptors that don't exist".


If I try and duplicate the entire package, interceptors, and DTD 
definition into the include file, I get package collisions.


My take is the  function does not work as described in the 
documentation.  It should be a linear include, and the resulting document 
is parsed by SAX, but that doesn't seem to be happening.


Can someone give me an example of an included XML file that actually 
works?


Here are links to what I'm seeing:
My main struts.xml: http://pastebin.stonekeep.com/4955

My struts-editevent.xml: http://pastebin.stonekeep.com/4956

What happens when I deploy:

http://pastebin.stonekeep.com/4957

Note that says "no grammar found".  Adding the DTD says "you need a 
package name in your struts block" - etc etc etc.  It never really 
resolves.


Can someone show me an  setup that actually works?

--
---..---.
Dave Belfer-Shevett \ KB1FWR \ JID: [EMAIL PROTECTED] \
blog:planet-geek.com >'---.
[EMAIL PROTECTED]/   Windows98 Err#021 - Error Parsing Error\
---

RE: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-15 Thread Chandramouli P
Its working now. Thank you very much for the replies.
 
The problem was that the naming convention (it was like sStreet, sCity and the 
getter/setters were getStreet, getCity etc.)of my attributes and I did not 
initialize the inside bean in the ActionForm.
 
Thanks & Regards,
Chandra.



> To: user@struts.apache.org> From: [EMAIL PROTECTED]> Subject: Re: Problem 
> from defining JavaBean as an attribute inside ActionForm> Date: Thu, 3 Jul 
> 2008 14:56:09 -0400> > Oh, and another thought: are you initializing 
> ActionForm's empAddress > field somewhere? It may cause problems if it is 
> null when Struts tries > to set its properties. Struts 2 can automatically 
> create instances of > beans in that situation, but Struts 1 doesn't.> > L.> > 
> Laurie Harper wrote:> > What you have below all looks fine; it should work as 
> you expected. What > > does your form bean definition look like? Is the form 
> bean correctly > > referenced by the action mapping the form is submitted to? 
> Post the > > relevant bits of configuration and the full stack trace; maybe 
> that will > > allow someone to see the problem.> > > > L.> > > > Chandramouli 
> P wrote:> >> Hi,> >> > >> I have the below scenario:> >> > >> I have a java 
> bean as below:> >> > >> public class Address> >> {> >> private String city;> 
> >> private String state;> >> > >> and public getters/setters for the above 
> attributes;> >> }> >> > >> and I have the ActionForm as below:> >> > >> 
> import Address;> >> public class EmpForm extends ActionForm> >> {> >> private 
> String name;> >> private String empID;> >> private Address empAddress;> >> > 
> >> and public getters/setters for the aboev attribute;> >> }> >> > >> We are 
> using Struts 1.2.9 and writing the JSP page as below:> >> > >>  action="/sampleAction.do">> >> > >>  property="empID"/>> >> > >>  property="empAddress.state"/>> >> > >> > >> I am getting the 
> below error while submitting the form:> >> > >> E SRVE0026E: [Servlet 
> Error]-[BeanUtils.populate]: > >> java.lang.IllegalArgumentException: No bean 
> specified at > >> 
> org.apache.commons.beanutils.PropertyUtils..getPropertyDescriptor(PropertyUtils.java(Compiled
>  > >> Code))> >> I have read somewhere that Struts version I am using does 
> support the > >> nested attributes for the  and other tags. Are 
> there any > >> errors in the above code? Please help.> >> > >> Thanks & 
> Regards,> >> Chandra.> >> 
> _> >> Post 
> free property ads on Yello Classifieds now! www.yello.in> >> 
> http://ss1.richmedia.in/recurl.asp?pid=221> > > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
Missed your favourite programme? Stop surfing TV channels and start planning 
your weekend TV viewing with our comprehensive TV Listing
http://entertainment.in.msn.com/TV/TVListing.aspx

Re: Submit a struts form using javascript

2008-07-15 Thread Dave Newton
--- On Tue, 7/15/08, rapsy <[EMAIL PROTECTED]> wrote:
> I am trying to submit two forms at once. 

Is that even possible? I guess I don't really see how that would work.

Not sure why you'd try to do that in the first place, but you'd probably have 
better luck (a) using a single form, or (b) copying one form's values to the 
other and submitting only one.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit a struts form using javascript

2008-07-15 Thread rapsy


I am trying to submit two forms at once. 

The first form is being submitted by "onclick" event which calls javascript
form.submit() and the second form is submitted by submit button itself when
it is clicked. The first form submission is failing i.e when I try to
retrieve the values of the first form later in the application it is blank. 
It is working on local machine but not on production server. Can there be
some network latency issue?
Is there a better way to submit two forms? 

Thanks for your response!







Lukasz Lenart wrote:
> 
>> 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:
>> 
>>
>> > onclick="javascript:document.forms['firstForm'].submit();" />
>> 
>>
>> 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/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Submit-a-struts-form-using-javascript-tp18468491p18479084.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTimePicker

2008-07-15 Thread nauke .
Hi Pablo,

This works for me ... I hope it helps.

At the top of my JSP page I have this:


Then for the actual datepicker I have:



My problems with it that I'm just living with are:

1) When I visit the JSP page, if the myDate value is not already populated,
an exception is thrown in my logs (not on the page, so I'm just ignoring it
for now).
2) I can't line up the label value the way I want.


On Tue, Jul 15, 2008 at 9:38 PM, ManiKanta G <[EMAIL PROTECTED]>
wrote:

> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL 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 [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: ActionSupport.input()-- what's it for?

2008-07-15 Thread Dave Newton
--- On Tue, 7/15/08, Brad A Cupit <[EMAIL PROTECTED]> wrote:
> Anybody know what the input() method on ActionSupport is for?
> 
> It doesn't seem to be defined by any interfaces. I was
> hoping that it was called whenever there was a validation 
> error, but that doesn't seem to be the case.

It's the default implementation of a method designed for form input; validation 
is skipped by default.

When you have an action implementing Prepareable it's a convenience, before 
annotation-based configuration you'd configure two action mappings--the initial 
form display would use the input() method, submission would use execute().

That's my take on it, anyway.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ActionSupport.input()-- what's it for?

2008-07-15 Thread Brad A Cupit
Hi,
Anybody know what the input() method on ActionSupport is for?

It doesn't seem to be defined by any interfaces. I was hoping that it
was called whenever there was a validation error, but that doesn't seem
to be the case.

Here's the method definition:

public String input() throws Exception {
return INPUT;
}

Brad Cupit
Louisiana State University - UIS


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: about iterating values

2008-07-15 Thread Laurie Harper

hns wrote:

HI
Thanks for reply

but session is appropriate for large size map stored in it?
it can works fine?


It certainly *can* work. Whether the session is the best place to keep 
this data depends on the size of the list, how much it varies (if at 
all) between users, how often it changes, etc. You might be better off 
looking into a caching solution at the persistence layer level (e.g. 
Hibernate or whatever you use), or, perhaps, building a custom 
application cache at the application level (using something like ehcache).


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2 jsp s:set question

2008-07-15 Thread Harden ZHU
Ok, Thanks,

In struts1.x, there is tag like "bean:define". Anything like in struts2?

On Tue, Jul 15, 2008 at 1:18 PM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Try
>
> <% Company cmp = request.getAttribute("company"); %>
> <%= cmp.formatName("aa") %>
>
> but this is ugly ;-(
>
> Better solution is to develop some custom tag.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2 jsp s:set question

2008-07-15 Thread Lukasz Lenart
Try

<% Company cmp = request.getAttribute("company"); %>
<%= cmp.formatName("aa") %>

but this is ugly ;-(

Better solution is to develop some custom tag.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



View State

2008-07-15 Thread Francisco Spaeth
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


Re: struts2 jsp s:set question

2008-07-15 Thread Harden ZHU
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
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> s:set tag [1] put variable in given OGNL scope, try to use
> scope=request or you can try to use  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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread Ian Roughley
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  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;@7a847a84'

newton.dave wrote:
  
  

DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<


--- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:




From: prashanth2 <[EMAIL PROTECTED]>
Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
To: user@struts.apache.org
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;@7a847a84' 




--
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: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2

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 <[EMAIL PROTECTED]>
> To: user@struts.apache.org
> 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;@7a847a84'
> 
> newton.dave wrote:
>> 
>> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>> 
>> 
>> --- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:
>> 
>>> From: prashanth2 <[EMAIL PROTECTED]>
>>> Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
>>> To: user@struts.apache.org
>>> 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;@7a847a84' 
>>> > 
>>> 
>>> -- 
>>> 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: [EMAIL PROTECTED]
>>> For additional commands, e-mail:
>>> [EMAIL PROTECTED]
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18472139.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2

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;@7a847a84'
>>
>> newton.dave wrote:
>>   
>>> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
>>>
>>>
>>> --- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:
>>>
>>> 
 From: prashanth2 <[EMAIL PROTECTED]>
 Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
 To: user@struts.apache.org
 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;@7a847a84' 
>
> 
 -- 
 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: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
   
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18472124.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread Ian Roughley
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;@7a847a84'

newton.dave wrote:
  

DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<


--- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:



From: prashanth2 <[EMAIL PROTECTED]>
Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
To: user@struts.apache.org
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;@7a847a84' 



--
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: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread Struts Two
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 <[EMAIL PROTECTED]>
To: user@struts.apache.org
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;@7a847a84'

newton.dave wrote:
> 
> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
> 
> 
> --- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:
> 
>> From: prashanth2 <[EMAIL PROTECTED]>
>> Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
>> To: user@struts.apache.org
>> 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;@7a847a84' 
>> > 
>> 
>> -- 
>> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread danipruebas

OMG, this is an EPIC FAIL : )
Yes, i have saved and referenced it in WEB-INF.
Best regards,

- Original Message - 
From: "Lukasz Lenart" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Email procesado por MailFoundry



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2


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;@7a847a84'

newton.dave wrote:
> 
> DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<
> 
> 
> --- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:
> 
>> From: prashanth2 <[EMAIL PROTECTED]>
>> Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
>> To: user@struts.apache.org
>> 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;@7a847a84' 
>> > 
>> 
>> -- 
>> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 application doesn't work with Firefox 3

2008-07-15 Thread thogau

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 
-- 
View this message in context: 
http://www.nabble.com/Struts2-application-doesn%27t-work-with-Firefox-3-tp18237909p18470834.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread danipruebas

Hi again,
After updating all the dependencies and changing the DTD for the 
validation.xml and validation-rules.xml:

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" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Email procesado por MailFoundry




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript validation error

2008-07-15 Thread Lukasz Lenart
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/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit a struts form using javascript

2008-07-15 Thread Lukasz Lenart
> 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:
> 
>
>  onclick="javascript:document.forms['firstForm'].submit();" />
> 
>
> 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/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Submit a struts form using javascript

2008-07-15 Thread rapsy


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:





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!


-- 
View this message in context: 
http://www.nabble.com/Submit-a-struts-form-using-javascript-tp18468491p18468491.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Controlling GET variables

2008-07-15 Thread Tom Frost

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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Controlling-GET-variables-tp18458613p18467830.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript validation error

2008-07-15 Thread Dimitris Mouchritsas

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:

   
   

and this is the result produced from the tags:

.


//

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];"));
}

//]]>




...
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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION<<


--- On Tue, 7/15/08, prashanth2 <[EMAIL PROTECTED]> wrote:

> From: prashanth2 <[EMAIL PROTECTED]>
> Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
> To: user@struts.apache.org
> 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;@7a847a84' 
> > 
> 
> -- 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox


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;@7a847a84' 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

--- On Tue, 7/15/08, Dani <[EMAIL PROTECTED]> wrote:
> 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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error


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,


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: web.xml servlet/filter-mappings

Also, please remember that the order of the  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 <[EMAIL PROTECTED]> wrote:

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

   
   AxisServlet
   /services/*
   

   
   struts2
   /*
   

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

Alberto A. Flores
http://www.linkedin.com/in/aflores


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 Ajax DEBUG: widget ID collision on ID: xxx Problem!?


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
> 
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> <%@ taglib prefix="s" uri="/struts-tags" %>
> 
>  "http://www.w3.org/TR/html4/loose.dtd";>
> 
> 
>
> 
> Insert title here
> 
> 
> 
> 
> 
>   try it
> 
>  
> 
> 
> 
> 
> 
> 
> 
> ---
> 
> asTest.jsp
> 
>  <%@ taglib prefix="s" uri="/struts-tags" %>
> 
> Test1
>  href="test.jsp">
> 
> 
> -
> 
> test.jsp:
> 
> 
> test.jsp
> 
> 
> 
> 
> 
> 
> 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
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Ajax-DEBUG%3A-widget-ID-collision-on-ID%3A-xxx-Problem%21--tp17449846p18464298.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTimePicker

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 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 [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DateTimePicker


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

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/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error


Lukasz Lenart escribió:

Hi,

Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?


Regards
  


The validator-rules.xml & validations.xml are located under the correct 
path /WEB-INF/, as specified in the struts-config.xml file:

< plug-in className="org.apache.struts.validator.ValidatorPlugIn">
   


This is the error log at Catalina:

2008-07-15 13:17:34 StandardContext[/gentaiw]El Servlet /gentaiw lanzó 
excepción de load()
javax.servlet.UnavailableException: Cannot load a validator resource 
from '/WEB-INF/validator-rules.xml,/WEB-INF/validations.xml' --> *** 
ERROR ??? ***
   at 
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:172)
   at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)

   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)

   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: an issue with my Action class - help me

--- On Tue, 7/15/08, Narayana S <[EMAIL PROTECTED]> wrote:
> 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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.1 tags + JSTL EL?


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.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] downloadaction class

Great!
It looks obvious but, as you've probably noticed, I'm a kind of Struts 
newbie... :-(
Thanks once again.
    Riccardo



- Messaggio originale -
Da: ManiKanta G <[EMAIL PROTECTED]>
A: Struts Users Mailing List 
Inviato: Martedì 15 luglio 2008, 12:05:48
Oggetto: Re: [S2] downloadaction class

My pleasure.

You can use any variable from the returning action class as with case of 
remaining results, as below

            
                  text/csv
                  inputStream
                  filename="${fileName}"
                  1024
                  true
            

Define a instance variable holding the file name (should have getters 
and setters) and use that variable in the config xml as above. Actually 
you can use this type of referencing the action variables in config file.

Regards,
ManiKanta


Riccardo Mollame wrote:
> Thanks pal,
> it's been very kind of you: but is the name of the file hardcoded in the conf 
> file?!?
> I'll try something ASAP and, eventually, abuse one more time of your kindness 
> (let's hope not!! ;-))...
> My best.
>        Riccardo
>
> - Messaggio originale -
> Da: ManiKanta G <[EMAIL PROTECTED]>
> A: Struts Users Mailing List 
> Inviato: Martedì 15 luglio 2008, 9:51:38
> Oggetto: Re: [S2] downloadaction class
>
> Yes, it is even pretty simple in S2.
>
> You can use result of type 'stream' for that action configuration.
>
> Use a InputStream to read the content you want to provide as the 
> download, and specify the same name in the result config, as below
>
>        
>            
>                  text/csv
>                  inputStream
>                   name="contentDisposition">filename="Report.csv"
>                  1024
>            
>        
>
> Here 'inputStream' value of the 'inputName' param is the name of the 
> instance variable of type InputStream in the action file.
>
> Hope this will clarify your doubt, and feel free to reply if you are 
> having any more doubt. I can provide some code if you need. But my 
> sincere suggestion is first try it by yourself.
>
> ManiKanta
>
>
>
> Riccardo Mollame wrote:
>  
>> Can anyone tell me if DownloadAction (or something simlar) is still 
>> supported in S2?
>> Any help appreciated.
>> Thanks.
>>              Ric
>>
>>
>>      Posta, news, sport, oroscopo: tutto in una sola pagina. 
>> Crea l'home page che piace a te!
>> www.yahoo.it/latuapagina
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL 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 [EMAIL PROTECTED]
>
>
>
>      Posta, news, sport, oroscopo: tutto in una sola pagina. 
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>  


  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: web.xml servlet/filter-mappings

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 <[EMAIL PROTECTED]> wrote:
> 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
>
>
>AxisServlet
>/services/*
>
>
>
>struts2
>/*
>
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: an issue with my Action class - help me

Hi,

I'm supposing that you have actions mapped by methods in action class
(execute(), update(), etc.) If so, to disable validation for
particularly methods, annotated them with @SkipValidation


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] downloadaction class


My pleasure.

You can use any variable from the returning action class as with case of 
remaining results, as below


   
 text/csv
 inputStream
 name="contentDisposition">filename="${fileName}"

 1024
 true
   

Define a instance variable holding the file name (should have getters 
and setters) and use that variable in the config xml as above. Actually 
you can use this type of referencing the action variables in config file.


Regards,
ManiKanta


Riccardo Mollame wrote:

Thanks pal,
it's been very kind of you: but is the name of the file hardcoded in the conf 
file?!?
I'll try something ASAP and, eventually, abuse one more time of your kindness 
(let's hope not!! ;-))...
My best.
   Riccardo

- Messaggio originale -
Da: ManiKanta G <[EMAIL PROTECTED]>
A: Struts Users Mailing List 
Inviato: Martedì 15 luglio 2008, 9:51:38
Oggetto: Re: [S2] downloadaction class

Yes, it is even pretty simple in S2.

You can use result of type 'stream' for that action configuration.

Use a InputStream to read the content you want to provide as the 
download, and specify the same name in the result config, as below




  text/csv
  inputStream
  name="contentDisposition">filename="Report.csv"

  1024



Here 'inputStream' value of the 'inputName' param is the name of the 
instance variable of type InputStream in the action file.


Hope this will clarify your doubt, and feel free to reply if you are 
having any more doubt. I can provide some code if you need. But my 
sincere suggestion is first try it by yourself.


ManiKanta



Riccardo Mollame wrote:
  

Can anyone tell me if DownloadAction (or something simlar) is still supported 
in S2?
Any help appreciated.
Thanks.
  Ric


  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!

www.yahoo.it/latuapagina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 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 [EMAIL PROTECTED]




  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!

www.yahoo.it/latuapagina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  




Re: [S2] downloadaction class

Thanks pal,
it's been very kind of you: but is the name of the file hardcoded in the conf 
file?!?
I'll try something ASAP and, eventually, abuse one more time of your kindness 
(let's hope not!! ;-))...
My best.
   Riccardo

- Messaggio originale -
Da: ManiKanta G <[EMAIL PROTECTED]>
A: Struts Users Mailing List 
Inviato: Martedì 15 luglio 2008, 9:51:38
Oggetto: Re: [S2] downloadaction class

Yes, it is even pretty simple in S2.

You can use result of type 'stream' for that action configuration.

Use a InputStream to read the content you want to provide as the 
download, and specify the same name in the result config, as below

        
            
                  text/csv
                  inputStream
                  filename="Report.csv"
                  1024
            
        

Here 'inputStream' value of the 'inputName' param is the name of the 
instance variable of type InputStream in the action file.

Hope this will clarify your doubt, and feel free to reply if you are 
having any more doubt. I can provide some code if you need. But my 
sincere suggestion is first try it by yourself.

ManiKanta



Riccardo Mollame wrote:
> Can anyone tell me if DownloadAction (or something simlar) is still supported 
> in S2?
> Any help appreciated.
> Thanks.
>              Ric
>
>
>      Posta, news, sport, oroscopo: tutto in una sola pagina. 
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL 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 [EMAIL PROTECTED]



  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



an issue with my Action class - help me

Hi,

   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...

to achieve this do i need to go for CRUD kind of approach? or any other
simple way is there?


S2: web.xml servlet/filter-mappings


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



AxisServlet
/services/*



struts2
/*


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2 jsp s:set question

Hi,

s:set tag [1] put variable in given OGNL scope, try to use
scope=request or you can try to use 

[1] http://struts.apache.org/2.1.2/docs/set.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Controlling GET variables

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Extending Struts Controls - problem

Hi,

Maybe this will help
http://annaskawinska.blogspot.com/2008/04/extending-struts2-theme.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

Hi,

Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] downloadaction class


Yes, it is even pretty simple in S2.

You can use result of type 'stream' for that action configuration.

Use a InputStream to read the content you want to provide as the 
download, and specify the same name in the result config, as below


   
   
 text/csv
 inputStream
 name="contentDisposition">filename="Report.csv"

 1024
   
   

Here 'inputStream' value of the 'inputName' param is the name of the 
instance variable of type InputStream in the action file.


Hope this will clarify your doubt, and feel free to reply if you are 
having any more doubt. I can provide some code if you need. But my 
sincere suggestion is first try it by yourself.


ManiKanta



Riccardo Mollame wrote:

Can anyone tell me if DownloadAction (or something simlar) is still supported 
in S2?
Any help appreciated.
Thanks.
 Ric


  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!

www.yahoo.it/latuapagina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 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 [EMAIL PROTECTED]


Re: messages_(locale).properties

Hi,

To specify custom file names for your messages, add them to
struts.properties [1], just the main name, without lang suffix

struts.custom.i18n.resources=messages, somemessages

You should always have default messages.properties bundle, move
messages_en.properties to messages.properties for example.

[1] http://struts.apache.org/2.1.2/docs/strutsproperties.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2 Indexed Properties


We're using Struts2, but I was using Struts1/JSTL tags.

I've tried using Struts2 tags and it renders the same HTML anyway.

I've been debugging through the code and it seems to be having a problem
picking up the entry x-work conversion properties. It throws a null pointer
in the log file, then carries on.

When I've got more time, I'll spend it on trying to debug the problem.
Either I've done something stupid, or the project I'm working on has some
configuration that is screwing things up a bit. It's not a project that I've
worked on from the start.




Jishnu Viswanath wrote:
> 
> Re you using struts 2 itself?
> 
> If yes it would look something like this
> 
>   
> 
> 
> The code you send looks like struts 1
> Regards,
> 
> Jishnu Viswanath
> 
> Software Engineer
> 
> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
> 
> Tavant Technologies Inc.,
> 
> www.tavant.com
> 
> PEOPLE :: PASSION :: EXCELLENCE
> 
> 
> -Original Message-
> From: YAQ [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 14, 2008 4:05 PM
> To: user@struts.apache.org
> Subject: Struts 2 Indexed Properties
> 
> 
> Hi,
> 
> I'm having problem with Struts2 and indexed properties.
> 
> The list in my action is not being updated.
> 
> My JSP is something like:
> 
>  indexId="index">
>  id="questionnaireInputVO.coverTypesList[ value="${index}" />].key"
>   name="questionnaireInputVO.coverTypesList[ value="${index}"
> />].key"
>   value=""
> />
>  id="questionnaireInputVO.coverTypesList[ value="${index}"
> />].agreementType.key"
>   name="questionnaireInputVO.coverTypesList[ value="${index}"
> />].agreementType.key"
>   value=" value="${coverTypes.agreementType.key.id}" />" />
> 
> 
> 
> I've discovered I need an entry in the x-work conversion properties:
> 
> Element_questionnaireInputVO.coverTypesList=com.mypath.CoverTypeVO
> CreateIfNull_questionnaireInputVO.coverTypesList=true
> 
> 
> But I am getting the following error:
> 
> 
> [2008-07-14 12:13:07,860] [.Transports : 2] DEBUG
> [com.opensymphony.xwork2.util.InstantiatingNullHandler   ]  :
> Entering
> nullPropertyValue [EMAIL PROTECTED],
> property=coverTypesList] 
> [2008-07-14 12:13:07,860] [.Transports : 2] ERROR
> [com.opensymphony.xwork2.util.InstantiatingNullHandler   ]  : Could
> not
> create and/or set value back on to object 
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name '[Lcom.mypath.CoverTypeVO;': Could not resolve matching
> constructor
>   at
> org.springframework.beans.factory.support.ConstructorResolver.autowireCo
> nstructor(ConstructorResolver.java:178)
>   at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
>   at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.autowire(AbstractAutowireCapableBeanFactory.java:255)
>   at
> com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjec
> tFactory.java:145)
>   at
> com.opensymphony.xwork2.util.InstantiatingNullHandler.createObject(Insta
> ntiatingNullHandler.java:123)
>   at
> com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
> InstantiatingNullHandler.java:104)
>   at ognl.ASTProperty.getValueBody(ASTProperty.java:94)
>   at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
>   at ognl.SimpleNode.getValue(SimpleNode.java:210)
>   at ognl.ASTChain.setValueBody(ASTChain.java:168)
>   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
>   at ognl.SimpleNode.setValue(SimpleNode.java:246)
>   at ognl.Ognl.setValue(Ognl.java:476)
>   at
> com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
>   at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
> :158)
>   at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
> :146)
>   at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(
> ParametersInterceptor.java:193)
>   at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Pa
> rametersInterceptor.java:159)
>   at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
> thodFilterInterceptor.java:86)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
>   at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
>   at
> com.ing.itrf.starlite.common.interceptor.StarliteSecurityInterceptor.int
> ercept(StarliteSecurityInterceptor.java

[S2] downloadaction class

Can anyone tell me if DownloadAction (or something simlar) is still supported 
in S2?
Any help appreciated.
Thanks.
 Ric


  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.1 tags + JSTL EL?

I proposed a method of enabling JSTL EL safely a while ago, but I
haven't heard anything (or had any time to actually do anything about
it myself).

As far as the documentation, there is only one set of documentation in
the Wiki and it always covers the latest version, so all the
documentation available right now is for 2.1.
  (*Chris*)

On Tue, Jul 15, 2008 at 12:15 AM, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
> Hi
>
> Are there any plans to re-enable JSTL EL in custom tags which
> was disabled starting from Struts 2.0.10?
> And, where can I find the changes between Struts 2 and 2.1?
> Any 2.1 documentation available yet?
>
> Thanks,
> Oleg
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts2 jsp s:set question

Hi,

I have a "Company" object as follow and setAttribute("company",
company) in action. When do follow in jsp


<%=company.formartName("aa")%>

And company.formartName("aa") in jsp throw exception. Do I did something wrong?

Thanks


Here is Company.java
==
public class Company  {

private Long id;
private String name;
private String description;

public Company() {
}

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getDescription() {
return description;
}


public String formartName(String formart){

.
return formatName
}
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 2.1 tags + JSTL EL?


Hi

Are there any plans to re-enable JSTL EL in custom tags which
was disabled starting from Struts 2.0.10?
And, where can I find the changes between Struts 2 and 2.1?
Any 2.1 documentation available yet?

Thanks,
Oleg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]