Antwort: Re: forward to new window.

2003-11-21 Thread Manuel Lenz
I solved the problem this way: 1. Writing a servlet for a new page DisplayFile.java 2. Calling the servlet in ActionClass DisplayFile df = new DisplayFile(); df.doGet(request, response); forward = null;

Re: Simulating multiple inheritance for Action and DispatchAction

2003-11-21 Thread Ovidiu EFTIMIE
I think that DispatchAction allows a better separation of code than an Action in which the execute() method contains a if/else branch. I'll no longer need to implement the if/else and I'm letting struts do that. Regards, Ovidiu - Original Message - From: Daniel Joshua [EMAIL PROTECTED]

best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Hi all, I've read on this list that chaining actions is considered as a design error. On the project I'm working on, some developers need to make some business validation on a form before going to the next page. This validation occurs in an Action class, let's say Action1. From business

Key-based comparator tools

2003-11-21 Thread Maurice Wijtten
I wonder if anyone has a tip which makes working with ResourseBundle (key-value) files a bit easier. I need to send my ResourceBundle files to a translation department on a regular basis. While the ResourceBundle files are being translated, development procedes and the ResourceBundle files

RE: Key-based comparator tools

2003-11-21 Thread Krishnakumar N
Hi, Can you not import both the versions to a spreadsheet application (with delimiter = '='), sort on the key, output to text files again and then run diff on the output files? Cheers, Krishna -Original Message- From: Maurice Wijtten [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: best practice to avoid chaining actions

2003-11-21 Thread Krishnakumar N
Hello, If action chaining is a design error, then the struts-example that comes with struts distributions has a design error, saveSubscription forwards to editRegistration.do! Anyway, what I do is keep validation off action classes, by moving them off to action forms using

Struts-validator.dtd, or why lame newbie questions happen.

2003-11-21 Thread Joe Hertz
Struts in Action says to copy struts-validator.dtd into WEB-INF. Couldn't find it. So I checked Manning's site for errata to this (since it was beta at the time) like the book suggested. Nothing. So I googled (imagine!). This changed since in the final release, to be part of struts-html.tld,

Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Hello, If action chaining is a design error, then the struts-example that comes with struts distributions has a design error, saveSubscription forwards to editRegistration.do! Anyway, what I do is keep validation off action classes, by moving them off to action forms using validator

locale specific date format

2003-11-21 Thread Nathan Coast
Hi How do I set locale specific date formats? I tried setting org.apache.struts.taglib.bean.format.date with format strings within locale specific applicationResources.properties but the format keeps coming out the same Fri Nov 21 16:46:05 CST 2003 any ideas? cheers Nathan

RE: Key-based comparator tools

2003-11-21 Thread Paul McCulloch
Eclipse has this feature (built in I think). Just select two .properties files and choose 'compare with each other'. Paul -Original Message- From: Maurice Wijtten [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 08:54 To: Struts Users Mailing List Subject: Key-based comparator tools

RE: best practice to avoid chaining actions

2003-11-21 Thread Krishnakumar N
-Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 2:58 PM To: Struts Users Mailing List Subject: Re: best practice to avoid chaining actions Hello, If action chaining is a design error, then the struts-example that

Re: dynamically sized form

2003-11-21 Thread Mark Lowe
I tend to use arraylist rather than an array, works a treat the only work around is having to put the list in the request or session as well as the form. ArrayList rateList = new ArrayList(); bla , bla.. theForm.set(rate,rateList); request.setAttribute(rate,rateList); .. logic:iterate id=r

Re: tokens creating a field in my forms

2003-11-21 Thread Adam Hardy
On 11/20/2003 11:44 AM Raphaël di Cicco wrote: I understand how tokens work. I'm currently modifying my application to use tokens every time possible. The thing is that I'm doing validation with javascript on my JSPs, and very often checking form elements with the index. When using token, struts

Re: Struts-validator.dtd, or why lame newbie questions happen.

2003-11-21 Thread majoko
Hi, Struts in Action says to copy struts-validator.dtd into WEB-INF. Couldn't find it. So I checked Manning's site for errata to this (since it was beta at the time) like the book suggested. Nothing. So I googled (imagine!). This changed since in the final release, to be part of

Re: Lazy questions on this list [FRIDAY!]

2003-11-21 Thread Adam Hardy
I think that the balancing act between catering for the newbies and testing the patience of the grizzled struts listers is always a difficult one. Some lists that I have been which keep off-topic or lazy questions to a minimum do it in several ways. The css-discuss list has a list policy much

RE: best practice to avoid chaining actions

2003-11-21 Thread shirishchandra.sakhare
Hi, There was a long discussion about action chainning some time ago. http://marc.theaimsgroup.com/?l=struts-userm=104427309720653w=2 And as summarized in the above discussion, I think if you are using 2 actions to complete 1 logical function, then it is bad design.And that is what I think the

Re: Key-based comparator tools

2003-11-21 Thread Maurice Wijtten
It looks like Eclipse takes this a lot further that what i have seen so far, this might be wat where are looking for. (And else we'll have to write something..) Thanks for the comments Paul McCulloch wrote: Eclipse has this feature (built in I think). Just select two .properties files and

Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Very interesting thread, Thanks a lot Nico. Hi, There was a long discussion about action chainning some time ago. http://marc.theaimsgroup.com/?l=struts-userm=104427309720653w=2 And as summarized in the above discussion, I think if you are using 2 actions to complete 1 logical function, then

RE: Struts-validator.dtd, or why lame newbie questions happen.

2003-11-21 Thread Joe Hertz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 5:02 AM To: [EMAIL PROTECTED] Subject: Re: Struts-validator.dtd, or why lame newbie questions happen. So I googled (imagine!). This changed since in the final release, to

Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Hi guys, This is a bit of a vague question I know, but perhaps someone can help. It may be a struts issue or a jboss issue. I'm not sure. I'm using JBoss 3.2.2 and struts. After about 24 hours of my application running, struts actions which create a http session seem to hang. I have no idea

Re: ExceptionHandler not able to display error messages

2003-11-21 Thread Pratik Patel
I have written an ExceptionHandler that extends the struts exceptionHandler. I would like it to print a stack trace. So, I have done the following: have a look at this blog entry, and the ExceptionHandler and JSP page I use for displaying exception messages (and stacktraces)

RE: Actions which create sessions seem to hang

2003-11-21 Thread Paul McCulloch
I've had my Struts application running on JBOSS 3.2.2/Tomcat for a couple of weeks with hundreds of simulated users at a time, so I don't think there is any inherent issue with the architecture. Tools I've found useful in tracking issues like this in past are: Running JBOSS with the JVM set to

Re: tiles:insert page action with form - problem?

2003-11-21 Thread Fred Bloggs
Dear All I have been struggling with this for a while now and seemed to have got part of the way but now I seem to have hit a brick wall. I would like to insert a tile (into a jsp page) which is actually the result of action. The action takes as input form parameters. I have tried the

[OT] : FormatKey how to set a format

2003-11-21 Thread Rouven Gehm
Hi, its a little bit of topic, i have the problem, i want to show doubles on my jsps. I now use following format : #,## which works quite good, but it cuts of the 0 at the end. E.g. i have 17,56546546 it show 17,57 i have 17,50001 it shows 17,5 but i want 17,50. Is there another format i can use

Re: [OT] : FormatKey how to set a format

2003-11-21 Thread Markus
Hi, its a little bit of topic, i have the problem, i want to show doubles on my jsps. I now use following format : #,## Hi, try #,00! This should work. For a deeper look go to JavaAPI NumberFormat classes Regards, Markus which works quite good, but it cuts of the 0 at the end. E.g. i have

Re: [OT] : FormatKey how to set a format

2003-11-21 Thread Rouven Gehm
Hi, it works not quite well, but if i actually have a 17,5 it still only shows 17,5 not 17,50. I can of course add 0.1 to 17,5 but thats hmm a hell of a hack. As i want to use it to show currencys, i wonder if i can use the NumberFormat.Field CURRENCY ??? Thanx - Original Message

Problem

2003-11-21 Thread Gurpreet Dhanoa
hi ALl I am in a trouble as when i shifted my site from windows to Linux it has been stopped working and giving me the following error Apache Tomcat/4.0.6 - HTTP Status 503 - Servlet action is currently unavailable

Re: Problem

2003-11-21 Thread Philip Mark Donaghy
Hi Gurpreet, It could be that you used case insensitive links and references to files and links. Verify that first. Then look at your file paths are there any file paths that contain the \ character. Linux uses the / character as the file separator. Phil --- Gurpreet Dhanoa [EMAIL PROTECTED]

RE: Problem

2003-11-21 Thread Mainguy, Mike
Also check $CATALINA_HOME/logs and see if there is more information in one of the log files. It is certainly not a struts specific problem and the tomcat-user list is probably a more appropriate location for this query. worse is better -Original Message- From: Gurpreet Dhanoa

RE: Actions which create sessions seem to hang

2003-11-21 Thread Mainguy, Mike
Perhaps you don't have a session timeout set in JBoss and you are hitting an upper limit (65K sessions or something)? worse is better -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 6:11 AM To: 'Struts Users Mailing List' Subject:

RE: Lazy questions on this list [FRIDAY!]

2003-11-21 Thread Mainguy, Mike
Excellent! I've not seen that before, can we get that put on in a web form? Hmmm, maybe that's a weekend project worse is better -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 5:16 AM To: Struts Users Mailing List Subject: Re: Lazy

RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Thanks Paul, I'll email you some of these questions to your private address because they're JBoss specific. Appreciate the help very much. Brian -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 12:02 To: 'Struts Users Mailing List' Subject: RE:

RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Hi Mike, Thanks very much for the reply. I think in jboss there is a standard session timeout anyway of 30 minutes. I've changed this now to 10 minutes. Is there a way to tell how many sessions you have running on an application server? Cheers, Brian -Original Message- From: Mainguy,

Re: Problem

2003-11-21 Thread Raman
Hi MIke Thanks for your support. I am Raman Working with Gary. Following is thedetails regarding our log file. Can you help us in resolving this. 2003-10-23 16:56:12 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at

RE: Actions which create sessions seem to hang

2003-11-21 Thread Mainguy, Mike
Are you using Tomcat as the servlet runner (I don't know a lot about Jboss) or is there a built-in one in Jboss? worse is better -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 8:54 AM To: 'Struts Users Mailing List' Subject: RE:

RE: Actions which create sessions seem to hang

2003-11-21 Thread chekuri raju
hi brian , java.util.Enumeration enum = session.getAttributeNames(); may be this will help u find out how many sessions are there. cheers srinivas Brian McSweeney [EMAIL PROTECTED] wrote: Hi Mike, Thanks very much for the reply. I think in jboss there is a standard session timeout anyway

Re: Problem

2003-11-21 Thread Raman
hi Phil I am Raman working with Gurpreet on to the same problem. Basically we have 2 web applications which we have deployed onto the same Linux server from the same NT server. The thing which shocked us it one of the application is working fine but the other not. Well we are trying to

STRUTS LOG4J

2003-11-21 Thread Todor Sergueev Petkov
Hi everybody... I know that one of the ways to use log4j with struts is to load a log4j.properties file at servlet container startup... But what if I have a business layer that has no direct connection to a servlet container or I want to run some stand-alone tests and logging... Do I have to

RE: STRUTS LOG4J

2003-11-21 Thread shirishchandra.sakhare
easy pizzy...We are already having the same scenario. Don't use the default log4j initialization(which means just putting the log4j.properties file in the class path and forget about it.)This way you have no control over the initialization. You write a class(e.g. LogEnvLoader) and in that class

RE: Actions which create sessions seem to hang

2003-11-21 Thread Kris Schneider
All that will do is get you the names of the attributes bound to a *single* session. A common approach to session counting in a Servlet 2.3 container is to use javax.servlet.http.HttpSessionListener. For either Servlet 2.2 or 2.3, you can make use of javax.servlet.http.HttpSessionBindingListener,

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
Might I say - woohoo!! Thanks to your guys help, I got this working. I just want to make sure that I'm doing this the best way. In my struts-config file, the preloader has to have the form named in addition to having it on the action. The form is setup to be in the request scope, not in the

URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread mohan
Hi All is there a way i can pass a request in an ActionForm. I need to get a session attribute thro the request and write the getters in ActionForm according to the values in the session.Please let me know Thanks --Mohan -

Re: locale specific date format

2003-11-21 Thread Rick Reumann
Nathan Coast wrote: How do I set locale specific date formats? I tried setting org.apache.struts.taglib.bean.format.date with format strings within locale specific applicationResources.properties but the format keeps coming out the same Fri Nov 21 16:46:05 CST 2003 any ideas? For displaying

RE: Tokens

2003-11-21 Thread Richard J. Duncan
Is there a complete end-to-end example of proper saveToken() isTokenValid() usage anywhere? (there should be) Regards,   Rich -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 10:16 PM To: Struts Users Mailing List Subject: Re: Tokens The

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Jimmy Emmanual
just create a hidden control on the form and assign the value to the session variable. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: URGENT: getting a Session Attribute from ActionForm Hi All

Message Resources and Struts Modules

2003-11-21 Thread alvin antony
Hi friends, I write a modularised Struts Application, which has one default module and an another with prefix 'admin'. I have defined a default message resource for the default module as given below, # struts-con fig.xml ## message-resources

Dealing with Initializaing data source exception

2003-11-21 Thread Eric SCHULTZ
Good morning.. I'm running a little Struts Application on Tomcat 4.1.27 and occassionly the application won't start because of problems connecting to the database. Is there someway I can I can avoid having this stop my app from running and just catch the error deal with it in the application

Re: Fruits of your help

2003-11-21 Thread Brice Ruth
Yeah, that was an untested change that accidentally went in yesterday afternoon ... that I got a call on at 6:30pm ... and worked on until 8:30pm ... nice :) Mainguy, Mike wrote: Cool, my wife uses that stuff all the time... However, just in case you're interested... HTTP Status 400 - Invalid

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread mohan
When the user logons to the system, it takes him to a form. Based on the logon values, if the user already has filled the form, form should be populated with values the user can then modify existing values save, if not the user can fill in the fresh form and save it. For this i need to get this

Re: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Rick Reumann
[EMAIL PROTECTED] wrote: Hi All is there a way i can pass a request in an ActionForm. I need to get a session attribute thro the request and write the getters in ActionForm according to the values in the session.Please let me know I'm not sure what you are really asking mohan. You don't have to

Re: locale specific date format

2003-11-21 Thread Kris Schneider
Schneeder? Hm, sounds familiar, but... Anyway, forgetting JSTL for a second (gasp!), you're saying you've got something like: ApplicationResources_en.properties: dateFormat=... ApplicationResources_fr.properties: dateFormat=... Yes? If so, then maybe this is what you're looking for: bean:write

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread alvin antony
Hi, may be you can implement this by overloading reset(request,response) mthod in your actionform HTH, Alvin Jimmy Emmanual [EMAIL PROTECTED] wrote: just create a hidden control on the form and assign the value to the session variable. -Original Message- From: [EMAIL

Specify bundle Dynamically in bean:message

2003-11-21 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Wendy Smoak
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] When the user logons to the system, it takes him to a form. Based on the logon values, if the user already has filled the form, form should be populated with values the user can then modify existing values save, if not the user can fill in

RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Hey Mike, Tomcat is the standard servlet runner that now comes bundled with Jboss. -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 14:03 To: 'Struts Users Mailing List' Subject: RE: Actions which create sessions seem to hang Are you using Tomcat

RE: Actions which create sessions seem to hang

2003-11-21 Thread Brian McSweeney
Thanks for the tips guys. Will have a look at these. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 15:01 To: Struts Users Mailing List Subject: RE: Actions which create sessions seem to hang All that will do is get you the names of the

Re: locale specific date format

2003-11-21 Thread Rick Reumann
Kris Schneider wrote: Schneeder? Hm, sounds familiar, he he sorry about that Kris:) Just don't beat me... you were sort of a bad ass as the superintendent on One Day At A Time.:) -- Rick - To unsubscribe, e-mail: [EMAIL

Token documentation

2003-11-21 Thread ludovic . maurillon
Hi all, I have problems with the refresh button of my brower: it resend automatically the form to the server. I found the mailing archive that with the use of tokens, I can avoid that. But I don't really understand how I have to use it properly. Can someone tell me when i could find a good

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread mohan
My aim is to get a session Attribute called as userinfo in the ActionForm. In the ActionForm i have methods called getAddress,getAddress1,getAddress2. These are all addresses of this person. So what i want to do is, if all the info is already present in the db, i want to pre-populate it.If not

Re: locale specific date format

2003-11-21 Thread Kris Schneider
Yipes, that's dated... Quoting Rick Reumann [EMAIL PROTECTED]: Kris Schneider wrote: Schneeder? Hm, sounds familiar, he he sorry about that Kris:) Just don't beat me... you were sort of a bad ass as the superintendent on One Day At A Time.:) -- Rick -- Kris Schneider

RE: Token documentation

2003-11-21 Thread Fullam, Jonathan
I found the description of how and when to use tokens in The Struts Framework, Practical Guide for Java Programming by Sue Spielman very useful. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 11:19 AM To: [EMAIL PROTECTED] Subject:

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Wendy Smoak
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] My aim is to get a session Attribute called as userinfo in the ActionForm. In the ActionForm i have methods called getAddress,getAddress1,getAddress2. These are all addresses of this person. So what i want to do is, if all the info is

