[GitHub] [struts] fp024 closed pull request #589: @Before and @After related question in StrutsJUnit4TestCase class

2022-08-22 Thread GitBox
fp024 closed pull request #589: @Before and @After related question in StrutsJUnit4TestCase class URL: https://github.com/apache/struts/pull/589 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the

[GitHub] [struts] fp024 opened a new pull request, #589: @Before and @After related question in StrutsJUnit4TestCase class

2022-08-22 Thread GitBox
fp024 opened a new pull request, #589: URL: https://github.com/apache/struts/pull/589 Hello. StrutsJUnit4TestCase class is not using JUnit4's @Before, @After. It works because JUnit4 doesn't even check the package name, it only checks the annotation name. But semantical

Re: dumb question

2018-10-18 Thread Greg Huber
ah ok, have to change the test jsp statement around: or did try and to use , etc, but does not compile the jsp. ...Would have thought .equals(..) would be the correct way to evaluate a string? or or That's why it's a dumb question :-) Thanks! On Thu, 18 Oct 2018 at 1

Re: dumb question

2018-10-18 Thread Dave Newton
a 0 or a 1, have had to fudged it by "0" + > > > myvalue; > > > > > > public String getSelect() { > > > return "0" + myvalue; > > > } > > > > > > > > > > > > > >

Re: dumb question

2018-10-18 Thread Greg Huber
; > return "\"" + "0" +"\""; > > return "'0'"; > > > > I am really testing for a 0 or a 1, have had to fudged it by "0" + > > myvalue; > > > > public String getSelect() { > > r

Re: dumb question

2018-10-18 Thread Dave Newton
;0" + myvalue; > } > > > > > > > > On Thu, 18 Oct 2018 at 12:14, Lukasz Lenart > wrote: > > > czw., 18 paź 2018 o 12:44 Greg Huber napisał(a): > > > > > > Sorry if this is a dumb question, but why does a single char string &g

Re: dumb question

2018-10-18 Thread Greg Huber
) { return "0" + myvalue; } On Thu, 18 Oct 2018 at 12:14, Lukasz Lenart wrote: > czw., 18 paź 2018 o 12:44 Greg Huber napisał(a): > > > > Sorry if this is a dumb question, but why does a single char string check > > not work? Am I missing som

Re: dumb question

