RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-04 Thread Rajagopal_Yendluri
There is no problem in the web.xml,

There may be some problem on "war"ring the file ( means creating .war
file).

Try to deploy it on other server ,,, say tomcat or any other. If you get
the same error message am sure the problem is with WAR.

Check out if you can share the war I will try and let you know the
problem. 

Regards,
Rajagopal Y
HCU-Consulting & Enterprise Solutions.
Phone: (C) +91-9886876114 / (W) 6658 3685.
-Original Message-
From: Cesar Arevalo [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 05, 2007 4:57 AM
To: Struts Users Mailing List
Subject: Re: [ActionServlet] /WEB-INF/web.xml was not found

Hey, what version of the jboss-web.dtd are you using, see here for the
types:

http://www.jboss.org/j2ee/dtd/

I see that the context-root element is not in the
http://www.jboss.org/j2ee/dtd/jboss-web.dtd, it is until
http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd that this element is
present.

HTH
-Cesar

- Original Message 
From: "ROWLAND, CLAY, ATTSI" <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, October 4, 2007 3:37:48 PM
Subject: [ActionServlet] /WEB-INF/web.xml was not found

hi.   i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1
on windows and am getting an exception when i deploy my .war file.
 
18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found.
(please let me know if you'd like to see the full exception text)

however, web.xml exists inside my .war file in the WEB-INF dir (and as
ActionServlet is only init'ed because it exists in the web.xml, i'm
dumbfounded).  the struts .jar files are in the WEB-INF/lib directory
within the .war.  here are my config files, all of which are in the
WEB-INF dir:
 
web.xml


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";;>



  
  
   action
 
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

2
  

  

 
action
*.do
  


  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  



struts-config.xml


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

  

  
  

  
  

  


jboss-web.xml



Ticket



i feel like i'm missing a simple configuration detail.   if anyone has
encountered this issue before, i'd love to hear how you resolved it.

thanks.




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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.

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



Struts 2.0.10 jars please

2007-10-04 Thread Sekhar, Raja

Hi 
I am behind a firewall,  and also donot have proxyHost to change
settings of maven and svn to work properly.

Can somebody please pass me the jars that comprise struts2.0.10 . I need
the tiles plugin as well. 
Kindly please point me to a location where I can download or mail the
jars to my personal id.

Thanks
Raja

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

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




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



RE: struts 2.1 beta

2007-10-04 Thread Jason Wyatt
Hi Meissa, 

You might want to see the post with subject "[s2] Struts head tag KILLS (>
10s) page load time"... Discusses the problem as we experienced it, and a
hack /workaround to modify the  freemarker template... Not ideal,
but may help cut down the includes.

Regards
Jason

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, 4 October 2007 9:27 PM
To: Struts Users Mailing List
Subject: Re: struts 2.1 beta


We did all of the things described in the performance-tuning tips.
But we've been using intensively ajax tag (datetime picker and
autocompleter).
Theses two tags force us to include the killing head tag.
When we removed them (removing the head tag in the same time) our pages are
faster (a least 5 times).

I think that if the head tag will still kill performance on 2.1. It should
be told in the performance tip.

It will surely help posting a link to a temporary struts 2.1 version.

thank in advance.
Meissa




"Ted Husted" <[EMAIL PROTECTED]>
Envoyé par : [EMAIL PROTECTED]
04/10/2007 13:08
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: struts 2.1 beta






For performance problems, be sure to follow the advice on this page.

 * http://struts.apache.org/2.x/docs/performance-tuning.html

If you do all of these things, and still consider the performance
unacceptable, then I doubt that Struts 2.1 will make a startling
difference. If performance is the key concern, then Struts 1 is still
the best choice. I also understand that Tapestry performs well.

If it helps, I'll post a link to a temporary Struts 2.1 snapshot, with
all the dependencies, on the developers list. As soon as XWork 2.1.0
is available, we'll roll a Struts 2.1.0 distribution for testing,
which should be "real soon now".

 * http://www.nabble.com/Struts---Dev-f205.html

-- HTH, Ted
Attend "Migrating to Ajax" at ApacheCon US 2007:
 * http://us.apachecon.com/us2007/program/talk/1883


On 9/25/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> That's exactly what I wanted. I new complete un-released version.
> But at this time, I'm giving up. To tired.
> I'll restart using struts when a version without the dreadfull 
performance
> impact will be around.
>
> I hope that we'll get it before the end of the century.
>
> Meissa
>
>
>
>
>
>
> Dave Newton <[EMAIL PROTECTED]>
> 25/09/2007 14:56
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> Struts Users Mailing List 
> cc
>
> Objet
> Re: struts 2.1 beta
>
>
>
>
>
>
> If you want a complete build of an un-released version
> then AFAIK you need to build it from source. The
> repository contains the dependent libraries.
>
> The nightly builds are just that, builds, not
> distributions (again, AFAIK).
>
> --- [EMAIL PROTECTED] wrote:
> > I just need to grab the nightly version WITH
> > DEPENDANTS LIBRAIRIES if it exist.
> > the link below
> >
> 
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
> > drive me to that one
> >
> http://people.apache.org/builds/struts/nightlies/2.x/
> >
> > No librairies.
> > Meissa
> >
> >
> >
> > Dave Newton <[EMAIL PROTECTED]>
> > 25/09/2007 14:28
> > Veuillez répondre à
> > "Struts Users Mailing List" 
> >
> >
> > A
> > Struts Users Mailing List 
> > cc
> >
> > Objet
> > Re: struts 2.1 beta
> >
> >
> >
> >
> >
> >
> > --- Oleg Mikheev <[EMAIL PROTECTED]> wrote:
> > > Dave Newton wrote:
> > > >> I have just renamed it to struts2-core.jar and
> > > >> replaced in my application that was working
> > with
> > > >> 2.0.9 version.
> > > >
> > > > You can't just randomly replace libraries.
> > >
> > > You can replace 2.0.8 with 2.0.9, but you can't
> > > replace 2.0.9 with 2.1.0
> >
> > You certainly *could*, but it would still make me
> > nervous w/o testing since XWork revved also... I
> > guess
> > I always think that dropping in a new library
> > revision
> > w/o keeping track of library dependencies is risky.
> >
> > d.
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > L'integrite de ce message n'etant pas assuree sur
> > internet, Natixis ne peut etre tenu responsable de
> > son contenu. Toute utilisation ou diffusion non
> > autorisee est interdite. Si vous n'etes pas
> > destinataire de ce message, merci de le detruire et
> > d'avertir l'expediteur.
> > Ensemble, faisons un geste pour l'environnement :
> > n'imprimons nos mails que si necessaire
> >
> > The integrity of this message cannot be guaranteed
> > on the Internet. Natixis can not therefore be
> > considered responsible for the contents. Any
> > unauthorized use or dissemination is prohibited. If
> > you are not the intended recipient of this message,
> > then please delete it and notify the sender.
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECT

Re: S2 on JDK 1.4

2007-10-04 Thread Joshua Jackson
Thanks Antonio,

I didn't know about that.

Cheers,
joshua

On 10/4/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> 2007/10/4, Joshua Jackson <[EMAIL PROTECTED]>:
> > Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2?
> > or use Webwork 2 instead?
>
>
> You have to use Struts 2 jars for JDK 1.4:
> http://struts.apache.org/download.cgi#struts209?update=200707231930
> Download: struts-2.0.9-j4.zip
>
> HTH
> Antonio
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-- 
It's not just about coding, it's a matter of fulfilling your core being

YM!: thejavafreak
Blog: http://joshuajava.wordpress.com/

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



Re: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-04 Thread Cesar Arevalo
Hey, what version of the jboss-web.dtd are you using, see here for the types:

http://www.jboss.org/j2ee/dtd/

I see that the context-root element is not in the 
http://www.jboss.org/j2ee/dtd/jboss-web.dtd, it is until 
http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd that this element is present.

HTH
-Cesar

- Original Message 
From: "ROWLAND, CLAY, ATTSI" <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, October 4, 2007 3:37:48 PM
Subject: [ActionServlet] /WEB-INF/web.xml was not found

hi.   i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1
on windows and am getting an exception when i deploy my .war file.
 
