[S2] ClientAbortException in StreamResult

2009-07-01 Thread Pro1712
Hello! I've got a Action to download documents stored in a BLOB ind an oracle-db: action name=DownloadDocumentAction method=downloadDocument class=com.foo.FileAction result type=stream inputStream /result /action public String downloadDocument() {

Re: [S2]Accessing value stack with jstl

2009-07-01 Thread Volker Krebs
Volker Krebs schrieb: Hello, we recently update from struts 2.0.14 to struts 2.1.6 In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper was delegating to the Value Stack. This meant that in my JSP Page: s:property value=foo/ was the same as ${foo} With struts 2.1.6 this doesn't

Multiselect tags

2009-07-01 Thread Jim Collings
So I went searching in the archives for how to use a select tag with multiselect='true' set. I found one entry from 2007 where a user asks this question. The answer was Use a list. Great. How? If I set the tag to a list of objects specified in my action, how do I set the second list of objects?

Re: Multiselect tags

2009-07-01 Thread Jim Collings
So I tried setting key='selectedList' This did not work. I got a null selectedList and: ognl.ExpressionSyntaxException: Malformed OGNL expression: [ognl.ParseException: Encountered EOF at line 1, column 0. Was expecting one of: . . . etc. How?  If I set the tag to a list of objects specified

Re: [S2]Accessing value stack with jstl

2009-07-01 Thread Volker Krebs
Volker Krebs schrieb: Volker Krebs schrieb: Hello, we recently update from struts 2.0.14 to struts 2.1.6 In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper was delegating to the Value Stack. This meant that in my JSP Page: s:property value=foo/ was the same as ${foo} With

RE: Multiselect tags

2009-07-01 Thread Lee Clemens
If you are trying to make a cascading drop down, you can do so with the doubleselect tag. One way to implement: Create a class, CascDropDown, with getters and setters for value, label and subList. subList is a List of objects, DropDown, with getters and setters for value and label. If you have

Re: Multiselect tags

2009-07-01 Thread Jim Collings
One way to implement: Create a class, CascDropDown, with getters and setters for value, label and subList. subList is a List of objects, DropDown, with getters and setters for value This is not what I was having trouble with. Anyway, I've got the solution but I need to complete what I am

Blocked trying to get lock: org.apache.log4j.spi.RootLogger

2009-07-01 Thread laredotornado
Hi, We are using WebLogic 9.2.2 with Java 1.5. The application is written using Struts 1.3 and log4j 1.2.15. We found a number of errors that looked like below in our managed server's .out file. Any ideas what might be a cause or how to troubleshoot further? Our sys admin sadly did not

[s2] s:url includeParams and StrutsTypeConverter

2009-07-01 Thread Olivier H. Beauchesne
Hi, I'm using a StrutsTypeConverter to convert Date objects into localized formatted strings to switch between locals. It works really well with s:textfield but not with s:url tags. The parameters don't pass through the StrutsTypeConverter like the fields. I'm using a

Re: Multiselect tags

2009-07-01 Thread Jim Collings
OK, so it is really a lot simpler than I thought. Just have to set the name of the select to the name of the property and the system will figure out that it is a list of what ever the listkey is set to. Same as usual. On Wed, Jul 1, 2009 at 12:11 PM, Jim Collingsjlistn...@gmail.com wrote: One

Re: [S2]Accessing value stack with jstl

2009-07-01 Thread Dave Newton
Volker Krebs wrote: we recently update from struts 2.0.14 to struts 2.1.6 In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper was delegating to the Value Stack. This meant that in my JSP Page: s:property value=foo/ was the same as ${foo} With struts 2.1.6 this doesn't seem to

applicationresources.properties with utf-8 characters

2009-07-01 Thread Odelya YomTov
Hi! I would like to have in my applicationresources.properties utf-8 charcters. When I write: login.notRecognized = נא לנסות שנית and try to save, I get the message Some characters cannot be mapped using ISO-8859-1 What tag can I add to it? It's a properties file.. Thanks!

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Lukasz Lenart
What do you use to edit that file? Eclipse? There is plugin which will convert in fly characters to UTF-8 entities, Resource Bundle Editor or something. IntelliJ IDEA has built-in such option, just select it in Settings. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Martin Uhlir
hi, use native2ascii to convert the foreign characters into \u escape sequence. look at here http://globalizer.wordpress.com/2007/02/08/property-resource-bundle-encoding/ martin Odelya YomTov wrote: Hi! I would like to have in my applicationresources.properties utf-8 charcters.

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
Does anyone know how to calculate the total value by making use of the s:set tag? On Mon, Jun 29, 2009 at 1:16 PM, Bhaarat Sharma bhaara...@gmail.com wrote: for our purpose i'd prefer doing it in the iterator tag. I tried something like this s:set name=calcTotalDebtAmt

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Jim Kiley
Does it work if you replace the += with a +? jk On Wed, Jul 1, 2009 at 4:39 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Does anyone know how to calculate the total value by making use of the s:set tag? On Mon, Jun 29, 2009 at 1:16 PM, Bhaarat Sharma bhaara...@gmail.com wrote: for our

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
no :( I tried the following s:iterator value=resultList status=status s:text name=number.formats:param value = totalCount//s:text s:set name=calcTotalDebtAmt value=%{calcTotalDebtAmt+totalCount}/ /s:iterator and tried to print it s:property value=#calcTotalDebtAmt/ but it shows

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
oh nevermind. was experimenting and s:set name=calcTotalDebtAmt value=%{#calcTotalDebtAmt+totalCount}/ works! bless OGNL On Wed, Jul 1, 2009 at 4:55 PM, Bhaarat Sharma bhaara...@gmail.com wrote: no :( I tried the following s:iterator value=resultList status=status s:text

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Jim Kiley
I don't know how Struts 2 tags work under the hood, but it's possible that it's going out of scope because you declared it in the iterator, or it's silently throwing an error because it isn't initialized. Before your s:iterator starts, do s:set name=calcTotalDebtAmt value=0/. This could be

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
but if I do it in my action class then I am adding extra 'time'. to begin with I anyways have to iterate over the list in my JSP. Just to calculate total if I iterate over the list again in java code then I am doing two iterations through the list. Just didnt seem very efficient for my need.

Post parameters are null while accessing through url rewrite

2009-07-01 Thread sac sha
Hi All I am a newbee to struts. I have made a test website in struts. I have added some forms to the pages which inserts data to the database using action. The parameters are sent as post. All is working fine when I put http://localhost:8080/myproj. I have done url rewriting to map my web app to

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Jim Kiley
I will bet one dollar that the amount of time it takes to calculate this value inside your Action class is less than or equal to the time it takes it to calculate the value inside the iterator in your JSP. And it's a vanishingly small amount compared to network latency. Unless you're writing

Re: Post parameters are null while accessing through url rewrite

2009-07-01 Thread sac sha
Hi Also I have used mod_rewrite for url rewriting. On Thu, Jul 2, 2009 at 2:37 AM, sac sha sacsh...@gmail.com wrote: Hi All I am a newbee to struts. I have made a test website in struts. I have added some forms to the pages which inserts data to the database using action. The parameters

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
thanks for your advice. ...optimizing out a for loop is not the best use of your time as a developer. I second that. But in this case why would I write another for loop to do something that can be done in the for loop that I already have? Unless there is an issue with doing this inside

Re: using CompositeActionMapper

2009-07-01 Thread rsilva
I have used the following with success in Mac Os Leopard Tomcat 6.0.18 Struts 2.0.14 Java 1.5.0.19 bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=waves class=struts2.urlrewrite.WavesASPActionMapper / bean type=org.apache.struts2.dispatcher.mapper.ActionMapper

Re: using CompositeActionMapper

2009-07-01 Thread rsilva
Hi, I dont not understand very much about Struts2 inject process but I fixed my problem extending the compositeActionMapper with the following one: public class DebugCompositeActionMapper extends CompositeActionMapper { @Override @Inject(StrutsConstants.STRUTS_MAPPER_COMPOSITE)

Resource Bundle Advice

2009-07-01 Thread Zoran Avtarovski
I have a 2.1.6 App that I want to move the resource bundle away from properties files to a database backed solution and I was hoping I could get some feedback on others experience. I was planning to extend java.util.ResourceBundle and add the requisite methods for accessing keys and properties

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Yanto
Change the file properties, file type to utf8 On Thursday, July 2, 2009, Odelya YomTov ode...@jpost.com wrote: Hi! I would like to have in my applicationresources.properties utf-8 charcters. When I write: login.notRecognized = נא לנסות שנית and try to save, I get the message Some

compatibility of various versions Tomcat, jdk, and struts2

2009-07-01 Thread Dimitrios Christodoulakis
Hello, while doing development I am conforming to the versions provided by our hosting service. I am trying to select the most suitable version of the framework, java and tomcat so, just wanted to ask if there are known compatibility issues with the following combination: Fixed: jdk1.5.0_17

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Wes Wannemacher
On Wednesday 01 July 2009 21:03:32 Yanto wrote: Change the file properties, file type to utf8 I am pretty sure that properties files can't be utf-8. I think you are stuck with iso-8859-1. I've run into this before and the proper solution is what was suggested earlier, using the native2ascii

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Wes Wannemacher
On Wednesday 01 July 2009 21:03:32 Yanto wrote: Change the file properties, file type to utf8 I am pretty sure that you can only use ISO-8859-1 for properties files. I ran into this once before and the accepted solution is to use the native2ascii tool as was previously suggested. -Wes On

Re: compatibility of various versions Tomcat, jdk, and struts2

2009-07-01 Thread Wes Wannemacher
On Wednesday 01 July 2009 21:56:17 Dimitrios Christodoulakis wrote: Hello, while doing development I am conforming to the versions provided by our hosting service. I am trying to select the most suitable version of the framework, java and tomcat so, just wanted to ask if there are known

Struts2 - dojo anchor error

2009-07-01 Thread Kishan G. Chellap Paandy
Hi Folks, Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html There's a bug in IE6/IE7 which makes impossible to use the target's attribute with a parent Div, because such Div's content's are overwritten with the tag's loadingText. Resulting in an undefined message in the

Displaying data from one Form to another

2009-07-01 Thread pasanewa
I have 2 forms. 1. List Page 2. Edit page I have an actionForm and a Action Class for both the forms. When a Submit button is cicked in List Page for one DATA(a row), that DATA must be displayed in the Edit Page for correction. so in the Submit() function in Action1 (Listpage), How CAN I SET

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Yanto
We change applicationresources_zh.properties to utf 8 in our application, and the application can show the chinese character properly in the application. However we are not changing applicationresources.properties to utf8 On Thu, Jul 2, 2009 at 10:49 AM, Wes Wannemacher w...@wantii.com wrote:

Facing problem in sending List objects from jsp.

2009-07-01 Thread Gupta.Vaibhav
Hi All, I am working on some reports generation. For this i need to display some List of objects and then i need to get these object back as a part of Form. i can not use session. Can any body help me how can i wraps objects into a list. thanks Vaibhav Gupta