2018-10-18 Thread Lukasz Lenart
napisał(a): > > czw., 18 paź 2018 o 12:44 Greg Huber napisał(a): > > > > Sorry if this is a dumb question, but why does a single char string check > > not work? Am I missing something? > > > > this works: > > public String getSelect() { > >

Re: dumb question

2018-10-18 Thread Lukasz Lenart
czw., 18 paź 2018 o 12:44 Greg Huber napisał(a): > > Sorry if this is a dumb question, but why does a single char string check > not work? Am I missing something? > > this works: > public String getSelect() { > return "az"; > } > > >

dumb question

2018-10-18 Thread Greg Huber
Sorry if this is a dumb question, but why does a single char string check not work? Am I missing something? this works: public String getSelect() { return "az"; } this does not: public String getSelect() { return "a"; } Cheers Greg

Re: DMI question not setting parameters

2018-06-07 Thread Greg Huber
Would be based on the method name (does not consider the post/get), so with DMI and a ?myMethod refresh, the validator validates without all the necessary data (provided by ongl etc) and fails badly. ie returns to INPUT with all black fields. I have tweaked my DMI interceptor to fail gracefully r

Re: DMI question not setting parameters

2018-06-05 Thread Yasser Zamani
On 6/5/2018 3:25 PM, Greg Huber wrote: > Think is just a check on the logic. > > for a page refresh > > http://www/../edit/myEdit!save.action > > will call the validator, whilst > > http://www/../edit/myEdit.action

Re: DMI question not setting parameters

2018-06-05 Thread Greg Huber
Think is just a check on the logic. for a page refresh http://www/../edit/myEdit!save.action will call the validator, whilst http://www/../edit/myEdit.action does not. If its not a post why validate the form? Guess

Re: DMI question not setting parameters

2018-06-05 Thread Yasser Zamani
On 6/5/2018 2:30 PM, Greg Huber wrote: > I think the logic is OK, but the validator wants to validate the form on > the manual refresh (check for a post?), but the fields on the form have not > been added to the stack, ie all by form.beans are empty when the validator > runs. > > I have logic th

Re: DMI question not setting parameters

2018-06-05 Thread Greg Huber
I think the logic is OK, but the validator wants to validate the form on the manual refresh (check for a post?), but the fields on the form have not been added to the stack, ie all by form.beans are empty when the validator runs. I have logic that checks for a refresh and will show an error messag

Re: DMI question not setting parameters

2018-06-05 Thread Yasser Zamani
On 6/5/2018 1:26 PM, Greg Huber wrote: > I have a form with the below with a button: action:myEdit!save which works > great. > > > .. > type="submit"> > > > > But if I modify the url on the page as below > > http://www/../edit/myEdit!save.action > > and then manually refresh the page, it

DMI question not setting parameters

2018-06-05 Thread Greg Huber
I have a form with the below with a button: action:myEdit!save which works great. .. But if I modify the url on the page as below http://www/../edit/myEdit!save.action and then manually refresh the page, it follows the DMI logic, ie try to call the save method but does not set the parameter

Re: New Documentation/Question on Site

2017-04-06 Thread Lukasz Lenart
2017-04-06 15:24 GMT+02:00 Louis Smith : > I very much like the new look of the site, and the 2 new pages from > Christopher. > > I do have one question - where is the roadmap showing the future of > Struts? Plans for Java 8, Struts 3, etc. You can check this page [1], but it mus

New Documentation/Question on Site

2017-04-06 Thread Louis Smith
I very much like the new look of the site, and the 2 new pages from Christopher. I do have one question - where is the roadmap showing the future of Struts? Plans for Java 8, Struts 3, etc. Thanks again for all the great and hard work you all do on Struts. My clients have been using it for

Re: Question on Struts2 Form based authentication

2015-06-08 Thread Lukasz Lenart
You must exclude such url from being proceeded by Struts filter http://stackoverflow.com/questions/8191957/struts2-ignore-particular-pattern Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2015-06-02 10:17 GMT+02:00 Tenghui Pei : > Hi Sir/Mdm, > > I am implementing Struts2 Form ba

Question on Struts2 Form based authentication

2015-06-05 Thread Tenghui Pei
Hi Sir/Mdm, I am implementing Struts2 Form based authentication but facing some error message below.Appreciate any advice on that. or can show some working example. 2015-06-02 15:57:07 WARN Dispatcher:68 - Could not find action or result: /abc-webapp/j_security_check There is no Action mapped fo

Re: Tag Lib Question [List Attribute]

2014-03-13 Thread Dave Newton
You probably want to ask this on the users list; the dev list is for the development of Struts itself. Dave On Thu, Mar 13, 2014 at 1:54 PM, Gaurav Daga wrote: > Hello Dev Community > > Basic functionality of Struts Select tag, I understand. I am using > following construct where source of l

Tag Lib Question [List Attribute]

2014-03-13 Thread Gaurav Daga
Hello Dev Community Basic functionality of Struts Select tag, I understand. I am using following construct where source of list is from a method, written in action class. What I want to know is, if the list source is from a different class (which is not Struct Action), how can it be done? I

Re: Question reagarding documentation

2014-03-13 Thread Lukasz Lenart
Hi, I have started moving snippets from code to Wiki. This is also needed to properly export wiki as html - current version of Confluence doesn't recognise snippet macro and treats it as a old wiki content, but thus can be changed in the future. So if you work on some Java code in Struts, please

Re: Question reagarding documentation

2014-02-20 Thread Dave Newton
+1(00) On Thu, Feb 20, 2014 at 3:04 AM, Lukasz Lenart wrote: > Yes, I think wiki/html is the proper format here - all other projects > doing the same and I don't see complains about that. Maybe I'm wrong > but I opt to move snippets with examples and explanations to wiki. > > The main problem wi

Re: Question reagarding documentation

2014-02-20 Thread Lukasz Lenart
Yes, I think wiki/html is the proper format here - all other projects doing the same and I don't see complains about that. Maybe I'm wrong but I opt to move snippets with examples and explanations to wiki. The main problem with out current documentation is scale - it's very large, there should sim

Re: Question reagarding documentation

2014-02-11 Thread Dave Newton
So we could pull them in via snippets. I'd rather see examples be either in tests, separate files, or just normal documentation (e.g., wiki). Dave On Tue, Feb 11, 2014 at 10:08 AM, Andreas Opitz wrote: > What was the reason to put the snippets into the Javadocs? > Am 11.02.2014 15:25 schrieb

Re: Question reagarding documentation

2014-02-11 Thread Lukasz Lenart
2014-02-11 16:08 GMT+01:00 Andreas Opitz : > What was the reason to put the snippets into the Javadocs? Version control and one point of reference Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe,

Re: Question reagarding documentation

2014-02-11 Thread Andreas Opitz
What was the reason to put the snippets into the Javadocs? Am 11.02.2014 15:25 schrieb "Dave Newton" : > Just for the record (again), I'm against putting documentation in the > Javadocs. > > It makes the Javadocs illegible when being read as Javadocs and bloats them > well beyond the point of usef

Re: Question reagarding documentation

2014-02-11 Thread Dave Newton
Just for the record (again), I'm against putting documentation in the Javadocs. It makes the Javadocs illegible when being read as Javadocs and bloats them well beyond the point of usefulness. On Tue, Feb 11, 2014 at 8:56 AM, Andreas Opitz wrote: > Hi Struts Community, > > last year I was on a

Question reagarding documentation

2014-02-11 Thread Andreas Opitz
Hi Struts Community, last year I was on a Strutsathon in Augsburg. During this event we talked as well about the documentation and how new user would use the documents to dive into the world of struts. Before this event I never worked with struts so it was quite intressting how I can get familiar

Re: Generic Question about Struts2

2011-12-31 Thread Umesh Awasthi
I am fully Agree with Martin except Marketing and sales prespective :) My Question was never intended for this aspect. IMHO Open source initiative can not be based on such aspects. my question was more or less to know about the opinion. On Sun, Jan 1, 2012 at 12:50 AM, Jeffrey Black wrote