18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found.
(please let me know if you'd like to see the full exception text)

however, web.xml exists inside my .war file in the WEB-INF dir (and as
ActionServlet is only init'ed because it exists in the web.xml, i'm
dumbfounded).  the struts .jar files are in the WEB-INF/lib directory
within the .war.  here are my config files, all of which are in the
WEB-INF dir:
 
web.xml


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";;>



  
  
   action
 
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

2
  

  

 
action
*.do
  


  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  



struts-config.xml


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

  

  
  

  
  

  


jboss-web.xml



Ticket



i feel like i'm missing a simple configuration detail.   if anyone has
encountered this issue before, i'd love to hear how you resolved it.

thanks.




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



[ActionServlet] /WEB-INF/web.xml was not found

2007-10-04 Thread ROWLAND, CLAY, ATTSI
hi.   i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1
on windows and am getting an exception when i deploy my .war file.
 
18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found.
(please let me know if you'd like to see the full exception text)

however, web.xml exists inside my .war file in the WEB-INF dir (and as
ActionServlet is only init'ed because it exists in the web.xml, i'm
dumbfounded).  the struts .jar files are in the WEB-INF/lib directory
within the .war.  here are my config files, all of which are in the
WEB-INF dir:
 
web.xml


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  
  
   action
 
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

2
  

  

 
action
*.do
  


  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  



struts-config.xml


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

  

  
  

  
  

  


jboss-web.xml



Ticket



i feel like i'm missing a simple configuration detail.   if anyone has
encountered this issue before, i'd love to hear how you resolved it.

thanks.




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



Re: combining Struts-2 with Struts-1 application.

2007-10-04 Thread Wes Wannemacher
I would start here ->
http://struts.apache.org/2.0.9/docs/struts-1-plugin.html

-W

On 10/4/07, Leena Borle <[EMAIL PROTECTED]> wrote:
> Hi ,
>  I have started developing my application using Struts-2. Now my
> requirement is I need to use another application(separate WAR file) with
> this new one.   This other application is written strut1 framework. My
> question is how do I make calls to the actions in struts-1 from my
> jsps/actions. my application framework tries to find these actions within my
> framework only and throws error.
>   Can anyone suggest me how could I put a layer between these two
> application to interact with each other?  I have never worked on multiple
> applications before. Is there any article on how to interact between two
> applications ?
>
> Thanks,
> Leena
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



Re: calling action

2007-10-04 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote:
> How can I forward to a url from within my action
> class?  For example, instead of 'return SUCCESS' I
> just want to call another action... something like
> 'return SomeAction!doit.action.  Any ideas? Thanks
> in advance.

Define a result that either chains or redirects to the
action?

d.


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



Re: calling action

2007-10-04 Thread Wes Wannemacher
How about ->



YourSecondAction


http://struts.apache.org/2.0.9/docs/redirect-action-result.html

The downside is that it is a redirect, so you any data from
YourFirstAction that you want in YourSecondAction will have to be put
into the session.

-W

On 10/4/07, Henry Park <[EMAIL PROTECTED]> wrote:
>
> How can I forward to a url from within my action class?  For example, instead 
> of 'return SUCCESS' I just want to call another action... something like 
> 'return SomeAction!doit.action.  Any ideas? Thanks in advance.
> _
> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
> now.
> http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



calling action

2007-10-04 Thread Henry Park

How can I forward to a url from within my action class?  For example, instead 
of 'return SUCCESS' I just want to call another action... something like 
'return SomeAction!doit.action.  Any ideas? Thanks in advance.
_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

RE: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread Engelking, Nicholas
One thing to keep in mind is that you will have to migrate from the old struts 
tags with theme="ajax" to the new ajax specific struts tags. I found that the 
new tags were basically the same as the old ones, but I did have to go through, 
drop the theme, and change the tag library. It's probably something that you 
can automate with regular expression though.

On a side note, I am in the process of migrating out of dojo for performance 
reasons. Even with the new caching feature, turning parseContent off, and using 
the tomcat native library, widget loading in the browser (especially i.e. 6, 
which is our target platform) is slow. Server response times are quick, but it 
just takes the dojo framework a long time to register a high number of widgets 
per page (in one case over 600 in our site). I think the sight could benefit 
from some paging to cut down on browser load and fight information overload for 
the user, but I am not in control of the interface spec and it is not possible 
to have it changed. I am still looking for something faster or perhaps we will 
have to go back to (heaven forbid) framesets. Or maybe I will get really lucky 
and UI will realize that they need to change their spec.

-Nick

-Original Message-
From: chengas123 [mailto:[EMAIL PROTECTED]
Sent: October 4, 2007 5:20 PM
To: user@struts.apache.org
Subject: Re: [s2] Struts head tag KILLS (> 10s) page load time


Yes, it is working for me now.  I checked out the project and did not have to
change any of the pom.xml files.  I will let you know how my performance
tests go with the new plug in.

Thanks,
Ben



NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is 
intended only for the use of the addressees and is confidential. 
If you are not an intended recipient or responsible for delivering 
the message to an intended recipient, any review, disclosure, 
conversion to hard copy, dissemination, reproduction or other use 
of any part of this communication is strictly prohibited, as is the 
taking or omitting of any action in reliance upon this communication. 
If you receive this communication in error or without authorization 
please notify us immediately by return e-mail or otherwise and 
permanently delete the entire communication from any computer, 
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at 
www.td.com/legal
   
AVERTISSEMENT DE CONFIDENTIALITE   
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
aux destinataires susmentionnés,  est confidentiel.  Si vous 
n’êtes pas le destinataire prévu ou un agent responsable de la 
livraison de ce courriel, tout examen, divulgation, copie, impression, 
reproduction, distribution, ou autre utilisation d’une partie de ce 
courriel est strictement interdit de même que toute intervention ou 
abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
sans autorisation, veuillez en aviser immédiatement l’expéditeur par 
retour de courriel ou par un autre moyen et supprimer immédiatement 
cette communication entière de tout système électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
pouvez le consulter à www.td.com/francais/legale


Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
These pages help you:

http://www.penguin-soft.com/penguin/developer/struts/userGuide/dev_validator.html
http://wiki.apache.org/jakarta-commons/ValidatorXmlFile


The error is telling you that the 'arg0' should not be put there, maybe there 
is something wrong, hope those pages help you.

-Cesar

PS Found those pages while googling for "struts validatior dtd"

- Original Message 
From: rapsy <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, October 4, 2007 12:02:11 PM
Subject: Re: Struts validation error on Jdeveloper 10.1.3.3



I don't think that matters but I gave a try just in case. The error message
is now changed to:
(Error) Invalid element 'arg0' in content of 'field', expected elements
'[msg, arg, var]'.

Thanks for your reply!

Cesar Arevalo wrote:
> 
> Hey Rapsy,
> 
> just a quick thought, shouldn't the arguments start at index 0? this
> meaning that you should have 
> 
>
> 
> 
> ??
> 
> -Cesar
> 
> 
> - Original Message 
> From: rapsy <[EMAIL PROTECTED]>
> To: user@struts.apache.org
> Sent: Thursday, October 4, 2007 11:27:27 AM
> Subject: Struts validation error on Jdeveloper 10.1.3.3
> 
> 
> 
> Hi,
> 
> I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper
> IDE
> ver 10.1.3.3.0. 
> I have created the following validation in validation.xml file. 
> 
> 
> 
> 
> 
> min0
>
> max9
> 
> 
> When I run my application on JDeveloper I get the following list of
> errors.
> (Error) Invalid element 'arg1' in content of 'field', expected elements
> '[msg, arg, var]'.
> (Error) Element 'arg1' used but not declared.
> XML-20137: (Error) Attribute 'name' used but not declared.
> 
> Can someone tell me why I am getting these errors? Thank you!
> 
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841
> 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/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13046682
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: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread chengas123

Yes, it is working for me now.  I checked out the project and did not have to
change any of the pom.xml files.  I will let you know how my performance
tests go with the new plug in.

Thanks,
Ben



Musachy Barroso wrote:
> 
> The dependency seems to be fine (it was broken before). On core:
> 
> 
>  com.opensymphony.xwork
>   xwork
>   2.1-SNAPSHOT
>  
> 
> on xwork trunk:
> 
> com.opensymphony.xwork
> xwork
>  2.1-SNAPSHOT
> 
> regards
> musachy
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13049126
Sent from the Struts - User mailing list archive at Nabble.com.


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



combining Struts-2 with Struts-1 application.

2007-10-04 Thread Leena Borle
Hi ,
 I have started developing my application using Struts-2. Now my
requirement is I need to use another application(separate WAR file) with
this new one.   This other application is written strut1 framework. My
question is how do I make calls to the actions in struts-1 from my
jsps/actions. my application framework tries to find these actions within my
framework only and throws error.
  Can anyone suggest me how could I put a layer between these two
application to interact with each other?  I have never worked on multiple
applications before. Is there any article on how to interact between two
applications ?

Thanks,
Leena


Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread Dave Newton
--- chengas123 wrote:
> I was trying to build myself, but I'm afraid I can't
> agree that it's pretty easy.  It appears the pom.xml

> files are broken along with who knows what else.

As I said, aside from the XWork pom.xml issue I found
building trunk was very straight-forward. Perhaps if
you re-post the specific errors you're having and what
specific steps you've already taken someone can lend a
hand.

d.


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



Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread Wes Wannemacher
On 10/4/07, chengas123 <[EMAIL PROTECTED]> wrote:
>
>
>
> Wes Wannemacher wrote:
> >
> > There is probably very little difference between the nightly build and
> > trunk, I have found it's pretty easy to just build from trunk. If you
> > don't have them already, get subversion and maven (both small
> > downloads) and build it yourself.
> >
> > Follow the instructions from this thread -
> >
> > http://www.nabble.com/struts-2.1-beta-tf4509951.html#a12880737
> >
> > You'll have your own xwork and struts2 pretty quickly.
> >
> > -Wes
> >
> >
>
>
> I was trying to build myself, but I'm afraid I can't agree that it's pretty
> easy.  It appears the pom.xml files are broken along with who knows what
> else.
>
> -Ben
>
>

You didn't follow the directions in the link. If you build xwork, the
struts2 pom will find it in it's local repository. I just went through
the exact process about an hour ago to get a good copy.

-W


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread Musachy Barroso
The dependency seems to be fine (it was broken before). On core:


 com.opensymphony.xwork
  xwork
  2.1-SNAPSHOT
 

on xwork trunk:

com.opensymphony.xwork
xwork
 2.1-SNAPSHOT

regards
musachy

On 10/4/07, chengas123 <[EMAIL PROTECTED]> wrote:
>
>
>
> Wes Wannemacher wrote:
> >
> > There is probably very little difference between the nightly build and
> > trunk, I have found it's pretty easy to just build from trunk. If you
> > don't have them already, get subversion and maven (both small
> > downloads) and build it yourself.
> >
> > Follow the instructions from this thread -
> >
> > http://www.nabble.com/struts-2.1-beta-tf4509951.html#a12880737
> >
> > You'll have your own xwork and struts2 pretty quickly.
> >
> > -Wes
> >
> >
>
>
> I was trying to build myself, but I'm afraid I can't agree that it's pretty
> easy.  It appears the pom.xml files are broken along with who knows what
> else.
>
> -Ben
>
>
>
>
> >
> > --- chengas123 <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> If this is a known issue, why doesn't someone commit
> >> the change?  I
> >> understand this is the development branch, but it's
> >> a pretty critical issue
> >> to not be able to build the project.  Among other
> >> things, it has to be a
> >> deterrent in attracting new developers.
> >> If I make that change I get:
> >> [WARNING] Unable to load parent project from
> >> repository: Could not find
> >> the model file 'C:\struts2\..\pom.xml'. for project
> >> unknown
> >> And then later on it actually tries to compile, but
> >> gets dozens of
> >> compilation errors.  The first of which is:
> >>
> >>
> > C:\struts2\core\src\main\java\org\apache\struts2\components\Debug.java:[25,46]
> >> package com.opensymphony.xwork2.util.reflection does
> >> not exist
> >>
> >>
> >>
> >> newton.dave wrote:
> >> >
> >> > IIRC there is still an issue with trunk regarding
> >> the
> >> > opensymphony id; it's something like
> >> > "xwork.opensymphony.com" and needs to be just
> >> > "opensymphony"... um...
> >> >
> >> > Index: core/pom.xml
> >> >
> >>
> > ===
> >> > --- core/pom.xml(revision 580129)
> >> > +++ core/pom.xml(working copy)
> >> > @@ -55,7 +55,7 @@
> >> >  
> >> >  
> >> >  
> >> > -
> >> > com.opensymphony.xwork
> >> > +
> >> > opensymphony
> >> >
> >> > xwork
> >> >
> >> > 2.1-SNAPSHOT
> >> >
> >> > sources
> >> > @@ -289,7 +289,7 @@
> >> >
> >> >  
> >> >  
> >> > -
> >> com.opensymphony.xwork
> >> > +opensymphony
> >> >  xwork
> >> >  2.1-SNAPSHOT
> >> >  
> >> >
> >> > --- chengas123 <[EMAIL PROTECTED]>
> >> wrote:
> >> >
> >> >>
> >> >> Ok.  I tried downloading from SVN, but got a
> >> build
> >> >> error.  Maven could not
> >> >> find xwork-2.1-SNAPSHOT-sources.jar.  I had to
> >> >> download it manually from
> >> >> maven.opensymphony.com.  However, despite
> >> following
> >> >> the instruction maven
> >> >> was giving me I could not figure out how to build
> >> >> the project with the
> >> >> manual download.
> >> >>
> >> >> -Ben
> >> >>
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> > http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13029359
> >> Sent from the Struts - User mailing list archive at
> >> Nabble.com.
> >>
> >
> >
>
>
> --
> View this message in context: 
> http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13047981
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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



Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread chengas123



Wes Wannemacher wrote:
> 
> There is probably very little difference between the nightly build and
> trunk, I have found it's pretty easy to just build from trunk. If you
> don't have them already, get subversion and maven (both small
> downloads) and build it yourself.
> 
> Follow the instructions from this thread -
> 
> http://www.nabble.com/struts-2.1-beta-tf4509951.html#a12880737
> 
> You'll have your own xwork and struts2 pretty quickly.
> 
> -Wes
> 
> 


