Re: Problem with struts 2

2007-03-25 Thread Nuwan Chandrasoma
hi, I hope you are using a servlet container that support 2.4 spec., change your web.xml .xsd to 2.4 one like below. ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_9 version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Iterate and write indexed properties in place using logic:iterate

2007-03-25 Thread Francesco Pretto
Hi! What i'm trying to obtain is somewhat described in the faqs here, http://struts.apache.org/1.2.9/faqs/indexedprops.html , using the struts EL extension. This is the problem: i have an ArrayList of objects, called list, all of type Type. I want to individually write on the field field1 of

Re: Iterate and write indexed properties in place using logic:iterate

2007-03-25 Thread Francesco Pretto
Hey, nested tags should be actually cited, at least in the 1.3.5 faqs at http://struts.apache.org/1.3.5/struts-taglib/indexedprops.html ! However, found a very simple solution that works perfectly! nested:iterate id=idIterate name=MyForm property=list nested:text property=field1/

Re: Problem with struts 2

2007-03-25 Thread Dave Newton
From: struts2 [EMAIL PROTECTED] The requested resource (/hello_world/example/HelloWorld.action) is not available. I'd be suspicious of your deployment process; at first glance, at least, the configuration seems okay. Are there any startup errors in the log files? Do you have devMode turned on?

Re: Problem with struts 2

2007-03-25 Thread Martin Gainty
Could we see the action from action-mappings (specifically path/type/name/scope config) from struts-config.xml ? Thx, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or

Re: Problem with struts 2

2007-03-25 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: Could we see the action from action-mappings (specifically path/type/name/scope config) from struts-config.xml ? ??? They're in the OP, although it's S2, not S1. d.

Re: Problem with struts 2

2007-03-25 Thread Martin Gainty
yes I see it Thx, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary ,

[S2] Validation error messages are not being cleared

2007-03-25 Thread Célio Cidral Junior
An action has this validation config: validators field name=nome field-validator type=requiredstring messageCampo obrigatório/message /field-validator /field field name=identificacao field-validator

Re: [S2] Validation error messages are not being cleared

2007-03-25 Thread Dave Newton
--- Célio Cidral Junior wrote: [S2 validation messages not being cleared] You didn't include your Spring config for the action, which is a lot more important than the getters and setters. Is it declared with scope=prototype? d.

Re: [S2] Validation error messages are not being cleared

2007-03-25 Thread Célio Cidral Junior
2007/3/25, Dave Newton [EMAIL PROTECTED]: --- Célio Cidral Junior wrote: Is it declared with scope=prototype? Oh noes! I fotgot about the scope! :-( MY APOLOGIES! MY APOLOGIES! Célio. - To unsubscribe, e-mail: [EMAIL

Disabling struts2 filter for some URL

2007-03-25 Thread Marcin Zduniak
Hello, I have struts2 application with FilterDispatcher mapping in web.xml set to /*. I would like to have in my application a few regular Servlets, let say with url: http://localhost:8080/MyStrutsApp/regularServlets/Servlet1 This servlet should not be filtered by Struts filter and I don't want

Re: Disabling struts2 filter for some URL

2007-03-25 Thread Martin Gainty
Marcin- if you change struts2 filter all e.g. url-pattern/*/url-pattern to *some other characteristic* specific to your struts2 classes in web.xml filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping HTH, Martin

Re: Disabling struts2 filter for some URL

2007-03-25 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: if you change struts2 filter all e.g. url-pattern/*/url-pattern to *some other characteristic* specific to your struts2 classes in web.xml Be aware that this may disrupt S2's serving of static content unless you plan accordingly. d.

Re: HttpServletRequest - in a Portlet

2007-03-25 Thread tom tom
Hi, We got lot of allready written code with method signatures where it has HttpServletRequest as the in parameter. for e.g. request.getContextPath(); Other reason is it works in a normal struts 2.0.6 application, I wanted to do the same in the portlet without accessing portlet specific

A Problem in Json plugin!

2007-03-25 Thread joey
I just tried to generate json result by using Json plugin. But I found that the result is cutted,not a well-formed json result. After debugging ,I found the reason,one of my string property of the struts action isn't a iso-8859-1 encoding string. In the method execute of class JSONResult,you

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-25 Thread Pierre Thibaudeau
Sorry, Paul, for the silence. I was away for the last few days. Unfortunately, as I mentioned on my previous post on this topic, I have to lay that matter aside for the next week (battling convoluted CSS designs at the moment!). So nothing has changed on the actionId front... I hope to come

Re: Problem with struts 2

2007-03-25 Thread struts2
Thanks guys for your replies, now the application is working. What i did is i copy some code from the eaxmple application shipped with the API and modify it according to my needs and voila it's working. Now even i don't know what's wrong with the earlier version even if i compared boith and

Re: [S2] struts2-showcase in Websphere 6.1 not picking up static resources

2007-03-25 Thread Tapio Holopainen
Hi Alex, I think that you have same problem like me, take a look at - https://issues.apache.org/struts/browse/WW-1839 Regards, - Tapio - I am trying to get Struts2 running on top of Websphere 6.1 and I am having some issues with this. These issues also occur in the Struts2Showcase.

Re: Please help: Struts tags don't evaluate any expressions

2007-03-25 Thread Vijay Venkataraman
Irene, Quick question, why can't you move to Servlet 2.4 since you are working with Tomcat 5. There are lot of good things that come with JSP 2.0 which can be applied that will make developers more productive. When i joined my project it was on Tomcat 5 and Struts 1.2.4. but on JSP 1.2. I