Re: Antwort: RE: Visual Age 3.5.3 Tomcat with Struts

2001-05-01 Thread Johan Compagner
Here you have 2 versions of Tomcat 3.2.2b3 Test Environments one one stripped version: www.techfo.nl/jcom/tomcatstripped.zip and full src version: www.techfo.nl/jcom/tomcatfullsrc.zip (for the full src you need JAXP/Parser also in the workspace) Johan Compagner - Original Message -

RE: Shopping Cart Project

2001-05-01 Thread Sankha Das
Hi Joseph, I do agree with you. I am interested to do the project. rgds Sankah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: Shopping Cart Project Hi guys ! Well. Ok. So there's no

RE: Shopping Cart Project

2001-05-01 Thread Sridhar H C
Hi Joe, Yes I am interested to work on this. All these days I am working with MVC model, now I want to do some thing where I can get the maximum benefit of struts, I think this will be a good opportunity for me. Rgds, Sridhar Hi guys ! Well. Ok. So there's no Shopping Cart example

jsp:include and actions

2001-05-01 Thread Nikolaus Rumm
Hello, I am including several jsp-pages and an action (resulting in a forward) using jsp:include. Everything works fine for the jsps, but the inclusion of the action-url does not work. jsp:include page=../participant/logon.jsp flush=true / jsp:include page=/html/meeting/showMeetingList.do

RE: Reducing the burden on ActionServlet.

2001-05-01 Thread Tewathia, Atul
As far as I can recall the struts-config.xml file is loaded and parsed in the initMappings() method of ActionServlet. Can we really have more than oneconfiguration file in our application. -Original Message-From: Jason Chaffee [mailto:[EMAIL PROTECTED]]Sent: Saturday, April 28,

Velocity forum demo (blab) port to Struts

2001-05-01 Thread boB Rudis
Greetings, Coming from a straight JSP/Servlet environment, I've been debating whether to start using Struts or Velocity (they seem to compete) as a foundation for true MVC+ development. I'm not keen on re-writing the wheel and would rather spend the limited time I have on back-end foundational

html:select formatting off in Netscape

2001-05-01 Thread Firmin David
Hi all, Has anyone else had trouble applying the styleClass attribute to tags like html:select? On trying html:select using this attribute, I found it worked fine in IE, but failed to show me a select box at all through Netscape 4.7. Instead I got what looked like a text input field and it

RE: Shopping Cart Project