Re: Message Resources and Struts Modules (Partially Solved)

2003-11-21 Thread alvin antony
Hello, I just tried to copy all message resources definitions to the default struts-config.xml and now they are no message resource definitions on the submodule struts config, everything is working, but a little bit unhandy to define message resources for a sub module some

RE: Token documentation

2003-11-21 Thread ludovic . maurillon
ok, I will try to get this book. And what about online documentation? Extranet [EMAIL PROTECTED] - 11/21/2003 05:22 PM Please respond to [EMAIL PROTECTED] To:struts-user cc: Subject:RE: Token documentation I found the description of how and when to use tokens in The Struts

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Matt, The answer to your main question is, No. You don't have to specify the form as the input of the preloader. You don't even really have to have a separate 'pre-loader' action for this form. In any action that will forward to your JSP page that displays your form, you can create a new form

Re: Dealing with Initializaing data source exception

2003-11-21 Thread Mark Lowe
If you've been looking through the archives you'll know that datasource in struts config is considered the devil's spawn and its use isn't recommended. Have a look at you TC docs as configuring a JNDI datasource is web xml. You could botch a try catch statement that forwards to your error

Re: STRUTS LOG4J

2003-11-21 Thread Christian Bollmeyer
Am Freitag, 21. November 2003 15:34 schrieb [EMAIL PROTECTED]: easy pizzy...We are already having the same scenario. Don't use the default log4j initialization(which means just putting the log4j.properties file in the class path and forget about it.)This way you have no control over the