I was trying to build myself, but I'm afraid I can't agree that it's pretty
easy.  It appears the pom.xml files are broken along with who knows what
else.

-Ben




> 
> --- chengas123 <[EMAIL PROTECTED]> wrote:
> 
>>
>> If this is a known issue, why doesn't someone commit
>> the change?  I
>> understand this is the development branch, but it's
>> a pretty critical issue
>> to not be able to build the project.  Among other
>> things, it has to be a
>> deterrent in attracting new developers.
>> If I make that change I get:
>> [WARNING] Unable to load parent project from
>> repository: Could not find
>> the model file 'C:\struts2\..\pom.xml'. for project
>> unknown
>> And then later on it actually tries to compile, but
>> gets dozens of
>> compilation errors.  The first of which is:
>>
>>
> C:\struts2\core\src\main\java\org\apache\struts2\components\Debug.java:[25,46]
>> package com.opensymphony.xwork2.util.reflection does
>> not exist
>>
>>
>>
>> newton.dave wrote:
>> >
>> > IIRC there is still an issue with trunk regarding
>> the
>> > opensymphony id; it's something like
>> > "xwork.opensymphony.com" and needs to be just
>> > "opensymphony"... um...
>> >
>> > Index: core/pom.xml
>> >
>>
> ===
>> > --- core/pom.xml(revision 580129)
>> > +++ core/pom.xml(working copy)
>> > @@ -55,7 +55,7 @@
>> >  
>> >  
>> >  
>> > -  
>> > com.opensymphony.xwork
>> > +  
>> > opensymphony
>> >
>> > xwork
>> >
>> > 2.1-SNAPSHOT
>> >
>> > sources
>> > @@ -289,7 +289,7 @@
>> >
>> >  
>> >  
>> > -  
>> com.opensymphony.xwork
>> > +opensymphony
>> >  xwork
>> >  2.1-SNAPSHOT
>> >  
>> >
>> > --- chengas123 <[EMAIL PROTECTED]>
>> wrote:
>> >
>> >>
>> >> Ok.  I tried downloading from SVN, but got a
>> build
>> >> error.  Maven could not
>> >> find xwork-2.1-SNAPSHOT-sources.jar.  I had to
>> >> download it manually from
>> >> maven.opensymphony.com.  However, despite
>> following
>> >> the instruction maven
>> >> was giving me I could not figure out how to build
>> >> the project with the
>> >> manual download.
>> >>
>> >> -Ben
>> >>
>> >
>>
>> --
>> View this message in context:
>>
> http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13029359
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
> 
> 


-- 
View this message in context: 
http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13047981
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: Where are the logic: tags?

2007-10-04 Thread Marcos Hernandez
Thanks guys, I didn't know the  tag could be used that way.
But now I've found a Struts related problem: according to the Struts taglib,
the "list" attribute is obligatory for the  tag, therefore I can't
use a inside  tag with a FOR loop to fill it.
Thanx anyway :-)

On 10/1/07, Chris Pratt <[EMAIL PROTECTED]> wrote:
>
> You should be able to use:
>
> 
>
>   (*Chris*)
>
> On 10/1/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote:
> > To use the s:select tag you need to somehow put the consecutive
> > integers into a collection or Iterator. AFAIK there is no way to
> > define this collection easily using OGNL or JSTL (something like
> > comprehension lists in Haskell).
> >
> > 2007/10/1, Marcos Hernandez <[EMAIL PROTECTED]>:
> > > Thanks Cesar, but that's doesn't seems to be what I'm looking for. The
> > > c:forEach tag seems to have the same functionality that the s:iterate.
> > > What I need is a simple for, something to populate a  tag
> with a
> > > long list of consecutive integers, not with the values of a
> collection.
> > >
> > > Thanx anyway.
> > >
> > > On 10/1/07, Cesar Arevalo <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Oh and by the way, the logic tag is gone, IMO the struts2 guys did
> not
> > > > want to invent the wheel again. And also IMO the struts2 tags are
> more
> > > > concise to the framework and overlap less with what is already out
> there,
> > > > like jstl.
> > > >
> > > > -Cesar
> > > >
> > > > - Original Message 
> > > > From: Cesar Arevalo <[EMAIL PROTECTED]>
> > > > To: Struts Users Mailing List 
> > > > Sent: Monday, October 1, 2007 12:32:10 AM
> > > > Subject: Re: Where are the logic: tags?
> > > >
> > > > For iterating over a value you can use the struts2 tag s:iterator:
> > > >
> > > > http://struts.apache.org/2.x/docs/iterator.html
> > > >
> > > > , however if you want a foreach loop you could use fmtl tag
> c:forEach:
> > > >
> > > > http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk
> > > >
> > > > HTH
> > > > -Cesar
> > > >
> > > >
> > > > - Original Message 
> > > > From: Marcos Hernandez <[EMAIL PROTECTED]>
> > > > To: Struts Users Mailing List 
> > > > Sent: Monday, October 1, 2007 12:14:07 AM
> > > > Subject: Where are the logic: tags?
> > > >
> > > > Hi guys
> > > > Just today I found out that I miss them... Is there a way to create
> a for
> > > > loop in Struts2? because I think a block of jsp code will not work
> there,
> > > > what is required is a framework tag.
> > > >
> > > > Is the logic tag library gone?
> > > >
> > > > --
> > > > - Marcos H.
> > > > 
> > > > You must be the change you wish to see in the world
> > > > ~ Gandhi
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > - Marcos H.
> > > 
> > > You must be the change you wish to see in the world
> > > ~ Gandhi
> > >
> >
> > -
> > 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]
>
>


-- 
- Marcos H.

You must be the change you wish to see in the world
~ Gandhi


RE: Disabling struts UI objects

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
I found that same problem trying to use the disabled parameter of the
form tag.  I did a search on the generated html and found not one
element with the disabled attribute.  Any one else?

-Original Message-
From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 08, 2007 4:18 AM
To: user@struts.apache.org
Subject: Disabling struts UI objects

Hi,

I tried to set some UI elements (button, select, ...) to be disabled,
but they are still clickable.  I would like to disable certain UI
objects from an action code, where some logical verification will occur
as the form is prepared.  Any ideas about how this can be done?

Thanks,
Session


-
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: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread Wes Wannemacher
There is probably very little difference between the nightly build and
trunk, I have found it's pretty easy to just build from trunk. If you
don't have them already, get subversion and maven (both small
downloads) and build it yourself.

Follow the instructions from this thread -

http://www.nabble.com/struts-2.1-beta-tf4509951.html#a12880737

You'll have your own xwork and struts2 pretty quickly.

-Wes

On 10/4/07, chengas123 <[EMAIL PROTECTED]> wrote:
>
> Thank you for the suggestion, but unfortunately I still can't figure out how
> to get it to build as this is my first experience with Maven.
> I noticed someone placed struts-2.1.0-SNAPSHOT-lib.zip in the nightlies
> directory which I appreciate greatly, but while it includes most of the
> plugins, the dojo plugin is not there.  Would anyone who's familiar with the
> nightly build process mind taking a look to see if the dojo build could be
> included?
>
> Thanks,
> Ben
>
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-04 Thread chengas123

Thank you for the suggestion, but unfortunately I still can't figure out how
to get it to build as this is my first experience with Maven.
I noticed someone placed struts-2.1.0-SNAPSHOT-lib.zip in the nightlies
directory which I appreciate greatly, but while it includes most of the
plugins, the dojo plugin is not there.  Would anyone who's familiar with the
nightly build process mind taking a look to see if the dojo build could be
included?

Thanks,
Ben