Re: Generic Question about Struts2

2011-12-31 Thread Jeffrey Black
ing with their time ;) >>> >>> Dave >>> >>> On Fri, Dec 30, 2011 at 11:27 AM, Steven Benitez >>> wrote: >>> >>>> I used to be active there, but I've been busy lately. Besides, Dave is a >>>> Titan on there. :) >

Re: Generic Question about Struts2

2011-12-31 Thread Martin Cooper
le prefer actually *doing* something with their time ;) >> >> Dave >> >> On Fri, Dec 30, 2011 at 11:27 AM, Steven Benitez >> wrote: >> >> > I used to be active there, but I've been busy lately. Besides, Dave is a >> > Titan on there. :)

Re: Generic Question about Struts2

2011-12-30 Thread Umesh Awasthi
> On Friday, December 30, 2011, Umesh Awasthi > > wrote: > > > Hi All, > > > > > > I am asking this question specifically in the dev list since i believe > > that > > > this is the best platform which can answer my question. > > &g

Re: Generic Question about Struts2

2011-12-30 Thread Dave Newton
Dave is a > Titan on there. :) > > On Friday, December 30, 2011, Umesh Awasthi > wrote: > > Hi All, > > > > I am asking this question specifically in the dev list since i believe > that > > this is the best platform which can answer my question. > > Working

Re: Generic Question about Struts2

2011-12-30 Thread Steven Benitez
I used to be active there, but I've been busy lately. Besides, Dave is a Titan on there. :) On Friday, December 30, 2011, Umesh Awasthi wrote: > Hi All, > > I am asking this question specifically in the dev list since i believe that > this is the best platform which can a

Generic Question about Struts2

