RE: Multiple Language Support with struts
Also make sure to locale based on client, since locale for the server is based on single JVM Mahesh -Original Message- From: Meißner, Heinz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 11:32 AM To: '[EMAIL PROTECTED]' Subject: AW: Multiple Language Support with struts hi if u set session u can do more than 1 language . c ya heinz -Ursprüngliche Nachricht- Von: Robert Mayhew [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. Juli 2001 17:27 An: 'Struts Users' Betreff: Multiple Language Support with struts I am currently developing a multi-language web application that will require the support of different languages (locale) per user. The goal is to have a site that displays information in a users selected language. So different application resources would be used depending on the selected language. I have 2 questions. Does struts allow only one locale is run at a time? (Meaning the application is ether running Japanese, Arabic, or English, but not all at once) Is the standard way to operate a multi-lingual web app to have different instances of application? Each one set to a different locale? Thanks Rob Mayhew
RE: XML/XSL/Struts Architecture
The only reason we are planing to opt for it is HTML forms structure will be different for each client, meaning for e.g Demograhics Screen for client 1 is Name: DOB for client #2 Demograhics Screen for client 1 is Name: Address: So using we will different XSL for each client, also there is problem is designing action forms as html forms change All suggestions are welcome -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 10:12 AM To: [EMAIL PROTECTED] Subject: RE: XML/XSL/Struts Architecture What I did to handle the XML data was write some taglibs that accessed XML data via XPath. I also wrote a taglib that will perform an XSL transformation and include the resulting output to a JSP I think that's a viable solution; some in our company have considered that route as well. However, it's more than just dealing with XML in the view. There are also issues internal in the controller code. For example, if your backend data is XML, and you are processing it internally in a DOM structure, you have to jump through all sorts of hoops just to get to the data, not to mention problems with types and all that. It just seems much cleaner, after my experience, for XML to be an adapter layer. Once you get the XML from the backend, put it into some beans and process it the easy way. XML is great for B2B communications, but why do we need to use it internally? It adds to much mud to the water, IMHO. Having said that, it does add some value, but in our situation, much of that value was obscured by the overhead. Thanks, Greg
RE: XML/XSL/Struts Architecture
Thanks John, How you do go about doing error checking with XML. so you use pattern method mechanism as per article form javaworld Strut your stuff with JSP tags or some other mechanism All suggestions are welcome Thanks Mahesh -Original Message- From: O'Reilly John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 4:42 AM To: '[EMAIL PROTECTED]' Subject: RE: XML/XSL/Struts Architecture Hi Mahesh, We have started using Struts for an application that uses XSP/XML/XSL (using Cocoon). Instead of specifying a JSP page in the struts configuration file we specify a XSP page. This server page is responsible for getting XML data from some data object set up in the action classes (we are using attributes in the session object for now). We also have extended ActionMapping to allow us to specify the XSL stylesheet in the struts configuration file. You are right about the use of tag libraries - that is one aspect of struts that you potentially lose out on using the above approach. Regards, John -Original Message- From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]] Sent: 10 July 2001 17:24 To: Apache Struts (E-mail) Subject: XML/XSL/Struts Architecture Hi, In our application, we are using XML/XSL to generate JSP and plan to use Struts for submitting data from HTML forms. Has anyone used / know if this architecture works. my thinking is ( correct me if wrong ) , we will not be able to use tag libraries coz of XML/XSL combination for generating pages. unique thing about this application is structure of HTML is different for each client. Thanks Mahesh
RE: XML/XSL/Struts Architecture
Hi John, So you mean that there are 2 XML's respresenting data and other respresenting error. (correct me) Thanks -Original Message- From: O'Reilly John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:57 AM To: '[EMAIL PROTECTED]' Subject: RE: XML/XSL/Struts Architecture Our initial idea is to store XML representing the error message in the request context. The XSP page (we actually have a single template XSP page which aggregates different streams of XML information e.g. menu, content, and error messages etc) reads this XML and it is then up to the XSL to display (if it exists) this error information as it sees fit. -Original Message- From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]] Sent: 11 July 2001 15:11 To: [EMAIL PROTECTED] Subject: RE: XML/XSL/Struts Architecture Thanks John, How you do go about doing error checking with XML. so you use pattern method mechanism as per article form javaworld Strut your stuff with JSP tags or some other mechanism All suggestions are welcome Thanks Mahesh -Original Message- From: O'Reilly John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 4:42 AM To: '[EMAIL PROTECTED]' Subject: RE: XML/XSL/Struts Architecture Hi Mahesh, We have started using Struts for an application that uses XSP/XML/XSL (using Cocoon). Instead of specifying a JSP page in the struts configuration file we specify a XSP page. This server page is responsible for getting XML data from some data object set up in the action classes (we are using attributes in the session object for now). We also have extended ActionMapping to allow us to specify the XSL stylesheet in the struts configuration file. You are right about the use of tag libraries - that is one aspect of struts that you potentially lose out on using the above approach. Regards, John -Original Message- From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]] Sent: 10 July 2001 17:24 To: Apache Struts (E-mail) Subject:XML/XSL/Struts Architecture Hi, In our application, we are using XML/XSL to generate JSP and plan to use Struts for submitting data from HTML forms. Has anyone used / know if this architecture works. my thinking is ( correct me if wrong ) , we will not be able to use tag libraries coz of XML/XSL combination for generating pages. unique thing about this application is structure of HTML is different for each client. Thanks Mahesh
RE: XML/XSL/Struts Architecture
Hi Greg, we are planning to use XSL because structure of HTML forms will differ on client basis. -Original Message- From: Greg Reddin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:16 AM Subject: RE: XML/XSL/Struts Architecture Using XSL, you can recreate the majority of what the taglibs do. However, that begs the question of why you would use XSL in the first place. I've worked on a Struts-based XSL project for about 6 months now, and we've had to recreate so much of the Struts functionality in our architecture that we find ourselves always asking why we're doing this. Our data comes from the backend in XML, so it seemed logical to leave it in XML and use the parsers to access it. But the parsers (Xalan/Xerces) turn out to be a lot of overhead and got in our way quite a bit. I'd like to go back and convert it to JSP. -Original Message- From: [EMAIL PROTECTED] at INTERNET Sent: Wed 7/11/2001 3:41 AM To: Reddin, Greg; [EMAIL PROTECTED] at INTERNET Cc: Subject: RE: XML/XSL/Struts Architecture Hi Mahesh, We have started using Struts for an application that uses XSP/XML/XSL (using Cocoon). Instead of specifying a JSP page in the struts configuration file we specify a XSP page. This server page is responsible for getting XML data from some data object set up in the action classes (we are using attributes in the session object for now). We also have extended ActionMapping to allow us to specify the XSL stylesheet in the struts configuration file. You are right about the use of tag libraries - that is one aspect of struts that you potentially lose out on using the above approach. Regards, John -Original Message- From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]] Sent: 10 July 2001 17:24 To: Apache Struts (E-mail) Subject: XML/XSL/Struts Architecture Hi, In our application, we are using XML/XSL to generate JSP and plan to use Struts for submitting data from HTML forms. Has anyone used / know if this architecture works. my thinking is ( correct me if wrong ) , we will not be able to use tag libraries coz of XML/XSL combination for generating pages. unique thing about this application is structure of HTML is different for each client. Thanks Mahesh
XML/XSL/Struts Architecture
Hi, In our application, we are using XML/XSL to generate JSP and plan to use Struts for submitting data from HTML forms. Has anyone used / know if this architecture works. my thinking is ( correct me if wrong ) , we will not be able to use tag libraries coz of XML/XSL combination for generating pages. unique thing about this application is structure of HTML is different for each client. Thanks Mahesh
architecture help for struts
Hi , Does anyone know of article which explains process of how to artictect an application using struts framework Thanks
EJB with Struts
Hi, Does anyone how can we use entity / session with struts or any reading material for that Thanks Mahesh
Help Weblogic 6.0 install
Hi Folks, Does anyone have procedure for installing struts in weblogic 6.0 env on HP UX Thanks Mahesh
Error
Hi, Does anybody know reason for this error, while running sample application, ERROR: User database not loaded -- check servlet container logs for error messages Thanks