Access Struts objects from a session listener

2004-07-21 Thread Ephemeris Lappis
I need to access some Struts objects, like forward mappings, from a session listener, or other part of the application's code where no request is available. Is it possible, and, if it is, what is the best way to do it ? I found in the ServletContext attributes an object of type org.struts.action.Fo

jsf-developers -- new Yahoo group

2004-07-21 Thread Oswald Campesato
Hello: Since I didn't find any groups specifically devoted to JSF, today I took the plunge and created a new Yahoo group (details below). Though the primary focus of the group is JSF-related questions, initially I would expect that there will also be significant overlap with Struts-related top

About Struts + JBoss preference issue

2004-07-21 Thread Koon Yue Lam
Hi ! My application has change from Struts + Tomcat to Struts + Jboss 3.X I create various struts Actions to deal with incoming request, in the Action class, it preform remote lookup of session bean's home interface and create, destory ... it. My session bean has an DAO attach to it to preform da

Re: Velocity vs tags (was JSF vs Struts)

2004-07-21 Thread Rick Reumann
David Evans wrote: Could you elaborate on what you find distastful about Velocity? I wasn't being "all" seriously when I said "yuk":) but seriously I do find that when you have a decent amount of conditional logic on a page (which sometimes during presentation is unavoidable if you want to re-u

Re: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Peng Tuck Kwok
How about running the samples that come with struts (struts-example)? They use a resource bundle and if there is a issue as you described, then certainly the text wouldn't be able to be display the text. Try it , better yet maybe you can send the war file to me, I'll see if I can spot anything for

Re: struts1.1 validation in nested tag elements

2004-07-21 Thread Bharathiraja
In our project in a place we have to set multiple properties .with the help of nested iterate tag it has been set.But when we want to provide validation for those fields it become very hard. - Original Message - From: "Juan Alvarado" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"

Re[2]: character encoding

2004-07-21 Thread Carl-Eric Menzel
> I have added an acceptCharset attribute to the FormTag. > Should be available in the next nightly build - 22/07/2004 Hooray :) Thanks a lot, this is going to be very useful. Carl-Eric -- Antwort: Weil es das Lesen des Textes erschwert. | Carl-Eric Menzel Frage : Warum ist das so schlimm?

Re: character encoding

2004-07-21 Thread Niall Pemberton
I have added an acceptCharset attribute to the FormTag. which will generate something as Should be available in the next nightly build - 22/07/2004 Niall - Original Message - From: "Carl-Eric Menzel (bitFORCE media)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTE

Re: struts1.1 validation in nested tag elements

2004-07-21 Thread Juan Alvarado
Well for one you could explain what the exact problem you are having is. Looking in the mail archive is also a place to start. Bharathiraja <[EMAIL PROTECTED]> wrote:Hi, i am struggling to do validation (server side and client side) using struts1.1 VALIDATOR in the NESTED TAG elements.please giv

struts1.1 validation in nested tag elements

2004-07-21 Thread Bharathiraja
Hi, i am struggling to do validation (server side and client side) using struts1.1 VALIDATOR in the NESTED TAG elements.please give me a suggestion to overcome this problem. regards, Bharathiraja.T

Reloading Application.resources (Again)

2004-07-21 Thread Doug
Yes, I know this has been asked before, and I know it's not a base capability. However, someone posted this solution several months ago, which seems reasonable to me. Can anyone comment on whether there's any reason not to use this approach?

Re: App scoped bean to be used with html:optionsCollection in JSP

2004-07-21 Thread Kevin McAbee
property="list"/> was indeed the fix. Thank you Jim, you rock. What I don't understand is that I thought I had tried that before as well and that it had screamed about not finding the bean in any scope. I must have been giving the wrong bean name - who cares?! Thanks again, Kevin On J

Using .properties file to set elements in

2004-07-21 Thread Sam Bilbrey
I hope this is not to much of a newbie question: I would like to do something like: "/> Any suggestions would be greatly appreciated. Sam Bilbrey [EMAIL PROTECTED]

Re: App scoped bean to be used with html:optionsCollection in JSP

2004-07-21 Thread Erik Weber
I load my states in two arrays in a PlugIn -- the labels ("Alabama") and the values ("AL"), and set them as application scope attributes. Then I simply refer to those attributes in my combos, like this: Because it's wrapped in an html:select with a property name that matches one of my form bean

RE: App scoped bean to be used with html:optionsCollection in JSP

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Kevin McAbee [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 12:47 PM > To: Struts Users Mailing List > Subject: App scoped bean to be used with html:optionsCollection in JSP > As for thorough flamings... I like my meat medium rare :) > > // m

RE: character encoding

2004-07-21 Thread Meier, Niclas
Hi, to get the encoding right the outgoing encoding (JSP-page) and the incoming encoding have to bet he same. You should define the enconfig of the JSP by: 1. Setting the content-type in the HTML Page 2. Defining the contentType;charset for the JSPC <[EMAIL PROTECTED] contentType="test/html:c

RE: Re[3]: character encoding