Re: Tokens

2003-11-21 Thread Christian Bollmeyer
Am Freitag, 21. November 2003 16:46 schrieb Richard J. Duncan: Is there a complete end-to-end example of proper saveToken() isTokenValid() usage anywhere? (there should be) Check out the Struts Example application that comes with Struts. Then, tokens are explained best in Struts in Action (one

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
On 21 Nov 2003, at 17:18, Yee, Richard K,,DMDCWEST wrote: Matt, The answer to your main question is, No. You don't have to specify the form as the input of the preloader. You don't even really have to have a separate 'pre-loader' action for this form. In any action that will forward to your

Re: nested:select - Transfering multiple values in option

2003-11-21 Thread Arron Bates
Dirk, A standard problem. Many people implement some kind of lookup system to fetch things like drop down values and such. You are right, you do only get the ID, and it's going to be up to you to fetch the value from somewhere if you want to show it to the user again. Most likely the same place

RE: tiles:insert page action with form - problem?

2003-11-21 Thread David Friedman
Fred, Try checking out a org.apache.struts.tiles.actions.TilesAction as your action type. That gives you direct access to the tiles layout so you can add/set tiles information to your choice of values. Regards, David -Original Message- From: Fred Bloggs [mailto:[EMAIL PROTECTED] Sent:

Inheritance in tile definition files I

2003-11-21 Thread Ed Dowgiallo
I'm having a little trouble with the tile definition files after working through the tutorial. As a simple example of what I am hitting, I get the error message: javax.servlet.jsp.JspException: Error - tag useAttribute : attribute 'title' not found in context. Check tag syntax at

(newbie asking advice) in which order do I call my .do and .jsp?

2003-11-21 Thread Janice
Sorry if this is too basic, I'm really green, but trying to learn the right way to do things. First off, I'm using tiles, and I think I was doing things backwards, and I'd like to confirm that I've got things going the right way now. So this is what I have: (1) When I want to display a list of

RE: Inheritance in tile definition files I

2003-11-21 Thread David Friedman
How do you get to your JSP? Do you use and action? If so, are you using 'path=login.form' or 'path=form.layout' and do you see any tiles loading errors? Are you getting to your JSP directly from the outside world (not through an action's mapping)? If so, you need to first load your tile

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
DynaActionForm taxRatesForm = new DynaActionForm(); and taxRatesForm.set(taxRates, allTaxRates); request.setAttribute(taxRates, allTaxRates); Creating a form in the action servlet is one sure way to piss the folks off who have to maintain the app. You might think its big n clever,

Re: [OT] : FormatKey how to set a format

2003-11-21 Thread Kirk Wylie
Are you absolutely sure you want to use doubles to store currency values? RDBMS systems have fixed-precision data types for exactly that reason. While doubles are convenient, they can result in unintended consequences such as issues with .1 appearing places that it probably shouldn't.

Re: Large scale Internationalization using struts

2003-11-21 Thread Kirk Wylie
Daniel Joshua wrote: My current resource file is 130+ KB and has 3000+ lines... Does not seem to be a big difference... There definately ppl who have tried with a bigger resource file, I believe. Definitely. And I have to say that I've never used a database-backed resource system, mostly

Re: (newbie asking advice) in which order do I call my .do and .jsp?

2003-11-21 Thread Rick Reumann
Janice wrote: (1) When I want to display a list of widgets, my link is to: /projectTypes.do?action=showList (2) My mapping looks like this (ProjectTypeCodeActions extends DispatchAction): actionpath=/projectTypes input=/projectTypeCode/project_type_code_form.jsp

Re: Large scale Internationalization using struts

2003-11-21 Thread Khalid K.
We have broken down our property files into different categories... i.e Messages (validation stuff), Information (FAQs etc), Content (page text) Since we still use sturts 1.0.2 we customized struts to load more than one message bundle at servlet initizliation. Our content varies from state to

RE: Token documentation

2003-11-21 Thread Edgar P Dollin
I haven't seen any but there isn't really much to document. You put an integer into the form with a value that is updated by the action. This value must change from request to request, typically it is incremented. You must carry a hidden field in the jsp to carry the token to the following

Re: tokens creating a field in my forms

2003-11-21 Thread Raphaël di Cicco
OK, I was thinking the same thing. Referring to fields by id is better but less convenient when all your fields are accessed by maps therefore their names is something like formProp(Foo.foo.fooo). - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Inheritance in tile definition files I

2003-11-21 Thread Ed Dowgiallo
I get to the JSP by forwarding from a non-Struts JSP. There do not appear to be any tiles loading errors. From welcome.jsp: %@ page contentType=text/html;charset=UTF-8% %@ taglib prefix=logic uri=/WEB-INF/struts-logic.tld% html body logic:forward name=welcome/ /body /html From

passing request parameters in actions

2003-11-21 Thread Appel, Jeremy D
I am a relative newbie and I have a question regarding passing of parameters in actions. Currently, I am using LookupDispatchAction for all my actions which requires passing at least one parameter to my actions as well as any additional that I might have. Thus, I have code in my JSP like

RE: Inheritance in tile definition files I

2003-11-21 Thread David Friedman
Ed, I wrote about this back in August, at that time, Struts 1.0 had a limitation with logic:forwards (see below). The v1.1 production release says the same thing: The logical name of the global ActionForward entry that identifies the destination, and forwarding approach, to be used. Note:

Re: Token documentation

2003-11-21 Thread Christian Bollmeyer
Am Freitag, 21. November 2003 19:56 schrieb Edgar P Dollin: I haven't seen any but there isn't really much to document. You put an integer into the form with a value that is updated by the action. This value must change from request to request, typically it is incremented. You must carry a

HTML tags/filter/UTF-8

2003-11-21 Thread Dave Hodson
A question for the list: (B (BI have an input form, which is handled via Struts and the input is validated, (BURLEncoded with UTF-8 and stored in a DB (BAt a later date, the user can modify their input. The input is displayed with an (Bhtml:text tag, but unfortunately, it does not display

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
On 21 Nov 2003, at 18:29, Matt Bathje wrote: DynaActionForm taxRatesForm = new DynaActionForm(); and taxRatesForm.set(taxRates, allTaxRates); request.setAttribute(taxRates, allTaxRates); Creating a form in the action servlet is one sure way to piss the folks off who have to maintain the app. You

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Matt, I found out that using new DynaActionForm()inside of the PreLoaderAction.execute() doesn't work. It gives a null pointer exception when you try and call the set() method. You need to do this instead: FormBeanConfig cfg = mapping.getModuleConfig()

RE: Design Pattern question

2003-11-21 Thread Scott Goldstein
This makes sense in the context of Struts, I suppose, but seems strange to me in terms of web application design. In web development without Struts, the two actions (the EditAction to process the input from the first request and the ViewAction to populate the form for the second request) would

Re: (newbie asking advice) in which order do I call my .do and .jsp?

2003-11-21 Thread Janice
Thanks Rick, While that wasn't exactly what I was asking, I think you gave me a better answer than what I was looking for :) That makes so much more sense than what I was doing!! Janice

Jonathan Lord is out of the office.

2003-11-21 Thread jlord
I will be out of the office starting 11/21/2003 and will not return until 12/01/2003. If you need assistance during that time please call Trent Waite at +1 (763) 513.3205. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Mohan, I agree with Wendy. Prepopulate the form by instantiating it in the action that forwards to the page that displays the page. Perhaps you can create a constructor in the ActionForm that takes a userinfo object and invoke this from your Action.execute method. Regards, Richard -Original

Beating proxy's and caches with random url's fails Action paths

2003-11-21 Thread Thompson, David
We occasionally run into problems with users of our site who complain that they get erratic behaviour because their local corporate proxy server sends back cached versions of dynamic pages (jsp's), nevermind people who can't figure out their browser's cache settings. The obvious argument is that

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
I found out that using new DynaActionForm()inside of the PreLoaderAction.execute() doesn't work. It gives a null pointer exception when you try and call the set() method. You need to do this instead: FormBeanConfig cfg = mapping.getModuleConfig()

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Matt, You actually only need the form in the request. You don't need the property of the form at all in your JSP. In my JSP I use html:form action=/indexTestSubmitAction logic:iterate id=testBean name=dynaIndexTestForm property=tests indexId=ctr html:text name=testBean property=id

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
Cool, thanks for the extra tip! Matt Bathje - Original Message - From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, November 21, 2003 4:22 PM Subject: RE: dynamically sized form (mostly solved) Matt, You actually only

logic:iterate and multiple hashtables

2003-11-21 Thread Steven Nakhla
I have a situation where I have something like this in my Java code: Hashtable h = new Hashtable(); Hashtable x = new Hashtable(); Hashtable y = new Hashtable(); LinkedList l = new LinkedList(); h.put(1, x); x.put(2, y); y.put('3, l); l.add(My string); I'd like to be able to iterate through

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Mainguy, Mike
I agree with Richard and Wendy, you probably don't need to actually instantiate the form, get your bean from somewhere (the ether?) and do a BeanUtils.copyProperties(dest,source). This will allow a nice decoupling of your business code from your web application code Alternatively, I would

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
Dick Oh well... There's just no telling some folks.. [OT] But then I've just seen who you're working for.. Sleep well.. On 21 Nov 2003, at 21:04, Yee, Richard K,,DMDCWEST wrote: Matt, I found out that using new DynaActionForm()inside of the PreLoaderAction.execute() doesn't work. It gives a

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Mark, What are you trying to tell us? Do you think it is a bad practice to pre-load a form in an action by instantiating the formBean in the action? Or is it something else that you find objectionable? -Richard -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday,

  1   2   >