2011-12-29 Thread Umesh Awasthi
Hi All, I am asking this question specifically in the dev list since i believe that this is the best platform which can answer my question. Working for long on struts2 based application development and i am quite happy with it. On the Avg if some of us find any problem while in development one

RE: Question to the PMC

2011-04-15 Thread Jason Pyeron
> -Original Message- > From: Dave Newton > Sent: Friday, April 15, 2011 9:01 > To: Struts Developers List > Subject: Re: Question to the PMC > > On Fri, Apr 15, 2011 at 8:53 AM, Jason Pyeron > wrote: > > Our office is agressivly scratching some itches rig

RE: Question to the PMC

2011-04-15 Thread Jason Pyeron
> -Original Message- > From: Wendy Smoak [mailto:wsm...@gmail.com] > Sent: Friday, April 15, 2011 9:57 > To: Struts Developers List > Subject: Re: Question to the PMC > > On Fri, Apr 15, 2011 at 8:53 AM, Jason Pyeron > wrote: > > Our office is agressivl

Re: Question to the PMC

2011-04-15 Thread Wendy Smoak
On Fri, Apr 15, 2011 at 8:53 AM, Jason Pyeron wrote: > Our office is agressivly scratching some itches right now with regards to > struts. We will be opening a ticket for each patch / issue. But I am afriad > that > the lag between adoption of the patches will cause a build up of deltas > agains

Re: Question to the PMC

2011-04-15 Thread Dave Newton
On Fri, Apr 15, 2011 at 8:53 AM, Jason Pyeron wrote: > Our office is agressivly scratching some itches right now with regards to > struts. We will be opening a ticket for each patch / issue. But I am afriad > that > the lag between adoption of the patches will cause a build up of deltas > agains

Question to the PMC

2011-04-15 Thread Jason Pyeron
Our office is agressivly scratching some itches right now with regards to struts. We will be opening a ticket for each patch / issue. But I am afriad that the lag between adoption of the patches will cause a build up of deltas against the committed code. I think this was a type of issue to justify

Re: Struts 2.2.1 Question

2010-07-19 Thread Dale Newfield
On 7/17/10 6:15 PM, Frans Thamura wrote: is this version, we can mix .action and REST? Yes, you can use org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper to cause different portions of the url space to be mapped to actions/parameters by different action mappers. -Dale -

Re: Struts 2.2.1 Question

2010-07-19 Thread Dale Newfield
On 7/19/10 1:03 PM, Johannes Geppert wrote: after upgrading a project i get an error "Javassist library is missing in classpath! Please add missed dependency!" on tomcat. Release notes: * [https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.2.1] "Javassist dependency was excluded

question about output encoding

2010-05-05 Thread John Melton
Hi, I have a question about output encoding for struts2. After browsing the source, it looks like there is a hard-coded mechanism (StringEscapeUtils) for doing output encoding. I am curious if there is a simple way to override that encoding mechanism while still using the same tag. In other

Re: Question about interceptor/action strategy... is this a major bug?

2010-04-26 Thread Wes Wannemacher
Christian, according to this page - http://struts.apache.org/2.x/docs/writing-interceptors.html Interceptors must be thread-safe because they are not instantiated per-request (like actions), but should be treated more like singletons. That being said, the behavior you describe almost surely appe

Question about interceptor/action strategy... is this a major bug?

2010-04-25 Thread Christian Stone
I have been chasing down a bug for months where data is incorrectly posted, and I chased it down to what I believe is a major failing in the interceptor chain. From what I see through my blurry and tired eyes is that an interceptor list containing an instance of each interceptor is created for e

Re: question before attempting to roll another build of struts-master

2009-08-27 Thread Martin Cooper
On Thu, Aug 27, 2009 at 10:50 AM, Wes Wannemacher wrote: > On Thu, Aug 27, 2009 at 1:46 PM, Martin Cooper wrote: >> >> Since whoever "owns" this master POM doesn't appear to be pushing out >> the new versions (i.e. there's no "hey, PMCs, you need to use this new >> one"), I'd be inclined to stick w