2004-07-21 Thread Hookom, Jacob
The new JSF spec does allow for Content-Type lookup, here's a bit of code that I used in my implementation to find the content type out of that header, it might be of some use to you or whoever: protected static final Pattern PATTERN_CHARSET = Pattern.compile(".*charset\\s*=\\s*([\\w\\-]+)(\\s*|;)

App scoped bean to be used with html:optionsCollection in JSP

2004-07-21 Thread Kevin McAbee
Hello. I have searched through the list for this or similar issues but have been unable to find a good reference post to work off. That disclaimer is in the hopes that I don't get thoroughly flamed if I somehow missed a post. :) Also, if I am going about this the wrong way, *please* let me k

Re: Tag question

2004-07-21 Thread Erik Weber
Sorry if this post repeats -- I find that occasionally they are not making it . . . Jim, "actor" is precisely what I meant! It goes /context/controller/actor/usecase (in my case) Sorry I didn't say that correctly. But as you point out, I think it doesn't change the point of the post, that I need

Re[3]: character encoding

2004-07-21 Thread Carl-Eric Menzel
> Then I'm out of luck. That's the biggest problem with Strut's lack of > support for the accept-charset attribute. *Most of the time* it works > that if you send the response in UTF-8 the next request will come in > as UTF-8 too. That's what I'm doing now - I send out only UTF-8 forms > and assume

Re[2]: character encoding

2004-07-21 Thread Carl-Eric Menzel
> Carl-Eric, > Yes, I tried the charset on the form but found it didn't do any good. > But what do you force the Encoding to in your Filter? How can you > know with any certitude how the browser encoded the data values before > sending it to you?? It probably works well if the

Re: character encoding

2004-07-21 Thread Larry Young
Carl-Eric, Yes, I tried the charset on the form but found it didn't do any good. But what do you force the Encoding to in your Filter? How can you know with any certitude how the browser encoded the data values before sending it to you?? It probably works well if the browser is

Re: character encoding

2004-07-21 Thread Carl-Eric Menzel
> I'd like to hear how others have solved this problem. I can see > that one solution is to replace the RequestProcessor and hardcode the > "setEncoding" on the Request to UTF-8, or subclass the whole > ActionServlet. Are there any cleaner solutions? I can't believe I'm the > only one

