Re: Wildcard mappings with subdirectories / folders?

2009-08-02 Thread Itamar

Hello
I have the same problem as yours.
But I could not solve this.
You did something aa beyond this?

Thanks
Itamar Nunes
Brazil


Dave Belfer-Shevett-2 wrote:
 
 On Wed, 18 Jun 2008, Dave Belfer-Shevett wrote:
 Hi folks - I'm trying to divide up my struts app into subdirectories (the
 application has a 'public' interface, and an 'administrative' interface
 called 'coconut'.  Don't ask).
 
 And here I am answering my own question.  A little googling found me this 
 gem:
 
 constant name=struts.enable.SlashesInActionNames value=true /
 
 And that fixed it.  The following action entries work:
 
  action name=coconut/*
  interceptor-ref name=mystack /
  result 
 name=success/WEB-INF/jsp/coconut/{1}.jsp/result
  result 
 name=login/WEB-INF/jsp/coconut/index.jsp/result
  /action

  action name=public/*
  interceptor-ref name=mystack /
  result 
 name=success/WEB-INF/jsp/public/{1}.jsp/result
  result 
 name=login/WEB-INF/jsp/public/index.jsp/result
  /action
 
 All fixed, thanks!
 
   -d
 
 -- 
 ---..---.
 Dave Belfer-Shevett \ KB1FWR \ JID: d...@jabber.stonekeep.com \
 blog:planet-geek.com '---.
 d...@homeport.org/ Things you'll hear if you have a Klingon on  \
 ---   your development team: 3) This code is a|
 |   piece of crap! You have no honor!   |
  \__/
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wildcard-mappings-with-subdirectories---folders--tp17987316p24775300.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-08-02 Thread Burton Rhodes
Good eye (damn you drunk fingers) however, even with correct
spelling the errors are still logged.  Could a different package/class
be throwing the error?

On Sat, Aug 1, 2009 at 8:57 PM, Dave Newtonnewton.d...@yahoo.com wrote:
 Burton Rhodes wrote:

 Not trying to hijack this thread, but I am from the latter camp Wes
 described.  I tried removing the logged errors as you suggested, but
 it doesn't seem to work.  If I move up to the broad
 com.opensymphony.xwork2 package it works, but this will remove too
 much I fear.  When I drill down to the xwork2.ogln package the
 error is logged.  What am I missing?

 !-- This successfully removes the logged errors, but is too broad! --
 category name=com.opensymphony.xwork2 additivity=true
   priority value=FATAL/
 /category

 !-- This DOES NOT remove the logged errors, one package down --
 category name=com.opensymphony.xwork2.ogln additivity=true
   priority value=FATAL/
 /category

 What happen when you spell ognl correctly?

 Dave

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-08-02 Thread Martin Gainty

a genuine bug..the prob is trying to hunt down the file as it seems to have 
disappeared

notice the disconnect between com.opensymphony.xwork2.ognl classes and 
ognl.ObjectPropertyAccessor;

here is 2.1.4 xwork class that actually references the non-existent base class
/*** @author Gabe */
public class XWorkObjectPropertyAccessor extends ObjectPropertyAccessor {
}

we need to get patrick involved as that file has been deleted from source a 
while ago.. 
http://fisheye5.cenqua.com/browse/ognl/java/ognl
 
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Sun, 2 Aug 2009 09:26:36 -0500
 Subject: Re: [S2] OgnlValueStack Error setting expression warnings after  
 upgrade from struts 2 to struts 2.1.7
 From: burtonrho...@gmail.com
 To: user@struts.apache.org
 
 Good eye (damn you drunk fingers) however, even with correct
 spelling the errors are still logged.  Could a different package/class
 be throwing the error?
 
 On Sat, Aug 1, 2009 at 8:57 PM, Dave Newtonnewton.d...@yahoo.com wrote:
  Burton Rhodes wrote:
 
  Not trying to hijack this thread, but I am from the latter camp Wes
  described.  I tried removing the logged errors as you suggested, but
  it doesn't seem to work.  If I move up to the broad
  com.opensymphony.xwork2 package it works, but this will remove too
  much I fear.  When I drill down to the xwork2.ogln package the
  error is logged.  What am I missing?
 
  !-- This successfully removes the logged errors, but is too broad! --
  category name=com.opensymphony.xwork2 additivity=true