Re: question before attempting to roll another build of struts-master

2009-08-27 Thread Wendy Smoak
On Thu, Aug 27, 2009 at 10:46 AM, Martin Cooper wrote: > The thing is, I don't know who "controls" that POM, and what policies, > if any, determine its content. (Perhaps Wendy knows?) The Apache parent pom lives in the Maven project and reflects ASF policy as best as it can. There was some work d

Re: question before attempting to roll another build of struts-master

2009-08-27 Thread Wes Wannemacher
On Thu, Aug 27, 2009 at 1:46 PM, Martin Cooper wrote: > > Since whoever "owns" this master POM doesn't appear to be pushing out > the new versions (i.e. there's no "hey, PMCs, you need to use this new > one"), I'd be inclined to stick with what we're pointing at for this > release, but put an item

Re: question before attempting to roll another build of struts-master

2009-08-27 Thread Martin Cooper
On Thu, Aug 27, 2009 at 8:56 AM, Wes Wannemacher wrote: > Guys, I was looking at the parent pom we have 'struts-master' > > Is there a reason we don't bump that to point to org.apache:apache:6 > for its parent? > > http://repo1.maven.org/maven2/org/apache/apache/6/apache-6.pom > > I didn't compare

Re: question before attempting to roll another build of struts-master

2009-08-27 Thread Wes Wannemacher
I too am paranoid about maven, but I am also paranoid about policy... I mean, if there are blessed plugins and enforcer rules that we should be inheriting, then we should try to keep up. I am tempted to do the following to "test" the struts-master artifact - add a hosts file entry that points peop

Re: question before attempting to roll another build of struts-master

2009-08-27 Thread Musachy Barroso
Do we have to? If it ain't broke...but I am paranoid about maven. musachy On Thu, Aug 27, 2009 at 8:56 AM, Wes Wannemacher wrote: > Guys, I was looking at the parent pom we have 'struts-master' > > Is there a reason we don't bump that to point to org.apache:apache:6 > for its parent? > > http://r

question before attempting to roll another build of struts-master

