Re: Remove .action from forms action attribute

2009-06-02 Thread David Canos
I prefer to render the real path I type. 2009/6/2 Dave Newton > David Canos wrote: > >> Now we have got to remove the suffix, any idea about the preffix >> /MyProject/../? >> > > Don't you want the form to submit to your application? > > Dave > > > ---

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread Wes Wannemacher
I don't know about Bruce's blog, but I know the source samples for the book he mentioned are available here - struts2inpractice.googlecode.com (btw, thanks for the plug Bruce) -Wes On Wednesday 03 June 2009 12:10:22 am alee amin wrote: > hi philips, > thanks for the links. however, the pdf on

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread alee amin
hi philips, thanks for the links. however, the pdf on the site are not being downloaded properly. I duno if it has something to do with the web site. moreover, can you point me to the link where you have placed the source code. ..alee http://techboard.wordpress.com On Tue, Jun 2, 2009 at 9:47 P

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread Frans Thamura
take a look my blueoxygen project, cimande is the core http://www.sf.net/projects/cimande the modules: http://www.sf.net/projects/mantra http://www.sf.net/projects/ramen http://www.sf.net/projects/papaje http://www.sf.net/projects/lotion more 20 modules there, all s2, sprng, hibernate. feedkbac

Re: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-02 Thread Struts Two
> Typing http://servername/context/ results in "Error 404: There > is no Action mapped for namespace / and action name ." To fix this issue, modify your welcome part of web.xml, index.html create an index.html with the following content: Loading ... Then typing http:/

Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-02 Thread Mitchell, Steven
Having learned that form-based authentication currently does not currently work with Struts 2.1.x on WAS 6.1 or WAS 7 I stepped back to see what does work. I gutted my web.xml and struts.xml and set about turning things on one at a time. This is what I found: 1. Basic hello world app with

Re: Adding dynamic parameters to

