Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Rajeev Sharma
*.action works fine for me too. -Original Message- From: Peter Phillips Reply-to: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: struts2 filter-mapping url-pattern Date: Wed, 2 Sep 2009 06:57:02 +0100 Using *.action and /struts/* works fine for our projects. I

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Peter Phillips
Using *.action and /struts/* works fine for our projects. I wanted to do that since I wanted to map *.do to a struts 1 filter. Peter. 2009/9/2 Wes Wannemacher : > One thing I've been itching to try is to map to *.action and /struts/* > > Those are pretty much the two things you "need" > > Try th

Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
I am not using session or cookies at all in my application right now. So I guess adding cookie listener doesn't make any sense to be added to JMeter test case. I shall use cookies later and shall add cookie listener to test my application. I don't want to store any data in web server so will not us

Re: How To Post A Message To the Struts User Mailing List

2009-09-01 Thread 谢冬鸣
can i directly send mail to "user@struts.apache.org" from my gmail and all the mailling list users will see it ? On Tue, Sep 1, 2009 at 06:34, Java Struts wrote: > Hey, thanks a lot for your help. > > > > On Mon, Aug 31, 2009 at 5:52 PM, phillips1021 wrote: > > > > > Someone asked me this on a

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Wes Wannemacher
One thing I've been itching to try is to map to *.action and /struts/* Those are pretty much the two things you "need" Try that and see if it works. By the way, do you get an exception or something? The filters are supposed to be friendly to non-struts requests... If you're having a problem,

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Arthur Neves
I think It' s impossible to do, because all of request's must pass to the filter! If I'd been wrong, please, somebody correct me! 2009/9/1 Rusty Wright > In the web.xml why is the filter-mapping url-pattern /* ? Would it work to > change it to *.action instead? > > For some reason, I can't get

struts2 breaks welcome-file in web.xml for jetty

2009-09-01 Thread Rusty Wright
I'm in the same boat as Steven Mitchell; was this problem ever resolved? http://xrl.in/30sz If I remove the filter for FilterDispatcher from my web.xml then my index.jsp starts working. With FilterDispatcher in, it doesn't work. It works with tomcat with FilterDispatcher in, but does not wit

struts2 filter-mapping url-pattern

2009-09-01 Thread Rusty Wright
In the web.xml why is the filter-mapping url-pattern /* ? Would it work to change it to *.action instead? For some reason, I can't get jetty to serve my welcome-file index.jsp file and if I change the url-pattern to *.action then it starts working.

[U] Struts2 Portlet Multiple Actions

2009-09-01 Thread Ginn, Timothy D Mr CTR USA TRADOC USAAC
UNCLASSIFIED I have multiple actions under the /view namespace all of which point to different jsps to render different views based upon users actions. When one of these actions is executed the action executes as designed with one exception. The portal returns to the default tab and not th

Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Dave Newton
Peter Phillips wrote: From Rajeev's earlier emails: "I am developing an application which does not need to use sessions at all." "I opened some pages on my application and found there was one session created for my browser and others for other clients, So I guess this has nothing to do with JMe

Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Peter Phillips
>From Rajeev's earlier emails: "I am developing an application which does not need to use sessions at all." "I opened some pages on my application and found there was one session created for my browser and others for other clients, So I guess this has nothing to do with JMeter. Sessions are being

Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Dave Newton
Rajeev Sharma wrote: I did not have <%@ page session="false"> in the jsps which were included in other jsps using . I put <%@ page session="false"> in all the jsp pages and there are no more sessions created. Thank you guys for the quick help. That's not the correct solution: if you expect the

[SOLVED]: Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
I did not have <%@ page session="false"> in the jsps which were included in other jsps using . I put <%@ page session="false"> in all the jsp pages and there are no more sessions created. Thank you guys for the quick help. Peter, I am using 2.1.6 and don't have sessions created any more. Are you

Re: Need to disable session interceptor

2009-09-01 Thread Dave Newton
In any case, Nils' thing about JMeter needing a cookie doodad so it keeps the same session per simulated client. Dave Peter Phillips wrote: When I upgraded from 2.0.x to 2.1.7 I found that the i18n interceptor now always creates a session too. The way I normally track down rogue session creat

Re: Need to disable session interceptor

2009-09-01 Thread Peter Phillips
When I upgraded from 2.0.x to 2.1.7 I found that the i18n interceptor now always creates a session too. The way I normally track down rogue session creations is to debug tomcat in Eclipse and add breakpoints to the javax.servlet.http.HttpServletRequest.getSession() and javax.servlet.http.HttpServl

Re: JSON plugin ignoring includeProperties parameter

2009-09-01 Thread Gadbury
The first regex returns nothing and the second everything (as before). My regex is pretty poor but if I ignore regex, what would the syntax be for accessing the property of a bean is a list in the map. i.e. given the map: private Map> productCategoriesMap Would it be: myMap['myKey'].beanPrope

Re: Need to disable session interceptor

2009-09-01 Thread musomesa
JSP create sessions by default. It is servlets that don't create a session unless you call getSession(). Do you have something like <%@ page session="false"> at the top of your JSPs? Chris -Original Message- From: Rajeev Sharma To: Struts Users Mailing List Sent: Tue

Re: JSON plugin ignoring includeProperties parameter

2009-09-01 Thread Musachy Barroso
On Tue, Sep 1, 2009 at 6:40 AM, Martin Gainty wrote: > > did you try ParameterFilterInterceptor for filtering stack of your action > http://struts.apache.org/2.1.2/docs/parameter-filter-interceptor.html > > What in the name of Margawse are you talking about? Would you mind explaining why you think

Re: JSON plugin ignoring includeProperties parameter

2009-09-01 Thread Musachy Barroso
Java regexes are greedy by default if I dont remember wrong, so you should try something like: productCategoriesMap[.*?]\.name or productCategoriesMap\..*?\.name musachy On Tue, Sep 1, 2009 at 6:15 AM, Gadbury wrote: > > Hi, > > Sorry to jump a (dead?) thread but it's relevant to what I am try

RE: JSON plugin ignoring includeProperties parameter

2009-09-01 Thread Gadbury
Thank you. I shall check it out. I didn't know about it. Thank you, I shall check it out. However, I would still be interested to know if and how I can use includeProperties to specify properties of a bean in a map using the json plugin. Kind regards, James mgainty wrote: > > > did you

Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
> I am trying to find out why is the session created when I did not create > the session in my code. > > -- > Rajeev > Well, I believe Struts 2 internally does request.getSession(false) to prevent creating sessions when there isn't one... Which interceptor stack are you using? You could also try a

RE: [OT] Re: Need to disable session interceptor

2009-09-01 Thread Martin Gainty
there is a mention of cookies being grouped by ThreadGroup can i assume ThreadGroup is defined by the container? thx, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten

RE: Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
I googled this and the struts2 performance tuning page says this "Struts 2 does not create sessions unless asked to (for example, by having the createSession interceptor in your interceptor stack). Note that when you use SiteMesh however, a session will always be created" I am never creating the s

[OT] Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
Hm... I don't know... Maybe read the documentation? http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager Sorry for pinging you online. Hope that's not too much trouble... Nils-H On Tue, Sep 1, 2009 at 3:23 PM, Martin Gainty wrote: > > Nils- > > doc suggests i

RE: JSON plugin ignoring includeProperties parameter

2009-09-01 Thread Martin Gainty
did you try ParameterFilterInterceptor for filtering stack of your action http://struts.apache.org/2.1.2/docs/parameter-filter-interceptor.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachric

RE: Need to disable session interceptor

2009-09-01 Thread Martin Gainty
Nils- doc suggests implementing a HttpCookieManager to handle the session any suggestions on which HttpCookieManager to implement and possible configurations? (i think JMeter is O/T so please ping offline) thanks Martin Gainty __ Note de déni et de

Re: Accessing http header with ognl

2009-09-01 Thread Wes Wannemacher
Try http://struts.apache.org/2.x/docs/ognl.html For non-root objects, you have to use the '#' symbol. -Wes On Tue, Sep 1, 2009 at 5:53 AM, Volker Krebs wrote: > Hello, > > accessing the http header with JSTL is quite easy: > ${header} > > but how can I do it using OGNL ? > > > > Nothing is w

Re: JSON plugin ignoring includeProperties parameter

2009-09-01 Thread Gadbury
Hi, Sorry to jump a (dead?) thread but it's relevant to what I am trying to do and it made sense to put it in the same thread. I have the following HashMap: private Map> productCategoriesMap; in my includeProperties, productCategoriesMap.* populates the json with every property of the Category

Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
>From the JMeter FAQ: "How do I ensure each http request for jsp is within one jsessionid ?" http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb Nils-H On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote: > Rajeev Sharma wrote: >> >> I am new to struts2 (I

Re: Need to disable session interceptor

2009-09-01 Thread Dave Newton
Rajeev Sharma wrote: I am new to struts2 (I mean struts). I am developing an application which does not need to use sessions at all. When I tested my application with jmeter, I got 18000 sessions created (tomcat showed me this). Looks like for every individual request there is one session creat

Re: Convention Plugin and Method Called In Action Class

2009-09-01 Thread Paweł Wielgus
Hi all, in my apps i use only convention to manage action configuration, and also i make use of addresses like: myapp/myaction!input they work for 2.1.6. I don't know if convention has anything to do with it, but to be sure You can use config browser plugin to see how things are mapped. Best greet

Re: How to print out method result called into execute() on a JSP page

2009-09-01 Thread Nils-Helge Garli Hegvik
Take a look at this tutorial: http://www.laliluna.de/first-steps-using-struts-tutorial.html There are more tutorials at http://wiki.apache.org/struts/StrutsTutorials Nils-H On Tue, Sep 1, 2009 at 12:34 PM, Hanen Ben Rhouma wrote: >  Hello there, > > I h

How to print out method result called into execute() on a JSP page

2009-09-01 Thread Hanen Ben Rhouma
Hello there, I have another question which is: How can I get the result of a method called into my execute() method and which I want to print out on my JSP page (I'm using Struts1.3 and want to call usersForm.getUsersList() for example and print them out

Accessing http header with ognl

2009-09-01 Thread Volker Krebs
Hello, accessing the http header with JSTL is quite easy: ${header} but how can I do it using OGNL ? Nothing is working. The Problem is that request.getHeader() is never pushed onto the value stack. How can I enable it ? thanks Volker -

Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
Hi, I am new to struts2 (I mean struts). I am developing an application which does not need to use sessions at all. When I tested my application with jmeter, I got 18000 sessions created (tomcat showed me this). Looks like for every individual request there is one session created. How can