2009-08-27 Thread Wes Wannemacher
Guys, I was looking at the parent pom we have 'struts-master' Is there a reason we don't bump that to point to org.apache:apache:6 for its parent? http://repo1.maven.org/maven2/org/apache/apache/6/apache-6.pom I didn't compare it to version 3 (which we're pointing to now), but figure that it mig

Re: EJB annotation support - was: [QUESTION]

2009-02-28 Thread Rene Gielen
See inline comments David Blevins schrieb: On Feb 27, 2009, at 12:11 AM, Rene Gielen wrote: While ususally DI containers build up a complete configuration of known beans at application startup, the pluggable DI container support for Struts2 works different. It is based on the assumption that

Re: EJB annotation support - was: [QUESTION]

2009-02-27 Thread Musachy Barroso
I am probably missing something here. Struts action mappings are loaded when the app starts, and classes are scanned for annotations at startup also.Only the action instantiation happens at request time, depending on the Object Factory. musachy On Fri, Feb 27, 2009 at 9:56 PM, David Blevins wrot

Re: EJB annotation support - was: [QUESTION]

2009-02-27 Thread David Blevins
On Feb 27, 2009, at 12:11 AM, Rene Gielen wrote: While ususally DI containers build up a complete configuration of known beans at application startup, the pluggable DI container support for Struts2 works different. It is based on the assumption that each Action, Interceptor and Validator w

Re: EJB annotation support - was: [QUESTION]

2009-02-27 Thread Rene Gielen
While ususally DI containers build up a complete configuration of known beans at application startup, the pluggable DI container support for Struts2 works different. It is based on the assumption that each Action, Interceptor and Validator will only need to get it's dependencies injected, but w

Re: [QUESTION]

2009-02-26 Thread David Blevins
On Feb 26, 2009, at 9:27 AM, Karan Malhi wrote: Thanks Rene. I am trying to avoid a situation where I would have to scan the whole classpath on web app startup. Does struts cache the information about all action classes somewhere? We actually do scan the entire webapp classpath for ejbs

Re: [QUESTION]

2009-02-26 Thread Musachy Barroso
The config browser plugin shows all the actions mapped by struts, you might want to look at the code for tips. musachy On Thu, Feb 26, 2009 at 12:27 PM, Karan Malhi wrote: > Thanks Rene. I am trying to avoid a situation where I would have to scan the > whole classpath on web app startup.  Does s

Re: [QUESTION]

2009-02-26 Thread Karan Malhi
Thanks Rene. I am trying to avoid a situation where I would have to scan the whole classpath on web app startup. Does struts cache the information about all action classes somewhere? I am thinking maybe I could simply use that information , instead of trying to figure out the action classes on my

Re: [QUESTION]

2009-02-24 Thread Rene Gielen
If your intent is to go for a ObjectFactory implementation / extension, I think it would not be necessary to distinct between action or non-action classes - just check the bean to build for the EJB annotations, regardless what kind of bean that is. Actually, in Struts2 not only action classes a

Re: [QUESTION]

2009-02-22 Thread Piero Sartini
> So a user would need these plugins to map actions without XML. Struts > default behavior would require a user to map the action in the XML file and > that would be struts.xml, right? So would it be fair to say that if I parse > the struts.xml file and all included xml files, then I will have a li

Re: [QUESTION]

2009-02-21 Thread Karan Malhi
If a class has a suffix of Action or implements the Action interface, would that automatically be treated as an action class? Would such a class require that it be listed in the struts.xml file? On Sat, Feb 21, 2009 at 11:29 PM, Karan Malhi wrote: > Thanks Wes, > > Appreciate such a prompt res

Re: [QUESTION]

2009-02-21 Thread Karan Malhi
Thanks Wes, Appreciate such a prompt response. > > There are likely to be actions mapped via other means. There are many > plugins > available, most prominently the REST plugin and the Convention plugin that > allow our users to map actions without any XML So a user would need these plugins to

Re: [QUESTION]

2009-02-21 Thread Wes Wannemacher
On Saturday 21 February 2009 22:44:28 Karan Malhi wrote: > Hi, > > I work on the OpenEJB project. I wanted to add support for injecting > resources into struts actions i.e. if somebody creates a struts based web > app and deploys it in Tomcat + OpenEJB, then I want the user to be able to > annotate

[QUESTION]

2009-02-21 Thread Karan Malhi
Hi, I work on the OpenEJB project. I wanted to add support for injecting resources into struts actions i.e. if somebody creates a struts based web app and deploys it in Tomcat + OpenEJB, then I want the user to be able to annotate the struts actions with @EJB, @Resource etc and then have OpenEJB i

Re: Xwork Question - how to Inject another instance than default

2009-02-06 Thread Torsten Krah
Am Freitag, 6. Februar 2009 06:59:30 schrieb Nils-Helge Garli Hegvik: > I'm curious, why do you need a custom URL builder for Liferay? To support the "custom" window states POP_UP and EXCLUSIVE liferay does provide. Made the Helper a singleton instance injected into the PortletURLRenderer (misse

Re: Xwork Question - how to Inject another instance than default

2009-02-05 Thread Nils-Helge Garli Hegvik
I'm curious, why do you need a custom URL builder for Liferay? Nils-H On Thu, Feb 5, 2009 at 9:12 PM, Torsten Krah wrote: > Hi. > I did some rework to the struts2-portlet2-plugin to make it possible to hook > in a custom URLBuilder. > > I declared a default one like this: > > class="Default" />

Re: Xwork Question - how to Inject another instance than default

2009-02-05 Thread Musachy Barroso
In the future please post these questions to the user list, this list is for the development of Struts itself. //ooops musachy On Thu, Feb 5, 2009 at 3:25 PM, Musachy Barroso wrote: > You first define a bean with a different name, and then find a setting > that is the implementation "switch" and

Re: Xwork Question - how to Inject another instance than default

2009-02-05 Thread Musachy Barroso
You first define a bean with a different name, and then find a setting that is the implementation "switch" and set it your bean name, like: note that on the bean the "type" is the Struts interface and the "class" is the actual implementation. musachy On Thu, Feb 5, 2009 at 3:12 PM, Torsten

Xwork Question - how to Inject another instance than default

2009-02-05 Thread Torsten Krah
Hi. I did some rework to the struts2-portlet2-plugin to make it possible to hook in a custom URLBuilder. I declared a default one like this: My application e.g. wants to support liferay using a custom url builder. Using does not work because "default" is already loaded. How can i tell xwo

Re: Question about URL Class, s:url Tag, s:param and Merging of Parameters

2008-10-21 Thread Torsten Krah
Nvm, did found it myself. -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." -- Linus Torvalds smime.p7s Descr

Question about URL Class, s:url Tag, s:param and Merging of Parameters

2008-10-21 Thread Torsten Krah
Hi. I want to debug some bug and need some infos about the url Tag. How are parameters merged to the parameter map which are specified by the s:param Tag (2.0.11.2). Can anyone point me to some code lines where this is done? Looking at the URL Class, parameters merging is done in the startTag and

Re: Classpath leading slash question (codebehind)

2008-07-01 Thread Jeromy Evans
Musachy Barroso wrote: I think that if the resource name starts with a "/", then the class loader will use it as an absolute path (taking the web app root as root). If the resource name is relative, the classloader tries all the entries in the classpath(including jars), as roots, using the resour

Re: Classpath leading slash question (codebehind)

2008-06-30 Thread Musachy Barroso
I think that if the resource name starts with a "/", then the class loader will use it as an absolute path (taking the web app root as root). If the resource name is relative, the classloader tries all the entries in the classpath(including jars), as roots, using the resource name as the path. mus

Classpath leading slash question (codebehind)

2008-06-30 Thread Jeromy Evans
The CodebehindUnknownHandler will search for results using: ServletContext.getResource(path); then if not found ClassLoaderUtils.getResource(path, getClass()) The path always has a leading slash which is mandatory for the ServletContext call. However under some(?) conditions ClassLoaderUtils

Re: Struts 2 namespace question

2008-06-12 Thread Al Sutton
back action that the namespace is deleted. i tried add "/" as namespace but it didn't work. Ralf Fischer-2 wrote: Hi, Short answer: This is a question best posted to the struts-user list, not the dev list. Long answer: Without any code to look on, especially the JSP code cr

Re: Struts 2 namespace question

2008-06-12 Thread kukudas
tried add "/" as namespace but it didn't work. Ralf Fischer-2 wrote: > > Hi, > > Short answer: This is a question best posted to the struts-user list, > not the dev list. > > Long answer: Without any code to look on, especially the JSP code > creating the URLs

Re: Struts 2 namespace question

2008-06-12 Thread Ralf Fischer
Hi, Short answer: This is a question best posted to the struts-user list, not the dev list. Long answer: Without any code to look on, especially the JSP code creating the URLs, there's no way to tell how you end up. Though it's quite likely, you either didn't add the namespace a

Struts 2 namespace question

2008-06-12 Thread kukudas
i know it's probably a dumb question but i somehow can't manage it im new and hope someone can help me. i'm using a namespace for example "/conf" so when i go into a certtain area all actions are running under this namespace. But when i want go back to my index and then

Re: Interview question Struts?

2008-03-31 Thread pannar
Ok man. no problem. :-) I understood that this forum is not going to provide some tips for the interview and this is only for the users/developers who worked on struts much. pannar wrote: > > Hi, > > There was a interview question in Struts framework. > When i extend the

