Re: Curious how others handle these situations..

2004-10-25 Thread Dinesh Sampangi
Hi Rick, This is the approach what i have taken.. 1) I had all forms set to Session Scope in the Struts config. 2) Maintain an "actionStack" form variable in all the form, which would keep track of all the required actions as CSV in FILO order(Login,PlayerSearch,EditPlayer,..) 3) Maintain

Re: Struts form problem.

2004-10-25 Thread Bill Siggelkow
The NPE is thrown on this line: obj = formBeanClass().newInstance(); in the FormBeanConfig -- this indicates that the class you specified by the type attribute cannot be found -- check for typos and how you are building your deployment as well. -Bill Siggelkow Matias Surdi wrote: Ple

Re: Article: Skin Web applications using Xkins (with Struts)

2004-10-25 Thread Langdon Stevenson
Hi Guillermo Thanks for posting that link. Just what I needed to see. I am about to look at implementing skins for my current web app, so it was timely. Regards, Langdon Guillermo Meyer wrote: If anyone is interested in skinning a Struts web application, you can read this article at http://www.

Re: Curious how others handle these situations..

2004-10-25 Thread Rick Reumann
Andrew Hill wrote the following on 10/25/2004 8:41 PM: In your case you probably dont need to go as far as I did. You could perhaps just keep track of the pages in the stack in a session scoped collection and override the requestProcessor to look in that collection for the form instead of inst

Re: tab UI controls for struts

2004-10-25 Thread Eddie Bush
Have you looked at tiles-documentation.war? - Original Message - From: "kjc" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 7:23 PM Subject: Re: tab UI controls for struts I see that struts has a Tabbed Layout. Are there any example

Re: Curious how others handle these situations..

2004-10-25 Thread Andrew Hill
Hi Rick, I did this for a large application where there were a lot of different record types with various linkages much as your roster has with players, and where said linkages could nest quite deeply. You will need to use the session to do it cleanly. The idea is to somehow keep a stack of Act

Re: [Struts-Chain] how to use another chain for preprocessing?

