RE: Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2008-12-23 Thread Pep Villar
Hi, i've tested the alternate j4 jars that you can find in the struts2 site (struts-2.0.14-backport.zip at http://struts.apache.org/download.cgi#struts2014) without make use of retrotanslator (the work is already done) and worked fine both in Apache Tomcat 5.0.28 and Sun Application Server 8

Re: [OT] Looking for a Team-Based Solution for Storing Account Credentials

2008-12-23 Thread ManiKanta G
what abt KeePass (http://keepass.info/). But I m not sure whether it supports multiple users... but it stores the passwords like mysql databases... we can switch from one password db to another... this is open source may be many of this list know this... If some know better program, I m happy

Re: Struts 2 Type Conversion for properties of a List

2008-12-23 Thread dusty
you want to use the class name rather property name on your conversion file. com.mydomain.model.Artist=com.mydomain.converter.ArtistConverter You specify the property name when telling struts the Bean type for an entire collection. I don't think you can register Type Converters for a particul

RE: Bean Properties are lost

2008-12-23 Thread dusty
This is a fairly common issue. I don't have time right now but if no one shows you I can show you tonight. It is a combination of type conversion and the prepare filter depending on your requirements. If you want to try to figure it out on your own in the meantime, look at the type conversion d

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2008-12-23 Thread rorostar
Dave, I tried to turn print some debug log using SimpleLog but I get a bunch of statements that i dont understand: ... ... 2008/12/23 15:34:40:591 CST [DEBUG] Digester - New match='web-app/mime-mapping' 2008/12/23 15:34:40:591 CST [DEBUG] Digester - Fire begin() for CallMethodRule[methodName=

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.2

2008-12-23 Thread Nils-Helge Garli Hegvik
See if you can find any errors in any of the other logs in the tomcat log directory. I did a similar exercise, although with a different environment. But maybe you can find something useful: http://portletwork.blogspot.com/2008/02/struts-2-portlet-in-websphere-51.html Nils-H On Tue, Dec 23, 2008

Re: [S2] Using tag for choosing file (no uploading)

2008-12-23 Thread Milan Milanovic
Does anyone know how to fill InputStream from a list of String lines ? I need to fill it from database and show file for download. Is this O.K.: InputStream is = new ByteArrayInputStream("string".getBytes("UTF-8")); My file should be about 5Mb, I hope that it is not so big to be stored in mem. ?

RE: Struts 1: how to use different parameter names from html field names

2008-12-23 Thread Givler, Eric
Can't you do something like this: StringBuffer sb = new StringBuffer(255); Map fields = BeanUtils.describe( xmlbean ); Iterator iter = fields.keySet().iterator(); while (iter.hasNext()) { String key = (String) iter.next(); String value = String.value

Re: About Struts Rest Plugin

2008-12-23 Thread Luis Gervaso
no comments? :( On Tue, Dec 23, 2008 at 3:05 AM, Luis Gervaso wrote: > I'm wondering why not the behaviour of the rest plugin is ... > > *For example* > > URL: > http://www.domain.com/myapp/restController/resource1/resource2/resource3/resource4/resource5 > > creates a mapping parent & child > > i

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2008-12-23 Thread Dave Newton
From: rorostar > Has anyone had any success trying to use struts2 on java4 environment? > My server is using java 1.4.2, and they would not upgrade. Have you turned on dev mode and increased logging levels for struts, xwork, and OGNL? I haven't used S2 with JDK 1.4 on Tomcat since ~2.0.9 but h

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.2

2008-12-23 Thread rorostar
Yes I understand that Struts 2 requires: Servlet API 2.4 JSP API 2.0 Java 5 However, I can use retrotranslator to translate the jars so that they are compatible with Java 4. JSP API and Servlet API are included as part of Tomcat 5.0.28 libraries (Tomcat 5 supports Servlet 2.4 & JSP 2.0). Should

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.2

2008-12-23 Thread elyes sallem
see Platform Requirements : http://struts.apache.org/2.x/index.html Regards Elyes 2008/12/23 rorostar > > Hi, > > Has anyone had any success trying to use struts2 on java4 environment? > My server is using java 1.4.2, and they would not upgrade. > > I've read the tutorial on how to use retrotr

Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2008-12-23 Thread rorostar
Hi, Has anyone had any success trying to use struts2 on java4 environment? My server is using java 1.4.2, and they would not upgrade. I've read the tutorial on how to use retrotranslator and I've converted the following jars: commons-logging-j4-1.0.4.jar freemarker-j4-2.3.8.jar ognl-j4-2.6.11.j

Re: [S2] Indexed Lists

2008-12-23 Thread norken76
Hello , I am trying to get the textfield list working (in parallel to the check boxes) but couldn't ?? the function I set to be called is never called after the submit. I know that the values in the textfiels are sent, and the setter function for the Checkboxes (setConfigs) is called but not the

Re: [Struts2] dynamic checkbox "list"

2008-12-23 Thread norken76
Hello, I have hopefully an answer and a question for you. first the answer : I got the list of checkboxes working by using the "fieldValvue" attribute of > hello, > > I spend a lot of time to make a checkbox list work and try the following : > > 1. with texfield !, but not with checkbox), al

Re: Struts 2 Portlet Tutorials Archetype No Longer Available

2008-12-23 Thread Nils-Helge Garli Hegvik
There's an issues for this in the issue tracker: https://issues.apache.org/struts/browse/WW-2759 So until 2.1.3 is released, you have to check out and build the artifact yourself. The code is at http://svn.apache.org/repos/asf/struts/maven/trunk/struts2-archetype-portlet/ Nils-H On Tue, Dec 23,

Re: Struts 2 in the cloud

2008-12-23 Thread Don Brown
Nope, to be honest, I hadn't heard of them till today. Our company has been doing some new EC2 work, so someone happened to run across the product. I like how they package up the build tool with automatic deployment, and even some sort of version control. I've always wondered if we (Atlassian, S

RE: Bean Properties are lost

2008-12-23 Thread Richa Pandharikar
Dave, No inputs ??? -Original Message- From: Biesbrock, Kevin [mailto:biesbrock.ke...@aoins.com] Sent: Monday, December 22, 2008 12:23 PM To: Struts Users Mailing List Subject: RE: Bean Properties are lost I would guess, then, maybe chaining the actions or storing the collections in a

Re: [S2] apply i18n on java entity from DB

2008-12-23 Thread Roger
> > If the "Product" described in the first message is pure fiction and > you have the ability to change the data model you can get rid of the > multiple names from the "Product" entity, put a "unique_name", use it > to point to resource in your bundle with some static prefix like > "product.name."

Struts 2 Portlet Tutorials Archetype No Longer Available

2008-12-23 Thread Phillips, Bruce A
The archetypes for the two portlet tutorials listed in the Struts 2 tutorials on the Apache Struts 2 Documentation are no longer available on the repository. See: http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html and http://struts.apache.org/2.x/docs/struts-2-portlet-tut

Re: Struts 2 Type Conversion for properties of a List

2008-12-23 Thread Dave Newton
--- On Tue, 12/23/08, Marsman wrote: > >   > This isn't really type conversion, it's a toString. AFAIK type conversion is only an issue to/from forms. > if ( values[0] == null || values[0].length() == 0 > && values[0].equalsIgnoreCase("v.a.")         || values[0].equalsIgnoreCase("va

Re: Eclipse plugin for Struts2

2008-12-23 Thread elyes sallem
you get the war blank project, you put it in a directory, you align it with an eclipse project structure src-- MessageResources, your packages,java file,(probably hibernate.cfg,*.hbm.xml ...) WebContent-- META-INF | -- WEB-INF (where u put .tld, validation,struts-config ...) |

Struts 2 Type Conversion for properties of a List

2008-12-23 Thread Marsman
Hi! I got a List with some beans and want to convert values of the bean properties before they are shown by the s:property tag. Like I know it from JSF I want to use a struts type converter. But neither the action nor the global defined converter was called by the framework. Here are some code-sn

Re: Eclipse plugin for Struts2

2008-12-23 Thread Srinivasan KS
means, no need of any specific plugin for eclipse for using struts2? kindly let me know the procedure involved. vasan On Tue, Dec 23, 2008 at 4:39 PM, elyes sallem wrote: > you can import the struts blank projet, with struts-config,web.xml ... > > Elyes > > 2008/12/23 Srinivasan KS > > > Hi, >

Re: Eclipse plugin for Struts2

2008-12-23 Thread elyes sallem
you can import the struts blank projet, with struts-config,web.xml ... Elyes 2008/12/23 Srinivasan KS > Hi, > If I create a new Struts project in eclipse, it has to create all basic > necessary configuration files(like struts.xml,web.xml) etc. > > For that, what plug-in i need to confiugre with

[OT] Looking for a Team-Based Solution for Storing Account Credentials

2008-12-23 Thread Ted Husted
Please forgive the off-topic post, but a lot of web development teams might run into this situation. In the course of working on various development projects for various clients, it's not uncommon to need to store a number of account credentials that need to be shared with various members of a team

Re: Struts 2 in the cloud

2008-12-23 Thread Dave Newton
--- On Tue, 12/23/08, Srinivasan KS wrote: > do u have invitation for the beta? pls share. One option would be to click on the huge "Apply for the Beta" button displayed prominently in the upper-left-hand corner of the site. Dave ---

Re: Eclipse plugin for Struts2

2008-12-23 Thread Dave Newton
--- On Tue, 12/23/08, Srinivasan KS wrote: > For that, what plug-in i need to confiugre with eclipse & Jdeveloper. I don't know of any either. IntelliJ has some S2 support, though, I've noticed, at least for completion etc. Dave

Re: Eclipse plugin for Struts2

2008-12-23 Thread Srinivasan KS
Hi, If I create a new Struts project in eclipse, it has to create all basic necessary configuration files(like struts.xml,web.xml) etc. For that, what plug-in i need to confiugre with eclipse & Jdeveloper. Please tell me. Thanks. Srinivasan On Tue, Dec 23, 2008 at 2:28 PM, Nils-Helge Garli Hegv

Re: Struts 2 in the cloud

2008-12-23 Thread Srinivasan KS
do u have invitation for the beta? pls share. On Tue, Dec 23, 2008 at 2:33 PM, Don Brown wrote: > Very cool project I stumbled upon for quickly developing and deploying > Struts 2 applications into the cloud: > > http://www.stax.net > > I haven't looked at it beyond viewing their screencasts, bu

Re: [S2] Using tag for choosing file (no uploading)

2008-12-23 Thread Milan Milanovic
Dear Dave, I found the problem, my submit button was = ajax type, so I switched it to simple. Regarding Stream Result, it is not clear to me, this result needs InputStream for inputName, but shouldnt' it be a OutputStream ? I need to fill the stream, e.g. from my database and to flush it to the

Re: [S2] apply i18n on java entity from DB

2008-12-23 Thread Dimitar Vlasev
Few more thoughts on this matter: I haven't explicitly said that the solution I've proposed is far from standard i18n functionality, it was my best choice for the given example. If the "Product" described in the first message is pure fiction and you have the ability to change the data model you c

Struts 2 in the cloud

2008-12-23 Thread Don Brown
Very cool project I stumbled upon for quickly developing and deploying Struts 2 applications into the cloud: http://www.stax.net I haven't looked at it beyond viewing their screencasts, but it seems very promising. Of course, the real reason I'm mentioning it is Struts was listed as the primary

Re: Eclipse plugin for Struts2

2008-12-23 Thread Nils-Helge Garli Hegvik
If you just want to "use" Struts 2 with your IDE, just set up a basic web application and add the required dependencies and entries in web.xml. If you're looking for a graphical configuration plugin, I'm not aware of any. Maybe this can help you get started: http://struts.apache.org/2.0.14/docs/do

Eclipse plugin for Struts2

2008-12-23 Thread Srinivasan KS
Hi, Can anyone please let me know is there any plugin available for using Struts2 with MyEclipse IDE? Please let me know the procedure. What is the procedure for using Struts2 with Jdeveloper 11g IDE? please let me know. Its very urgent. Thanks in advance. -- "If god be with us who can be aga

Re: Pls convert this code using struts2 tags

2008-12-23 Thread Antonio
2008/12/23 Nils-Helge Garli Hegvik : > That's because I was thinking how exciting it would be to make a > complete fool of myself now right before Christmas (and doing a darn > good job at it too, if I must say)! ;) > > The last reply was to (hopefully) correct myself. The other replies > were only

Re: Pls convert this code using struts2 tags

2008-12-23 Thread Nils-Helge Garli Hegvik
That's because I was thinking how exciting it would be to make a complete fool of myself now right before Christmas (and doing a darn good job at it too, if I must say)! ;) The last reply was to (hopefully) correct myself. The other replies were only addressed to me, but I tried taking the convers

Re: Pls convert this code using struts2 tags

2008-12-23 Thread Dave Newton
--- On Tue, 12/23/08, Antonio wrote: > Sorry to disturb, Nils, but it seems that you are writing to yourself, > I cannot see any of the replies from taj, except of the first thread. Heck, I didn't even see *this* email. Oh, wait. Dave 2008/12/23 Nils-Helge Garli Hegvik : > Yikeshow hard is

Re: Pls convert this code using struts2 tags

2008-12-23 Thread Antonio
Sorry to disturb, Nils, but it seems that you are writing to yourself, I cannot see any of the replies from taj, except of the first thread. Antonio 2008/12/23 Nils-Helge Garli Hegvik : > Yikeshow hard is it to read curly braces and numbers... Could > someone please sponsor me a pair of new g