Re: Action mapping - match on anything

2012-03-24 Thread Eric Lentz
Looks like it will! How did I manage to miss that? It was right there on the same page I referred to! Thanks Paweł! On Fri, Mar 23, 2012 at 4:20 PM, Paweł Wielgus wrote: > Hi Eric, > maybe this will help: > > > > Best regards, > Paweł Wielgus. > > >

Re: Action mapping - match on anything

2012-03-23 Thread Paweł Wielgus
Hi Eric, maybe this will help: Best regards, Paweł Wielgus. 2012/3/23 Eric Lentz : > Anyone know of a way, in Struts 2, to assign an action that matches on > anything in the URL, including slashes? This would be a catch-all, if no > other action specification is more specific. > > I co

Action mapping - match on anything

2012-03-23 Thread Eric Lentz
Anyone know of a way, in Struts 2, to assign an action that matches on anything in the URL, including slashes? This would be a catch-all, if no other action specification is more specific. I configured: If I have http://server/context/foo but it will not match on http://server/context/foo/bar

Struts2 wildcard action mapping with ognl expressions as field-names

2011-08-06 Thread mts42000
0 down vote favorite I am trying to populate a parameter named 'member.id' in an action class using regular expression and wildcard action mapping with Struts2. The action mapping is something like this: /signup/validationemail.jsp /error/500.jsp /error/500

Action Mapping

2011-04-08 Thread karthick.gunasekaran
In struts 2 some times we map actionname_* some times we use actionname_methodname some times we use actionname!methodname some times we use *actionname I want to know what is the different all of them we use method={1} in action mapping what is the meaning ? Please do not print this email

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
Older Struts/Tiles was notorious (at least in my experience) for swallowing exceptions whole. My first guess is that something is broken in one of your JSPs used by the tile. That's one good reason not to use such old technology for new development: you lose the benefits of hundreds of thousands o

Re: Problem with action mapping

2010-12-16 Thread Anjib Mulepati
There was space at the beginning. That is solved. I'm getting something but not whole page just logo and header. I though name should be body in tiles def file. so I change all to bosy as tiles.jsp has attribute="body" Still same problem. Anjib On 12/16/2010 2:15 PM, Dave Newton wrote: A sta

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
You'll probably want to turn your logging up to DEBUG. Dave On Thu, Dec 16, 2010 at 2:27 PM, Anjib Mulepati wrote: > Tomcat Log in Netbeans says > > Dec 16, 2010 2:26:03 PM org.apache.catalina.core.ApplicationDispatcher > invoke > WARNING: Servlet action is currently unavailable > > Anjib > > >

Re: Problem with action mapping

2010-12-16 Thread Anjib Mulepati
Tomcat Log in Netbeans says Dec 16, 2010 2:26:03 PM org.apache.catalina.core.ApplicationDispatcher invoke WARNING: Servlet action is currently unavailable Anjib On 12/16/2010 2:15 PM, Dave Newton wrote: A startup error. Check the logs. Dave On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
A startup error. Check the logs. Dave On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati wrote: > This is the problem I am facing everytime I am creating new project in > Netbeans and modify the default pages. Am I missing some sequence of action > or parameters. To make it clear I am including mo

Problem with action mapping

2010-12-16 Thread Anjib Mulepati
This is the problem I am facing everytime I am creating new project in Netbeans and modify the default pages. Am I missing some sequence of action or parameters. To make it clear I am including most of the code which I think are related. Can any one suggets me why I am getting following error w

Modifying action mapping per device type

2010-01-30 Thread Marcus Bond
Hi, I am wanting to implement a site such that some actions may have a different mapping depending upon the device used (e.g. regular browser / mobile device etc.) but what I don't want to do is have to litter my actions with this type of logic. It could be at the result mapping level (i.e. i

Re: Modifying action mapping per device type

2010-01-30 Thread Marcus Bond
Hi Wes, thanks for the post. I like the idea of being able to decorate screens differently depending on device without changing much existing code and I can see a use to this for example for pages being given a different footer to provide device specific links or adding side menus for devices

Re: Modifying action mapping per device type

