RE: Struts and Data/Presentation Separation
Hi, This might help u.. http://www.onjava.com/pub/a/onjava/excerpt/java_xslt_ch5/index.html KP -Original Message- From: Josh Holtzman [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 8:08 AM To: [EMAIL PROTECTED] Subject: Struts and Data/Presentation Separation Hello all, We are considering employing a solution that would enable us to store data in an XML format, and use XSL to format the data into various document types - html, text, pdf, etc. We intend to have a transformation engine located within our web application, and when a request is made for a resource the associated XML is transformed for the response to the client. A caching mechanism is something we would likely employ to increase performance. Can anyone assist us with the following? 1. Are there any suggestions or best practices on how to implement this within the Struts framework? 2. Would it make sense to use a product like Resin? If so what are the benefits and drawbacks of doing so? 3. Are there any suggestions for creating form based HTML pages to manage the content of the xml docs? Any assistance is greatly appreciated. Thanks in advance. Regards, Josh Holtzman AMERICAN DATA COMPANY Developing and Supporting your Online Applications [EMAIL PROTECTED] Voice: (310) 470-1257 Fax:(310) 362-8454 Sun Microsystems iForce Partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validator Framework, WHAT's UP !!!!
What does your Application.properties file look at? (or whatever you call your resource file) Mark -Original Message- From: ksitron [mailto:[EMAIL PROTECTED] Sent: Sunday, 23 May 2004 7:22 AM To: Struts Users Mailing List Subject: Validator Framework, WHAT's UP I'm using the 1.1 validator framework. I have activated the validator pluging correctly, because I can see the validations from the validation.xml file being displayed on the output from the app-server. I know that the validations themselves are working as per the validations that I set up in validation.xml, because when I enter in unwanted data. I get returned to the page that I was currently entering in data into. That's all fine. But, I'm not gettting any error messages displayed in my JSP, even though I'm including the tag. Someone please tell me what I'm doing wrong. Thanks in advance. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts and Data/Presentation Separation
Hello all, We are considering employing a solution that would enable us to store data in an XML format, and use XSL to format the data into various document types - html, text, pdf, etc. We intend to have a transformation engine located within our web application, and when a request is made for a resource the associated XML is transformed for the response to the client. A caching mechanism is something we would likely employ to increase performance. Can anyone assist us with the following? 1. Are there any suggestions or best practices on how to implement this within the Struts framework? 2. Would it make sense to use a product like Resin? If so what are the benefits and drawbacks of doing so? 3. Are there any suggestions for creating form based HTML pages to manage the content of the xml docs? Any assistance is greatly appreciated. Thanks in advance. Regards, Josh Holtzman AMERICAN DATA COMPANY Developing and Supporting your Online Applications [EMAIL PROTECTED] Voice: (310) 470-1257 Fax:(310) 362-8454 Sun Microsystems iForce Partner
Focus Question?
Currently, I have a function defined within my DynaValidatorForm which checks the elements of the form and returns the first element which contains data so that I can place a focus call on the field like so: #= # Code snip #= // Check if a field has content in it private boolean hasContent(String id) { return StringUtilities.hasContent((String) get(id)); } // Retrun the first field with data in it public String getFirstSearchedField() { if (hasContent(LAST_NAME)) { return LAST_NAME; } if (hasContent(FIRST_NAME)) { return FIRST_NAME; } . . // more of the same . // Default is last name return LAST_NAME; } = I would like to do this same type of thing for every form generically. Is there any way in struts to retrieve a container of elements defined for the form. It seems to me the problem would be determining the order. There needs to be a sort order for the items that should match what the user see's from the jsp. How would one accomplish this? We use the tabindex with our tags within our jsp. I was wondering if we can get access to it from the form? That would help determine the display order of the elements if it were available. Anyone know how to accomplish this? -Ben
Re: The element
Hi Paraman! Maybe I'm wrong, but if I remember right, it sets the property of the ActionMapping. regards, Axel On 2004-05-23 at 10:08:44 +0800, Paraman wrote: > Hi all, > I am puzzled about the behavior of the element when it is nested in > an element. I thought it was setting the properties of the Action class, > but it seems not working. Could you please help me clear it up? > Thanks! > > Paraman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-validator - Using constants in property attribute
Hi there! Got a small problem with the constants in the validation.xml, which I couldn't solve using the docs and google. What I do is using the validator for indexed properties and using javascript to jump to the right field, if somebody clicks on the errormessage. validation.xml: systemcurrentProfile[0] .. this works fine (it validates currentProfile[0]), BUT the validator stores the error messages under ${system} and not under currentProfile[0], which I think is not the right thing. And I need to get currentProfile[0], as I need to jump the field... Anyway, is there a way to tell the validator to store it under another name or kind of switching substituting constants on?? Sure I could just stop using the constant there, but I'd loose in maintenance. Looking forward to suggestions, thanks Axel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]