JDBC Connection Pooling
Hi there, I'm currently trying to use the connection pool that comes with Struts but I have a problem with the spec in the Struts config file. The Bean simply doesn't show up in the servlet context (neither the default value nor my own key). When establishing the the connection pool by hand everything works fine. But when I try to access it in my initialization servelt (which is a subclass of the ActionServelt) via the config spec it don't. Any ideas what I may be missing? Regards Jürgen
Re: Getting Struts to work with XYZ
> Well, one thing you might wish to note is that I'm the primary > author of Struts, and my "day job" (what I do to make a living) > is developing on Tomcat (in the version 4.x codebase). > As you can imagine, Tomcat is my primary test platform > for debugging Struts, so you can pretty much always count on > those two playing nice together. > Craig McClanahan Sure, but from your view, how are the rational chances for someone to always catch up with the complete functionality (and behaviour) of TC x.x (reference implementation) to make something like Struts work solid on it? I get the impression this is a dead race. Suppose XYZ puts a lot of effort in it and can get their product to be 99.9% compatible with TC 3.2. Does that mean they can do it again later (for 4.x)? I just don't think so. (sounds as if I'm talking about OS/2) Would'nt it (for us in need of Struts) be much smarter to avoid such problems and setup TC in front of our EJB-container? By the way, how do you judge the advances of running SE and EJB-container in the same VM compared to a) running on seperate VM's and b) running on separate machines? I can't express how glad I would be to see a discussion of that. Thanks. Timur Mervarz begin:vcard n:Mehrvarz;Timur tel;work:0211 5334414 x-mozilla-html:FALSE org:Mannesmann Mobilfunk;FIE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Timur Mehrvarz end:vcard
Re: JDBC Connection Pooling
You can access the pool this way: GenericDataSource ds = (GenericDataSource) servlet.findDataSource(null); which I clipped from a working Action.perform method. -Ted. *** REPLY SEPARATOR *** On 1/23/2001 at 10:04 AM Lind Jürgen wrote: Hi there, I'm currently trying to use the connection pool that comes with Struts but I have a problem with the spec in the Struts config file. The Bean simply doesn't show up in the servlet context (neither the default value nor my own key). When establishing the the connection pool by hand everything works fine. But when I try to access it in my initialization servelt (which is a subclass of the ActionServelt) via the config spec it don't. Any ideas what I may be missing? Regards Jürgen -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/about/struts/
Retreiving multiple values from SELECT boxes
I need to know how to retreive multiple values from a HTML select box using struts. So far I have set-up the SELECT box to allow multiple selects. On submission of the HTML form the values of the SELECT box are submitted in the request as an array of strings. However the bean setter method does not seem to be executed correctly as the required property is only set to the first element in the string array. I have stepped through the code and it seems to go wrong in the BeanUtils.populate() method were the incoming parameters are not properly recorded and sent to the property setter method. Has anybody come across similar problems ? Any feedback would be appreciated Regards Kevin
Capturing stderr to a file
Hi Struts Users, I've just installed a Tomcat / struts / JDBC application (standalone Tomcat on NT 4) and am working my way through porting it to talk to Oracle (original sample was PostgreSQL).. I've got it talking to the database OK, however the port has caused lots of type casting problems (it appears all my data gets returned as String from Oracle, however the original code seemed to get it back correctly). My biggest problem in finding these problems is that Tomcat is dumping STDERR to the terminal which scrolls away irretrievably, and I can't seem to get it to re-direct anywhere else - I've tried '2>filename' within tomcat.bat on the start command and have also tried setting it in the tomcat.properties and wrapper.properties files (changes in both these files seem ineffective). Any ideas ? Regards, Don Elliott [EMAIL PROTECTED]
FormTag problem
Having looked at the source code for the FormTag it appears that there is no way to use it with an ActionMapping whose path contains a forward-slash (other than at the start) because everything before the last one is removed before looking up the ActionMapping. Why is this? It doesn't seem to me to be the correct thing to do. > -Original Message- > From: Howard Moore > Sent: 22 January 2001 17:40 > To: [EMAIL PROTECTED] > Subject: FormTag problem > > > I have the following action configured in my struts-config.xml file; > > type="com.datapulse.views.admin.LoginAction" >name="userActionForm" >scope="request" >input="/jsp/admin/login.jsp"> > > > and am trying to link to it from a jsp page using the FormTag. > > I expected the following to work; > > > > but it throws a ServletException with the message; > > Cannot retrieve mapping for specified form action path "/login" > > It appears that the path ("/admin") part of the action is > being stripped > before looking up the mapping. Should this really be done > and, if so, how > can I create a FormTag to call my Action? > > Help would be appreciated. > > --- > Howard Moore > Senior Software Engineer > Datapulse CTI > Tel : +44 (0)1491 418000 > Fax : +44 (0)1491 411459 > E-mail: [EMAIL PROTECTED] >
Where are the *.tlds ?
Hi, where do I find the 'new' *.tld-files. I have downloaded the latest nightly build and try to migrate the example, but I can't find the *.tlds mentioned for example in the logon.jsp: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> Please help ! Oliver
Re: Where are the *.tlds ?
Once I unpacked the struts-example.war into tomcat I found them in tomcat/webapps/example/WEB-INF [EMAIL PROTECTED] wrote: > Hi, > > where do I find the 'new' *.tld-files. > I have downloaded the latest nightly build and try to migrate the example, > but I can't find the *.tlds mentioned for example in the logon.jsp: > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > Please help ! > Oliver
Re: Capturing stderr to a file
You could catch the error and retrieve the stacktrace from it: StringWriter writer = new StringWriter(); myException.printStackTrace( new PrintWriter( writer ) ); stackTrace = writer.toString(); Then write it to a file. HTH, Pete begin:vcard n:; x-mozilla-html:FALSE org:http://www.irista.com/logo/irista.gif">Bringing Vision to Your Supply Chain adr:;; version:2.1 end:vcard
AW: Where are the *.tlds ?
Where did you find that ? The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't any struts-example.war or I'm blind what could be of course. Oliver -Ursprüngliche Nachricht- Von: Rob Leland [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 23. Januar 2001 15:26 An: [EMAIL PROTECTED] Betreff: Re: Where are the *.tlds ? Once I unpacked the struts-example.war into tomcat I found them in tomcat/webapps/example/WEB-INF [EMAIL PROTECTED] wrote: > Hi, > > where do I find the 'new' *.tld-files. > I have downloaded the latest nightly build and try to migrate the example, > but I can't find the *.tlds mentioned for example in the logon.jsp: > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > Please help ! > Oliver
RE: Where are the *.tlds ?
You have to unzip the file, and you'll see the .tlds and the other files. Roger > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 23, 2001 6:49 AM > To: [EMAIL PROTECTED] > Subject: AW: Where are the *.tlds ? > > > Where did you find that ? > > The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't > any struts-example.war or I'm blind what could be of course. > > Oliver > > -Ursprüngliche Nachricht- > Von: Rob Leland [mailto:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 23. Januar 2001 15:26 > An: [EMAIL PROTECTED] > Betreff: Re: Where are the *.tlds ? > > Once I unpacked the struts-example.war into tomcat > I found them in tomcat/webapps/example/WEB-INF > > [EMAIL PROTECTED] wrote: > > > Hi, > > > > where do I find the 'new' *.tld-files. > > I have downloaded the latest nightly build and try to migrate > the example, > > but I can't find the *.tlds mentioned for example in the logon.jsp: > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > Please help ! > > Oliver
Re: AW: Where are the *.tlds ?
In the binary distribution is under: jakarta-struts/lib [EMAIL PROTECTED] wrote: > Where did you find that ?
AW: Where are the *.tlds ?
Hi, it might seem that I'm a little bit stupid and Germans tend to be :-) but it isn't in the source distribution zip-file. I have unzipped it and found everthing but not the *.tlds..! Oliver -Ursprüngliche Nachricht- Von: Roger Kjensrud [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 23. Januar 2001 16:22 An: [EMAIL PROTECTED] Betreff: RE: Where are the *.tlds ? You have to unzip the file, and you'll see the .tlds and the other files. Roger > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 23, 2001 6:49 AM > To: [EMAIL PROTECTED] > Subject: AW: Where are the *.tlds ? > > > Where did you find that ? > > The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't > any struts-example.war or I'm blind what could be of course. > > Oliver > > -Ursprüngliche Nachricht- > Von: Rob Leland [mailto:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 23. Januar 2001 15:26 > An: [EMAIL PROTECTED] > Betreff: Re: Where are the *.tlds ? > > Once I unpacked the struts-example.war into tomcat > I found them in tomcat/webapps/example/WEB-INF > > [EMAIL PROTECTED] wrote: > > > Hi, > > > > where do I find the 'new' *.tld-files. > > I have downloaded the latest nightly build and try to migrate > the example, > > but I can't find the *.tlds mentioned for example in the logon.jsp: > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > Please help ! > > Oliver
Struts and Weblogic 6.0
Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All, I know there have been many threads over the last few months concerning Weblogic 5.1 and Struts and also WLS 6.0, particularly with respect to the example application. Could someone let me know what the situation is with this now? I.e. Is there an intention to make the example app work on WLS 6.0 and are there any aspects of struts that will not work on WLS 6.0 as a result of the serialization issues (and where are we with these too!). What is the situation with the change of the properties to use XML, properties files and database for storing internationalised strings? Any information would be gratefully received as we are currently evaluating using struts but Weblogic has already been chosen as the target platform. TIA, Nic - End of message text The principal place of business of PricewaterhouseCoopers and its associate partnerships is 1 Embankment Place, London WC2N 6NN where lists of the partners' names are available for inspection. All partners in the associate partnerships are authorised to conduct business as agents of, and all contracts for services to clients are with, PricewaterhouseCoopers. The UK firm of PricewaterhouseCoopers is authorised by the Institute of Chartered Accountants in England and Wales to carry on investment business. PricewaterhouseCoopers is a member of the world-wide PricewaterhouseCoopers organisation. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
RE: Struts and Weblogic 6.0
So there are issues with WL5.1 and struts then? I just subscribed to this group yesterday so I don't have the historical perspective... I would really like to be aware of any issues since I plan to deploy this app on WL5.1. What is the consensus? Are the mail messages archived somewhere so I can go back and take a look? Thanks, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 10:31 AM To: [EMAIL PROTECTED] Subject: Struts and Weblogic 6.0 Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All, I know there have been many threads over the last few months concerning Weblogic 5.1 and Struts and also WLS 6.0, particularly with respect to the example application. Could someone let me know what the situation is with this now? I.e. Is there an intention to make the example app work on WLS 6.0 and are there any aspects of struts that will not work on WLS 6.0 as a result of the serialization issues (and where are we with these too!). What is the situation with the change of the properties to use XML, properties files and database for storing internationalised strings? Any information would be gratefully received as we are currently evaluating using struts but Weblogic has already been chosen as the target platform. TIA, Nic - End of message text The principal place of business of PricewaterhouseCoopers and its associate partnerships is 1 Embankment Place, London WC2N 6NN where lists of the partners' names are available for inspection. All partners in the associate partnerships are authorised to conduct business as agents of, and all contracts for services to clients are with, PricewaterhouseCoopers. The UK firm of PricewaterhouseCoopers is authorised by the Institute of Chartered Accountants in England and Wales to carry on investment business. PricewaterhouseCoopers is a member of the world-wide PricewaterhouseCoopers organisation. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
GenericDataSource usage in non-servlet classes
Could somebody tell me how to use GenericDataSource in non-servlet classes? I could access the pool in action servlets using GenericDataSource ds = (GenericDataSource) servlet.findDataSource(null). But my my non-struts-related classes cannot access the pool. Thanks, Deping
RE: Struts and Weblogic 6.0
Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text The archives are available at: http://archive.covalent.net/jakarta/struts-user/ or http://www.mail-archive.com/struts-user@jakarta.apache.org/ HTH Nic - End of message text The principal place of business of PricewaterhouseCoopers and its associate partnerships is 1 Embankment Place, London WC2N 6NN where lists of the partners' names are available for inspection. All partners in the associate partnerships are authorised to conduct business as agents of, and all contracts for services to clients are with, PricewaterhouseCoopers. The UK firm of PricewaterhouseCoopers is authorised by the Institute of Chartered Accountants in England and Wales to carry on investment business. PricewaterhouseCoopers is a member of the world-wide PricewaterhouseCoopers organisation. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Re: Struts and Weblogic 6.0
Hi, I'm currently buzy to migrate an application working on Tomcat to Weblogic 6.0 The problems with the PropertyMessageRessource class is not yet solved, but Craig confirmed me some days ago that he was working on it. Anyway, even if that problem still exist, it is possible to use Struts with webLogic 6.0, by doing the small modifications in MessageRessourceFactory ( it must be Serializable and de setPrintWriter must initialize the printWriter to null ). Otherwise I didn't had others problems ( I don't really know about the datasource problem, since I'm using an EJB implementation). except for small context path problems. Thierry Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:31 PM Subject: Struts and Weblogic 6.0 Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All,I know there have been many threads over the last few months concerning Weblogic5.1 and Struts and also WLS 6.0, particularly with respect to the exampleapplication.Could someone let me know what the situation is with this now? I.e. Is there anintention to make the example app work on WLS 6.0 and are there any aspects ofstruts that will not work on WLS 6.0 as a result of the serialization issues(and where are we with these too!). What is the situation with the change of theproperties to use XML, properties files and database for storinginternationalised strings?Any information would be gratefully received as we are currently evaluatingusing struts but Weblogic has already been chosen as the target platform.TIA,Nic- End of message text The principal place of business of PricewaterhouseCoopers and its associatepartnerships is 1 Embankment Place, London WC2N 6NN where lists of thepartners' names are available for inspection. All partners in the associatepartnerships are authorised to conduct business as agents of, and allcontracts for services to clients are with, PricewaterhouseCoopers. The UKfirm of PricewaterhouseCoopers is authorised by the Institute of CharteredAccountants in England and Wales to carry on investment business.PricewaterhouseCoopers is a member of the world-widePricewaterhouseCoopers organisation.The information transmitted is intended only for the person or entity to whichit is addressed and may contain confidential and/or privileged material. Anyreview, retransmission, dissemination or other use of, or taking of any actionin reliance upon, this information by persons or entities other than theintended recipient is prohibited. If you received this in error, pleasecontact the sender and delete the material from any computer.
Re: nightly build
On Mon, 22 Jan 2001, Steven D. Wilkinson wrote: > Here is what the installation doc says: > > "XML Parser - Struts requires the presence of an XML parser that is compatible > with the Java API for XML Parsing (JAXP) specification, 1.0 or later. You can > download and install the JAXP reference implementation, which is required for > building the Struts source distribution. In Struts-based web applications, you > may replace the reference implementation classes with any other JAXP compliant > parser, such as Xerces. See detailed instructions related to the parser in the > instructions for building and installing Struts, below." Yeah, I saw this in the README file that came with the distribution. > "Xalan XSLT Processor - If you are building Struts from the source distribution, > you must download and install version 1_2_D01 (or later) of the Xalan XSLT > processor (which also includes the Xerces XML parser). This processor is used to > convert the Struts documentation from its internal XML-based format into the > HTML that is presented in the Struts documentation application. " This was not in the README file. > Here's the URL http://jakarta.apache.org/struts/installation.html#Prerequisites Next time, I'll check here first. > > > Also, I am just starting a project that I plan to use Struts 1.x. I > > plan on developing on Tomcat and eventually deploying on > > Tomcat/Apache. Does this sound reasonable? Should I plan on developing and > > deploying on Tomcat 3.2.1 or 4.x? I have mixed thoughts about deploying on > > a servlet engine (4.x) that's implementing on new (2.3) servlet API. Thanks > > in advance for your advice. > > I'm running on milestone 5 release of Tomcat4.0. I have been for a while. No > problems. I won't upgrade until official release comes out since I'm having no > problems. It works great. Don't let the fact that it implements the 2.3 API > stop you. It still supports 2.2 stuff. Not like the 2.1 to 2.2 change. > BTW, Tomcat4.0 is kewl! I really like the new logging. It's also very stable. Sounds like good advice. Thanks.
AW: AW: Where are the *.tlds ?
Thanks, I've found those in the binary distribution ! Oliver -Ursprüngliche Nachricht- Von: Rob Leland [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 23. Januar 2001 16:18 An: [EMAIL PROTECTED] Betreff: Re: AW: Where are the *.tlds ? In the binary distribution is under: jakarta-struts/lib [EMAIL PROTECTED] wrote: > Where did you find that ?
Struts example uses old Tag Library
The struts example for January 23 uses depreciated tags for error handling in login.jsp. This appears to be the last place the old tag library is used. -Rob
struts-config_1_0.dtd / Struts Version 1.0 (nightly build)
When I open the file 'struts-config.xml' with XMLSpy, there is a validation error in the struts_config_1_0.dtd (DTD/Schema error - element 'CDATA' is undefined). Can anybody help me... Thanks Greetings Oliver
struts opentool to JBuilder4
Hi all, Is anybody aware of any opentool that incorporates struts to JBuilder4 and allow the visual building of the webpage. Thanks, Sibon Barman SS8 Networks, Inc. Suite 500 495 March Road, Kanata, Ontario K2K 3G1 *: (613)592-2100 ext:3281 *: [EMAIL PROTECTED] winmail.dat
Re: Missing Something
"Craig R. McClanahan" wrote: >there are a *substantial* number of incompatible API changes. Is there a conversion guide out there? I poked around the site a little and didn't see one. Thanks, John
Re: GenericDataSource usage in non-servlet classes
Deping Chian wrote: > Could somebody tell me how to use GenericDataSource in non-servlet classes? > > I could access the pool in action servlets using GenericDataSource ds = > (GenericDataSource) > servlet.findDataSource(null). But my my non-struts-related classes cannot > access the pool. > If the non-servlet class is part of a Struts-based web application (for instance, a class called by your Action class), what I normally do is have the Action do the data source stuff, grab the connection, and then pass on the connection it received as a parameter to the appropriate method call. That way, the non-servlet class would only need to worry about connections, not data sources. In a completely non-Struts-based application, you will be responsible for creating and configuring your own GenericDataSource instance, and then passing it around or referencing it as a static variable, just like any other Java object. > > Thanks, > > Deping Craig McClanahan
Re: Where are the *.tlds ?
Hey, I just heard from the weblogic sales guy and it looks like we are on for tomorrow( wed ); time to be confirmed. He is scheduling a conf room and will reconfirm the time. Sound good? john Roger Kjensrud wrote: > You have to unzip the file, and you'll see the .tlds and the other files. > > Roger > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 23, 2001 6:49 AM > > To: [EMAIL PROTECTED] > > Subject: AW: Where are the *.tlds ? > > > > > > Where did you find that ? > > > > The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't > > any struts-example.war or I'm blind what could be of course. > > > > Oliver > > > > -Ursprüngliche Nachricht- > > Von: Rob Leland [mailto:[EMAIL PROTECTED]] > > Gesendet am: Dienstag, 23. Januar 2001 15:26 > > An: [EMAIL PROTECTED] > > Betreff: Re: Where are the *.tlds ? > > > > Once I unpacked the struts-example.war into tomcat > > I found them in tomcat/webapps/example/WEB-INF > > > > [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > > where do I find the 'new' *.tld-files. > > > I have downloaded the latest nightly build and try to migrate > > the example, > > > but I can't find the *.tlds mentioned for example in the logon.jsp: > > > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > > > Please help ! > > > Oliver
Re: Missing Something
John Raley wrote: > "Craig R. McClanahan" wrote: > > >there are a *substantial* number of incompatible API changes. > > Is there a conversion guide out there? I poked around the site a little > and didn't see one. > > Thanks, > John The "Release Notes (1.0)" document on the website is not up to date, but contains quite a few of the changes. In addition, Pierre Metras has reported extensively on his experiences converting on STRUTS-USER, which you can find in the archives. Craig McClanahan
Re: Getting Struts to work with XYZ
Timur Mehrvarz wrote: > > Well, one thing you might wish to note is that I'm the primary > > author of Struts, and my "day job" (what I do to make a living) > > is developing on Tomcat (in the version 4.x codebase). > > As you can imagine, Tomcat is my primary test platform > > for debugging Struts, so you can pretty much always count on > > those two playing nice together. > > Craig McClanahan > > Sure, but from your view, how are the rational chances for someone > to always catch up with the complete functionality (and behaviour) > of TC x.x (reference implementation) to make something like Struts > work solid on it? > > I get the impression this is a dead race. > Suppose XYZ puts a lot of effort in it and can get their product > to be 99.9% compatible with TC 3.2. Does that mean they can do it > again later (for 4.x)? I just don't think so. > (sounds as if I'm talking about OS/2) > Being 99.9% compatible with Tomcat x.x is not the point -- being 100% compatible with the specs is the point. Tomcat, like any piece of software, has its own bugs, but a very large amount of attention is placed on ensuring that Tomcat is as spec compliant as it can be. Other platform providers decide for themselves how important that is to them. Pretty much all the container providers are represented in the expert group that *defines* those specs, so they don't have a lot of excuse IMHO not implement the requirements. >From a Struts perspective, we must absolutely stay within conformance to the specs, and not rely on the quirks of any particular server platform. > > Would'nt it (for us in need of Struts) be much smarter to avoid > such problems and setup TC in front of our EJB-container? > This is certainly possible, but you pay the (performance) price of having to do your EJB calls across network sockets (even if the EJB server is on the same machine). An alternaitve strategy that a couple of the open source EJB projects are doing is embedding Tomcat *inside* their app server. > > By the way, how do you judge the advances of running SE and > EJB-container in the same VM compared to a) running on seperate > VM's and b) running on separate machines? > I can't express how glad I would be to see a discussion of that. > The primary advantages of same-VM are: * Performance should be better (intra-JVM calls versus cross-network), especially if the EJB stub compilers know they are generating code for this environment. * Easier for app server provider to implement J2EE requirements like sharing of security identities and propogation of transactions. Among the disadvantages of same-VM are: * Single point of failure (if the VM crashes, you lose everything) * Scalability (one mongo machine for everything versus being able to distribute and grow the front end or the back end independently as needed). Some app servers let you do it either way to deal with this issue. But it is difficult to get very specific about whether one approach is "better" than the other because it depends very much on the nature of your application, and the architecture of the app server you are considering. > > Thanks. > Timur Mervarz Craig McClanahan
Locale and struts:message tag
I'm trying to display russian characters using the tag against an existing resource bundle. The resource bundle is being used by a working Swing application. The strings are displayed correctly in my Struts app for english, but for some reason when I set my locale and language to russian in the Web client, the messages are comming up in like ??? ?? ? . However, iIt appears that the number of spaces and ?s coorrelate to the actual characters in the resource file. I'm new to localization issues so please forgive my ignorance, but I suspect this may have something to do with encoding? I do know that I am able to view another page that cotains russian (cyrllic) characters. I'm not sure what I'm missing. Any advice would be most appreciated. Thanks. ;) Scott
Re: AW: Where are the *.tlds ?
[EMAIL PROTECTED] wrote: > Hi, > > it might seem that I'm a little bit stupid and Germans tend to be :-) but it > isn't in the source distribution zip-file. I have unzipped it and found > everthing but not the *.tlds..! > You are correct -- the TLDs are *not* in the source distribution. That is because they are created, as part of the build process, from the files in the "src/doc" directory (such as "struts-bean.xml"). When you run the build, they are placed in the "lib" directory underneath your build destination. (The documentation pages that are in the Struts documentation application are generated from these same XML pages, just by using a different stylesheet, so the TLDs and docs are guaranteed to remain in synch at all times.) If you want to have these files without having to build Struts, you should grab the binary distribution instead, as others have described. > > Oliver > Craig > > -Ursprüngliche Nachricht- > Von: Roger Kjensrud [mailto:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 23. Januar 2001 16:22 > An: [EMAIL PROTECTED] > Betreff: RE: Where are the *.tlds ? > > You have to unzip the file, and you'll see the .tlds and the other files. > > Roger > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 23, 2001 6:49 AM > > To: [EMAIL PROTECTED] > > Subject: AW: Where are the *.tlds ? > > > > > > Where did you find that ? > > > > The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't > > any struts-example.war or I'm blind what could be of course. > > > > Oliver > > > > -Ursprüngliche Nachricht- > > Von: Rob Leland [mailto:[EMAIL PROTECTED]] > > Gesendet am: Dienstag, 23. Januar 2001 15:26 > > An: [EMAIL PROTECTED] > > Betreff: Re: Where are the *.tlds ? > > > > Once I unpacked the struts-example.war into tomcat > > I found them in tomcat/webapps/example/WEB-INF > > > > [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > > where do I find the 'new' *.tld-files. > > > I have downloaded the latest nightly build and try to migrate > > the example, > > > but I can't find the *.tlds mentioned for example in the logon.jsp: > > > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > > > Please help ! > > > Oliver
Re: Struts and Weblogic 6.0
[EMAIL PROTECTED] wrote: > Memo from Nic Hobbs of PricewaterhouseCoopers > > Start of message text > > Hi All, > > I know there have been many threads over the last few months concerning Weblogic > 5.1 and Struts and also WLS 6.0, particularly with respect to the example > application. > > Could someone let me know what the situation is with this now? I.e. Is there an > intention to make the example app work on WLS 6.0 and are there any aspects of > struts that will not work on WLS 6.0 as a result of the serialization issues > (and where are we with these too!). What is the situation with the change of the > properties to use XML, properties files and database for storing > internationalised strings? > > Any information would be gratefully received as we are currently evaluating > using struts but Weblogic has already been chosen as the target platform. > There is still at least one issue on my plate -- although MessageResources has been made Serializable, one of the instance variable classes it depends on (MessageResourcesFactory) is not. I need to ensure that things still work correctly by making the factory class Serializable as well. This will be fixed soon. Other than that, I am not personally aware of any issues with regards to running Struts based apps under the WebLogic 6.0 beta server. > > TIA, > > Nic > Craig McClanahan > > - End of message text > > The principal place of business of PricewaterhouseCoopers and its associate > partnerships is 1 Embankment Place, London WC2N 6NN where lists of the > partners' names are available for inspection. All partners in the associate > partnerships are authorised to conduct business as agents of, and all > contracts for services to clients are with, PricewaterhouseCoopers. The UK > firm of PricewaterhouseCoopers is authorised by the Institute of Chartered > Accountants in England and Wales to carry on investment business. > PricewaterhouseCoopers is a member of the world-wide > PricewaterhouseCoopers organisation. > > The information transmitted is intended only for the person or entity to which > it is addressed and may contain confidential and/or privileged material. Any > review, retransmission, dissemination or other use of, or taking of any action > in reliance upon, this information by persons or entities other than the > intended recipient is prohibited. If you received this in error, please > contact the sender and delete the material from any computer.
RE: Struts and Weblogic 6.0
After seeing the talk about the API changes, I just downloaded the latest nightly build (01-23 binary version) and tried to deploy the example application to WebLogic 5.1 but it failed miserably with all kinds of XML related errors. I also tried to run the example app on JRun, but this failed as well (but with minor errors when JSP compiling- related to passing a string into the setLocale(), setFilter() perhaps also due to XML parsing?) Anyway, Struts 0.5 works for me on WL5.1 now on both of my development PCs so I am going to have to use this for now since I don't have time to figure out how to make the 1.0 build work. Hopefully this is as simple as suggested in the previous emails (I looked back a few weeks at the various threads). Or better yet, maybe my problem is just with my XML parser (I am using jaxp1.0.1). If anyone has successfully deployed the Struts v1.0 example application on WL5.1 please let me know... I may experiment some more with this next week. Thanks, Bob -Original Message-From: Thierry Cools [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 10:58 AMTo: [EMAIL PROTECTED]Subject: Re: Struts and Weblogic 6.0 Hi, I'm currently buzy to migrate an application working on Tomcat to Weblogic 6.0 The problems with the PropertyMessageRessource class is not yet solved, but Craig confirmed me some days ago that he was working on it. Anyway, even if that problem still exist, it is possible to use Struts with webLogic 6.0, by doing the small modifications in MessageRessourceFactory ( it must be Serializable and de setPrintWriter must initialize the printWriter to null ). Otherwise I didn't had others problems ( I don't really know about the datasource problem, since I'm using an EJB implementation). except for small context path problems. Thierry Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:31 PM Subject: Struts and Weblogic 6.0 Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All,I know there have been many threads over the last few months concerning Weblogic5.1 and Struts and also WLS 6.0, particularly with respect to the exampleapplication.Could someone let me know what the situation is with this now? I.e. Is there anintention to make the example app work on WLS 6.0 and are there any aspects ofstruts that will not work on WLS 6.0 as a result of the serialization issues(and where are we with these too!). What is the situation with the change of theproperties to use XML, properties files and database for storinginternationalised strings?Any information would be gratefully received as we are currently evaluatingusing struts but Weblogic has already been chosen as the target platform.TIA,Nic- End of message text The principal place of business of PricewaterhouseCoopers and its associatepartnerships is 1 Embankment Place, London WC2N 6NN where lists of thepartners' names are available for inspection. All partners in the associatepartnerships are authorised to conduct business as agents of, and allcontracts for services to clients are with, PricewaterhouseCoopers. The UKfirm of PricewaterhouseCoopers is authorised by the Institute of CharteredAccountants in England and Wales to carry on investment business.PricewaterhouseCoopers is a member of the world-widePricewaterhouseCoopers organisation.The information transmitted is intended only for the person or entity to whichit is addressed and may contain confidential and/or privileged material. Anyreview, retransmission, dissemination or other use of, or taking of any actionin reliance upon, this information by persons or entities other than theintended recipient is prohibited. If you received this in error, pleasecontact the sender and delete the material from any computer.
Re: Struts example uses old Tag Library
Rob Leland wrote: > The struts example for January 23 uses depreciated > tags for error handling in login.jsp. This appears to be > the last place the old tag library is used. > > -Rob Thanks Rob ... I just fixed this one. Craig
RE: Where are the *.tlds ?
Sounds good! I hope you got a darn big conference room if all of us are invited! (200+ on the list??) Sorry for the off-topic post, but I couldn't resist. One of these days we're going to get a very interesting one of these emails from folks who don't realize that their replies go to the *list*, not the individual! -Original Message- From: john d ware [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 2:02 PM To: [EMAIL PROTECTED] Subject: Re: Where are the *.tlds ? Hey, I just heard from the weblogic sales guy and it looks like we are on for tomorrow( wed ); time to be confirmed. He is scheduling a conf room and will reconfirm the time. Sound good? john Roger Kjensrud wrote: > You have to unzip the file, and you'll see the .tlds and the other files. > > Roger > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 23, 2001 6:49 AM > > To: [EMAIL PROTECTED] > > Subject: AW: Where are the *.tlds ? > > > > > > Where did you find that ? > > > > The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't > > any struts-example.war or I'm blind what could be of course. > > > > Oliver > > > > -Ursprüngliche Nachricht- > > Von: Rob Leland [mailto:[EMAIL PROTECTED]] > > Gesendet am: Dienstag, 23. Januar 2001 15:26 > > An: [EMAIL PROTECTED] > > Betreff: Re: Where are the *.tlds ? > > > > Once I unpacked the struts-example.war into tomcat > > I found them in tomcat/webapps/example/WEB-INF > > > > [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > > where do I find the 'new' *.tld-files. > > > I have downloaded the latest nightly build and try to migrate > > the example, > > > but I can't find the *.tlds mentioned for example in the logon.jsp: > > > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > > > Please help ! > > > Oliver
set methods in ActionForm
I have two questions related with the set methods in any of the Form class, such as MyActionForm. 1. It seems to me that if we use a form with POST method, the corresponding "set" method will be called as it should be. What I want to confirm is that if I have the URL with query string, does the parameter specified overthere also cause the "set" to be called? For example, I have the URL: http://.../action?name=value And in the MyActionForm.java, I have the method: public void setName(String name) {name = value;} My experiment shows that when I clicked the URL, setName got called. 2. My second question is that I found the "set" method did not got called if the length of the "keyword" is 2. For example, in the above example, if "name" is "aT" and I have the "set" method, public void setAT(String aT) {aT = value;} The "setAT" does not got called. Thank you for the help, Zhiyong Li Platform Development iBiomatics LLC , a SAS Company (919) 653-2746 [EMAIL PROTECTED]
Re: Where are the *.tlds ?
Opps, Sorry about the stupid post. You are all very kind not to have flamed me to death. john john d ware wrote: > Hey, > I just heard from the weblogic sales guy and it looks like we are on for > tomorrow( wed ); time to be confirmed. He is scheduling a conf room and will > reconfirm the time. > Sound good? > > john > > Roger Kjensrud wrote: > > > You have to unzip the file, and you'll see the .tlds and the other files. > > > > Roger > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, January 23, 2001 6:49 AM > > > To: [EMAIL PROTECTED] > > > Subject: AW: Where are the *.tlds ? > > > > > > > > > Where did you find that ? > > > > > > The only one I have is: 'jakarta-struts-src-20010122.zip' and there isn't > > > any struts-example.war or I'm blind what could be of course. > > > > > > Oliver > > > > > > -Ursprüngliche Nachricht- > > > Von: Rob Leland [mailto:[EMAIL PROTECTED]] > > > Gesendet am: Dienstag, 23. Januar 2001 15:26 > > > An: [EMAIL PROTECTED] > > > Betreff: Re: Where are the *.tlds ? > > > > > > Once I unpacked the struts-example.war into tomcat > > > I found them in tomcat/webapps/example/WEB-INF > > > > > > [EMAIL PROTECTED] wrote: > > > > > > > Hi, > > > > > > > > where do I find the 'new' *.tld-files. > > > > I have downloaded the latest nightly build and try to migrate > > > the example, > > > > but I can't find the *.tlds mentioned for example in the logon.jsp: > > > > > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > > > > > Please help ! > > > > Oliver
Re: Where are the *.tlds ?
"Hines, Bill" wrote: > Sounds good! I hope you got a darn big conference room if all of us are > invited! (200+ on the list??) > I'm always pleasantly surprised when I look, and as of a few seconds ago there are 909 subscribers to STRUTS-USER (!!). There are 450 on STRUTS-DEV. > > Sorry for the off-topic post, but I couldn't resist. One of these days we're > going to get a very interesting one of these emails from folks who don't > realize that their replies go to the *list*, not the individual! > :-) Craig
Any way to do includes in struts-config.xml
Is there a way within struts-config.xml to include data from external xml's. This way struts-config.xml does not get large and so the mappings can be managed in separate files. Our app has many optional componets, and it would be nice to be able to just do includes in the struts-config of the pieces.
Off Topic:: How do detect if user is still using your web application?
Hi This is a fundamental problem facing all web applications. Due to the asynchronous nature of Web pages, it is almost impossible to establish if the user is still "using" the application. In the client/server world. the user session terminates/disconnects when they close the application. How do you implement this for web session? My application creates a new session when the users log on, connects them to their database and store their database connection handle to their session. The problem is that I do not know when to terminate their database connection. At present, my application terminates their connection when their session times out, when they click on the logout button (which usually never happens) or when the application gets shutdown. I would be interested hear how people handles this especially if STRUTS have any mechanism to cater for this type of situation. TIA Michael Mok www.webappcabaret.com/teatimej
RE: how to change the window target in a JSP file?
Title: Deploying Struts on iPlanet 4.1 - any successes? Does anyone know how to have dynamic control in a JSP file which browser window that JSP file itself should be displayed? For example, I have two browser window A and B and submit a form from one of the windows. After processing that request, I return foo.jsp. The difficulty is that I want to display foo.jsp in A if certain conditions are detected on the SERVER side, otherwsie, display foo.jsp in B. I tried the header window-target, which only worked in netscape. I am not talking about the target attribute of form or link etc because they are client-side control and can be only used to define the window target for the next JSp file. Thanks. -james
Re: Off Topic:: How do detect if user is still using your web application?
Michael Mok wrote: > Hi > > This is a fundamental problem facing all web applications. Due to the > asynchronous nature of Web pages, it is almost impossible to establish if > the user is still "using" the application. > > In the client/server world. the user session terminates/disconnects when > they close the application. > > How do you implement this for web session? My application creates a new > session when the users log on, connects them to their database and store > their database connection handle to their session. > > The problem is that I do not know when to terminate their database > connection. At present, my application terminates their connection when > their session times out, when they click on the logout button (which usually > never happens) or when the application gets shutdown. > > I would be interested hear how people handles this especially if STRUTS have > any mechanism to cater for this type of situation. > A different approach to this problem would be to use a connection pool rather than a connection per user. Besides scaling better (the number of connections determins only the number of simultaneous requests you can handle, not the number of logged-in users who might be looking at the previously displayed page), you don't have to worry about closing database connections until the application itself is shut down. > > TIA > > Michael Mok > www.webappcabaret.com/teatimej Craig McClanahan
Re: set methods in ActionForm
Zhiyong Li wrote: > I have two questions related with the set methods in any of the Form > class, such as MyActionForm. > > 1. It seems to me that if we use a form with POST method, the > corresponding "set" method will be called as it should be. What I want > to confirm is that if I have the URL with query string, does the > parameter specified overthere also cause the "set" to be called? For > example, I have the URL: http://.../action?name=value And in the > MyActionForm.java, I have the method: > > public void setName(String name) {name = value;} > I imagine you really meant: private String name; public void setName(String name) {this.name = name;} right? > > My experiment shows that when I clicked the URL, setName got called. > Yes -- the controller servlet sees that the field name (from the form) matches the property name (from the bean), once you apply the JavaBeans design patterns for method names. See the JavaBeans spec for more details. > > 2. My second question is that I found the "set" method did not got > called if the length of the "keyword" is 2. For example, in the above > example, if "name" is "aT" and I have the "set" method, > > public void setAT(String aT) {aT = value;} > > The "setAT" does not got called. > That's because this spelling does not match the required design pattern, so the controller servlet (actually, it is the Java introspector that is used to ask a bean class what it's property setter methods are) does not recognize this as a property. > > Thank you for the help, > Zhiyong Li > Platform Development > iBiomatics LLC , a SAS Company > (919) 653-2746 > [EMAIL PROTECTED] Craig McClanahan
RE: how to change the window target in a JSP file?
Title: Deploying Struts on iPlanet 4.1 - any successes? Hi James, You might need some heavy duty JavaScript for this one but here it goes. Make sure you have refernece to the window you want to optionally load within a hidden frame of window A (form submitting window). When you submit the page, pull back the default page to display in window A and if you need to populate window B then store the contents of window B in Javascript in window A. When the default page loads in window A use the window reference in the hidden frame of window A to dynamically rewrite the contents of window B using docuemnt.open(), document.write ("HTML to Populate other window that you got from foo.jsp"), and document.close() to commit the changes. Good Luck, Abraham -Original Message-From: GU,JAMES (HP-Corvallis,ex1) [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 5:11 PMTo: '[EMAIL PROTECTED]'Subject: RE: how to change the window target in a JSP file? Does anyone know how to have dynamic control in a JSP file which browser window that JSP file itself should be displayed? For example, I have two browser window A and B and submit a form from one of the windows. After processing that request, I return foo.jsp. The difficulty is that I want to display foo.jsp in A if certain conditions are detected on the SERVER side, otherwsie, display foo.jsp in B. I tried the header window-target, which only worked in netscape. I am not talking about the target attribute of form or link etc because they are client-side control and can be only used to define the window target for the next JSp file. Thanks. -james
Deploy WAR file with Weblogic 510 sp8 on Solaris 7
I am able to deploy my WAR file with an un-jarred fashion. However, I wasn't able to deploy my WAR file as it is. My WAR file consists of a set of gif, xml, jsp, jar, css, so, and js files. Under WEB-INF\lib folder, it contains a set of jar files. Under WEB-INF\lib\solaris, it contains a set of library files. When I deploy the WAR file, I expected to see the set of .jar and .so files under WEB-INF\_tmp_war_abc\lib and WEB-INF\_tmp_war_abc\lib\solaris folder (where abc is my context name). Instead, I only see the .jar files under WEB-INF\_tmp_war_abc. In a result, some of my servlets and functions could not be found. Any idea will be appreciated. Thanks, Teresa
Re: Deploy WAR file with Weblogic 510 sp8 on Solaris 7
"Yu, Teresa" wrote: I am able to deploy my WAR file with an un-jarred fashion. However, I wasn't able to deploy my WAR file as it is. My WAR file consists of a set of gif, xml, jsp, jar, css, so, and js files. Under WEB-INF\lib folder, it contains a set of jar files. Under WEB-INF\lib\solaris, it contains a set of library files. When I deploy the WAR file, I expected to see the set of .jar and .so files under WEB-INF\_tmp_war_abc\lib and WEB-INF\_tmp_war_abc\lib\solaris folder (where abc is my context name). Instead, I only see the .jar files under WEB-INF\_tmp_war_abc. In a result, some of my servlets and functions could not be found.Any idea will be appreciated.Thanks,Teresa I do not know if this will solve your problem, but putting JAR files under "WEB-INF/lib/solaris" violates the servlet spec standards for web application archives -- all of the JAR files need to be under "WEB-INF/lib". Craig McClanahan
RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7
I have all of JAR files under "WEB-INF/lib". Only the SO files are under "WEB-INF/lib/solaris". Will this causes any problem? Teresa -Original Message-From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 6:29 PMTo: [EMAIL PROTECTED]Subject: Re: Deploy WAR file with Weblogic 510 sp8 on Solaris 7"Yu, Teresa" wrote: I am able to deploy my WAR file with an un-jarred fashion. However, I wasn't able to deploy my WAR file as it is. My WAR file consists of a set of gif, xml, jsp, jar, css, so, and js files. Under WEB-INF\lib folder, it contains a set of jar files. Under WEB-INF\lib\solaris, it contains a set of library files. When I deploy the WAR file, I expected to see the set of .jar and .so files under WEB-INF\_tmp_war_abc\lib and WEB-INF\_tmp_war_abc\lib\solaris folder (where abc is my context name). Instead, I only see the .jar files under WEB-INF\_tmp_war_abc. In a result, some of my servlets and functions could not be found.Any idea will be appreciated.Thanks,Teresa I do not know if this will solve your problem, but putting JAR files under "WEB-INF/lib/solaris" violates the servlet spec standards for web application archives -- all of the JAR files need to be under "WEB-INF/lib". Craig McClanahan
RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7
Teresa Are you referring to SO files as native runtime libraries for Solaries? Michael Mok Subject: RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7 I have all of JAR files under "WEB-INF/lib". Only the SO files are under "WEB-INF/lib/solaris". Will this causes any problem? Teresa -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 6:29 PM To: [EMAIL PROTECTED] Subject: Re: Deploy WAR file with Weblogic 510 sp8 on Solaris 7 "Yu, Teresa" wrote: I am able to deploy my WAR file with an un-jarred fashion. However, I wasn't able to deploy my WAR file as it is. My WAR file consists of a set of gif, xml, jsp, jar, css, so, and js files. Under WEB-INF\lib folder, it contains a set of jar files. Under WEB-INF\lib\solaris, it contains a set of library files. When I deploy the WAR file, I expected to see the set of .jar and .so files under WEB-INF\_tmp_war_abc\lib and WEB-INF\_tmp_war_abc\lib\solaris folder (where abc is my context name). Instead, I only see the .jar files under WEB-INF\_tmp_war_abc. In a result, some of my servlets and functions could not be found.Any idea will be appreciated.Thanks,Teresa I do not know if this will solve your problem, but putting JAR files under "WEB-INF/lib/solaris" violates the servlet spec standards for web application archives -- all of the JAR files need to be under "WEB-INF/lib". Craig McClanahan
RE: Struts and Weblogic 6.0
In regards to WL6, although this may not fix anyones particular problems, we noticed one thing with the beta version we have. Anyting in the /WEB-INF/lib dir does not automatically become part of the classpath. I assume this is (or was) a bug with WL6. It works fine in Orion App Server. As per the spec, the WEB-INF/lib and WEB-INF/classes dirs get included as part of the classpath automatically, as does the vendor specific /lib dir (if they have it) and I think the /jdk-dir/ext does too? -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 12:34 PMTo: [EMAIL PROTECTED]Subject: RE: Struts and Weblogic 6.0 After seeing the talk about the API changes, I just downloaded the latest nightly build (01-23 binary version) and tried to deploy the example application to WebLogic 5.1 but it failed miserably with all kinds of XML related errors. I also tried to run the example app on JRun, but this failed as well (but with minor errors when JSP compiling- related to passing a string into the setLocale(), setFilter() perhaps also due to XML parsing?) Anyway, Struts 0.5 works for me on WL5.1 now on both of my development PCs so I am going to have to use this for now since I don't have time to figure out how to make the 1.0 build work. Hopefully this is as simple as suggested in the previous emails (I looked back a few weeks at the various threads). Or better yet, maybe my problem is just with my XML parser (I am using jaxp1.0.1). If anyone has successfully deployed the Struts v1.0 example application on WL5.1 please let me know... I may experiment some more with this next week. Thanks, Bob -Original Message-From: Thierry Cools [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 10:58 AMTo: [EMAIL PROTECTED]Subject: Re: Struts and Weblogic 6.0 Hi, I'm currently buzy to migrate an application working on Tomcat to Weblogic 6.0 The problems with the PropertyMessageRessource class is not yet solved, but Craig confirmed me some days ago that he was working on it. Anyway, even if that problem still exist, it is possible to use Struts with webLogic 6.0, by doing the small modifications in MessageRessourceFactory ( it must be Serializable and de setPrintWriter must initialize the printWriter to null ). Otherwise I didn't had others problems ( I don't really know about the datasource problem, since I'm using an EJB implementation). except for small context path problems. Thierry Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:31 PM Subject: Struts and Weblogic 6.0 Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All,I know there have been many threads over the last few months concerning Weblogic5.1 and Struts and also WLS 6.0, particularly with respect to the exampleapplication.Could someone let me know what the situation is with this now? I.e. Is there anintention to make the example app work on WLS 6.0 and are there any aspects ofstruts that will not work on WLS 6.0 as a result of the serialization issues(and where are we with these too!). What is the situation with the change of theproperties to use XML, properties files and database for storinginternationalised strings?Any information would be gratefully received as we are currently evaluatingusing struts but Weblogic has already been chosen as the target platform.TIA,Nic- End of message text The principal place of business of PricewaterhouseCoopers and its associatepartnerships is 1 Embankment Place, London WC2N 6NN where lists of thepartners' names are available for inspection. All partners in the associatepartnerships are authorised to conduct business as agents of, and allcontracts for services to clients are with, PricewaterhouseCoopers. The UKfirm of PricewaterhouseCoopers is authorised by the Institute of CharteredAccountants in England and Wales to carry on investment business.PricewaterhouseCoopers is a member of the world-widePricewaterhouseCoopers organisation.The information transmitted is intended only for the person or entity to whichit is addressed and may contain confidential and/or privileged material. Anyreview, retransmission, dissemination
RE: Off Topic:: How do detect if user is still using your web application?
First of all..NEVER I repeate NEVER store a database connection handle in the HttpSession. This is a VERY bad thing to do. If your site grows..you can forget about scalability. You'll be paying out the rear for licenses if you have 1000's of users hit your site. At any rate, the first thing you need to do is institue a connection pool for database connections. Second, have your action class grab a connection at the start from this pool, then return it at the end. Also, make sure you wrap everything up in a try..catch block and catch Exception or better, Throwable and make sure you ALWAYS return the connection (infact..put a finally{} block in that always returns the connection. Now, once that is done, here is the only thought I have on making sure a session is terminated if they are done. Now, write a javascript routine that submits a form or href link (or use an applet on your site and have the javascript call the applet which then calls through RMI or something to the server) to free any resources and invalidate the session. I am not sure how feasible this is. The only way I would really do this is to have your entire site wrapped up into a two frame setup, with the first frame being a hidden one with no size to it. Load an html page that loads in the javascript that does the above..so that if they leave your site all together, that little routine is called which will then close their session info on the server. However, if you can't use frames in this manner, I am not quite sure the above will work. The main reason is..each and every time they go off of one page..even if they are going to another page on your site, that javascript routine will be fired. I suppose you can have all links and for submissions set a flag if they are clicked that is then checked by that routine. If the flag is set, it jumps to the link clicked. If the flag is not set, it submits the post to close the session (indicating they are leaving your site). Let us know what you come up with. > -Original Message- > From: Michael Mok [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 23, 2001 3:50 PM > To: [EMAIL PROTECTED] > Subject: Off Topic:: How do detect if user is still using your web > application? > > > Hi > > This is a fundamental problem facing all web applications. Due to the > asynchronous nature of Web pages, it is almost impossible to > establish if > the user is still "using" the application. > > In the client/server world. the user session > terminates/disconnects when > they close the application. > > How do you implement this for web session? My application > creates a new > session when the users log on, connects them to their > database and store > their database connection handle to their session. > > The problem is that I do not know when to terminate their database > connection. At present, my application terminates their > connection when > their session times out, when they click on the logout button > (which usually > never happens) or when the application gets shutdown. > > I would be interested hear how people handles this especially > if STRUTS have > any mechanism to cater for this type of situation. > > TIA > > Michael Mok > www.webappcabaret.com/teatimej >
RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7
I have the same problem with WL5.1 well sort of. In my case, WL only deploys *.class files, so struts failed because it needed the applicationResources.properties and it could not be found. In your case, perhaps WL is ignoring the SO files. This seems to be an issue with WL, as there are posts on newsgroups.bea.com related to this but I could not find a solution... I even posted this to the install group but no reply :( I also find deploying to WL particularly annoying (compared to JRun or Tomcat) because it does not add WEB-INF/lib or WEB-INF/classes to the classpath- you have to do this manually. Apparently it does automatically add the path for *.wars, but then then it only deploys *.class files... argh!!! -Bob -Original Message-From: Yu, Teresa [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 9:31 PMTo: '[EMAIL PROTECTED]'Subject: RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7 I have all of JAR files under "WEB-INF/lib". Only the SO files are under "WEB-INF/lib/solaris". Will this causes any problem? Teresa -Original Message-From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 6:29 PMTo: [EMAIL PROTECTED]Subject: Re: Deploy WAR file with Weblogic 510 sp8 on Solaris 7"Yu, Teresa" wrote: I am able to deploy my WAR file with an un-jarred fashion. However, I wasn't able to deploy my WAR file as it is. My WAR file consists of a set of gif, xml, jsp, jar, css, so, and js files. Under WEB-INF\lib folder, it contains a set of jar files. Under WEB-INF\lib\solaris, it contains a set of library files. When I deploy the WAR file, I expected to see the set of .jar and .so files under WEB-INF\_tmp_war_abc\lib and WEB-INF\_tmp_war_abc\lib\solaris folder (where abc is my context name). Instead, I only see the .jar files under WEB-INF\_tmp_war_abc. In a result, some of my servlets and functions could not be found.Any idea will be appreciated.Thanks,Teresa I do not know if this will solve your problem, but putting JAR files under "WEB-INF/lib/solaris" violates the servlet spec standards for web application archives -- all of the JAR files need to be under "WEB-INF/lib". Craig McClanahan
RE: Struts and Weblogic 6.0
This is the functionality in 5.1 as well... must be a WL "feature" :) The classpath does seem to get included for a *.war, but then there are other issues (see my other post). Do you have Struts 1.0 working on WL6? If so, then what is your configuration? i.e. what XML parser do you use? can you do a wlconfig > config.txt and attach the file (so I can see the contents and order of your WL classpath)? Thanks!!! -Bob -Original Message-From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 10:01 PMTo: '[EMAIL PROTECTED]'Subject: RE: Struts and Weblogic 6.0 In regards to WL6, although this may not fix anyones particular problems, we noticed one thing with the beta version we have. Anyting in the /WEB-INF/lib dir does not automatically become part of the classpath. I assume this is (or was) a bug with WL6. It works fine in Orion App Server. As per the spec, the WEB-INF/lib and WEB-INF/classes dirs get included as part of the classpath automatically, as does the vendor specific /lib dir (if they have it) and I think the /jdk-dir/ext does too? -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 12:34 PMTo: [EMAIL PROTECTED]Subject: RE: Struts and Weblogic 6.0 After seeing the talk about the API changes, I just downloaded the latest nightly build (01-23 binary version) and tried to deploy the example application to WebLogic 5.1 but it failed miserably with all kinds of XML related errors. I also tried to run the example app on JRun, but this failed as well (but with minor errors when JSP compiling- related to passing a string into the setLocale(), setFilter() perhaps also due to XML parsing?) Anyway, Struts 0.5 works for me on WL5.1 now on both of my development PCs so I am going to have to use this for now since I don't have time to figure out how to make the 1.0 build work. Hopefully this is as simple as suggested in the previous emails (I looked back a few weeks at the various threads). Or better yet, maybe my problem is just with my XML parser (I am using jaxp1.0.1). If anyone has successfully deployed the Struts v1.0 example application on WL5.1 please let me know... I may experiment some more with this next week. Thanks, Bob -Original Message-From: Thierry Cools [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 10:58 AMTo: [EMAIL PROTECTED]Subject: Re: Struts and Weblogic 6.0 Hi, I'm currently buzy to migrate an application working on Tomcat to Weblogic 6.0 The problems with the PropertyMessageRessource class is not yet solved, but Craig confirmed me some days ago that he was working on it. Anyway, even if that problem still exist, it is possible to use Struts with webLogic 6.0, by doing the small modifications in MessageRessourceFactory ( it must be Serializable and de setPrintWriter must initialize the printWriter to null ). Otherwise I didn't had others problems ( I don't really know about the datasource problem, since I'm using an EJB implementation). except for small context path problems. Thierry Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:31 PM Subject: Struts and Weblogic 6.0 Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All,I know there have been many threads over the last few months concerning Weblogic5.1 and Struts and also WLS 6.0, particularly with respect to the exampleapplication.Could someone let me know what the situation is with this now? I.e. Is there anintention to make the example app work on WLS 6.0 and are there any aspects ofstruts that will not work on WLS 6.0 as a result of the serialization issues(and where are we with these too!). What is the situation with the change of theproperties to use XML, properties files and database for storinginternationalised strings?Any information would be gratefully received as we are currently evaluatingusing struts but Weblogic has already been chosen as the target platform.TIA,Nic- End of message text The principal place of business of PricewaterhouseCoopers and its associatepartnerships is 1
Re: Any way to do includes in struts-config.xml
This came up on the list just yesterday. As Craig mentioned at the time, a solution was posted a while ago on the ant-user mailing list. Here's a link to the Ant FAQ item: http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/acti on/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752 Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Knabe, Rusty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 23, 2001 2:52 PM Subject: Any way to do includes in struts-config.xml > Is there a way within struts-config.xml to include data from external xml's. > This way struts-config.xml does not get large and so the mappings can be > managed in separate files. Our app has many optional componets, and it would > be nice to be able to just do includes in the struts-config of the pieces.
Re: Struts and Weblogic 6.0
Hi, There is already a XML parser included in the weblogic.jar file, so you don't have to add any other library in it. Personally, I didn't have to change anything in the classpath to make it work, the only thing I had to do is to copy the the struts. jar file under the WEB-INF/lib directory in my War file. One last thing, is, don't put the struts library in your classpath, it gave me a lot of problems. Thierry Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 4:41 AM Subject: RE: Struts and Weblogic 6.0 This is the functionality in 5.1 as well... must be a WL "feature" :) The classpath does seem to get included for a *.war, but then there are other issues (see my other post). Do you have Struts 1.0 working on WL6? If so, then what is your configuration? i.e. what XML parser do you use? can you do a wlconfig > config.txt and attach the file (so I can see the contents and order of your WL classpath)? Thanks!!! -Bob -Original Message-From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 10:01 PMTo: '[EMAIL PROTECTED]'Subject: RE: Struts and Weblogic 6.0 In regards to WL6, although this may not fix anyones particular problems, we noticed one thing with the beta version we have. Anyting in the /WEB-INF/lib dir does not automatically become part of the classpath. I assume this is (or was) a bug with WL6. It works fine in Orion App Server. As per the spec, the WEB-INF/lib and WEB-INF/classes dirs get included as part of the classpath automatically, as does the vendor specific /lib dir (if they have it) and I think the /jdk-dir/ext does too? -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 12:34 PMTo: [EMAIL PROTECTED]Subject: RE: Struts and Weblogic 6.0 After seeing the talk about the API changes, I just downloaded the latest nightly build (01-23 binary version) and tried to deploy the example application to WebLogic 5.1 but it failed miserably with all kinds of XML related errors. I also tried to run the example app on JRun, but this failed as well (but with minor errors when JSP compiling- related to passing a string into the setLocale(), setFilter() perhaps also due to XML parsing?) Anyway, Struts 0.5 works for me on WL5.1 now on both of my development PCs so I am going to have to use this for now since I don't have time to figure out how to make the 1.0 build work. Hopefully this is as simple as suggested in the previous emails (I looked back a few weeks at the various threads). Or better yet, maybe my problem is just with my XML parser (I am using jaxp1.0.1). If anyone has successfully deployed the Struts v1.0 example application on WL5.1 please let me know... I may experiment some more with this next week. Thanks, Bob -Original Message-From: Thierry Cools [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 10:58 AMTo: [EMAIL PROTECTED]Subject: Re: Struts and Weblogic 6.0 Hi, I'm currently buzy to migrate an application working on Tomcat to Weblogic 6.0 The problems with the PropertyMessageRessource class is not yet solved, but Craig confirmed me some days ago that he was working on it. Anyway, even if that problem still exist, it is possible to use Struts with webLogic 6.0, by doing the small modifications in MessageRessourceFactory ( it must be Serializable and de setPrintWriter must initialize the printWriter to null ). Otherwise I didn't had others problems ( I don't really know about the datasource problem, since I'm using an EJB implementation). except for small context path problems. Thierry Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:31 PM Subject: Struts and Weblogic 6.0 Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Hi All,I know there have been
HtmlTag - locale
Hi, I admit, I am a STRUTS-beginner and anyway not familiar with mailing lists :-), but is it correct that in the HtmlTag the attribute locale is a boolean ? My IPLANET6.0-Jsp-Engine tries to set a STRING and fails compiling my JSP-page. I thought every attribute in a Tag should be a STRING !? Oliver HtmlTag: protected boolean locale = false; public boolean getLocale() { return (locale); } public void setLocale(boolean locale) { this.locale = locale; } My JSP
logic:iterate and form controls, revisited
Hi all, I recently ran in to a need to perform a task that's been discussed on this list at least a couple of times since I've subscribed. Unfortunately, an actual way to make it work was only described once, and that approach was unappealing. The problem is that I would like to construct a JSP with an HTML FORM that has a series of similar lines, using logic:iterate. The fundamental problem is that the various struts-form tags use the same name for all instances of a control in a given "column". This means that struts can't automatically shove the posted data back into the form bean for you (at least correctly!). The one approach to solving this that I saw (over the last two months or so) was by Chandan Kulkarni. If you want to go back and check it out, here are the headers: Date: Fri, 5 Jan 2001 07:44:11 -0500 To: <[EMAIL PROTECTED]>, "Mishkin Berteig" <[EMAIL PROTECTED]> From: "Chandan Kulkarni" <[EMAIL PROTECTED]> Cc: "Chandan Kulkarni" <[EMAIL PROTECTED]> Subject: Re: Help: and form input fields Message-ID: <002f01c07715$3520bb50$[EMAIL PROTECTED]> This approach involves: (a) using raw HTML form tags, e.g., instead of . (b) constructing the value of the "name" and "value" attributes for the HTML form tags using JSP expression substitution - <%= %>. (c) Changing public static void populate(Object, String, String, HttpServletRequest) in BeanUtils.java to comment out the code which discards any subscript expression that might be present in the name part of a posted name/value pair. (d) Inserting code into public static void populate(Object, HashTable) in BeanUtils.java to look for an indexed or nested reference in the property name, and using PropertyUtils.setProperty to handle the setting in this case. Is there no way to accomplish this without all this monkey motion? I would very much like to find a solution that doesn't require me to modify code in struts.jar, and keep those changes up to date in the face of future changes to struts. The fact that the code modified in (c) *has* a check for a subscripted reference indicates to me that *someone* was thinking along these lines in the past. Was the original intent to do this in a different way? What am I breaking by commenting out this code now? Better yet, does anyone have a *better* alternative? I'm not at all averse to writing some tags to hide complexity at that point, or using a derived ActionServlet class (I already am in fact, to load some initialization parameters), but I'd really like to avoid modifying struts itself! Am I being unreasonable? Are there really so few people out there that want such an ability that no one has worked out a better way to do this? -- Erik