2010-01-29 Thread Wes Wannemacher
I admit that I haven't read the whole thread, so flame me if you covered the answer already, but... Have you looked at Sitemesh? I would suggest look at creating different decorators for each of the devices you want to support, then code your undecorated JSPs so that they can be decorated based on

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
This could work ok, especially if there were a configuration file such that the jsp to forward to could be specified on a per action/result basis, which would prevent having to duplicate jsp files unnecesarily. I would consider this, but unfortunately I am mostly using a result type of "tiles"

Re: Modifying action mapping per device type

2010-01-29 Thread Gabriel Belingueres
Another direction would be to try implementing your own Result type: index Then the result would check the device type the user is accessing the application with, and you can try searching first for a: index_brand_model.jsp, and if not found search for: index_brand.jsp, then index.

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
Seems reasonable, however for me the problem here is that if you put getDevice() in a base class with common functionality then for every device type that may be returned you will have to create a copy of the jsp and this may need maintenance in time (or assuming it is the same jsp then maybe A

Re: Modifying action mapping per device type

2010-01-29 Thread Greg Lindholm
I've got the same situation and plan on handling by making the the result location dynamic by adding a ${device} to the path. /${device}/index.jsp In my actions I will have a getDevice() which will return a string (e.g. "iPhone" or "blackberry" etc.) based on the User-Agent or x-wa

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
Thanks for the info Andy, the interceptor seems an appropriate thing although it does mean there are multiple mappings in struts.xml. This seems at least a way that allows a site to grow in terms of new views without impacting upon the application code or exisiting views. Thinking about it thi

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
Interesting, I hadn't thought of that. However a problem I see here with this approach is that it implies that there would be different versions or a different mapping for every view whereas in reality, if a page looks / works fine on say iphone, htc, windows mobile but doesn't on an old blackb

Re: Modifying action mapping per device type

2010-01-28 Thread Andrew Sykes
> There are couple of ways I can think of to do this, but they're ugly: > - JSP level logic to render the page differently - dont want it, I'd > rather individual jsp's for each supported device (or family) as this > allows developers who are working on targeting a site to a specific > device to c

Re: Modifying action mapping per device type

2010-01-28 Thread Gabriel Belingueres
How about using different packages/namespaces for the views? /bb/index.jsp /wm/index.jsp 2010/1/28 Marcus Bond : > Hi, > > I am wanting to implement a site such that some actions may have a different > mapping depending upon the device used (e.g. regular

Modifying action mapping per device type

2010-01-28 Thread Marcus Bond
Hi, I am wanting to implement a site such that some actions may have a different mapping depending upon the device used (e.g. regular browser / mobile device etc.) but what I don't want to do is have to litter my actions with this type of logic. It could be at the result mapping level (i.e. i

set-property in action-mapping in Struts 2

2010-01-13 Thread Jose Luis Martinez Avial
Hi, In Struts 1 I was able to extend the class ActionMapping and declare additional properties for a mapping in the struts-config.xml by creating the method setPublica in the class MyActionMapping. Is it possible to do something similar in Struts 2? I've seen that there is a param eleme

Re: using 'method' in action mapping

2009-07-24 Thread Dave Newton
Bhaarat Sharma wrote: If I have a mapping like the following /reports/moneyowed/selectionpage.jsp the passBy method is doing nothing but returning SUCCESS When the above action mapping is ran and the jsp page consists something like will the value show?? If

using 'method' in action mapping

2009-07-24 Thread Bhaarat Sharma
If I have a mapping like the following /reports/moneyowed/selectionpage.jsp the passBy method is doing nothing but returning SUCCESS When the above action mapping is ran and the jsp page consists something like will the value show?? will providing attribute method

Re: Action mapping documentation (and a security question)

2009-06-30 Thread Jan T. Kim
On Sun, Jun 28, 2009 at 11:51:59AM -0400, Dave Newton wrote: > Jan T. Kim wrote: > >>>(2) Isn't encoding methods in action name suffixes like this a potential > >>>security issue? > > > >So, are wildcards useful for development but have to be expanded before > >putting a system to production use?

Re: Action mapping documentation (and a security question)

2009-06-28 Thread musomesa
Mailing List Sent: Sun, Jun 28, 2009 10:55 am Subject: Re: Action mapping documentation (and a security question) On Sun, Jun 28, 2009 at 08:15:43AM -0400, Dave Newton wrote: > Jan T. Kim wrote: > >(1) Where is the documentation of this wildcard syntax? > > http://struts

Re: Action mapping documentation (and a security question)

2009-06-28 Thread Dave Newton
Jan T. Kim wrote: (2) Isn't encoding methods in action name suffixes like this a potential security issue? So, are wildcards useful for development but have to be expanded before putting a system to production use? The only security issue I'm aware of is if the developer exposes unwanted be

Re: Action mapping documentation (and a security question)

2009-06-28 Thread Jan T. Kim
On Sun, Jun 28, 2009 at 08:15:43AM -0400, Dave Newton wrote: > Jan T. Kim wrote: > >(1) Where is the documentation of this wildcard syntax? > > http://struts.apache.org/2.x/docs/wildcard-mappings.html > http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardMethod

Re: Action mapping documentation (and a security question)

2009-06-28 Thread Dave Newton
Jan T. Kim wrote: (1) Where is the documentation of this wildcard syntax? http://struts.apache.org/2.x/docs/wildcard-mappings.html http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardMethod Although the underscore thing is mentioned I don't think it's explic

Action mapping documentation (and a security question)

2009-06-28 Thread Jan T. Kim
Hi All, In the "Validating Input" section of the "Bootstrap" tutorial, I've noticed the action mapping syntax ... which the tutorial suggests as a shorthand for configuring ... ... I have two questions abou

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread Dave Newton
SanJ.SANJAY wrote: I'm sorry if I've offended you in anyway. Not offended, frustrated. chapterOne, chapterTwo are in the StrutsInAction.war that comes > with struts 2 distribution. I'm not aware that there's anything called StrutsInAction.war shipped with the Struts 2 distribution; must ha

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
d luck, > Dave > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread Dave Newton
SanJ.SANJAY wrote: Thanks you for your precious time. If you can't read what the thread is about, how are you trying to give insights? You're welcome. How can I try to give insights? I generally can't, because you don't provide enough information, even after being asked, repeatedly. Over th

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
--- > 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/Action-mapping-issue-wh

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread Dave Newton
SanJ.SANJAY wrote: Ok, If you check this thread , the previous entries have all the history of code and configuration. I did'nt want to put the code in every reply and mess the thread. By the way I have found out the issue with atleast the Sample Application, JBOSS and Eclipse are messing with e

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
ur "check engine" light went on. If you > called up an automobile repair shop and said that your "check engine" > light went on and then hung up they wouldn't be able to fix it. > > Dave > > > ---------

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread Dave Newton
SanJ.SANJAY wrote: Everything (code and configuration) in chapterZero(the component I have added in this existing SampleApplication) is same as it is there for others (chapterTwo, chapterThree etc etc). So I am wondering 1. this is not the struts2-1 configuration issue since it is also not run

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
struts.apache.org > > > -- View this message in context: http://www.nabble.com/Action-mapping-issue-while-Integrating-S2-and-S1-tp21982941p22248697.html Sent from the Struts - User mailing list archive at Nabble.com. -

Trouble with an action mapping

2009-02-26 Thread laredotornado
Hi, I'm using Struts 2. I have this action-mapping ... I first visit my page, http://localhost:7005/re/jsp/pcAccountLookup.jsp, which submits a form to "/re/pcFlow.do". Unfortunately, this is when I

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread Dave Newton
SanJ.SANJAY wrote: ?? Was there more? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread SanJ.SANJAY
s being initialized. > > Dave > > - > 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.na

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread Dave Newton
SanJ.SANJAY wrote: In my already existing S1 i had aplication-context.xml and for S2 I am using another applicationContext.xml...would this be causing the problem? It *could* be, depending on how Spring is being initialized. Dave ---

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread SanJ.SANJAY
the log files, particularly if logging was turned up. > > Dave > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread SanJ.SANJAY
--- > 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/Action-mapping-issue-while-Integrating-S2-a

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread Dave Newton
SanJ.SANJAY wrote: I am planning to redo the struts 2 integration with S1 as it is so confusiong and frustrating. So this time I do not want to copy blindly all the jars from distribution of S2 to my S1 WEB-INF/lib. Can anyone suggest which all jars are needed to copyy to S1 lib? There is struts2

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread SanJ.SANJAY
levels and check the log. > > Dave > > > - > 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/Action-mapping-issue-while-Integrati

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread Dave Newton
SanJ.SANJAY wrote: I have'nt increased the logging level. I also suspect the same that its not even starting. ... Okay, then increase the logging levels and check the log. Dave - To unsubscribe, e-mail: user-unsubscr...@st

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
gt; >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>struts2 >>>>>>>>>/* >>>>>>>>> >>>&

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread Dave Newton
il.com To: user@struts.apache.org Subject: Re: Action mapping issue while Integrating S2 and S1 Ok thanks Dave, I have run standalone S2 from the SampleApplication that comes with the source code and which runs fine. Yes, I have the devMode turned on and tried removing it and it gave the same error. Also a

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
org.apache.struts2.tiles.StrutsTilesListener >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread Musachy Barroso
t;>>>>> >>>>>>> I have the same configuration for struts.xml >>>>>>> >>>>>>> >>>>>>> >>>>>>> mgainty wrote: >>>>>>>> >>>>>>>> >>>>>&g

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
>> >>>>>> >>>>>> >>>>>> mgainty wrote: >>>>>>> >>>>>>> >>>>>>> Here is a typical Struts configuration from WEB-INF/web.xml which >>>>>>> maps >>>>>>> any references t

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
struts2.dispatcher.FilterDispatcher >>>>>> >>>>>> >>>>>> struts >>>>>> /* >>>>>> >>>>>> >>>>>> struts >>>>>> >&g

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread Musachy Barroso
che.struts2.dispatcher.FilterDispatcher >>>>> >>>>> actionPackages >>>>> org.almayer.web.action >>>>> >>>>> >>>>> >>>>> HTH >>>>> Martin

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
> >>>> org.apache.struts2.dispatcher.FilterDispatcher >>>> >>>> actionPackages >>>> org.almayer.web.action >>>> >>>> >>>> >>>> HTH >>>> Mart

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread Musachy Barroso
e-mail and any attachments relates to the official >>> business of Sender. This transmission is of a confidential nature and >>> Sender does not endorse distribution to any party other than intended >>> recipient. Sender does not necessarily endorse content contained within

RE: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
a confidential nature and >> Sender does not endorse distribution to any party other than intended >> recipient. Sender does not necessarily endorse content contained within >> this transmission. >> >> >> >> >>> Date: Fri, 13 Feb 2009 07:25:25 -080

RE: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
endorse content contained within > this transmission. > > > > >> Date: Fri, 13 Feb 2009 07:25:25 -0800 >> From: girish...@gmail.com >> To: user@struts.apache.org >> Subject: Re: Action mapping issue while Integrating S2 and S1 >> >> >>

RE: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread Martin Gainty
not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 13 Feb 2009 07:25:25 -0800 > From: girish...@gmail.com > To: user@struts.apache.org > Subject: Re: Action mapping

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
; - > 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/Action-mapping-issu

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
; - > 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/Action-mapping-issu

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread Dave Newton
SanJ.SANJAY wrote: Anyone knows what is the right place top put the struts.xml file? I think the issue with my problem stated below is that context is not able to find struts.xml file and that is the reason it is not avle to map actions. I tried putting it in WEB-INF/classes also but didn't work.

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
t;>>>>> I >>>>>> update struts.xml file. >>>>>> >>>>>> I am getting error like that : >>>>>> There is no Action mapped for action name xyz >>>>>> >>>>>> I have defined my action in src/com

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
gt; >>>> extends="struts-default"> >>>>> >>>>> /jsp/reportIndex.jsp >>>>> >>>>> >>>>> &

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread Musachy Barroso
080/appcontext/com/cec/struts2/reportIndex.action >>>> >>>> And it throws error that I mentioned above. >>>> >>>> 14:12:14,875 WARN [Dispatcher] Could not find action or result There is >>>> no Action mapped for action name struts2. - [unknow

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
at >>> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) >>> at >>> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:59) >>> at >>> org.apache.struts2.rest.RestActionProxyFactory.c

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread Musachy Barroso
.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:40) >> at >> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458) >> at >> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) &g

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458) > > at > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.

Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) -- View this message in context: http://www.nabble.com/Action-mapping-issue-while-Integrating-S2-and-S1

Re: different tiles definition depending on the package of the action mapping

2008-10-28 Thread Antonio
> There seem to be three different ways to achieve my goal (with Tiles 2.1): > 1) using Wildcards: > > > > > > In that case my action mapping would have to provide the package name: > > ... > >... > > package_public.body_nextPage >

different tiles definition depending on the package of the action mapping

2008-10-28 Thread Stephan Schröder
: There seem to be three different ways to achieve my goal (with Tiles 2.1): 1) using Wildcards: In that case my action mapping would have to provide the package name: ... ... package_public.body_nextPage Is there a better possiblity to

Re: How does action mapping work on Struts2 Showcase example application?

2008-10-13 Thread Julio Alberto Jalón
You are rigth. There it was the mistery Thanks a lot - Mensaje original De: Dave Newton <[EMAIL PROTECTED]> Para: Struts Users Mailing List Enviado: lunes, 13 de octubre, 2008 15:22:45 Asunto: Re: How does action mapping work on Struts2 Showcase example application? ---

Re: How does action mapping work on Struts2 Showcase example application?

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Julio Alberto Jalón wrote: > Specifically I refer to "Person-Manager" functionallity. There is no > action reference to this part in struts.xml or struts-person.xml or > any xmle file. How is it working then? Is it using a sort of > wildcards? But, where is it configure? >

How does action mapping work on Struts2 Showcase example application?

2008-10-13 Thread Julio Alberto Jalón
Specifically I refer to "Person-Manager" functionallity. There is no action reference to this part in struts.xml or struts-person.xml or any xmle file. How is it working then? Is it using a sort of wildcards? But, where is it configure? Thanks in advance.

Re: [S2] action mapping with merely default action

2008-07-13 Thread Jeromy Evans
2008/7/13 Dave Newton <[EMAIL PROTECTED]>: Again, this is if you're intent on using XML configuration. Dave didn't mention that if you're NOT intent on using XML configuration, then the CodeBehind plugin was created exactly for this purpose. http://struts.apache.org/2.x/docs/cod

Re: [S2] action mapping with merely default action

2008-07-13 Thread Pierre Thibaudeau
Brilliant! Thanks, Dave! 2008/7/13 Dave Newton <[EMAIL PROTECTED]>: > Depending on how your application is laid out you could also put a > "catch-all" mapping at the end of your regular mappings, like so: > > > /static/{1}.jsp > > > Again, this is if you're intent on using XML configuration.

Re: [S2] action mapping with merely default action

2008-07-13 Thread Dave Newton
baudeau <[EMAIL PROTECTED]> wrote: > From: Pierre Thibaudeau <[EMAIL PROTECTED]> > Subject: [S2] action mapping with merely default action > To: "Struts Users Mailing List" > Date: Sunday, July 13, 2008, 4:43 PM > With Struts1, if I wished to render a JSP page w

Re: [S2] action mapping with merely default action

2008-07-13 Thread Dave Newton
--- On Sun, 7/13/08, Pierre Thibaudeau wrote: > [S1] > > [S2] > > /static/home.jsp > If you're intent on using XML configuration, leave out the class. > > /static/home.jsp > Dave - To unsubscribe, e-mail: [EMAIL PRO

[S2] action mapping with merely default action

2008-07-13 Thread Pierre Thibaudeau
With Struts1, if I wished to render a JSP page without bothering with the machinery of an action (yet going through the filters/interceptors), I would have an action mapping as follows: With Struts2, in the same situation, I would do: /static/home.jsp

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
from the .war file with the >>>>>> j2ee >>>>>> > preview enabled for the target runtime environment. >>>>>> >>>>>> Not sure what all that is. >>>>>> >>>>>> What's in your .classpath fi

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
t;> Not sure what all that is. >>>>> >>>>> What's in your .classpath file? >>>>> >>>>> >Marked as a tomcat project. >>>>> >Context name: /Blank >>>>> >Subdirectory for web app root: /WebContent >>>&

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Randy Burgess
> Subject: Re: [OT] Re: Action mapping not found - eclipse configuration > problem??? > > > It must be something like this.. but i've tried deleting the sources and > coping again and stil doesn't works.. > Actually, when I open Properties->Web Project Settings, i

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
ked as a tomcat project. >>>> >Context name: /Blank >>>> >Subdirectory for web app root: /WebContent >>>> >>>> What URL are you using? >>>> >>>> >>>> Dave >>>> >>>> >>>> >>>> ---

RE: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Martin Gainty
content contained within this transmission. > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: RE: [OT] Re: Action mapping not found - eclipse configuration > problem??? > Date: Tue, 10 Jun 2008 09:27:01 -0400 > > I've had a similar problem in the past whe

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Musachy Barroso
t;>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> "Hey you!

RE: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Michael Gagnon
I've had a similar problem in the past where a co-worker pulling the project from source control would see action mapping not found errors -- which baffled me because I didn't get them. On deleting my target folder and re-warring, tomcat then picked up the errors. This was because eclip

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
--- >> 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 > > --

Re: action mapping parameter issue

2008-05-23 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, it seems quite difficult to give you an answer without seeing your struts.xml Volker fea jabi schrieb: > We are getting the below error in production server for some of the > users not all. Everything works fine on our local machines. What >

action mapping parameter issue

2008-05-23 Thread fea jabi
We are getting the below error in production server for some of the users not all. Everything works fine on our local machines. What can we check to avoid the below issue. Any suggessions? javax.servlet.ServletException: Request[/DispatchOrdersAction] does not contain handler parameter named

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
The j2ee preview target runtime was included in order to resolve an issue with eclipse. I had to include it so that eclipse would see my javax classes. It was blowing up anytime HTTPServletRequest, HTTPServletResponse, or PageContext was used. I don't know if this is something specific to the Eu

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
Dave, Thank you for all of the help, I really appreciate it. I had to go into each project and manually create the classes folders in the WEB-INF folder and point the classpath to them and everything seems to be working correctly now for both projects. It never fails, one little thing and ever

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Musachy Barroso
I think the "preview" thing is the option under "Basic" when you click "Run on Server" and choose to "Manually define a new server". Try running on tomcat instead. In any case what is happening is that struts.xml is not on the classpath and the filter is not finding it musachy On Feb 18, 2008 1:

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Dave Newton
--- Chriss Nold <[EMAIL PROTECTED]> wrote: > I am importing the project into eclipse from the .war file with the j2ee > preview enabled for the target runtime environment. Not sure what all that is. What's in your .classpath file? >Marked as a tomcat project. >Context name: /Blank >

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
Sorry, Dave, I apparently did not receive your response and thought that may I should resubmit a more detailed description of the problem I was having. I am running TomCat 6.0 and the latest versions of the jre and jdk. I have successfully installed the tomcat plugin and have a tomcat server

[OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Dave Newton
--- Chriss Nold <[EMAIL PROTECTED]> wrote: > Is there something in the configuration of Eclipse Europa that I need to > change? Everything appears to be present, but the mapping is not being > found. You didn't answer any of the questions I asked regarding various project classpath settings, how

Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
Hello all, I have used struts before, but I have never configured it or eclipse before and I am new to Struts2. I am trying to configure that struts-blank project, but I am receiving the following error when I attempt to accept the page: SEVERE: Could not find action or result There is no Act

Re: action mapping - how can I map ALL incoming urls to one action?

2008-02-13 Thread Laurie Harper
That's probably the best approach if you want to map incoming requests to different actions based on custom logic. If you really just want to have every request handled by the same action, you can just use a wildcard action mapping (name="/*") to achieve that with less con

Re: action mapping - how can I map ALL incoming urls to one action?

2008-02-13 Thread Galia Angelova
Thank you, Piero! The problem with the interseptors is that they come after the ServletDispatcher. That means that i get an exception before I get to the interseptors, because the mapping was not found :) I think I have found a solution - custom ActionMapper. I extended the DefaultActionMappe

  1   2   3   >