Re: Interview question Struts?

2008-03-26 Thread Antonio Petrelli
2008/3/26, James Mitchell <[EMAIL PROTECTED]>: > > Please ask user questions on the users list. Or better, in this case I suggest to read a basic tutorial :-D Antonio

Re: Interview question Struts?

2008-03-26 Thread James Mitchell
Please ask user questions on the users list. On Wed, Mar 26, 2008 at 9:45 AM, pannar <[EMAIL PROTECTED]> wrote: > > Hi, > > There was a interview question in Struts framework. > When i extend the Action class to implement the db/business logic, is it > possible to invo

Interview question Struts?

2008-03-26 Thread pannar
Hi, There was a interview question in Struts framework. When i extend the Action class to implement the db/business logic, is it possible to invoke my own business logic methods without overriding execute() method of Action class?? regards pannar -- View this message in context: http

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Dale Newfield
Chris Pratt wrote: I don't know about other containers, but this works great on Resin. I do it today. Glad to learn I'm wrong! So the plugable EL version of the struts tags should all be able to work with the same .tld, with rtexprvalue set to false everywhere, and the tag attributes that s

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Chris Pratt
On Thu, Mar 6, 2008 at 4:59 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Chris Pratt wrote: > > The proposed flow (with false > The bit you're missing is that if you have a tag attribute with > rtexprvalue set to false that contains what the container thinks is an > EL expression (i.e., "${fo

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Brian Pontarelli
Dale Newfield wrote: Chris Pratt wrote: The proposed flow (with false The bit you're missing is that if you have a tag attribute with rtexprvalue set to false that contains what the container thinks is an EL expression (i.e., "${foo}"), the jsp compilation will fail, so it will never execute

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Dale Newfield
Chris Pratt wrote: The proposed flow (with false The bit you're missing is that if you have a tag attribute with rtexprvalue set to false that contains what the container thinks is an EL expression (i.e., "${foo}"), the jsp compilation will fail, so it will never execute and pass the string "

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Dave Newton
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > * The struts tag first parses the attribute looking for "${", if it is > found it uses the JSP EL API to evaluate the value for the attribute. > If it is not found, it is assumed to be OGNL and processed just like > today. Oh, gotcha. Re-meh. Dave --

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Chris Pratt
On Thu, Mar 6, 2008 at 4:27 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Chris Pratt <[EMAIL PROTECTED]> wrote: > > > today). My proposed change would be at the point where the attribute > > is evaluated (I have no idea where that happens within the struts > > component framework). Before p

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Dave Newton
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > today). My proposed change would be at the point where the attribute > is evaluated (I have no idea where that happens within the struts > component framework). Before processing the attribute it should first > be checked to see if it contains JSTL EL

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Chris Pratt
On Thu, Mar 6, 2008 at 10:25 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Chris Pratt <[EMAIL PROTECTED]> wrote: > > Only if we allow the container to process the JSTL EL. If we turn the > > container off and process the JSTL EL inside of the Struts tag > > library, the security hole vanish

Re: Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Jeromy Evans
Bob Tiernay wrote: If adding a jstl enabled tld is because it's "dangerous" with ognl expression use, then make the uri: "struts-dangerous"! If it's because there is a process issue, lets discuss :) Bob Process issue : an APT task automatically generates the TLD using annotations on ea

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Felipe Rodrigues
>> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To

Re: Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Brian Pontarelli
sks to be taken for that. Chris Pratt wrote: On Thu, Mar 6, 2008 at 7:51 AM, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Your suggestion for question 1 is good, since we have more description on struts documentation. The 2 point is the most important, from my view. Use JSP

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Andrea Vettori
thanks I'll check it... Il giorno 06/mar/08, alle ore 19:49, Antonio Petrelli ha scritto: Sorry if I come up now, but there is an effort to create a EL plugin for Struts 2.1.x: http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-uel-plugin/ http://svn.apache.org/repos/asf/struts/sandb

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Antonio Petrelli
Sorry if I come up now, but there is an effort to create a EL plugin for Struts 2.1.x: http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-uel-plugin/ http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-uel-plugin-example/ If you want EL support back, please contribute to this sa

Re: [struts-dev] Issue WW-2107 question - Is JSTL disable or not?

2008-03-06 Thread Andrea Vettori
Il giorno 06/mar/08, alle ore 19:04, Dale Newfield ha scritto: Andrea Vettori wrote: That's true but should't the app do some input checking ? What you're suggesting is that we make this framework vulnerable to poorly written applications? I'd say the framework should be written so that

  1   2   3   >