priority value=FATAL/
  /category
 
  !-- This DOES NOT remove the logged errors, one package down --
  category name=com.opensymphony.xwork2.ogln additivity=true
priority value=FATAL/
  /category
 
  What happen when you spell ognl correctly?
 
  Dave
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 

_
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM

Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-08-02 Thread Dave Newton

Martin Gainty wrote:

a genuine bug..the prob is trying to hunt down the file as it seems to have 
disappeared

notice the disconnect between com.opensymphony.xwork2.ognl classes and 
ognl.ObjectPropertyAccessor;

here is 2.1.4 xwork class that actually references the non-existent base class
/*** @author Gabe */
public class XWorkObjectPropertyAccessor extends ObjectPropertyAccessor {
}

we need to get patrick involved as that file has been deleted from source a while ago.. 
http://fisheye5.cenqua.com/browse/ognl/java/ognl


The file is there: you are looking in the wrong place, and the commit 
comment for the deletion spells out exactly what happened.


If it was a non-existent base class XWork wouldn't compile.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Wildcard mappings with subdirectories / folders?

2009-08-02 Thread Martin Gainty

did you notice the diff between
/WEB-INF/jsp/coconut/and
/WEB-INF/jsp/public
can you post your struts-default.xml
?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Sat, 1 Aug 2009 23:25:52 -0700
 From: itamar...@gmail.com
 To: user@struts.apache.org
 Subject: Re: Wildcard mappings with subdirectories / folders?
 
 
 Hello
 I have the same problem as yours.
 But I could not solve this.
 You did something aa beyond this?
 
 Thanks
 Itamar Nunes
 Brazil
 
 
 Dave Belfer-Shevett-2 wrote:
  
  On Wed, 18 Jun 2008, Dave Belfer-Shevett wrote:
  Hi folks - I'm trying to divide up my struts app into subdirectories (the
  application has a 'public' interface, and an 'administrative' interface
  called 'coconut'.  Don't ask).
  
  And here I am answering my own question.  A little googling found me this 
  gem:
  
  constant name=struts.enable.SlashesInActionNames value=true /
  
  And that fixed it.  The following action entries work:
  
 action name=coconut/*
 interceptor-ref name=mystack /
 result 
  name=success/WEB-INF/jsp/coconut/{1}.jsp/result
 result 
  name=login/WEB-INF/jsp/coconut/index.jsp/result
 /action
 
 action name=public/*
 interceptor-ref name=mystack /
 result 
  name=success/WEB-INF/jsp/public/{1}.jsp/result
 result 
  name=login/WEB-INF/jsp/public/index.jsp/result
 /action
  
  All fixed, thanks!
  
  -d
  
  -- 
  ---..---.
  Dave Belfer-Shevett \ KB1FWR \ JID: d...@jabber.stonekeep.com \
  blog:planet-geek.com '---.
  d...@homeport.org/ Things you'll hear if you have a Klingon on  \
  ---   your development team: 3) This code is a|
  |   piece of crap! You have no honor!   |
   \__/
  
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Wildcard-mappings-with-subdirectories---folders--tp17987316p24775300.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 

_
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009

RE: Wildcard mappings with subdirectories / folders?

2009-08-02 Thread Itamar

Hello Martin Gainty,
I am beginner in Struts 2 and Maven.
Can I send you my project to see?

Great

Itamar Nunes
itamar...@gmail.com



did you notice the diff between
/WEB-INF/jsp/coconut/and
/WEB-INF/jsp/public
can you post your struts-default.xml
?
Martin Gainty 

-- 
View this message in context: 
http://www.nabble.com/Wildcard-mappings-with-subdirectories---folders--tp17987316p24779610.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Default-class-ref for Convention plugin?

2009-08-02 Thread Tom Terrace
Hi everyone,In my app I use a base action class to define some simple helper
methods which are used throughout my jsps (i.e. getCurrentTime(),
getCurrentUser(), etc.).  Before switching to the Convention plugin, I used
default-class-ref class=BaseAction/ to ensure that these methods were
available for all my actionless jsps. With the convention plugin it looks
like these actionless results are hard coded to use ActionSupport.

My initial work around was to modify the ConventionUnknownHandler class and
add in a constant - struts.convention.default.class.ref which is used in
place of the ActionSupport reference. This works pretty well but I'd rather
not have to use a custom jar, so I was wondering if anyone else had run into
this problem, or if there was any other way to get around this without
reverting back to struts.xml.

Thanks for your help,
-Tom


Re: Default-class-ref for Convention plugin?

2009-08-02 Thread Dave Newton

Tom Terrace wrote:

Hi everyone,In my app I use a base action class to define some simple helper
methods which are used throughout my jsps (i.e. getCurrentTime(),
getCurrentUser(), etc.).  Before switching to the Convention plugin, I used
default-class-ref class=BaseAction/ to ensure that these methods were
available for all my actionless jsps. With the convention plugin it looks
like these actionless results are hard coded to use ActionSupport.

My initial work around was to modify the ConventionUnknownHandler class and
add in a constant - struts.convention.default.class.ref which is used in
place of the ActionSupport reference. This works pretty well but I'd rather
not have to use a custom jar, so I was wondering if anyone else had run into
this problem, or if there was any other way to get around this without
reverting back to struts.xml.


IIRC there's a bean defined in Convention's config file that defines the 
unknown handler--have you tried looking in to that?


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Default-class-ref for Convention plugin?

2009-08-02 Thread Thomas Terrace
Hi everyone,In my app I use a base action class to define some simple helper
methods which are used throughout my jsps (i.e. getCurrentTime(),
getCurrentUser(), etc.).  Before switching to the Convention plugin, I used
default-class-ref class=BaseAction/ to ensure that these methods were
available for all my actionless jsps. With the convention plugin it looks
like these actionless results are hard coded to use ActionSupport.

My initial work around was to modify the ConventionUnknownHandler class and
add in a constant - struts.convention.default.class.ref which is used in
place of the ActionSupport reference. This works pretty well but I'd rather
not have to use a custom jar, so I was wondering if there was any other way
to get around this without reverting back to struts.xml.

Thanks for your help,
-Tom


Re: New to Struts, a Question

2009-08-02 Thread Dennis Atkinson
I have a follow-up question about this subject (redirecting to an Action class 
rather than a jsp file).

When I do the redirect, and the target is an Action class with validated input 
fields, when the screen is initially shown, I get ... field is required 
messages on everything.  Apparently the Action class thinks a user submit was 
done, and so it runs all its validations.  This isn't the behavior I would like 
to see; I tried removing the input result from struts.xml but that just 
causes a No result defined error.

Does anyone know the trick to this?

Thanks,
Dennis






From: Dennis Atkinson dennisatkinson...@yahoo.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 30, 2009 1:18:12 PM
Subject: Re: New to Struts, a Question

Thanks to all who helped with this - I understand it better now.

Dennis






From: Martin Gainty mgai...@hotmail.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 30, 2009 8:32:01 AM
Subject: RE: New to Struts, a Question


in your config files look for default result assignment with result tag as in

result/userDisplay.jsp/result
http://struts.apache.org/2.0.14/docs/result-configuration.html

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Wed, 29 Jul 2009 21:14:24 -0400
 Subject: Re: New to Struts, a Question
 From: tomsatt...@gmail.com
 To: user@struts.apache.org
 
 In my struts.xml file, I have the UserDisplayAction class and a blank (no
 name=) result for userDisplay.jsp.  Does it pick up from there?
 
 
 
 On Wed, Jul 29, 2009 at 8:40 PM, Dave Newton newton.d...@yahoo.com wrote:
 
  Dennis Atkinson wrote:
 
  Dave,
 
  OK, I  can make it work.  I just don't understand WHY it works.
 
  If I change to this: a href=/betaSystem/userDisplay.actionMy
  Acccount/a
 
  I get exactly what I expect; the screen loads with the data filled in
  properly.
 
  But what I don't understand is how Struts knows to load
  userDisplay.jsp.  I assume it parses the userDisplay out of the url
  and appends the .jsp to the end, so as long as I have these names
  the same (other than the suffix), this will work?
 
 
  You don't have a user display action configured via XML or annotations?
 
 
  Dave
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

_
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
http://www.bing.com/search?q=restaurantsform=MLOGENpubl=WLHMTAGcrea=TXT_MLOGEN_Local_Local_Restaurants_1x1


  

Re: Default-class-ref for Convention plugin?

2009-08-02 Thread Tom Terrace
Damn, double post - I thought the other mail didn't get sent
Dave, thanks I will take a look at that

-Tom

On Sun, Aug 2, 2009 at 2:57 PM, Dave Newton newton.d...@yahoo.com wrote:

 Tom Terrace wrote:

 Hi everyone,In my app I use a base action class to define some simple
 helper
 methods which are used throughout my jsps (i.e. getCurrentTime(),
 getCurrentUser(), etc.).  Before switching to the Convention plugin, I
 used
 default-class-ref class=BaseAction/ to ensure that these methods were
 available for all my actionless jsps. With the convention plugin it
 looks
 like these actionless results are hard coded to use ActionSupport.

 My initial work around was to modify the ConventionUnknownHandler class
 and
 add in a constant - struts.convention.default.class.ref which is used in
 place of the ActionSupport reference. This works pretty well but I'd
 rather
 not have to use a custom jar, so I was wondering if anyone else had run
 into
 this problem, or if there was any other way to get around this without
 reverting back to struts.xml.


 IIRC there's a bean defined in Convention's config file that defines the
 unknown handler--have you tried looking in to that?

 Dave

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Default-class-ref for Convention plugin?

2009-08-02 Thread Dave Newton

Tom Terrace wrote:

Damn, double post - I thought the other mail didn't get sent
Dave, thanks I will take a look at that


It ended up in the moderation bin for whatever reason, so I approved 
it--no worries :)


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: New to Struts, a Question

2009-08-02 Thread Dave Newton

Dennis Atkinson wrote:

I have a follow-up question about this subject (redirecting to an
Action class rather than a jsp file).

When I do the redirect, and the target is an Action class with
validated input fields, when the screen is initially shown, I get
... field is required messages on everything.  Apparently the
Action class thinks a user submit was done, and so it runs all its
validations.  This isn't the behavior I would like to see; I tried
removing the input result from struts.xml but that just causes a
No result defined error.

Does anyone know the trick to this?


If you're redirecting to an action that has validation then you need to 
go specifically to a method that isn't validated, whether by default 
(input, for example, is excluded by default) or by configuration.


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-08-02 Thread Burton Rhodes
Well... I ended up limiting log level on the object
com.opensymphony.xwork2.ObjectFactory.  This seemed to do the trick.
 Not sure if that's the right solution though.

On Sun, Aug 2, 2009 at 10:40 AM, Dave Newtonnewton.d...@yahoo.com wrote:
 Martin Gainty wrote:

 a genuine bug..the prob is trying to hunt down the file as it seems to
 have disappeared

 notice the disconnect between com.opensymphony.xwork2.ognl classes and
 ognl.ObjectPropertyAccessor;

 here is 2.1.4 xwork class that actually references the non-existent base
 class
 /*** @author Gabe */
 public class XWorkObjectPropertyAccessor extends ObjectPropertyAccessor {
 }

 we need to get patrick involved as that file has been deleted from source
 a while ago.. http://fisheye5.cenqua.com/browse/ognl/java/ognl

 The file is there: you are looking in the wrong place, and the commit
 comment for the deletion spells out exactly what happened.

 If it was a non-existent base class XWork wouldn't compile.

 Dave

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org