Re: why doesnt iterator tag provide 'next'

2009-06-02 Thread Bhaarat Sharma
currently, I am not using jstl tags at all inmy application. Isnt there anyway to achive this using strictly struts2 tags? On Tue, Jun 2, 2009 at 1:50 AM, Chris Pratt thechrispr...@gmail.com wrote: You can use the c:forEach tag for that type of iteration. (*Chris*) On Mon, Jun 1, 2009 at

Re: why doesnt iterator tag provide 'next'

2009-06-02 Thread Bhaarat Sharma
i see that musachy added support for this http://svn.apache.org/viewvc?view=revrevision=741179 Mushacy, is this ready to be used? On Tue, Jun 2, 2009 at 2:10 AM, Bhaarat Sharma bhaara...@gmail.com wrote: currently, I am not using jstl tags at all inmy application. Isnt there anyway to achive

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

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:

RE: Iterating over a List of Lists

2009-06-02 Thread Steve
This works for me s:iterator value=outerList tr s:iterator tds:property//td /s:iterator /tr /s:iterator 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

File Upload in Mozilla

2009-06-02 Thread Mageshwaran
Hi All, In my jsp code i had used s:file name=uploadFile label=File 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

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

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? s:iterator value=%{(dataList.size()).{?(#this%2)==(#this/2)}} /s:iterator It's explained in the OGNL documentation. Dave - To

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

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: s:iterator value=outerList tr s:iterator tds:textfield

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

Re: Introducing Spring in Struts2 Project

2009-06-02 Thread Wes Wannemacher
On Tue, Jun 2, 2009 at 9:32 AM, alee amin mailing.list.mail...@gmail.com 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

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

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

Adding dynamic parameters to s:url

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 ListWebParameter webParameters; then I would like to do

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

Re: Adding dynamic parameters to s:url

2009-06-02 Thread Girish Naik
try adding *status=webP *in the s:iterator and use: s:param name=*#webP.name* value=*#webP.value* / Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com George Bernard

Re: Adding dynamic parameters to s:url

2009-06-02 Thread Wes Wannemacher
On Tue, Jun 2, 2009 at 9:59 AM, Girish Naik girish.n...@gmail.com wrote: try adding *status=webP *in the s:iterator and use: s:param name=*#webP.name* value=*#webP.value* / I think it is 'var=' not 'status=' -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts

Re: Adding dynamic parameters to s:url

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 s:url

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

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

Re: Iterating over a List of Lists

2009-06-02 Thread Dave Newton
DavidCAIT wrote: My JSP code looks like: s:iterator value=myList status=outerStat s:iterator value=myList[#outerStat.index] status=innerStat s:textfield value=%{property} name=myList[%{#outerStat.index}][%{#innerStat.index}].property/ /s:iterator /s:iterator I did something very

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

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 newton.d...@yahoo.com wrote: DavidCAIT wrote: My JSP code looks like: s:iterator value=myList status=outerStat s:iterator value=myList[#outerStat.index] status=innerStat s:textfield

[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

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

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 rc...@i-tao.com 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

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 newton.d...@yahoo.com 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

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: 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:

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: 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

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 ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app where referenced DTD contains !-- This

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

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: s:form id=crearWhere theme=simple action=../where/create name=crearWhere it's rendered as: form id=crearWhere name=crearWhere

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 =

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

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

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

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 work. But the

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

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: Interceptor (Thread Safety)

2009-06-02 Thread Wes Wannemacher
On Tue, Jun 2, 2009 at 12:45 PM, ZeckoN zec...@gmail.com 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?

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

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: 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

Re: Adding dynamic parameters to s:url

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

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

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, welcome-file-list welcome-fileindex.html/welconpme-file /welcome-file-list create an index.html with the

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.

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

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