2009-06-02 Thread Girish Naik
I had used it in the project, but since it was not working a colleague has changed it without my knowledge. Sorry to misguide as I thought it is working fine :( Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com George Be

RE: Introducing Spring in Struts2 Project

2009-06-02 Thread Martin Gainty
thanks for the links struts.objectFactory.spring.autoWire.alwaysRespect Whether the autowire strategy should always be used, or if the framework should try to guess the best strategy based on the situation false for backwards-compatibility t //code works perfect as long as struts.objectFactor

Re: Remove .action from forms action attribute

2009-06-02 Thread Dave Newton
David Canos wrote: Now we have got to remove the suffix, any idea about the preffix /MyProject/../? Don't you want the form to submit to your application? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: why doesnt iterator tag provide 'next'

2009-06-02 Thread Dale Newfield
Bhaarat Sharma wrote: the above properties dont seem to be there for iterator tag. 2.1.7 (RC, anyway) is due out RSN. I am doing something like this: the contents of stat are defined by: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html

Re: Remove .action from forms action attribute

2009-06-02 Thread David Canos
Hi Wes, than you very much for your reply, now .action doesn't appear as suffix. Is possible to update the documentation with this info, it will help lot of people. Now we have got to remove the suffix, any idea about the preffix /MyProject/../? * * 2009/6/2 Wes Wannemacher > With 2.1.6, w/o an

Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Struts Two
That is why I asked you if you are using "Form-based" authentication or "Basic" authentication. And I got no reply. However, looking at ur logs, esp the message: >>There is no Action mapped for namespace / and action name >>j_security_check Now I know that your are using "Form-based" authentica

Re: Interceptor (Thread Safety)

2009-06-02 Thread Wes Wannemacher
On Tue, Jun 2, 2009 at 12:45 PM, ZeckoN wrote: > > If two copies of the same action is run at the same time parallelly (by ajax, > iframe, etc.) in the same session, possibly with different parameters, do > these actions call the same instance of an interceptor's intercept() method? > If this is t

Re: Interceptor (Thread Safety)

2009-06-02 Thread Dave Newton
ZeckoN wrote: public String intercept(ActionInvocation actionInvocation) throws Exception { .Do some pre work String result = actionInvocation.invoke(); .Do some after work return result; } Local variables aren't shared across method invocations. Dave

Re: AJAX issues in struts 2.1.6

2009-06-02 Thread rajeevP
Thanks Dave, i have added one property preload=false in sx:div , that stops the automatic calling of the url. Thanks very ... Rajeev -- View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p23836546.html Sent from the Struts - User mailing list a

Re: AJAX issues in struts 2.1.6

2009-06-02 Thread rajeevP
newton.dave wrote: > > Because that's what sx:div does by default; loads a URL via Ajax. > > Maybe the "preload" attribute has what you need. > > http://struts.apache.org/2.x/docs/dojo-div.html > > rajeevP wrote: >> Thanks for all your support, after adding the sx:head i could able to >> wor

Interceptor (Thread Safety)

2009-06-02 Thread ZeckoN
If two copies of the same action is run at the same time parallelly (by ajax, iframe, etc.) in the same session, possibly with different parameters, do these actions call the same instance of an interceptor's intercept() method? If this is the case, how to avoid problems that can arise? For examp

Re: S2: on Servlet 2.3

2009-06-02 Thread Dave Newton
The issue is getting S2 to run on a 2.3 container, not how to specify the version in a web.xml. Web.xml changes won't change S2's ability (or lack thereof) to *run* under that version. Martin Gainty wrote: Eric the supported version is specified in DTD spec at head of webapp /WEB-INF/web.xml

Re: Remove .action from forms action attribute

2009-06-02 Thread Wes Wannemacher
With 2.1.6, w/o any major modifications of configuration, the URLs can lack the '.action' by default. It seems that s:url and s:form will render urls with the .action suffix, if the page rendering the tag was requested with the suffix. Try visiting the page rendering the form w/o specifying the .ac

Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Dave Newton
Have you tried a 2.1.7 build? Mitchell, Steven wrote: I will look at that. Meanwhile, I found that WAS logged an error (this was after the WAS admin tried changing the filter from /* to /[my context]/* --Start of DE processing-- = [5/29/09 13:50:09:369 CDT] , key = javax.servlet.Servle

Remove .action from forms action attribute

2009-06-02 Thread David Canos
Hi folks I'm using Struts 2.1.6 (not convention) and URLRewrite filter.I'm trying to remove .action extension from a form's action attribute. A simple tag like this: it's rendered as: I need to tidy this uri removing ".action" from action-attribute. http://struts.apache.org/2.1.6/docs/form.h

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread phillips1021
I've written a couple of articles on my blog about integrating Spring with Struts 2. See: http://www.brucephillips.name/blog/index.cfm/2008/10/17/Using-Struts-2-and-Spring-Frameworks-Together http://www.brucephillips.name/blog/index.cfm/2009/3/7/Using-Spring-In-A-Struts-2-Web-Application Als

RE: S2: on Servlet 2.3

2009-06-02 Thread Martin Gainty
Eric the supported version is specified in DTD spec at head of webapp /WEB-INF/web.xml http://java.sun.com/dtd/web-app_2_3.dtd";> where referenced DTD contains Viel Gluck! Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist ver

RE: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Mitchell, Steven
I will look at that. Meanwhile, I found that WAS logged an error (this was after the WAS admin tried changing the filter from /* to /[my context]/* --Start of DE processing-- = [5/29/09 13:50:09:369 CDT] , key = javax.servlet.ServletException com.ibm.ws.webcontainer.servlet.ServletWrapper

Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Ron Chan
Steven Not familiar with your setup and if it works in tomcat and not WAS, even stranger. But for what it's worth here is my hack, I made a copy of StrutsPrepareAndExecuteFilter and in the doFilter where it said ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping =

RE: S2: on Servlet 2.3

2009-06-02 Thread Givler, Eric
I just downloaded the 2.0.14 from the apache site and the struts-tags.tld file is definitely 1.2 as opposed to the one included with the 2.1.6 release which is newer (uses the JSP 2.x xml schema definition). -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Tuesda

Re: S2: on Servlet 2.3

2009-06-02 Thread Dave Newton
Givler, Eric wrote: Can you respond with a specific version that you used? 2.0.? Probably around 2.0.4-ish, although I really have no clue at this point. I might be able to find out specifically in a day or two if it's still in their source control. Dave --

Re: [OT} Re: Iterating over a List of Lists

2009-06-02 Thread stanlick
someone stole my bike! On Tue, Jun 2, 2009 at 9:39 AM, Dave Newton wrote: > Jim Kiley wrote: > >> I had no idea I was in the presence of royalty. >> > > There's a lotta things about me you don't know anything about, Jim. Things > you wouldn't understand. Things you couldn't understand. Things yo

Re: 2.1.6 convention plugin problem

2009-06-02 Thread Musachy Barroso
I agree with that, can you open a jira ticket with the details? regards musachy On Tue, Jun 2, 2009 at 12:51 AM, Ron Chan wrote: > > is this a misconfig or a workaround? > > in 2.0.x the default behaviour for "/" is to go to the welcome file list > > there is no mention of a change in behaviour

RE: S2: on Servlet 2.3

2009-06-02 Thread Givler, Eric
Can you respond with a specific version that you used? 2.0.? Thanks! -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Friday, May 29, 2009 4:03 PM To: Struts Users Mailing List Subject: Re: S2: on Servlet 2.3 Givler, Eric wrote: > I read a few threads on this an

[OT} Re: Iterating over a List of Lists

2009-06-02 Thread Dave Newton
Jim Kiley wrote: I had no idea I was in the presence of royalty. There's a lotta things about me you don't know anything about, Jim. Things you wouldn't understand. Things you couldn't understand. Things you *shouldn't* understand. I've always been a little disturbed by how much I enj

Re: Iterating over a List of Lists

2009-06-02 Thread Jim Kiley
I had no idea I was in the presence of royalty. On Tue, Jun 2, 2009 at 10:29 AM, Dave Newton wrote: > DavidCAIT wrote: > >> My JSP code looks like: >> >> >> >>> name="myList[%{#outerStat.index}][%{#innerStat.index}].property"/> >> >> >> > > I did something very similar to this qui

WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Mitchell, Steven
I'm still trying to get Struts 2.1.6 deployed on WAS 6.1. I'm fighting a couple of related issues. Index.jsp forwards to /MyContext/myNamespace/myAction.action, but gets this error: There is no Action mapped for namespace / and action name . - [unknown location] If I type http://myServer/my

Re: Iterating over a List of Lists

2009-06-02 Thread Dave Newton
DavidCAIT wrote: My JSP code looks like: I did something very similar to this quite some time ago, although it was actually a little worse (another layer, the name of one of the properties was dynamic) and was crowned the King of OGNL for my efforts. Maybe search the archives-

RE: Iterating over a List of Lists

2009-06-02 Thread Steve
Hi David, My code doesn't include an editing capability so I don't have any working code that I can cut and paste. Also I have not tried sending a List back from a JSP page. Are you getting any sub-lists back or are they all null? Cheers, Steve -Original Message- From: DavidCAIT [mailt

Re: Adding dynamic parameters to

2009-06-02 Thread Dave Newton
Girish Naik wrote: May be, but i have successfully used 'status=' in my project. Anyways why not try both n use the one which works ;) "status" is only the iterator status (with count, index, first, last, etc.) If it worked for you as the current iteration object then that's a very, very stra

Re: Adding dynamic parameters to

2009-06-02 Thread Girish Naik
May be, but i have successfully used 'status=' in my project. Anyways why not try both n use the one which works ;) Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Mark Twain

Re: Adding dynamic parameters to

2009-06-02 Thread Wes Wannemacher
On Tue, Jun 2, 2009 at 9:59 AM, Girish Naik wrote: > try adding *status="webP" *in the s:iterator and use: > > I think it is 'var=' not 'status=' -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.

Re: Adding dynamic parameters to

2009-06-02 Thread Girish Naik
try adding *status="webP" *in the s:iterator and use: Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com George Bernard Shaw - "A government that robs

RE: Introducing Spring in Struts2 Project

2009-06-02 Thread Martin Gainty
http://struts.apache.org/2.0.14/docs/spring-plugin.html that works as long as you're autowiring by type e.g. struts.objectFactory.spring.autoWire = type ask any implementation questions here Martin Gainty __ Verzicht und Vertraulichkeitanmerkung D

Adding dynamic parameters to

2009-06-02 Thread Felipe Fraga
Greetings to all. I am trying to store dynamic parameters through requests. So, I have a class like this: >>> public class WebParameter { >>> private String name; >>> private String value; >>> } and in my Action class I have: >>> private List webParameters; then I would like to do some

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread Dave Newton
alee amin wrote: I have been assigned a task to introduce spring in struts 2 project. I have been novice at both technologies. Right now i am going through the project to analyze what is actually going and i thought to get some advice from experts sitting across the globe. What could be the key

Re: AJAX issues in struts 2.1.6

2009-06-02 Thread Dave Newton
Because that's what sx:div does by default; loads a URL via Ajax. Maybe the "preload" attribute has what you need. http://struts.apache.org/2.x/docs/dojo-div.html rajeevP wrote: Thanks for all your support, after adding the sx:head i could able to work. But the problem is , while loading the j

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread Wes Wannemacher
On Tue, Jun 2, 2009 at 9:32 AM, alee amin wrote: > I have been assigned a task to introduce spring in struts 2 project. I have > been novice at both technologies. Right now i am going through the project > to analyze what is actually going and i thought to get some advice from > experts sitting ac

Introducing Spring in Struts2 Project

2009-06-02 Thread alee amin
I have been assigned a task to introduce spring in struts 2 project. I have been novice at both technologies. Right now i am going through the project to analyze what is actually going and i thought to get some advice from experts sitting across the globe. What could be the key areas which will ge

RE: Iterating over a List of Lists

2009-06-02 Thread DavidCAIT
Thanks for the reply. I am able to display the contents of the nested list (as indicated in your example). However, I want to make the list contents editable and return them to the Struts action. For example, something similar to: Displaying the contents of the nested list is not the pro

Re: AJAX issues in struts 2.1.6

2009-06-02 Thread rajeevP
Thanks for all your support, after adding the sx:head i could able to work. But the problem is , while loading the jsp page itslef the url action is calling. Actually our intention to call the url , when the onchange of the text field happens. why it is happening like this? I am attaching my jsp w

Re: why doesnt iterator tag provide 'next'

2009-06-02 Thread Dave Newton
Bhaarat Sharma wrote: Could you or someone else please explain what exactly this line means? It's explained in the OGNL documentation. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comman

RE: File Upload in Mozilla

2009-06-02 Thread Jon Pearson
You're not the only one annoyed by this, but it's a security fix. Here's someone else's opinion on it: http://codangaems.blogspot.com/2008/06/firefox-3s-file-upload-box.html And the security vulnerability description: http://secunia.com/advisories/20442/ Sorry to say, you can't do what you want t

File Upload in Mozilla

2009-06-02 Thread Mageshwaran
Hi All, In my jsp code i had used "size="20" onkeypress = "killEvent(event)"/>" for file upload using IFrame. Issue: While loading in Mozilla browser, if i click on the text field, the upload dialog (File Chooser) opens. I want to open the upload dialog (File Chooser) only if browse but

RE: Iterating over a List of Lists

2009-06-02 Thread Steve
This works for me My inner list is a list of Strings. This code gives me one innerList list per line Hope this helps, Steve -Original Message- From: DavidCAIT [mailto:dzaze...@cait.org] Sent: 02 June 2009 02:14 To: user@struts.apache.org Subject: Iterating over a List of Lists

Tiles: how to get definition name ?

2009-06-02 Thread boraldo
I have tiles.xml file where I have definitions. All these definitions are inherited from base definition that includes title page. I want to write in this page some text depending on what definition it was. Is it possible ? -- View this message in context: http://www.nabble.com/Tiles%3A-how-to-

RE: 2.1.6 convention plugin problem

2009-06-02 Thread Ron Chan
is this a misconfig or a workaround? in 2.0.x the default behaviour for "/" is to go to the welcome file list there is no mention of a change in behaviour in any of these http://struts.apache.org/2.1.6/docs/version-notes-216.html http://struts.apache.org/2.1.6/docs/action-configuration.html http