newton.dave wrote:
> 
> I don't know enough about Maven to be able to help you
> much, but it may be as simple as clearing your repo
> cache (or whatever it's called). I am building from
> trunk with the below change w/o any difficulty, at
> least as of about a week ago.
> 
> --- chengas123 <[EMAIL PROTECTED]> wrote:
> 
>> 
>> If this is a known issue, why doesn't someone commit
>> the change?  I
>> understand this is the development branch, but it's
>> a pretty critical issue
>> to not be able to build the project.  Among other
>> things, it has to be a
>> deterrent in attracting new developers.
>> If I make that change I get:
>> [WARNING] Unable to load parent project from
>> repository: Could not find
>> the model file 'C:\struts2\..\pom.xml'. for project
>> unknown
>> And then later on it actually tries to compile, but
>> gets dozens of
>> compilation errors.  The first of which is: 
>>
>>
> C:\struts2\core\src\main\java\org\apache\struts2\components\Debug.java:[25,46]
>> package com.opensymphony.xwork2.util.reflection does
>> not exist
>> 
>> 
>> 
>> newton.dave wrote:
>> > 
>> > IIRC there is still an issue with trunk regarding
>> the
>> > opensymphony id; it's something like
>> > "xwork.opensymphony.com" and needs to be just
>> > "opensymphony"... um...
>> > 
>> > Index: core/pom.xml
>> >
>>
> ===
>> > --- core/pom.xml(revision 580129)
>> > +++ core/pom.xml(working copy)
>> > @@ -55,7 +55,7 @@
>> >  
>> >  
>> >  
>> > -   
>> > com.opensymphony.xwork
>> > +   
>> > opensymphony
>> > 
>> > xwork
>> > 
>> > 2.1-SNAPSHOT
>> > 
>> > sources
>> > @@ -289,7 +289,7 @@
>> > 
>> >  
>> >  
>> > -   
>> com.opensymphony.xwork
>> > +opensymphony
>> >  xwork
>> >  2.1-SNAPSHOT
>> >  
>> > 
>> > --- chengas123 <[EMAIL PROTECTED]>
>> wrote:
>> > 
>> >> 
>> >> Ok.  I tried downloading from SVN, but got a
>> build
>> >> error.  Maven could not
>> >> find xwork-2.1-SNAPSHOT-sources.jar.  I had to
>> >> download it manually from
>> >> maven.opensymphony.com.  However, despite
>> following
>> >> the instruction maven
>> >> was giving me I could not figure out how to build
>> >> the project with the
>> >> manual download.
>> >> 
>> >> -Ben
>> >> 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13029359
>> 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/-s2--Struts-head-tag-KILLS-%28%3E-10s%29-page-load-time-tf4490390.html#a13046693
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: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread rapsy


I don't think that matters but I gave a try just in case. The error message
is now changed to:
(Error) Invalid element 'arg0' in content of 'field', expected elements
'[msg, arg, var]'.

Thanks for your reply!

Cesar Arevalo wrote:
> 
> Hey Rapsy,
> 
> just a quick thought, shouldn't the arguments start at index 0? this
> meaning that you should have 
> 
>
> 
> 
> ??
> 
> -Cesar
> 
> 
> - Original Message 
> From: rapsy <[EMAIL PROTECTED]>
> To: user@struts.apache.org
> Sent: Thursday, October 4, 2007 11:27:27 AM
> Subject: Struts validation error on Jdeveloper 10.1.3.3
> 
> 
> 
> Hi,
> 
> I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper
> IDE
> ver 10.1.3.3.0. 
> I have created the following validation in validation.xml file. 
> 
> 
> 
> 
> 
> min0
>
> max9
> 
> 
> When I run my application on JDeveloper I get the following list of
> errors.
> (Error) Invalid element 'arg1' in content of 'field', expected elements
> '[msg, arg, var]'.
> (Error) Element 'arg1' used but not declared.
> XML-20137: (Error) Attribute 'name' used but not declared.
> 
> Can someone tell me why I am getting these errors? Thank you!
> 
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841
> 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/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13046682
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: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
Hey Rapsy,

just a quick thought, shouldn't the arguments start at index 0? this meaning 
that you should have 

   


??

-Cesar


- Original Message 
From: rapsy <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, October 4, 2007 11:27:27 AM
Subject: Struts validation error on Jdeveloper 10.1.3.3



Hi,

I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper IDE
ver 10.1.3.3.0. 
I have created the following validation in validation.xml file. 





min0
   
max9


When I run my application on JDeveloper I get the following list of errors.
(Error) Invalid element 'arg1' in content of 'field', expected elements
'[msg, arg, var]'.
(Error) Element 'arg1' used but not declared.
XML-20137: (Error) Attribute 'name' used but not declared.

Can someone tell me why I am getting these errors? Thank you!



-- 
View this message in context: 
http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841
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]



Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread rapsy


Hi,

I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper IDE
ver 10.1.3.3.0. 
I have created the following validation in validation.xml file. 





min0
   
max9


When I run my application on JDeveloper I get the following list of errors.
(Error) Invalid element 'arg1' in content of 'field', expected elements
'[msg, arg, var]'.
(Error) Element 'arg1' used but not declared.
XML-20137: (Error) Attribute 'name' used but not declared.

Can someone tell me why I am getting these errors? Thank you!



-- 
View this message in context: 
http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841
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: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
You must be using Spring framework but not the Spring plug-in.  Here is
the link to help you setup.

http://struts.apache.org/2.x/docs/spring-plugin.html

-Original Message-
From: ros [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 12:18 PM
To: user@struts.apache.org
Subject: RE: how to keep object from action to action


Yes, this is it. How to setup StrutsSpringObjectFactory as current?
web.xml?
struts.xml?

Thanks.


Jiang, Jane (NIH/NCI) [C] wrote:
> 
> If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your
> object factory, and you define mypojo in your action to match your
bean
> id in the application context, mypojo will be automatically injected
for
> you by the spring framework.  You don't need to use
> myManager.loadPojo().  
> 
> You should set the scope of your pojo to be "request" if that is what
> you want.  The default is singleton.
> 
> 

-- 
View this message in context:
http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127
.html#a13043532
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]



actionPackages parameter provokes PermGen memory error

2007-10-04 Thread wild_oscar

Dear all,