RE: Tag question

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 11:32 AM > To: Struts Users Mailing List > Subject: Re: Tag question > > > Sorry, I should have explained better what I am doing. > > My controller Servlet is mapped to /services/* > > A

character encoding

2004-07-21 Thread Larry Young
Hello, I've run into a bit of a problem and I'd like to know how others have solved it. It's basically a character encoding issue. I post my struts-based JSP page to the user, they enter some data, and then submit the page back to my Action. The data they enter may contain mul

Re: Tag question

2004-07-21 Thread Erik Weber
Sorry, I should have explained better what I am doing. My controller Servlet is mapped to /services/* All requests for JSP pages go through the controller, via action mappings. The actions have paths like: /usecase/view_edit_page /usecase/save_existing_record /usecase/view_add_page /usecase/add_n

Another site

2004-07-21 Thread dhay
Here's another site that appears to be using Struts - liteon.com. eg. http://www.liteon.com/tool/contact/list.do?xml_id=7_4 Cheers, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: Formatting issues...

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 10:21 AM > To: Struts > Subject: OT: Formatting issues... > > > i know this is a little off-topic, but i was hoping someone could > point me in the right direction. my client is current

OT: Formatting issues...

2004-07-21 Thread Andrew Close
i know this is a little off-topic, but i was hoping someone could point me in the right direction. my client is currently using frames for layout in their webapp. we're rewriting the controller and view using Struts. i would prefer to get rid of the frames because of the heavy use of javascript

RE: OT: Best practice for access to file from multiple web apps

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 4:39 PM > To: Struts Users Mailing List > Subject: Re: OT: Best practice for access to file from > multiple web apps > > > On Tue, 20 Jul 2004 15:35:51 -0700, Jim Barrows > <[EMAIL PR

Re: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Kris Schneider
Huh. Here's a test with TC 5.0.27, JDK 1.4.2_05, and WinXP: loadProps.jsp: -- <%@ page contentType="text/plain" %> <%@ page import="java.io.*" %> <%@ page import="java.util.*" %> <% String fileName = "foo.properties"; ClassLoader cl = Thread.currentThread().getContextClassLoader(); Inp

AW: AW: AW: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Rosenberg, Leon
Yep, exactly > -Ursprüngliche Nachricht- > Von: Kris Schneider [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. Juli 2004 17:30 > An: Struts Users Mailing List > Betreff: Re: AW: AW: OT: Problems with classpath under tomcat 5 > > Does "filename" evaluate to something like "foo.propert

RE: logic:iterator with a arbitrary depth of nested list

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 5:53 AM > To: 'Struts Users Mailing List' > Subject: logic:iterator with a arbitrary depth of nested list > > > Folks, > > > Is it possible to use a logic:iterate tag with an arbitra

RE: OT: Best practice for access to file from multiple web apps

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 4:39 PM > To: Struts Users Mailing List > Subject: Re: OT: Best practice for access to file from > multiple web apps > > > On Tue, 20 Jul 2004 15:35:51 -0700, Jim Barrows > <[EMAIL P

Re: Tag question

2004-07-21 Thread Christian D Hahn
Are you mapping the jsp to /services in the web.xml? if you do, getServletPath should return the path you are looking for. jsp /usecase/page.jsp jsp /services -Chris Erik Weber wrote: Hmm I must be doing something wrong. That's giving me the same value as Erez's exa

Re: AW: AW: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Kris Schneider
Does "filename" evaluate to something like "foo.properties" (no other path info) and is that file located in WEB-INF/classes? Quoting "Rosenberg, Leon" <[EMAIL PROTECTED]>: > Thanx, but it doesn't work either. > > > -Ursprüngliche Nachricht- > > Von: Kris Schneider [mailto:[EMAIL PROTECT

AW: AW: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Rosenberg, Leon
Thanx, but it doesn't work either. > -Ursprüngliche Nachricht- > Von: Kris Schneider [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. Juli 2004 16:54 > An: Struts Users Mailing List > Betreff: Re: AW: OT: Problems with classpath under tomcat 5 > > .. > String fileName = target.getConfi

Re: AW: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Kris Schneider
.. String fileName = target.getConfigurationName() + ".properties"; ClassLoader cl = Thread.currentThread().getContextClassLoader(); InputStream in = cl.getResourceAsStream(fileName); Properties props = new Properties(); props.load(in); .. Quoting "Rosenberg, Leon" <[EMAIL PROTECTED]>: > > > >

tomcat 5 logging problem

2004-07-21 Thread Gupta, Sahil
I cant seem to get logging working on my apache+tomcat5 set up. I have the log4j.properties file in the tomcat_install/conf directory and the environment variable CATALINA_OPTS set to -Dlog4j.configuration=file:/c:/webmd/Tomcat4.1/conf/log4j.properties EXPORT CATALINA_OPTS I am attaching the log

AW: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Rosenberg, Leon
> -Ursprüngliche Nachricht- > Von: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. Juli 2004 16:10 > An: Struts Users Mailing List > Betreff: Re: OT: Problems with classpath under tomcat 5 > > Are you sure if it is not looking your properties file in the > classpath of

Re: OT: Problems with classpath under tomcat 5

2004-07-21 Thread Peng Tuck Kwok
Are you sure if it is not looking your properties file in the classpath of the webapp ? When you say everything works fine until tomcat 5 is used , does the console print out any error ? Also how do you know it is searching in shared classes ? On Wed, 21 Jul 2004 15:45:01 +0200, Rosenberg, Leon <[

testing struts and locale

2004-07-21 Thread Alex
Greetings, I've been using strutstest http://strutstestcase.sourceforge.net/ which works fine. I can even verify that the proper error messages are being sent back: verifyActionErrors(new String[] {"error.no.id.provided"}); Question i have is that, is there a way to simulate a different locale,

OT: Problems with classpath under tomcat 5

2004-07-21 Thread Rosenberg, Leon
Hi, it's a bit OT but maybe some of you had a similar problem shortly and can help. We have a configuration component which configures other components of the application out of property files. The property files lies in the 'classes' directory of the application. Everything works fine unt

RE: Validate at least one check box is checked

2004-07-21 Thread McCormack, Chris
yes thanks. How it relates to struts thought is another matter. -Original Message- From: Mazen, Tamer S [mailto:[EMAIL PROTECTED] Sent: 21 July 2004 14:25 To: '[EMAIL PROTECTED]' Subject: FW: Validate at least one check box is checked > Dears, > Does any one know how to implement 'at lea

FW: Validate at least one check box is checked

2004-07-21 Thread Mazen, Tamer S
> Dears, > Does any one know how to implement 'at least one check box is checked' validation on > a list of checkboxes. > Thanks > > Tamer Mazen > Information Analyst > > E > Egypt Solution Center (CMM L2 Organization) > Commercial Professionals Syndicate Building, 5th f

Velocity vs tags (was JSF vs Struts)

2004-07-21 Thread David Evans
Rick, Could you elaborate on what you find distastful about Velocity? I've just started using it as my primary presentation layer tool in struts, because i found the templating language so clean and clear. The ablitiy to stick what ever object i'd like in its context, and then refer to it in a si

logic:iterator with a arbitrary depth of nested list

2004-07-21 Thread Adam Lipscombe
Folks, Is it possible to use a logic:iterate tag with an arbitrary depth of nested lists. i.e. A List containing Lists, each of which contains a List (etc) The depth of the tree will vary at runtime. I am trying to model the "levels" of an enterprise from top down and want to construct a JavaSc

apache@apache.org

2004-07-21 Thread ron1
Hi, The Torque users mailing list seems not to function anymore... Greetings, Ron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Validating list of inputs using Struts Validation

2004-07-21 Thread Mazen, Tamer S
Dears, I have order items form, which user enter list of the order's items in a list, I tried to validate user inputs using Struts validator, for server side it works fine but for unfortunality it does not work in client side validation. I heard that struts does not support client validation of arr