2001-05-01 Thread Galon, Mary-Jay
JOE: Please include me on all correspondence regarding this project. -Original Message- From: Sridhar H C [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 6:01 AM To: '[EMAIL PROTECTED]' Subject: RE: Shopping Cart Project Hi Joe, Yes I am interested to work on this. All these

Valid XML from struts form taglib?

2001-05-01 Thread Jon Brisbin
How hard would it be to maybe subclass the struts form taglib to output valid xml blocks, with tagnames coming from the application resources properties file? I would like to use some kind of taglib helper to generate form fields and the optional input box attributes in XML. I have an XSLT

Re: Velocity forum demo (blab) port to Struts

2001-05-01 Thread boB Rudis
Thx, geir (that was quick!) Struts and Velocity aren't comparable this way, because Velocity is simply a template engine that can be used to provide the view layer for a web app. Struts is a framework that uses JSP for the view layer. I just want to make the distinction clear - I am not

RE: Shopping Cart Project

2001-05-01 Thread Fei Xie
Hi Joe, I am interested in working on this project. I am fairly new to Struts, and I am currently working on a mini Struts project. It would be a great opportunity for me to get more hand-on experience. -Fei Xie From: Galon, Mary-Jay [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To:

Re: Velocity forum demo (blab) port to Struts

2001-05-01 Thread Geir Magnusson Jr.
boB Rudis wrote: Thx, geir (that was quick!) Struts and Velocity aren't comparable this way, because Velocity is simply a template engine that can be used to provide the view layer for a web app. Struts is a framework that uses JSP for the view layer. I just want to make the

RE: Shopping Cart Project

2001-05-01 Thread Matthew Fowkes
Sounds great - count me in too! -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 1:36 AM To: [EMAIL PROTECTED] Subject: Shopping Cart Project Hi guys ! Well. Ok. So there's no Shopping Cart example utilising struts out

RE: Returning from a form page

2001-05-01 Thread James Howe
Thanks for the tip. I had considered doing something like that but somehow convinced myself that it probably wouldn't work before even giving it a try. At 02:42 PM 4/30/2001 -0700, you wrote: If you hard code a parameter into the href or page attribute of html:link, it is smart enough to know

Re: wizard style example, anywhere?

2001-05-01 Thread struts
one of the first things the ActionServlet does after identifying/creating a FormBean instance is calling FormBean.reset() on it. you'll need to add a similar switch() or conditional in your reset() method so all your fields aren't initialized. not sure about 2. i think they were just checking

Re: html:message tag

2001-05-01 Thread Sue Deng
Thanks, Jason. But when I use bean:message, I got "Cannot find message resources under key org.apache.struts.action.MESSAGE" error. Thanks, -Sue Jason Chaffee wrote: it should be bean:message -Original Message- From: Sue Deng [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 5:26

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-01 Thread Nick Chalko
When I try to start my struts application (which works under VAJ 3.5 and TomCat 3.1) I get avax.servlet.ServletException: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl which is strange because I have jaxp in a projects and both WTE and the webapp classpath point

2 Problems

2001-05-01 Thread yogesh kapoor
Hi All, I am using struts framework(release 0.5) for developing my web application(with Jrun-3.0 and Netscape Enterprise Server-3.6). I am facing 2 problems and hape that some one out there would definetly have answers to them.here are they. 1)Just like we use actionbase and actionform beans

RE: Iterate certain number of times?

2001-05-01 Thread dhay
Does anyone know if any of the other taglibs provides a for loop? Dave [EMAIL PROTECTED] on 04/30/2001 01:27:07 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: Iterate certain number of times? Hey that's pretty cool.

RE: Reducing the burden on ActionServlet.

2001-05-01 Thread Jason Chaffee
Yes, you can, but you will need to extend the ActionServlet to load each config file. -Original Message-From: Tewathia, Atul [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 6:51 AMTo: [EMAIL PROTECTED]Subject: RE: Reducing the burden on ActionServlet. As far as

RE: wizard style example, anywhere?

2001-05-01 Thread Jason Chaffee
The form bean will call it's reset() method for each page. Therefore, change your implementation of the reset() method to not remove your data. -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 9:11 AMTo: [EMAIL PROTECTED]Cc: [EMAIL

RE: Iterate certain number of times?

2001-05-01 Thread shunhui zhu
Hi, I have a similar problem. I'd like to use the iterate tag to present a list of objects in a tabular form, but I'd like to specify how many per row. Is there an easy way to do that using only the tags? Thanks. Shunhui --- [EMAIL PROTECTED] wrote: Does anyone know if any of the other

RE: html:message tag

2001-05-01 Thread Jason Chaffee
Have you made any changes to the code? The ActionServlet should be creating the resource bundle and storing in the servlet context using this key. What app server are you using? There could be a bug in how it stores objects in the servlet context, thus the ActionServlet can't find

Struts::WAP ... sorta

2001-05-01 Thread Anthony Martin
I got WAP to work using Struts. I couldn't find any WML taglibs, so I just use HTML comments so I could still benefited from the standard tags like bean:write and bean:message. Example: %@ page language=java contentType=text/vnd.wap.wml %%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %%@

jsp include exception when using struts on weblogic 6

2001-05-01 Thread Nanduri, Amarnath
Hi Guys, This question is irrelevant to struts and more to do with jsp's. My sincerest apologies if i have offended anyone I am getting a nasty exception when i try to do the following... I am basically including an 'include' in an 'include'. Basically page1.jsp includes a page2.jsp.

RE: Struts::WAP ... sorta

2001-05-01 Thread Nanduri, Amarnath
Excellent Anthony. Please keep me updated on any developments that you might have done in the future. In my current project (we are using struts 1.0) we might be wap-enabling them and i am really interested in minimizing the headache associated with development for WAP. Thanks a lot. My email

What is the suggested style for including maxlength size parameters in a form

2001-05-01 Thread Jeff Trent
For example, html:text property="firstName" size="%= com.mydomain.personform.firstNameSize %" maxlength="%= com.mydomain.personform.firstNameMaxLength %"/ I find this style to be somewhat objectionable. Is there a better way?

Can not read i18n properties file

2001-05-01 Thread Sean Pau
I test creating resource properties file for Japanese language. I use Windows Notepad and edit resources_ja.properties and save it under UTF-8 and Unicode format. Struts could display when the file is in UTF-8 format but the text came out rubbish. When the file is in Unicode format, Struts is not

Re: Can not read i18n properties file

2001-05-01 Thread shunhui zhu
Pau, I did a similar test for a chinese version with resource_zh.properties. If I change my browser language preferences (in IE), I do get the chinese version, although to display it correctly, I needed to select chinese encoding in IE's view menu. My guess is that the response header is not

RE: html:message tag

2001-05-01 Thread Jason Chaffee
I haven't used Tomcat, but I believe quite a few people are using it with Struts without any problems. Can you give me more precise details? What does your deployment descriptor look like? Is your action class do anything with the servlet, etc. Also, what appears on the console when this

RE: Can not read i18n properties file

2001-05-01 Thread Jason Chaffee
Title: RE: Can not read i18n properties file That would be my guess as well. Take a look at the html source that is being produced and see if there is a charset header, if there isn't copy the source to a static file and add a charset header and try to load it in IE, this should give you your

RE: 2 Problems

2001-05-01 Thread Abraham Kang
Hi Yogesh, It looks like you need the TOKEN functionality. I don't know if the token functionality is available in 0.5. You will need to look at the source code for the saveToken( request) method. You might be able to mimic the functionality in 0.5 by rebuilding the code. You will

RE: html:message tag

2001-05-01 Thread Gogineni, Pratima
Just checking ... you do have an ApplicationResources.properties file and a message for the key you are using in the tag in that file? -Original Message- From: Sue Deng To: [EMAIL PROTECTED] Sent: 5/1/01 11:10 AM Subject: Re: html:message tag I did not make any changes on the code.

Re: Can not read i18n properties file

2001-05-01 Thread Greg Murray
Hi all, Ihave encountered this behavior in the past .properties files must be converted to ascii using the java sdk native to ascii before the display. Once converted your characters should be viewable. Also remember to set the Content-Type as specified. gm/> Jason Chaffee wrote: That would be

RE: Can not read i18n properties file

2001-05-01 Thread Sean Pau
Title: RE: Can not read i18n properties file It works when I set the htmlmeta Content-Type charset to UTF-8. thanks -Original Message-From: Jason Chaffee [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 02 May, 2001 2:18 AMTo: '[EMAIL PROTECTED]'Subject: RE: Can not read i18n

Re: html:message tag

2001-05-01 Thread Sue Deng
I put my ApplicationResources.properties file in /usr/local/tomcat/classes/net/covalent directory before. Now i moved it to my applications /WEB-INF/classes/net/covalent directory. And I got Missing message for key logon.title error, but the logon.title key is in the file. Thanks, -Sue

RE: html:message tag

2001-05-01 Thread Jason Chaffee
Title: RE: html:message tag I find the following configuration easier: Simply put the the resouce file in /WEB-INF/classes directory. Then change the deployment descriptor as follows: servlet servlet-nameaction/servlet-name

Re: html:message tag

2001-05-01 Thread Sue Deng
By the way, struts-example gave me the similar error message also, but it worked before. Thanks, -Sue Sue Deng wrote: I put my ApplicationResources.properties file in /usr/local/tomcat/classes/net/covalent directory before. Now i moved it to my applications /WEB-INF/classes/net/covalent

RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Chen, Yong
JSP spec says: %@ include is a directive, it is effective in the translation-time, it is static jsp:include is an action, it is done in request-time, thus it can be static and dynamic. Your code is trying to do some dynamic including, so use jsp:include instead. Yong Chen

EJB reference caching in actions

2001-05-01 Thread Nikolaus Rumm
Hello, for maintainability reasons I would like to refacture my action classes' perform()-methods. Since I use stateless session beans for the complete business logic the code in the perform()-methods looks pretty much the same: // lookup for the ssb home interface // create a ssb // call some

Re: EJB reference caching in actions

2001-05-01 Thread Clarance_Howatt
How about using a factory method. You put a reference to the factory in the session and then use it to retrieve any specific beans that you might require. Just a thought C. [EMAIL PROTECTED] on 05/01/2001 01:58:09 PM Please respond to [EMAIL PROTECTED]

RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Gogineni, Pratima
Amarnath, I can do include within an include - though I am using struts with tomcat. Maybe weblogic doesnt support this? Pratima -Original Message-From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 12:38 PMTo: '[EMAIL PROTECTED]'Subject: RE:

More File upload problems

2001-05-01 Thread Azariah Jeyakumar
Hi, I have found three more problems with file upload using the nightly build (20010430): 1. File upload does not work (see exception stack trace below) with IE 5.0 but works with IE 5.5, Netscape 4.76, Netscape 6. 2. Cleanup of temp files on empty upload If I submit the form without

RE: jsp include exception when using struts on weblogic 6

2001-05-01 Thread Nanduri, Amarnath
Pratima, Thanks for the info. I will research more on this... Amar.. -Original Message-From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 4:34 PMTo: '[EMAIL PROTECTED]'Subject: RE: jsp include exception when using struts on weblogic 6

Passing Parameters to a custom tag...

2001-05-01 Thread Dallas_Browning
Hi all, let me see if I can explain this. I have a custom tag that displays a list of information from a database. The database will allow me to apply an XSLT on the XML that it returns, and thus I can get the data formatted how I want it. Essentially my tag calls a method get XMLDataList(int

Override the presentation of html:errors

2001-05-01 Thread Jeff Trent
Short of writing my own taglib(which I'd like to avoid if I can), how does one iterate over the errors collection to present them in a different way. Any examples would be helpful... Thanks, Jeff

RE: html:message tag

2001-05-01 Thread Jason Chaffee
Your ActionServlet needs to be loaded to create an instance of the ResourceBundle. Therefore, if you were requesting a jsp page without going through the ActionServlet, there will not be a ResourceBundle in the servlet context because this happens when the ActionServlet is initialized.

RE: Override the presentation of html:errors

2001-05-01 Thread Jason Chaffee
The best way to handle errors is to name them separatly and then access each one indiviually in your jsp. See the Java docs for more info on error handling. It covers this approach quite well. -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01,

RE: Struts::WAP ... sorta

2001-05-01 Thread Anthony Martin
That's the way to go, though. My little kludge was just pretty much just to test the reusability of my ActionForm and Action classes. It has been incredibly easy, but then I'm not doing anything too impressive. I'm sure that if I actually wrote some custom tags, I'd use logic a whole lot less.

Re: Help on struts on Unix.

2001-05-01 Thread shunhui zhu
It seems you have another copy of Tomcat running, you may want to type ps to see the processes, and kill the old one. Or type shutdown.sh to shutdown the old Tomcat. Shunhui --- Michael Wang [EMAIL PROTECTED] wrote: On Unix, when I started tomcat by typing startup.sh, I got following

RE: html:message tag

2001-05-01 Thread Gogineni, Pratima
Jason - I assumed that load-on-startup is an optional element and only required to specify the order. i.e. if this is not specified the appserver loads teh servlet in any order it likes??? if this is the case then the actionservlet shoudl have been loaded before the jsp page was compiled

Re: html:message tag

2001-05-01 Thread shunhui zhu
My guess: A reference to the message property file is obtained in the ActionServlet.initApp() method. If ActionServlet is not loaded at startup, then this method is not called. So when you call html:message, it's probably still not called (unless the ActionServlet is instantiated before

Re: html:message tag

2001-05-01 Thread Sue Deng
I would like to share what I did wrong before: I forgot to put the line "load-on-startup>2/load-on-startup>" in web.xml file. After I add this line, my jsp works. So, why is this line so important for using bean:message lag? Thanks, -Sue Jason Chaffee wrote: I find the following configuration

RE: html:message tag

2001-05-01 Thread Jason Chaffee
It is optional, but if you are using Struts and are not strickly adhering to the MVC/Model approach and having all requests go through the ActionServlet you have better use it. Mostapp servers won't load the servlet until it is requested, if you don't use load-on-startup. I am assuming

RE: GenericDataSource Reconnection

2001-05-01 Thread Anthony Martin
I am facing the same problem. I use Interbase, and the connection goes down from time to time for maintenance. I was trying to build a test case to present because I was worried I was the only one seeing this problem, in case it was just my JDBC Driver not reporting it. Restarting Tomcat is

Re: Shopping Cart Project

2001-05-01 Thread Jason Robertson
Count me in too Joe. On Tuesday 01 May 2001 11:46, you wrote: Sounds great - count me in too! -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 1:36 AM To: [EMAIL PROTECTED] Subject:Shopping Cart Project Hi

RE: Override the presentation of html:errors

2001-05-01 Thread Graeme Miller
You have some control over the format of the font and background etc by setting the errors.header and errors.footer properties in your ApplicationResources.properties file You can put html tags in these headers and footers eg. errors.header=table width=100%trtd class=errorMessagecenter

RE: Override the presentation of html:errors

2001-05-01 Thread Natra, Uday
When U add Ur errors to the ActionErrors Collection in the perform() method of the Action class, An object of type ActionErrors is saved in the request with a key name "ERROR_KEY". There is a method on the ActionErrors class called "get()" that returns aIterator for a collection of

Re: using value of bean in my tag.

2001-05-01 Thread Martin Cooper
First, specify the type of the objects you are iterating over by adding the 'type' attribute to your logic:iterate tag like this: logic:iterate id=category name=CategoryList property=categoryList scope=application type=com.popware.alex.Category Obviously, you'll need to specify the appropriate

RE: Shopping Cart Project

2001-05-01 Thread Karl Basel
Hi there, Count me in.. I'm currently busy with just that. karl -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: 01 May 2001 04:35 To: [EMAIL PROTECTED] Subject: Re: Shopping Cart Project Good idea! My thoughts are: 1. Custom tag to be able to loop through