I've been struggling with a Permgen error on my application's development:
after a number of re-deployments, I get a permgen memory error in Tomcat 6
(described in more detail here 
http://www.nabble.com/forum/ViewPost.jtp?post=12984476&framed=y
http://www.nabble.com/forum/ViewPost.jtp?post=12984476&framed=y ).

After a few days analizing with Jprofiler (and learing more about memory
leaks in  http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded Frank
Kieviet's  useful blog post), I got to no conclusion about the origin of the
leak. So I conducted a test. Starting from Struts2's blank application, I
made a script that deployed and undeployed the application in Tomcat so it
would fill the permgen space. If it all was ok, once permgen space was full
it would release unlinked objects (thus increasing permgen's free space). If
something went wrong, it would give me the permgen error.

To my suprise, I built my application and got the Permgen space when I
added:


actionPackages
com


to my Struts2 filter.

I had this parameter so I could annotate my actions. 

I tried deleting all my .com package classes. So, even with an empty
package, putting the actionPackages parameter will give me a PermGen error
on re-deployment and removing it will make Permgen memory be managed
alright.

Does anyone know why this happens and how to solve it? Can you reproduce
this error?

All input appreciated, this permgen error is driving me crazy!

-- 
View this message in context: 
http://www.nabble.com/actionPackages-parameter-provokes-PermGen-memory-error-tf4570271.html#a13044908
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: Struts debug mode

2007-10-04 Thread Dave Newton
--- Viplav Kallepu <[EMAIL PROTECTED]> wrote:
> why do we need source files of third party jars.

So you can see the source if you're
debugging/executing something in a class contained in
one of the third party jars. You don't *have* to have
them, especially if you don't care about what's going
on in them.

d.


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



Re: s:select onchange and validation

2007-10-04 Thread Jason Deffenbaugh
I just used a hidden field to save the index.  Easier way?

-Jason

On Thu, 2007-10-04 at 11:07 -0400, Jason Deffenbaugh wrote:
> Hello,
> 
> I have two s:select drop downs on my page, lets call them x and y.  When
> I change the value of x I populate y using the onchange attribute
> calling a javascript function.  If the user then tries to submit the
> form with errors my validation kicks in and refreshes the page showing
> the field errors etc. but I lose the data I populated in y via my
> javascript function.  Is there a way to save the state of y in this
> scenario without struts repopulating the s:select with what is in its
> list attribute?
> 
> Hope that makes sense.
> 
> -Jason
> 
> 
> -
> 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 debug mode

2007-10-04 Thread Viplav Kallepu
Thanks for the replies. I haven't tried jadeclipse and eclipse europa. I
will try them to and see how debug mode works. One thing I wansn't able to
figure out. why do we need source files of third party jars. Even the java
jre we include is like third party to eclipse. Still it is able to debug the
core java application. I am trying to understand if my understanding is
wrong please excuse me. If I keep a breakpoint in action class it should
stop there and show me the values that was what I was expecting with my past
experience using eclipse.

On 10/3/07, Stephen Boudreaux <[EMAIL PROTECTED]> wrote:
>
> I've found that Eclipse can be confusing when you want to attach the
> source of a library. Namely, you can't right click a library and
> select properties when in the J2EE view. You can go to the Java view
> and go there to attach the source there. If you are still having
> mysterious issues, you might want to consider jumping onto Eclipse
> Europa (3.3) WTP (I think they made it alot easier to get set up), or
> alternatively use the Red Hat Developer Studio (which is Eclipse 3.3
> plus WTP plus several other plugins).
>
> On 10/3/07, João Vieira da Luz <[EMAIL PROTECTED]> wrote:
> > in order to go third party classes you must have source attached those
> third
> > party jars or you could use jad plugin (
> http://jadclipse.sourceforge.net/).
> >
> >
> >
> > On 10/2/07, Viplav Kallepu <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks for the reply.. when I put breakpoints in my action class and
> start
> > > the server in debugging mode and run my application in browser.. its
> > > stopping at the breakpoint and not going forward(It is showing it in
> the
> > > debug console)..I feel it is not able to find the source files as in
> > > .deployables donot contain source files.. Can anyone help me sorting
> out
> > > this..
> > >
> > > On 10/2/07, João Vieira da Luz <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Remote debugging is the keyword. WTP already supports that.
> > > >
> > > > On 10/2/07, Viplav Kallepu <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5
> .  Can
> > > > anyone
> > > > > please tell me how to enable debugging in it like we debug the
> core
> > > java
> > > > > application in eclipse. I googled it but the I wasn't able to find
> a
> > > > > single
> > > > > correct solution to try (I cant use myeclipse because I have to
> use
> > > > > eclipse
> > > > > in my work).
> > > > >
> > > > > --
> > > > > Regards
> > > > > Viplav Kallepu
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Regards
> > > Viplav Kallepu
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards
Viplav Kallepu


RE: how to keep object from action to action

2007-10-04 Thread ros

Yes, this is it. How to setup StrutsSpringObjectFactory as current? web.xml?
struts.xml?

Thanks.


Jiang, Jane (NIH/NCI) [C] wrote:
> 
> If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your
> object factory, and you define mypojo in your action to match your bean
> id in the application context, mypojo will be automatically injected for
> you by the spring framework.  You don't need to use
> myManager.loadPojo().  
> 
> You should set the scope of your pojo to be "request" if that is what
> you want.  The default is singleton.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127.html#a13043532
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 issue- not retaining..

2007-10-04 Thread Jose4u

thanks  Ramita
Can u send  a sample code and if any help material
and can u provide how it can be done in this implementation.


Ramita Gambhir wrote:
> 
> Hi,
> 
> You can try using DWR for AJAX implementation...Its very easy to use.
> There are few other libraries like prototype.js, DOJO toolkit...I haven't
> used them but you may want to explore them too...
> I have worked on DWR and its really helpful...
> 
> Regards,
> Ramita
> 
> 
> Jose4u wrote:
>> 
>> thank for the reply
>> Since the data is too large, i think its not advisable to load everthing
>> in the session scope.
>> Since like this i have some 4  to 5 combo boxes.
>> 
>> Can you please help me out, how i can do this implementation using AJAX
>> call.
>> 
>> Thanks in advance
>> Joseph
>> 
>> 
>> Zarar Siddiqi wrote:
>>> 
>>> Yeah, you're going to have to load them every time.  You could store
>>> the collections in session or application scope if that's feasible but
>>> other than that you don't really have a choice.  Alternately, I think
>>> the cleanest way of doing this might be to make an Ajax call to load
>>> the third selection instead of reloading your page by submitting to
>>> the action again.
>>> 
>>> If you choose to call the action every time, you can have your action
>>> implement the Preparable interface where you can do the collection
>>> initialization in the prepare() method.
>>> 
>>> Zarar
>>> 
>>> On 10/3/07, Jose4u <[EMAIL PROTECTED]> wrote:

 In my jsp file i have threecombo boxes.  1 & 2 needs to be
 loaded
 from the db and the 3rd needs to loaded based on the (2)second combo
 box
 selection. I have implemented in such a way that in my action i have 3
 collection objects. Intially b4 moving to jsp iam loading two
 collection
 object values from the db and in the jsp on change event of the
 (2)second
 list  box i am calling the action class again and loading the third
 collection object with values but my problem is the previous two
 collection
 object is null. do i need to load the previous two collection objects
 every
 time on calling the action class? Please provide me the solution how to
 implement in struts2.

 Thanks in advance
 joseph
 --
 View this message in context:
 http://www.nabble.com/struts2-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13031516
 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-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13043130
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: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your
object factory, and you define mypojo in your action to match your bean
id in the application context, mypojo will be automatically injected for
you by the spring framework.  You don't need to use
myManager.loadPojo().  

You should set the scope of your pojo to be "request" if that is what
you want.  The default is singleton.



-Original Message-
From: ros [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 11:32 AM
To: user@struts.apache.org
Subject: RE: how to keep object from action to action


Yes, I use spring. I will describe question in details: 

Same situation
my1.html -(mypojo.id)-> action1.save -(mypojo)-> action2.edit-(mypojo)->
my2.jsp -> my2.html

action1 loads mypojo:

class action1 {
 ..
 private mypojo;
 setMypojo()..
 getMyPojo()
...
 public String save () {
mypojo = mymanager.loadMyPojo();
   return SUCCESS;
 }
}

then on action1 success defined:
  action2

action2.edit executed and it does not load mypojo. 

action2.edit returns SUCCESS result passed to jsp: 
 /WEB-INF/pages/my2.jsp


Can action2.edit see mypojo loaded by action1.save?
  Will struts2 call action2.setMypojo and pass pojo from action1 to
action2?
Can my2.jsp see mypojo loaded by action1.save?
 Does pojo stays in request scope?

Thanks. 


Jiang, Jane (NIH/NCI) [C] wrote:
> 
> If you use the Spring framework, you can define your object as Spring
> beans and have them injected to your action.  
> 
> -Original Message-
> From: ros [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 04, 2007 10:21 AM
> To: user@struts.apache.org
> Subject: how to keep object from action to action
> 
> 
> Hi!
> 
> I use struts2 and want to load object in action1 and then access in in
> action2 and result jsp, like on drawing
> 
> my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit
> -(myobject)-> my2.jsp -> my2.html
> 
> I do not want to load this object in action2.edit if it was already
> loaded
> in action1.save. 
> 
> Can struts2 pass objects from action to action?  
> 
> Thanks.
> 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127
> .html#a13040888
> 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/how-to-keep-object-from-action-to-action-tf4569127
.html#a13042482
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: how to keep object from action to action

2007-10-04 Thread ros

Yes, I use spring. I will describe question in details: 

Same situation
my1.html -(mypojo.id)-> action1.save -(mypojo)-> action2.edit-(mypojo)->
my2.jsp -> my2.html

action1 loads mypojo:

class action1 {
 ..
 private mypojo;
 setMypojo()..
 getMyPojo()
...
 public String save () {
mypojo = mymanager.loadMyPojo();
   return SUCCESS;
 }
}

then on action1 success defined:
  action2

action2.edit executed and it does not load mypojo. 

action2.edit returns SUCCESS result passed to jsp: 
 /WEB-INF/pages/my2.jsp


Can action2.edit see mypojo loaded by action1.save?
  Will struts2 call action2.setMypojo and pass pojo from action1 to
action2?
Can my2.jsp see mypojo loaded by action1.save?
 Does pojo stays in request scope?

Thanks. 


Jiang, Jane (NIH/NCI) [C] wrote:
> 
> If you use the Spring framework, you can define your object as Spring
> beans and have them injected to your action.  
> 
> -Original Message-
> From: ros [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 04, 2007 10:21 AM
> To: user@struts.apache.org
> Subject: how to keep object from action to action
> 
> 
> Hi!
> 
> I use struts2 and want to load object in action1 and then access in in
> action2 and result jsp, like on drawing
> 
> my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit
> -(myobject)-> my2.jsp -> my2.html
> 
> I do not want to load this object in action2.edit if it was already
> loaded
> in action1.save. 
> 
> Can struts2 pass objects from action to action?  
> 
> Thanks.
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127
> .html#a13040888
> 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/how-to-keep-object-from-action-to-action-tf4569127.html#a13042482
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 issue- not retaining..

2007-10-04 Thread Ramita Gambhir

Hi,

You can try using DWR for AJAX implementation...Its very easy to use. There
are few other libraries like prototype.js, DOJO toolkit...I haven't used
them but you may want to explore them too...
I have worked on DWR and its really helpful...

Regards,
Ramita


Jose4u wrote:
> 
> thank for the reply
> Since the data is too large, i think its not advisable to load everthing
> in the session scope.
> Since like this i have some 4  to 5 combo boxes.
> 
> Can you please help me out, how i can do this implementation using AJAX
> call.
> 
> Thanks in advance
> Joseph
> 
> 
> Zarar Siddiqi wrote:
>> 
>> Yeah, you're going to have to load them every time.  You could store
>> the collections in session or application scope if that's feasible but
>> other than that you don't really have a choice.  Alternately, I think
>> the cleanest way of doing this might be to make an Ajax call to load
>> the third selection instead of reloading your page by submitting to
>> the action again.
>> 
>> If you choose to call the action every time, you can have your action
>> implement the Preparable interface where you can do the collection
>> initialization in the prepare() method.
>> 
>> Zarar
>> 
>> On 10/3/07, Jose4u <[EMAIL PROTECTED]> wrote:
>>>
>>> In my jsp file i have threecombo boxes.  1 & 2 needs to be
>>> loaded
>>> from the db and the 3rd needs to loaded based on the (2)second combo box
>>> selection. I have implemented in such a way that in my action i have 3
>>> collection objects. Intially b4 moving to jsp iam loading two collection
>>> object values from the db and in the jsp on change event of the
>>> (2)second
>>> list  box i am calling the action class again and loading the third
>>> collection object with values but my problem is the previous two
>>> collection
>>> object is null. do i need to load the previous two collection objects
>>> every
>>> time on calling the action class? Please provide me the solution how to
>>> implement in struts2.
>>>
>>> Thanks in advance
>>> joseph
>>> --
>>> View this message in context:
>>> http://www.nabble.com/struts2-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13031516
>>> 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-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13042330
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: Session scoped ActionForm causing strange behaviour

2007-10-04 Thread Ramita Gambhir

Hi,

Thanks a lot for your replies :-) 

I found the solution to my problem. It was a case of missing "name"
parameter in the .
I had used . It was showing the values from
previous form object.

Thanks a bunch! 
Regards,
Ramita



Antonio Petrelli-3 wrote:
> 
> 2007/10/3, Ramita Gambhir <[EMAIL PROTECTED]>:
>>
>> Is there any way I can refresh the values in the Form object?
> 
> 
> 
> What do you exactly mean with "refresh"?
> 
> 
> I read
>> somewhere reset() function is not called in session scoped forms. If I
>> call
>> reset(), can it help?
> 
> 
> Probably, but you have to override it to clear your properties in your
> ActionForm class.
> 
> Antonio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Session-scoped-ActionForm-causing-strange-behaviour-tf4560983.html#a13042125
Sent from the Struts - User mailing list archive at Nabble.com.


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



s:select onchange and validation

2007-10-04 Thread Jason Deffenbaugh
Hello,

I have two s:select drop downs on my page, lets call them x and y.  When
I change the value of x I populate y using the onchange attribute
calling a javascript function.  If the user then tries to submit the
form with errors my validation kicks in and refreshes the page showing
the field errors etc. but I lose the data I populated in y via my
javascript function.  Is there a way to save the state of y in this
scenario without struts repopulating the s:select with what is in its
list attribute?

Hope that makes sense.

-Jason


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



RE: ognl problem ?

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
So you have no problem if you only nest attribute less than 4 times?  I
thought you have to use the value parameter to pull the value to the
page.  Were you able to set the attribute?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 6:46 AM
To: user@struts.apache.org
Subject: ognl problem ?


I have an object named ticket in may Action class.
this object has an attributes which has an attribute which has an 
attribute which has an attibute.
When I want to display it in a textfield, I use the synthax below:





Nothing appears when the page is displayed. And the object value is 
clearly appearing (debugger shows me) to be not null in the action
class.
The problem appears each time whe have an object nested 4 times.
Can someone explains me why my value can't be displayed in such
situation.

Meissa




L'integrite de ce message n'etant pas assuree sur internet, Natixis ne
peut etre tenu responsable de son contenu. Toute utilisation ou
diffusion non autorisee est interdite. Si vous n'etes pas destinataire
de ce message, merci de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails
que si necessaire

The integrity of this message cannot be guaranteed on the Internet.
Natixis can not therefore be considered responsible for the contents.
Any unauthorized use or dissemination is prohibited. If you are not the
intended recipient of this message, then please delete it and notify the
sender.
Let us mind the environment : let's print our mails only when necessary.

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



RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
If you use the Spring framework, you can define your object as Spring
beans and have them injected to your action.  

-Original Message-
From: ros [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 10:21 AM
To: user@struts.apache.org
Subject: how to keep object from action to action


Hi!

I use struts2 and want to load object in action1 and then access in in
action2 and result jsp, like on drawing

my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit
-(myobject)-> my2.jsp -> my2.html

I do not want to load this object in action2.edit if it was already
loaded
in action1.save. 

Can struts2 pass objects from action to action?  

Thanks.


-- 
View this message in context:
http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127
.html#a13040888
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: struts 1 iterate tag

2007-10-04 Thread solid
nevermind.  I figured it out
> I am having some trouble with some struts 1 interface code.  I have an
> object that contains an unknown number of key/value pairs and I want to
> display them in a checkbox where the checkbox value is the key and the
> Label is the value.  I am having no problem iterating and binding the keys
> to checkboxes, my problem is displaying the values because iterate can
> only handle one array at a time.  Below is my code and any ideas would be
> greatly appreciated:
>
> Relevant JSP code:
>
>  id="idArrayElement">
>   
> 
>   
>
> 
>
> MyActionForm:
>
> //imports ignored for brevity
> public class MyActionForm extends ActionForm
> {
> protected String[] selectIdsArray = {};
> protected String[] idArray = {"1","2","3","4"};
> protected String[] valueArray = {"Value 1","Value 2", "Value 3", "value
> 4"};
>
> public String[] getSelectIdsArray(){return selectIdsArray;}
> public String[] getIdArray(){return idArray;}
> public String[] getValueArray(){return valueArray;}
>
> // Setter methods left out on purpose
>
> }
>
>
>
>
> --
> Cheers,
> Solid
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers,
Solid


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



How do you populate with action or for that matter from any other file which can be commonly used to populate

2007-10-04 Thread naveen472-m
How do you populate  with action or for that matter from any other 
file which can be commonly used to populate  on other pages?

Please help me with this
Its URGENT

   
-
 Forgot the famous last words? Access your message archive online. Click here.

how to keep object from action to action

2007-10-04 Thread ros

Hi!

I use struts2 and want to load object in action1 and then access in in
action2 and result jsp, like on drawing

my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit
-(myobject)-> my2.jsp -> my2.html

I do not want to load this object in action2.edit if it was already loaded
in action1.save. 

Can struts2 pass objects from action to action?  

Thanks.


-- 
View this message in context: 
http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127.html#a13040888
Sent from the Struts - User mailing list archive at Nabble.com.


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



struts 1 iterate tag

2007-10-04 Thread solid
I am having some trouble with some struts 1 interface code.  I have an
object that contains an unknown number of key/value pairs and I want to
display them in a checkbox where the checkbox value is the key and the
Label is the value.  I am having no problem iterating and binding the keys
to checkboxes, my problem is displaying the values because iterate can
only handle one array at a time.  Below is my code and any ideas would be
greatly appreciated:

Relevant JSP code:


  

  
   


MyActionForm:

//imports ignored for brevity
public class MyActionForm extends ActionForm
{
protected String[] selectIdsArray = {};
protected String[] idArray = {"1","2","3","4"};
protected String[] valueArray = {"Value 1","Value 2", "Value 3", "value 4"};

public String[] getSelectIdsArray(){return selectIdsArray;}
public String[] getIdArray(){return idArray;}
public String[] getValueArray(){return valueArray;}

// Setter methods left out on purpose

}




-- 
Cheers,
Solid


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



Re: [S2] Access to ressource Bundle

2007-10-04 Thread Wes Wannemacher
The class that is handling your ResourceBundle is -

http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/util/LocalizedTextUtil.html

'findResourceBundle(String aBundleName, Locale locale)' looks
promising, but I'm guessing it's not what your looking for.

It doesn't appear that there is a straightforward way to access the
'instance' of your resource bundle once it has been added. You could
make a JIRA and it would probably be an easy fix. There are other
possible ways to solve your problem in the interim, you could
invalidate the cache through a static method, or just about anything
else inventive you can think of.

-Wes

On 10/4/07, Julien Leonard <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> In my Struts2 project, I use a custom ResourceBundle which takes i18n in a
> database and cache them.
>
> I have configured Struts to use it in struts.xml like this :
>
>  value="com.xxx.xxx.i18n.StrutsResourceBundle"/>
>
> And it works !
> But I want to acces to the ressource bundle instance to be able to invalid
> the cache.
> Is there someone that have an idea on this ?
>
>
> Julien
>
>
>
> This e-mail, any attachments and the information contained therein ("this 
> message") are confidential and intended solely for the use of the 
> addressee(s). If you have received this message in error please send it back 
> to the sender and delete it. Unauthorized publication, use, dissemination or 
> disclosure of this message, either in whole or in part is strictly prohibited.
> **
> Ce message electronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci apres "le message" ), sont 
> confidentiels et destines exclusivement a l'usage de la  personne a laquelle 
> ils sont adresses. Si vous avez recu ce message par erreur, merci  de le 
> renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, 
> totale ou partielle ou divulgation sous quelque forme que se soit non 
> expressement autorisees de ce message, sont interdites.
> **
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



Re: Struts2 Pre-Action

2007-10-04 Thread stanlick
It also looks like Manning has released Struts 2 in Action through their
Early Access Program!

http://www.manning.com/dbrown/

On 10/4/07, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> On 10/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> > web-project altogether with just Struts2 ... no Spring2 and no
> Hibernate.
>
> What are you using instead of Hibernate (or the like)? I mean JDBC
> works, but ... ugh ... those were the bad old days. Or, is the plan to
> use Toplink as a JPA provider?
>
> -Ted.
> 
> Meet me at ApacheCon US 2007:
> * http://us.apachecon.com/us2007/program/talk/1883
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Scott
[EMAIL PROTECTED]


Re: ognl problem ?

2007-10-04 Thread stanlick
Double check that your action has a public getTicket() and that it has a
public getAsset() and that it has a public getUnderlying() and that it has a
public getReference().  As you probably know, spelling and case matters :)

Scott

On 10/4/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
>
> I have an object named ticket in may Action class.
> this object has an attributes which has an attribute which has an
> attribute which has an attibute.
> When I want to display it in a textfield, I use the synthax below:
> 
> 
> 
> 
>
> Nothing appears when the page is displayed. And the object value is
> clearly appearing (debugger shows me) to be not null in the action class.
> The problem appears each time whe have an object nested 4 times.
> Can someone explains me why my value can't be displayed in such situation.
>
> Meissa
>
>
>
>
> L'integrite de ce message n'etant pas assuree sur internet, Natixis ne
> peut etre tenu responsable de son contenu. Toute utilisation ou diffusion
> non autorisee est interdite. Si vous n'etes pas destinataire de ce message,
> merci de le detruire et d'avertir l'expediteur.
> Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails
> que si necessaire
>
> The integrity of this message cannot be guaranteed on the Internet.
> Natixis can not therefore be considered responsible for the contents. Any
> unauthorized use or dissemination is prohibited. If you are not the intended
> recipient of this message, then please delete it and notify the sender.
> Let us mind the environment : let's print our mails only when necessary.
>



-- 
Scott
[EMAIL PROTECTED]


Re: struts 2.1 beta

2007-10-04 Thread Ted Husted
If it does, please feel free to file a issue ticket against 2.1.0.

 * https://issues.apache.org/struts/browse/WW/fixforversion/21794

-Ted.

On 10/4/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> We did all of the things described in the performance-tuning tips.
> But we've been using intensively ajax tag (datetime picker and
> autocompleter).
> Theses two tags force us to include the killing head tag.
> When we removed them (removing the head tag in the same time) our pages
> are faster (a least 5 times).
>
> I think that if the head tag will still kill performance on 2.1. It should
> be told in the performance tip.
>
> It will surely help posting a link to a temporary struts 2.1 version.
>
> thank in advance.
> Meissa
>
>
>
>
> "Ted Husted" <[EMAIL PROTECTED]>
> Envoyé par : [EMAIL PROTECTED]
> 04/10/2007 13:08
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> "Struts Users Mailing List" 
> cc
>
> Objet
> Re: struts 2.1 beta
>
>
>
>
>
>
> For performance problems, be sure to follow the advice on this page.
>
>  * http://struts.apache.org/2.x/docs/performance-tuning.html
>
> If you do all of these things, and still consider the performance
> unacceptable, then I doubt that Struts 2.1 will make a startling
> difference. If performance is the key concern, then Struts 1 is still
> the best choice. I also understand that Tapestry performs well.
>
> If it helps, I'll post a link to a temporary Struts 2.1 snapshot, with
> all the dependencies, on the developers list. As soon as XWork 2.1.0
> is available, we'll roll a Struts 2.1.0 distribution for testing,
> which should be "real soon now".
>
>  * http://www.nabble.com/Struts---Dev-f205.html
>
> -- HTH, Ted
> Attend "Migrating to Ajax" at ApacheCon US 2007:
>  * http://us.apachecon.com/us2007/program/talk/1883
>
>
> On 9/25/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> > That's exactly what I wanted. I new complete un-released version.
> > But at this time, I'm giving up. To tired.
> > I'll restart using struts when a version without the dreadfull
> performance
> > impact will be around.
> >
> > I hope that we'll get it before the end of the century.
> >
> > Meissa
> >
> >
> >
> >
> >
> >
> > Dave Newton <[EMAIL PROTECTED]>
> > 25/09/2007 14:56
> > Veuillez répondre à
> > "Struts Users Mailing List" 
> >
> >
> > A
> > Struts Users Mailing List 
> > cc
> >
> > Objet
> > Re: struts 2.1 beta
> >
> >
> >
> >
> >
> >
> > If you want a complete build of an un-released version
> > then AFAIK you need to build it from source. The
> > repository contains the dependent libraries.
> >
> > The nightly builds are just that, builds, not
> > distributions (again, AFAIK).
> >
> > --- [EMAIL PROTECTED] wrote:
> > > I just need to grab the nightly version WITH
> > > DEPENDANTS LIBRAIRIES if it exist.
> > > the link below
> > >
> >
> http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
> > > drive me to that one
> > >
> > http://people.apache.org/builds/struts/nightlies/2.x/
> > >
> > > No librairies.
> > > Meissa
> > >
> > >
> > >
> > > Dave Newton <[EMAIL PROTECTED]>
> > > 25/09/2007 14:28
> > > Veuillez répondre à
> > > "Struts Users Mailing List" 
> > >
> > >
> > > A
> > > Struts Users Mailing List 
> > > cc
> > >
> > > Objet
> > > Re: struts 2.1 beta
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- Oleg Mikheev <[EMAIL PROTECTED]> wrote:
> > > > Dave Newton wrote:
> > > > >> I have just renamed it to struts2-core.jar and
> > > > >> replaced in my application that was working
> > > with
> > > > >> 2.0.9 version.
> > > > >
> > > > > You can't just randomly replace libraries.
> > > >
> > > > You can replace 2.0.8 with 2.0.9, but you can't
> > > > replace 2.0.9 with 2.1.0
> > >
> > > You certainly *could*, but it would still make me
> > > nervous w/o testing since XWork revved also... I
> > > guess
> > > I always think that dropping in a new library
> > > revision
> > > w/o keeping track of library dependencies is risky.
> > >
> > > d.
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > L'integrite de ce message n'etant pas assuree sur
> > > internet, Natixis ne peut etre tenu responsable de
> > > son contenu. Toute utilisation ou diffusion non
> > > autorisee est interdite. Si vous n'etes pas
> > > destinataire de ce message, merci de le detruire et
> > > d'avertir l'expediteur.
> > > Ensemble, faisons un geste pour l'environnement :
> > > n'imprimons nos mails que si necessaire
> > >
> > > The integrity of this message cannot be guaranteed
> > > on the Internet. Natixis can not therefore be
> > > considered responsible for the contents. Any
> > > unauthorized use or dissemination is prohibited. If
> > > you are not the intended recipient of this message,
> > > then please delete it and notify the sender.
> > >
> >
> >
> > ---

Re: struts 2.1 beta

2007-10-04 Thread meissa . sakho

We did all of the things described in the performance-tuning tips.
But we've been using intensively ajax tag (datetime picker and 
autocompleter).
Theses two tags force us to include the killing head tag.
When we removed them (removing the head tag in the same time) our pages 
are faster (a least 5 times).

I think that if the head tag will still kill performance on 2.1. It should 
be told in the performance tip.

It will surely help posting a link to a temporary struts 2.1 version.

thank in advance.
Meissa




"Ted Husted" <[EMAIL PROTECTED]> 
Envoyé par : [EMAIL PROTECTED]
04/10/2007 13:08
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: struts 2.1 beta






For performance problems, be sure to follow the advice on this page.

 * http://struts.apache.org/2.x/docs/performance-tuning.html

If you do all of these things, and still consider the performance
unacceptable, then I doubt that Struts 2.1 will make a startling
difference. If performance is the key concern, then Struts 1 is still
the best choice. I also understand that Tapestry performs well.

If it helps, I'll post a link to a temporary Struts 2.1 snapshot, with
all the dependencies, on the developers list. As soon as XWork 2.1.0
is available, we'll roll a Struts 2.1.0 distribution for testing,
which should be "real soon now".

 * http://www.nabble.com/Struts---Dev-f205.html

-- HTH, Ted
Attend "Migrating to Ajax" at ApacheCon US 2007:
 * http://us.apachecon.com/us2007/program/talk/1883


On 9/25/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> That's exactly what I wanted. I new complete un-released version.
> But at this time, I'm giving up. To tired.
> I'll restart using struts when a version without the dreadfull 
performance
> impact will be around.
>
> I hope that we'll get it before the end of the century.
>
> Meissa
>
>
>
>
>
>
> Dave Newton <[EMAIL PROTECTED]>
> 25/09/2007 14:56
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> Struts Users Mailing List 
> cc
>
> Objet
> Re: struts 2.1 beta
>
>
>
>
>
>
> If you want a complete build of an un-released version
> then AFAIK you need to build it from source. The
> repository contains the dependent libraries.
>
> The nightly builds are just that, builds, not
> distributions (again, AFAIK).
>
> --- [EMAIL PROTECTED] wrote:
> > I just need to grab the nightly version WITH
> > DEPENDANTS LIBRAIRIES if it exist.
> > the link below
> >
> 
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
> > drive me to that one
> >
> http://people.apache.org/builds/struts/nightlies/2.x/
> >
> > No librairies.
> > Meissa
> >
> >
> >
> > Dave Newton <[EMAIL PROTECTED]>
> > 25/09/2007 14:28
> > Veuillez répondre à
> > "Struts Users Mailing List" 
> >
> >
> > A
> > Struts Users Mailing List 
> > cc
> >
> > Objet
> > Re: struts 2.1 beta
> >
> >
> >
> >
> >
> >
> > --- Oleg Mikheev <[EMAIL PROTECTED]> wrote:
> > > Dave Newton wrote:
> > > >> I have just renamed it to struts2-core.jar and
> > > >> replaced in my application that was working
> > with
> > > >> 2.0.9 version.
> > > >
> > > > You can't just randomly replace libraries.
> > >
> > > You can replace 2.0.8 with 2.0.9, but you can't
> > > replace 2.0.9 with 2.1.0
> >
> > You certainly *could*, but it would still make me
> > nervous w/o testing since XWork revved also... I
> > guess
> > I always think that dropping in a new library
> > revision
> > w/o keeping track of library dependencies is risky.
> >
> > d.
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > L'integrite de ce message n'etant pas assuree sur
> > internet, Natixis ne peut etre tenu responsable de
> > son contenu. Toute utilisation ou diffusion non
> > autorisee est interdite. Si vous n'etes pas
> > destinataire de ce message, merci de le detruire et
> > d'avertir l'expediteur.
> > Ensemble, faisons un geste pour l'environnement :
> > n'imprimons nos mails que si necessaire
> >
> > The integrity of this message cannot be guaranteed
> > on the Internet. Natixis can not therefore be
> > considered responsible for the contents. Any
> > unauthorized use or dissemination is prohibited. If
> > you are not the intended recipient of this message,
> > then please delete it and notify the sender.
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> L'integrite de ce message n'etant pas assuree sur internet, Natixis ne 
peut etre tenu responsable de son contenu. Toute utilisation ou diffusion 
non autorisee est interdite. Si vous n'etes pas destinataire de ce 
message, merci de le detruire et d'avertir l'expediteur.
> Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails 
que si necessaire
>
> The integrity of thi

Re: struts 2.1 beta

2007-10-04 Thread Ted Husted
For performance problems, be sure to follow the advice on this page.

 * http://struts.apache.org/2.x/docs/performance-tuning.html

If you do all of these things, and still consider the performance
unacceptable, then I doubt that Struts 2.1 will make a startling
difference. If performance is the key concern, then Struts 1 is still
the best choice. I also understand that Tapestry performs well.

If it helps, I'll post a link to a temporary Struts 2.1 snapshot, with
all the dependencies, on the developers list. As soon as XWork 2.1.0
is available, we'll roll a Struts 2.1.0 distribution for testing,
which should be "real soon now".

 * http://www.nabble.com/Struts---Dev-f205.html

-- HTH, Ted
Attend "Migrating to Ajax" at ApacheCon US 2007:
 * http://us.apachecon.com/us2007/program/talk/1883


On 9/25/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> That's exactly what I wanted. I new complete un-released version.
> But at this time, I'm giving up. To tired.
> I'll restart using struts when a version without the dreadfull performance
> impact will be around.
>
> I hope that we'll get it before the end of the century.
>
> Meissa
>
>
>
>
>
>
> Dave Newton <[EMAIL PROTECTED]>
> 25/09/2007 14:56
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> Struts Users Mailing List 
> cc
>
> Objet
> Re: struts 2.1 beta
>
>
>
>
>
>
> If you want a complete build of an un-released version
> then AFAIK you need to build it from source. The
> repository contains the dependent libraries.
>
> The nightly builds are just that, builds, not
> distributions (again, AFAIK).
>
> --- [EMAIL PROTECTED] wrote:
> > I just need to grab the nightly version WITH
> > DEPENDANTS LIBRAIRIES if it exist.
> > the link below
> >
> http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
> > drive me to that one
> >
> http://people.apache.org/builds/struts/nightlies/2.x/
> >
> > No librairies.
> > Meissa
> >
> >
> >
> > Dave Newton <[EMAIL PROTECTED]>
> > 25/09/2007 14:28
> > Veuillez répondre à
> > "Struts Users Mailing List" 
> >
> >
> > A
> > Struts Users Mailing List 
> > cc
> >
> > Objet
> > Re: struts 2.1 beta
> >
> >
> >
> >
> >
> >
> > --- Oleg Mikheev <[EMAIL PROTECTED]> wrote:
> > > Dave Newton wrote:
> > > >> I have just renamed it to struts2-core.jar and
> > > >> replaced in my application that was working
> > with
> > > >> 2.0.9 version.
> > > >
> > > > You can't just randomly replace libraries.
> > >
> > > You can replace 2.0.8 with 2.0.9, but you can't
> > > replace 2.0.9 with 2.1.0
> >
> > You certainly *could*, but it would still make me
> > nervous w/o testing since XWork revved also... I
> > guess
> > I always think that dropping in a new library
> > revision
> > w/o keeping track of library dependencies is risky.
> >
> > d.
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > L'integrite de ce message n'etant pas assuree sur
> > internet, Natixis ne peut etre tenu responsable de
> > son contenu. Toute utilisation ou diffusion non
> > autorisee est interdite. Si vous n'etes pas
> > destinataire de ce message, merci de le detruire et
> > d'avertir l'expediteur.
> > Ensemble, faisons un geste pour l'environnement :
> > n'imprimons nos mails que si necessaire
> >
> > The integrity of this message cannot be guaranteed
> > on the Internet. Natixis can not therefore be
> > considered responsible for the contents. Any
> > unauthorized use or dissemination is prohibited. If
> > you are not the intended recipient of this message,
> > then please delete it and notify the sender.
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
> etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
> autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
> de le detruire et d'avertir l'expediteur.
> Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que 
> si necessaire
>
> The integrity of this message cannot be guaranteed on the Internet. Natixis 
> can not therefore be considered responsible for the contents. Any 
> unauthorized use or dissemination is prohibited. If you are not the intended 
> recipient of this message, then please delete it and notify the sender.
>


-- 
HTH, Ted 

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



Re: Struts2 Pre-Action

2007-10-04 Thread Ted Husted
On 10/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> web-project altogether with just Struts2 ... no Spring2 and no Hibernate.

What are you using instead of Hibernate (or the like)? I mean JDBC
works, but ... ugh ... those were the bad old days. Or, is the plan to
use Toplink as a JPA provider?

-Ted.

Meet me at ApacheCon US 2007:
 * http://us.apachecon.com/us2007/program/talk/1883

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



Re: Struts2 Pre-Action

2007-10-04 Thread Ted Husted
The native Struts2 solution would be to use an interceptor, or to
piggy back on an interceptor that already exists. Writing your own
interceptor is not difficult

 * http://struts.apache.org/2.x/docs/writing-interceptors.html

and I would suggest that everyone at least try writing one interceptor once :)

Another way to go is to piggy-back on an existing inceptor, like
SessionAware or ModelDriven. The interfaces describe a setter or a
getter. When that method is called, it becomes an event, so you can
call your own singleton or what-have-you to acquire the bean as save
it to the Action.

For example, here's a SessionAware setter that exposes a User object
stored in the session as a property.

  @SuppressWarnings("unchecked")
public void setSession(Map value) {
session = value;
// setUser when session available
Object object = value.get(USER_KEY);
if (object==null) {
User myUser = new MyMemoryUser();
setUser(myUser);
setTask(INSERT);
} else {
setUser((User) object);
setTask(UPDATE);
}   
}

In turn, the ModelDriven getter can call getUser:

public Object getModel() {
return getUser();
}

If SessonAware wasn't locating the user property, we could inject some
could here to acquire and cache the property. (Though doing it advance
is a much better approach!)

We could really use a good description of ModelDriven on the website.
For now, the best resource would be Ian's Getting Started or WebWork
in Action.


> I wish there were some more books out there on Struts2 ... I'd
> read them first before asking here.

Today, WebWork in Action is still the best Struts 2 book available!
But that will start to change as Kurniawan's book and Roughley's new
books ship this month and next. Anyone who is interested in Struts 2
books should pre-order one or both of these now, to encourage other
authors.

 * http://struts.apache.org/2.x/docs/home.html#Home-Books

-- HTH, Ted

Meet me at ApacheCon US 2007:
 * http://us.apachecon.com/us2007/program/talk/1883

On 10/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> I've been playing with Struts2+Spring2 beans+Hibernate and that all
> works very well.
>
> So, now I am trying something simpler ... so consider this a new
> web-project altogether with just Struts2 ... no Spring2 and no Hibernate.
> Basically, I want to call a pre-Action action that loads a bean into a
> session and then calls a JSP page ... simple right?
>
> So, I am presuming that in the struts.xml file I have an action like:
> 
> /mypage.jsp
> /myerror.jsp
> 
>
> Is that all I need?   Is there anything else?   Can you send me some
> links for examples?
>
> God!   I wish there were some more books out there on Struts2 ... I'd
> read them first before asking here.
> And yes, I tried getting information from Google first.
>
> Thanks very much for all the help!
>  Tom

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



ognl problem ?

2007-10-04 Thread meissa . sakho

I have an object named ticket in may Action class.
this object has an attributes which has an attribute which has an 
attribute which has an attibute.
When I want to display it in a textfield, I use the synthax below:





Nothing appears when the page is displayed. And the object value is 
clearly appearing (debugger shows me) to be not null in the action class.
The problem appears each time whe have an object nested 4 times.
Can someone explains me why my value can't be displayed in such situation.

Meissa




L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.
Let us mind the environment : let's print our mails only when necessary.


Re: [ANN] Three Struts Tutorials or Presentations at ApacheCon US 2007 Atlanta GA

2007-10-04 Thread Lionel
Pavel Sapozhnikov wrote:

> Second about this ApacheCon...will the power point or pdf slides be
> available after the conference has ended?


Comparing Java Web Frameworks  from Matt Raible is already available
http://raibledesigns.com/rd/entry/ja_sig_comparing_java_web 




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



Re: S2 on JDK 1.4

2007-10-04 Thread Antonio Petrelli
2007/10/4, Joshua Jackson <[EMAIL PROTECTED]>:
> Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2?
> or use Webwork 2 instead?


You have to use Struts 2 jars for JDK 1.4:
http://struts.apache.org/download.cgi#struts209?update=200707231930
Download: struts-2.0.9-j4.zip

HTH
Antonio

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



Re: Struts URLs for perfectionists like Ebay's URLs

2007-10-04 Thread Vo Van Thuong

Hi, Vinny
i also try urlrewrite but cannot get it work with struts 2's action,
only work with static html files.

would you pls give give me some sample app or guides to
   > have
   > my urls  go from  this :  /myAction.do?p1=v1&p2=v2 to
   > /myAction/p1,v1/p2,v2/

best regards,

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

To: "Struts Users Mailing List" 
Sent: Tuesday, October 02, 2007 10:29 PM
Subject: Re: Struts URLs for perfectionists like Ebay's URLs



Also, you might want to look at URLRewrite
http://tuckey.org/urlrewrite/  That is what I've been using in S1 and S2 
to

have
my urls  go from  this :  /myAction.do?p1=v1&p2=v2 to
/myAction/p1,v1/p2,v2/

I'm also using the zero config and code behind plugins in struts2 that 
also

work to hide the extention.
I use urlfilter in addition to the plugins to customize the look of my url
parameters.




On 10/1/07, Piero Sartini <[EMAIL PROTECTED]> wrote:


Am Montag 01 Oktober 2007 23:33:01 schrieb Emi Lu:
> Is there a way to hide .action & .do by using filter & url-pattern?

Have a look at
http://code.google.com/p/smarturls-s2/wiki/WalkThrough (last paragraph:
Extensionless URLs)

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





--
The Street Programmer http://streetprogrammer.com




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



Override the default behavior of Add/Remove in Select Components

2007-10-04 Thread Shoaib Gauhar
Hello:

I am working in Struts 2 and would like to override
the default behavior of Add and Remove button which
are rendered by the OptionTransferSelect tag. Can I do
this?

Regards,
Shoaib Ahmad


   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

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



S2 on JDK 1.4

2007-10-04 Thread Joshua Jackson
Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2?
or use Webwork 2 instead?

Thanks in advance

-- 
It's not just about coding, it's a matter of fulfilling your core being

YM!: thejavafreak
Blog: http://joshuajava.wordpress.com/

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



[S2] Access to ressource Bundle

2007-10-04 Thread Julien Leonard
Hello all,
 
In my Struts2 project, I use a custom ResourceBundle which takes i18n in a
database and cache them.
 
I have configured Struts to use it in struts.xml like this :
 


And it works !
But I want to acces to the ressource bundle instance to be able to invalid
the cache.
Is there someone that have an idea on this ?


Julien 



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres "le message" ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 


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



Re: Tiles 2 setup with Struts2

2007-10-04 Thread Roberto Nunnari

Yes, tiles-default extends struts-default.
Here's the content of struts-plugin.xml from the library
struts2-tiles-plugin-2.0.9.jar

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




class="org.apache.struts2.views.tiles.TilesResult"/>






Best regards.

--
Robi


Emi Lu wrote:



here's the example:


...


see? it's enough that your packages extend tiles-default.


It works as well! That's nice! Thank you Robi.


I did:
===
[1] deleted




from struts.xml



[2] updated struts.xml:

from


to




I hope "tiles-default" supports/extends all default struts2 setup, right?

I mean, if package extends "tiles-default", all struts2 properties such as
  Menu
  /Success.jsp 
  /Logon.jsp   
  /Logon.jsp
  and other parameters will still work.

Cheers!










Emi Lu wrote:

Thank you very much !

It works!


Following Your comments, I did:


=

  org.apache.struts
  struts2-tiles-plugin
  ${version.tiles}
  compile


   to web.xml


the above looks like maven stuff.. shouldn't be in web.xml


Deleted from web.xml



[2] 
  class="org.apache.struts2.views.tiles.TilesResult"/>



  to the struts.xml file's package section


you could also extends tiles definition instead


May I get an example? Is it for java action class extends tiles or 
web.xml file update, would you tell me how?


For now, I did not change this section.



[3]
   
  TileHelloWorld
   

to the struts.xml file


ok


no change.



[4]   
  
  

   to tiles-defs.xml (this file is saved under /WEB-INF/)

   For struts2, where and how to notify the system to load the 
titles-defs.xml? I suppose that the system will find this file 
auto-matically?


that should be in WEB-INF/tiles.xml and not tiles-defs.xml
unless you include it..


rename to tile.xml; now the file is loaded auto-matically :)






-
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 issue- not retaining..

2007-10-04 Thread Jose4u

thank for the reply
Can you please help me out, how i can do this implementation using AJAX
call.

Thanks in advance
Joseph


Zarar Siddiqi wrote:
> 
> Yeah, you're going to have to load them every time.  You could store
> the collections in session or application scope if that's feasible but
> other than that you don't really have a choice.  Alternately, I think
> the cleanest way of doing this might be to make an Ajax call to load
> the third selection instead of reloading your page by submitting to
> the action again.
> 
> If you choose to call the action every time, you can have your action
> implement the Preparable interface where you can do the collection
> initialization in the prepare() method.
> 
> Zarar
> 
> On 10/3/07, Jose4u <[EMAIL PROTECTED]> wrote:
>>
>> In my jsp file i have threecombo boxes.  1 & 2 needs to be
>> loaded
>> from the db and the 3rd needs to loaded based on the (2)second combo box
>> selection. I have implemented in such a way that in my action i have 3
>> collection objects. Intially b4 moving to jsp iam loading two collection
>> object values from the db and in the jsp on change event of the (2)second
>> list  box i am calling the action class again and loading the third
>> collection object with values but my problem is the previous two
>> collection
>> object is null. do i need to load the previous two collection objects
>> every
>> time on calling the action class? Please provide me the solution how to
>> implement in struts2.
>>
>> Thanks in advance
>> joseph
>> --
>> View this message in context:
>> http://www.nabble.com/struts2-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13031516
>> 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-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13034802
Sent from the Struts - User mailing list archive at Nabble.com.


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



struts2 s:select problem

2007-10-04 Thread zul;jami

I have a action class extending actionsupport

in  which I have a getters and setters for a Hashmap

in my execute I populate the hashmap.

But in my select it is not showing
This is code in my jsp.



If I use sessionaware and put it in session,then in my java code in jsp i am
able to get the values of the hashmap.

But my list is not populating.pls help

-- 
View this message in context: 
http://www.nabble.com/struts2-s%3Aselect-problem-tf4566390.html#a13034352
Sent from the Struts - User mailing list archive at Nabble.com.


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