2004-10-25 Thread Bill Keese
To chain actions, you simply return a non-redirect ActionForward which points to a Struts action path. This is chaining (where a redirect isn't) because it results in the ActionServlet triggering a second "run" through the RequestProcessor's processing flow. OK, that's what I was thinking, alo

Re: Serious performance impact with iterator

2004-10-25 Thread Eddie Bush
JoAnn, Please don't take this wrong, but it is considered quite rude to email the list in such quick succession. Believe it or not, most of the people on the list actually work and have things to do other than check for new messages every 2 minutes. In fact, it's only by people volunteering to

Re: [OT] Struts Networking / BOF IV / Friday / October 22 @ 19: 3 0 / Restaurant / The Furnace

2004-10-25 Thread Peter A. Pilgrim
Pilgrim, Peter wrote: > Hi > Please see intermixed > ---- The BOF IV took place at The Furnace restuarant The following people are attending so far: Peter Pilgrim Alan Mehio Thomas Pluempe Tim Penhey Charles Cordingley Marco Mistroni Niall Pemberton Allister Sned

Re: tab UI controls for struts

2004-10-25 Thread kjc
I see that struts has a Tabbed Layout. Are there any examples around on how to use it. Eddie Bush wrote: Try Tiles. It has a tabbed-layout, I believe. If that doesn't suit your needs, try: Google Query: Struts +Layout +Tabbed - Original Message - From: "kjc" <[EMAIL PROTECTED]> To: <

Re: tab UI controls for struts

2004-10-25 Thread Eddie Bush
Try Tiles. It has a tabbed-layout, I believe. If that doesn't suit your needs, try: Google Query: Struts +Layout +Tabbed - Original Message - From: "kjc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 10:36 AM Subject: tab UI controls for struts looking f

How to use tiles to render dynamic pages

2004-10-25 Thread Agarwal, Monica
Hi, We have an application that displays 4 columns of data in a page. The number of columns is configurable by the admin and also by the user. The minimum number of columns displayed is 2. If a column is not displayed then the space allocated for it needs to be taken up by other columns.

Re: Serious performance impact with iterator

2004-10-25 Thread Jason Lea
If you are using tomcat you could look at the trimSpaces option for JSP page compilation in server.xml There are also filters that can be used to compress the page as it is being sent to the browser. You can also try writing out tags differently to minimise spaces produced in source eg  ... ..

Re: Serious performance impact with iterator

2004-10-25 Thread Wendy Smoak
From: "JoAnn Lemm" <[EMAIL PROTECTED]> > I'm wondering if anyone else is seeing this impact. > The resulting html looks like the following. Note all the empty spaces. > Needless to say, this has impacted performance on the website > significantly by increasing the size of the page to something ludi

FW: Serious performance impact with iterator

2004-10-25 Thread JoAnn Lemm
Hey All, I'm wondering if anyone else is seeing this impact. I've got an iterator within an iterator thusly:   The resulting html

FW: Serious performance impact with iterator

2004-10-25 Thread JoAnn Lemm
Hey All, I'm wondering if anyone else is seeing this impact. I've got an iterator within an iterator thusly:   The resulting html lo

Serious performance impact with iterator

2004-10-25 Thread JoAnn Lemm
Hey All, I'm wondering if anyone else is seeing this impact. I've got an iterator within an iterator thusly:   The resulting html lo

Re: Article: Skin Web applications using Xkins (with Struts)

2004-10-25 Thread kjc
I thought JavaWorld was dead. If it has returned to the living that is great news. Guillermo Meyer wrote: If anyone is interested in skinning a Struts web application, you can read this article at http://www.javaworld.com/javaworld/jw-10-2004/jw-1025-xkins.html. This is an introduction to Xkins F

Serious performance impact with iterator

2004-10-25 Thread JoAnn Lemm
Hey All, I'm wondering if anyone else is seeing this impact. I've got an iterator within an iterator thusly:   The resulting html lo

Article: Skin Web applications using Xkins (with Struts)

2004-10-25 Thread Guillermo Meyer
If anyone is interested in skinning a Struts web application, you can read this article at http://www.javaworld.com/javaworld/jw-10-2004/jw-1025-xkins.html. This is an introduction to Xkins Framework and has an example that uses Xkins and Struts. Regards. Guillermo Meyer.

lossing the values when returing to jsp if any error in Action class

2004-10-25 Thread Ashish Kulkarni
Hi I have a jsp which has a dropdown box, in my dispatch Action class i populate a ArrayList and store in request and pass it to my jsp, the user then selects one value from this dropdown and hits enter, In my action class i call the business logic class, which tries to insert this value in datab

Struts form problem.

2004-10-25 Thread Matias Surdi
Please, Help I'm stuck since two days ago with this. It's the exception, when I try to open a jsp from de browser: The exception: -- (util.RequestUtils 30

Re: file validation best practice - Thanks everyone

2004-10-25 Thread struts lover
Thanks very much. --- Joe Germuska <[EMAIL PROTECTED]> wrote: > At 7:24 AM -0700 10/25/04, struts lover wrote: > >Hello, > >Thanks everyone for your interest and replies. > Thanks > >very much. > >I had one more question. If I use getContentType() > of > >FormFile, does it give the same results o

user@struts.apache.org

2004-10-25 Thread Ashish Kulkarni
Hi Is there a simple example of how to use html:options tag How do i define the bean in struts-config.xml file, and how do i use it in my jsp Currenty i have defined the following in struts-config.xml In my Action form i populate this bean and set it in request scope, in my jsp i used t

RE: Implementing dependence between form properties

2004-10-25 Thread Joe Hertz
Something like this if youre using 1.2.x: test ((item1 != null) or (item2 != null) or (*this* != null)) > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurent Duperval > Sent: Monday, October 25, 2004 5:13 PM > To: [EMAIL PROTECTED] > Subject: Implementing

Implementing dependence between form properties

2004-10-25 Thread Laurent Duperval
Hi, How does one implement dependence between property fields? Specifically, I have three String fields and at least one of them must be non-null. Can I write this in the validator.xml file? Or do I have to write a custom validation rule? Thanks, L --

Re: ActionMessages question (simple)

2004-10-25 Thread Thompson Marzagão
Caro Vinicius, Your java code is fine. But you got confused on the struts tags. If you want to display ALL the messages you have, (that's probably what you need) one under the other, separated by 's, you would use: But if you only want to display that "removido" message when it exists, you ca

ActionMessages question (simple)

2004-10-25 Thread Vinicius Carvalho
I'm kinda lost with this. I set a message like below : ActionMessages msgs = new ActionMessages(); msgs.add("removido", new ActionMessage("br.com.auge.bancoprojetos.registroRemovido")); saveMessages(request,msgs); Than I want to display it: That's not working anyway I'm kinda lost with id

Re: Error handling basics

2004-10-25 Thread Bill Siggelkow
No worries, Freddy -- in fact, I apologize; I just wasn't reading careful enough. I am glad you solved your problem. -Bill Siggelkow Freddy Villalba A. wrote: By the way... I was being sarcastic with my last comment, Bill. Second-read it and thought it could have been offensive / rude. Thanx agai

RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Charl Gerber
OK, I got it working it seems you know HAVE to specify the resouces in the struts configuration as and not in the web.xml anymore as a parameter to the action servlet. Might be helpful to other people. Charl parameter="com.systemmobile.example.ApplicationResources"/> --- Charl Gerber

RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Charl Gerber
The file is definitely there: ApplicationResources.properties in my WEB-INF/classes, configured as: action org.apache.struts.action.ActionServlet application ApplicationResources config /WEB-INF/conf/struts.xml debug 2

RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Carl F. Hall
I had this problem when I didn't have a message resources file. I don't use one currently so I had to create a blank file then reference it in my struts-config file. Hope this helps. -Original Message- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 3:02 PM

Cannot find message resources under key org.apache.struts.action.MESSAGE

2004-10-25 Thread Charl Gerber
I've upgraded from Struts 1.1 to 1.2.4. The only changes are the new jars and ActionError has been replaced by ActionMessage. Nothing else. Now I get the exception: Cannot find message resources under key org.apache.struts.action.MESSAGE I read it might have something to do with xml parsers, but

RE: Error handling basics

2004-10-25 Thread Freddy Villalba A.
By the way... I was being sarcastic with my last comment, Bill. Second-read it and thought it could have been offensive / rude. Thanx again. -Mensaje original- De: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Enviado el: lunes, 25 de octubre de 2004 20:01 Para: Struts Users Mailing List

RE: Error handling basics

2004-10-25 Thread Freddy Villalba A.
Yes, I did: input="admin_customers.jsp" However, I've noticed the problem(s): - I was missing a "/". - The MessageResource's file is required. - I was constructing the ActionError instance using the message itself, instead of the message key to locate the right message within the MessageResour

RE: html:form doesn't return action

2004-10-25 Thread Carl F. Hall
That is a cut and paste error. Sorry about that. I've fixed it below. The way I can find around this right now is to do some manual bean setting for the form and not use the html:form tag. Any thoughts, anyone? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill

Re: Curious how others handle these situations..

2004-10-25 Thread Rick Reumann
Hubert Rabago wrote the following on 10/25/2004 11:54 AM: First, allow the editing of a player from one location only. This way, I only need to get back to that page. I 'try' to do this also. Second, if you're on the roster screen, and you want to edit the player, I'll let you do that, but in a se

Re: Error handling basics

2004-10-25 Thread Bill Siggelkow
Hmmm... it looks like you *didn't* specify the input attribute on the mapping. Freddy Villalba A. wrote: Hello, I've made myself a small test application. I wanted to test error handling within the "validate" method. The problem is that I'm not being redirected to the jsp I have specified inside

Error handling basics

2004-10-25 Thread Freddy Villalba A.
Hello, I've made myself a small test application. I wanted to test error handling within the "validate" method. The problem is that I'm not being redirected to the jsp I have specified inside the "input" attribute. Instead, I'm getting a blank page (with no error messages at all inside). This is

Re: html:form doesn't return action

2004-10-25 Thread Bill Siggelkow
I don't know if this is a cut-and-paste error but you are missing a '>' in your action mapping after ' parameter="method" ' Carl F. Hall wrote: Whenever I use html:form, I only get the name of the context as the action. What would cause the action to not return correctly? See below for my specif

html:form doesn't return action

2004-10-25 Thread Carl F. Hall
Whenever I use html:form, I only get the name of the context as the action. What would cause the action to not return correctly? See below for my specific case. Thank you in advance for any help. This code: Returns this: My ActionMapping for is: Carl F. Hall

Re: tab UI controls for struts

2004-10-25 Thread Bill Siggelkow
kjc wrote: looking for a tab UI control for use with struts. Tiles comes with a Tabbed Layout ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Curious how others handle these situations..

2004-10-25 Thread Hubert Rabago
I personally try to avoid situations like this. There are a couple of ways I avoid it. First, allow the editing of a player from one location only. This way, I only need to get back to that page. Second, if you're on the roster screen, and you want to edit the player, I'll let you do that, but

requiredif combined with other validation rules

2004-10-25 Thread David Schneider
hi. i'm using struts 1.1 and have a question about combining requiredif with other validation rules. i have field[0] country fieldTest[0] EQUAL fieldValue[0] 840

RE: tab UI controls for struts

2004-10-25 Thread Paul McCulloch
I had a look for such things a few weeks ago. My requirement was for a server side implementation - i.e. one that didn't execute the content of hidden tags. I couldn't find anything that met that requirement. I did find a pretty cool looking client side implementation at http://www.pintexx.com/ I

Re: tab UI controls for struts

2004-10-25 Thread Hubert Rabago
Take a look at Struts Menu http://struts-menu.sourceforge.net/ On Mon, 25 Oct 2004 09:36:04 -0600, kjc <[EMAIL PROTECTED]> wrote: > looking for a tab UI control for use with struts. > > - > To unsubscribe, e-mail: [EMAIL PROTECT

Re: OT: html table full screen

2004-10-25 Thread Emmanouil Batsis
andy wix wrote: My Tiles layout page sets 'the daddy' table to be width and height 100% with cellspacing="0" and cellpadding="0", and yet when the page displays there is a border approx. 10 pixels wide between the table and the edge of the browser window. DO browsers add this spacing? Thats th

OT: html table full screen

2004-10-25 Thread andy wix
Hi, My Tiles layout page sets 'the daddy' table to be width and height 100% with cellspacing="0" and cellpadding="0", and yet when the page displays there is a border approx. 10 pixels wide between the table and the edge of the browser window. DO browsers add this spacing? Regards, Andy __

Re: Writing form field values out

2004-10-25 Thread Craig McClanahan
If the form bean is named "myform", then you could use: Crag On Mon, 25 Oct 2004 15:11:19 +, Mark Benussi <[EMAIL PROTECTED]> wrote: > I have a requirement to write out the value of a form field in aother part > of the page (But within the form). > > Can someone supply the snippet of

tab UI controls for struts

2004-10-25 Thread kjc
looking for a tab UI control for use with struts. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Curious how others handle these situations..

2004-10-25 Thread Rick Reumann
To cut to the chase.. Imagine a hypothetical UI where you have checkboxes next to football players and by checking the boxes and hitting 'save' you would be saving a roster. Typically you'd have a FormBean to capture this information and probably a "RosterAction". Now also imagine that next to

Re: file validation best practice - Thanks everyone

2004-10-25 Thread Joe Germuska
At 7:24 AM -0700 10/25/04, struts lover wrote: Hello, Thanks everyone for your interest and replies. Thanks very much. I had one more question. If I use getContentType() of FormFile, does it give the same results on different operating systems that is if the client is using different operating syst

Writing form field values out

2004-10-25 Thread Mark Benussi
I have a requirement to write out the value of a form field in aother part of the page (But within the form). Can someone supply the snippet of code. Let us say the field is called xyz. - To unsubscribe, e-mail: [EMAIL PROTECTED

erp backup

2004-10-25 Thread PC Leung
erp backup Tiles OK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Object size/memory usage

2004-10-25 Thread Zhang, Larry \(L.\)
Let's say I have two object public calss Object1{ private name; private id; private depetId; } public calss Object2{ private name; private id; private depetId; private country; private jobFamily; private isActive; ...

Re: file validation best practice - Thanks everyone

2004-10-25 Thread struts lover
Hello, Thanks everyone for your interest and replies. Thanks very much. I had one more question. If I use getContentType() of FormFile, does it give the same results on different operating systems that is if the client is using different operating systems. Does the change in server OS affects the

Re: "refreshing" server side infromation

2004-10-25 Thread Tito Eritja
Thanks for your answer, I did it just with the refresh tag, just some questions: what's de difference between using the hidden Iframe or not?, Is there some way to hide the browser reload "signs" when refreshing? tito El miÃ, 06 de 10 de 2004 a las 11:23, James Neville escribiÃ: > Tito Eritja w

Re: [OT] Hosting Companies

2004-10-25 Thread Bryce Fischer
I use jvds.com. UML style hosting, so you can install anything you want. You basically have root access to your own virtual Linux machine. Joe Hertz wrote: I dont see Struts supporting hosting companies on the wiki. It used to be on the site before the resources link pointed you to the wiki IARC

Re: [Struts-Chain] how to use another chain for preprocessing?

2004-10-25 Thread Joe Germuska
At 4:26 PM +0900 10/25/04, Bill Keese wrote: Craig McClanahan wrote: * Regarding chaining of actions themselves, if you are using the standard request processing chain that remains as bad an idea as it has always been in Struts, and I don't see any reason to make it easier with chaining than it

Re: Map Backed Form and JavaScript

2004-10-25 Thread Jeff Beal
document.forms[0]['dto(name)'].value Hariharan V wrote: Hi, I am making use of Map backed Action form Lets say I have named the textbox field as follows How can I access the text field value from JavaScript for instance I can't do something like this. document.forms[0].dto(name).value; (but th

Re: request question

2004-10-25 Thread Jeff Beal
If your trash-can button is using a link, you need to encode the request parameters into the link when you generate the JSP page. If your trash-can button is submitting a form, you need to create elements in your JSP page for each request parameter. I would recommend the latter approach, becau

RE: [OT] Shale

2004-10-25 Thread Robert Taylor
+1. Excellent read. It certainly gives one insight into the future web application development. robert > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Monday, October 25, 2004 1:09 AM > To: Struts Users Mailing List > Subject: [OT] Shale > > > For tho

Re: [html:select/optionsCollection] I don't get it! :( [shame on me!]

2004-10-25 Thread Arnaud Vandyck
Michael, Many thanks for your help. In fact, I added a Vector to a Vector with the method... add, not addAll! Fri, 22 Oct 2004 15:46:22 +0200, "Albrecht, Michael" <[EMAIL PROTECTED]> wrote: > Hi Arnaud! > > The following lines show you an example for optionsCollection - tag: > > > label

request question

2004-10-25 Thread Vinicius Carvalho
Hi there! This kinda off topic, but I'm confused with that. I have this flow on my app: User search -> content display -> remove Let me get in some finer details. The user enters a criteria to filter the number of items displayed, on the next screen those items are shown with a trash icon, rep

Map Backed Form and JavaScript

2004-10-25 Thread Hariharan V
Hi, I am making use of Map backed Action form Lets say I have named the textbox field as follows How can I access the text field value from JavaScript for instance I can't do something like this. document.forms[0].dto(name).value; (but this will give a JS error) any workaround or can we use

Re: Problem in Locating a properties File (Not application.properties)

2004-10-25 Thread nitin dubey
Caroline, You need to use getResourceAsStream() method from ServletConfig class. request.getSession().getServletContext().getResourceAsStream("/filename.properties"); This will return you an InputStream that you can pass to Properties.loadProperties() and make it work. The "/" represents the co

Re: [Struts-Chain] how to use another chain for preprocessing?

2004-10-25 Thread Bill Keese
Craig McClanahan wrote: * Regarding chaining of actions themselves, if you are using the standard request processing chain that remains as bad an idea as it has always been in Struts, and I don't see any reason to make it easier with chaining than it is today. Hi Craig. I was hoping you coul

Re: : pre-populating fields from the Action java code

2004-10-25 Thread Bill Keese
Thanks. Yes, I can reference the bean name from every or other element inside of the . But if there are lots of fields, it would be nicer to only write the bean name once, in the tag. Luis Gervaso wrote: You can use 3 differents FlightBean and then populate the *value attribute* in each W

RE: How can I set values to message parameters by using bean:message tag?

2004-10-25 Thread Yufan Shi
Thank you very much. Ssorry for my poor english. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: How can I set values to message

RE: How can I set values to message parameters by using bean:message tag?

2004-10-25 Thread Yufan Shi
Thank you very much. Ssorry for my poor english. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: How can I set values to message