Re: question on errors, how to handle

2001-02-01 Thread Craig R. McClanahan
Mike Campbell wrote: I want to be able to have a set of errors returned to an input page such that I can spit out an error of a particular TYPE next to a particular input, to indicate something in particular was wrong with this particular field. I'm a bit lost on how to accomplish

Re: parameters for actions

2001-02-01 Thread Craig R. McClanahan
christian reichlin wrote: hi, im looking for an easy way to "configure" actions. One general approach to this comes from the fact that you can subclass the ActionMapping class with your own, which could then include some additional properties. Then, you could say: action

Re: Missing getter in .org.apache.struts.taglib.html.ImgTag

2001-02-01 Thread Craig R. McClanahan
"Geddes, Mark (ANTS)" wrote: Using last night's build (20010128) I get the following error using Weblogic 6 and the struts-example web-app. Error in using tag library uri='html' prefix='/WEB-INF/struts-html.tld': There is no setter method for property 'lowsrc', for Tag class

mod_jk and AJP13 protocol

2001-02-01 Thread Amir Nuri
I am working with mod_jk with Apache 1.3.14 and Tomcat 3.2. I configured the Tomcat to use Ajpv13 protocol. I am doing upload of files. When the upload files are text files: there is no problem, but when the upload files are binary files, I get Unexpected end of file I read the file from the

Re: paging for web application

2001-02-01 Thread JamesW
Misak, I've found the pager tag that James over at http://www.jsptags.com has developed is quite powerful and usable. I've used it in some prototypes using Struts and Tomcat. One of my colleagues attempted to get it to work under Weblogic without much luck, but we didn't spend much time on it.

Re: Setting initial page to be an action

2001-02-01 Thread Craig R. McClanahan
"Winters, Jason" wrote: I'm trying to setup my application so that the initial page is an action. When the user enters a URL like this, http://server/myapp they should be sent to http://server/myapp/index.do. At the moment, they get forwarded to http://server/myapp/index.jsp which crashes

graphical button in form

2001-02-01 Thread Christophe Thiébaud
Is there a prefered way to implement graphical buttons within a struts form ? By graphical buttons I mean 4-state buttons (enabled/disabled/mouseover/down) that display a different image for each state. Christophe

Re: graphical button in form

2001-02-01 Thread Oleg V Alexeev
Hello Christophe, Thursday, February 01, 2001, 2:31:28 PM, you wrote: CT Is there a prefered way to implement graphical buttons within a struts form ? CT By graphical buttons I mean 4-state buttons CT (enabled/disabled/mouseover/down) that display a different image for each state. You can use

Templates in Struts

2001-02-01 Thread Carl Tallis
Title: Blank Hi - Am I correct in inferring that the Struts templates don't process Struts tags in the subordinate files? Carl Tallis Director Of Products SupplyLinks, Inc. Tel:(703) 796-6010 Fax:(703) 796-6014 email: [EMAIL PROTECTED]

RE: Setting initial page to be an action

2001-02-01 Thread Winters, Jason
I had the same results using Tomcat 3.2. I ended up taking Ted's advice and used a logic:redirect in my index.jsp page that redirects to index.do if the request scope beans that are needed are not there. Thanks for your help everyone! Jason -Original Message- From: renzo estrella

Re: Struts and MySQL

2001-02-01 Thread Matthias Bauer
Thanks a lot, --- Matthias Matthias Bauer +++ [EMAIL PROTECTED] +++ LivingLogic AG +++ www.livinglogic.de "Craig R. McClanahan" wrote: Matthias Bauer wrote: Hi all, I tried to use struts with MySQL (driver "mm.mysql.jdbc-1.2c" = class "org.gjt.mm.mysql.Driver") and ran into an

Re: Link to UML Diagrams

2001-02-01 Thread Gerry Chike
Hi All, Here's a sequence diagram (.GIF format courtesy of TogetherSoft) that I created based on the article below. Although outdated, conceptually it is still valid. Enjoy! Gerry At 06:18 PM 01/29/2001 -0800, Wong Kok Wai wrote: There was a very good article of Struts in the Nov 2000 issue of

bean:parameter question

2001-02-01 Thread Johan Compagner
Hi, If the bean:parameter is used and the request parameter (the name specified) isn't found i don't want an exeception but i want the bean parameter to use a empty string (""). So that after that all bean:write prints that empty string if the paramter wasn't there. I want this behaviour

Re: session ids cont...

2001-02-01 Thread Maya Muchnik
In [EMAIL PROTECTED] this issue was discussed (why and when IE supports different sessionID, and Netscape - not). The main thing is, Netscape is reading any cookies from one file, IE - from different files. Peter Alfors wrote: I.E. 5.0 and 5.5 generate unique session ids for each simultaneous

accessing a property of ActionForm

2001-02-01 Thread Anand Raman
Hi guys I want to access a property of my ActionForm in a jsp file and use it to construct a anchor.. The ActionForm is in the request scope and is being passed to the desired jsp page.. (verified using request.getAttributeNames()) However how do i access the value of a property.. Please

Re: session ids cont...

2001-02-01 Thread Steven D. Wilkinson
In [EMAIL PROTECTED] this issue was discussed (why and when IE supports different sessionID, and Netscape - not). The main thing is, Netscape is reading any cookies from one file, IE - from different files. Do you have a reference to said article? If not how about the subject and date?

session ids cont...

2001-02-01 Thread Peter Alfors
I.E. 5.0 and 5.5 generate unique session ids for each simultaneous browser session. However, both Netscape 4.7 and Netscape 6 return the same Id. I dont think that URL-rewriting will help in this situation. If I understand URL-rewriting correctly, all that is happening is that the session id

RE: Struts installation notes - WebLogic 5.1

2001-02-01 Thread Wong Kok Wai
My experience is the same as yours. --- [EMAIL PROTECTED] wrote: Wong, Yes you are correct it works fine (today) with jaxp as well. I am not sure why I had problems before. So step 1 can be changed then...or just excluded): (1) Verify that an XML parser (e.g. Xerces or JAXP) has

AW: accessing a property of ActionForm

2001-02-01 Thread Oliver . Lauer
...maybe that is what you want to do..? jsp:useBean id="myForm" scope="session" type="myPackage.MyForm"/ table tr td%= myForm.getSomething() % /td /tr /table where you have to 'deploy' your form with scope 'session' form-beans

Re: action.xml

2001-02-01 Thread John Hunt
Is there a to remove the bean from the session scope after the purpose is solved. Say I have 50 pages and out of that 5 pages share one form bean. I would put that bean in the session scope. But I dont want that to be alive for that entire session except for that 5 pages right Another

Re: session ids cont...

2001-02-01 Thread Jannik Nørgaard Steen
I have just tested our web application prototype on Netscape 4.7 and there are no problems with URL-rewriting and jessionid's. The servlet container (Resin 1.1.5) picks the right sessions for the right clients. We use a mix of hardcoded with dynamic jsessionid insertion, Struts html:link and

html:text vs html:hidden

2001-02-01 Thread Deadman, Hal
The html:text tag documenation says that the property attribute must be the name of a bean property of type String but it seems to work with other types because I have a form field that maps to a property of type double. The html:hiddentag does seem to enforce the String only rule. I wasn't

RE: html:text vs html:hidden

2001-02-01 Thread Silvia Yeh
Similar question. Is there good recommendation to handle html:text when the property attributeof a bean whose propertyis type "Timestamp"? Thanx. Silvia From: Deadman, Hal [mailto:[EMAIL PROTECTED]]Sent: Thursday, February 01, 2001 8:44 AMTo: Struts ListSubject: html:text vs html:hidden

Re: session ids cont...

2001-02-01 Thread Steven D. Wilkinson
Peter, I.E. 5.0 and 5.5 generate unique session ids for each simultaneous browser session. However, both Netscape 4.7 and Netscape 6 return the same Id. What do you mean by simultaneous browser sessions. If you create a new window CTL+N in IE5.0 you get the same id. (Is this simultaneous?)

Re: action.xml

2001-02-01 Thread Ted Husted
On 2/1/2001 at 9:03 AM John Hunt wrote: Is there a to remove the bean from the session scope after the purpose is solved. Yes. You can remove the same as any other bean. If a new one is needed later, Struts will create it again. Here's a snip from the example application: // Remove

Re: ActionError without using message resource?

2001-02-01 Thread Craig R. McClanahan
Mike Bell wrote: Hello, Is it possible to create an ActionError without using a message resource?At this time we don't really have a need for a message resource and wouldlike to just put the error message string directly in the call. like: ActionErrors errors = new ActionErrors();

Re: Latest binaries problem

2001-02-01 Thread Craig R. McClanahan
Wong Kok Wai wrote: The latest 20010131 binaries is only 1k byte in size! Yah ... some stuff changed in Ant and other tools that caused my nightly build process to croak. I will do what I can to get this rectified soon. Craig

RE: question on errors, how to handle

2001-02-01 Thread Mike Campbell
Title: RE: question on errors, how to handle Perfect Craig, thanks. I suspected there was something like this. When you store an error in the ActionErrors collection, you have the option to associate it with a particular field: ActionErrors errors = new ActionErrors(); String username

Re: mod_jk and AJP13 protocol

2001-02-01 Thread Craig R. McClanahan
Amir Nuri wrote: I am working with mod_jk with Apache 1.3.14 and Tomcat 3.2. I configured the Tomcat to use Ajpv13 protocol. I am doing upload of files. When the upload files are text files: there is no problem, but when the upload files are binary files, I get Unexpected end of file I

RE: question on errors, how to handle

2001-02-01 Thread Shamdasani Nimmi-ANS004
Craig, Is there a way that only the error message(e.g., username is required) appears next to the error field instead of the headings: VALIDATION ERROR You must correct the following error(s) before proceeding also appearing with it. It will be good if the heading could be at the top of the

Re: session ids cont...

2001-02-01 Thread Maya Muchnik
It was posted as a Subject : "what starts session?", Date: Wed, 24 Jan 2001 16:07:49 -0800 (PST) and responses were followed. "Steven D. Wilkinson" wrote: In [EMAIL PROTECTED] this issue was discussed (why and when IE supports different sessionID, and Netscape - not). The main thing is,

RE: Couldn´t install at bea´s weblogic

2001-02-01 Thread rhayden
If you are using WL 5.1 then please try the following (see attachment) and let me know if it works... I never encountered this classCastException, but if the workaround suggested by Renzo is successful please let me know so it can be added to the install notes for WL. More than likely after you

Re: session ids cont...

2001-02-01 Thread Peter Alfors
"Steven D. Wilkinson" wrote: Peter, I.E. 5.0 and 5.5 generate unique session ids for each simultaneous browser session. However, both Netscape 4.7 and Netscape 6 return the same Id. What do you mean by simultaneous browser sessions. If you create a new window CTL+N in IE5.0 you

Re: RePost: Retreiving multiple values from SELECT boxes

2001-02-01 Thread Vijay
Could any one tell me the mail archive URL? http://archive.covalent.net/jakarta/struts-user/2001/01/date.xml seems to be outdated thanx, vijay

RE: session ids cont...

2001-02-01 Thread Kramer, Gary
Title: RE: session ids cont... I had similiar problems. You need to turn off the use of Cookies on your server (in Tomcat this setting is in server.xml). When the user opens 2 browsers, they will always have different session ids in both IE and Netscape since the first URL they will use will

Couldn´t install at bea´s weblogic

2001-02-01 Thread Gustavo Hexsel
-BEGIN PGP SIGNED MESSAGE- Hello, Im trying to use Struts with BEAs Weblogic, but cant even make the example work! Im having ClassCastException errors at the load() method at MessageTag; its probably some problem with the ClassLoaders, since the class is really a

FormBeans

2001-02-01 Thread John Hunt
1.What is the normal practice in the case where you have two pages, and part of the input entered in the first page needs to be displayed in the second page. I would say use the same form bean for both the pages. Any objections to this? 2. When displaying readonly contents on a page where the

Re: session ids cont...

2001-02-01 Thread Craig R. McClanahan
Peter Alfors wrote: "Kramer, Gary" wrote: I had similiar problems. You need to turn off the use of Cookies on your server (in Tomcat this setting is in server.xml). When the user opens 2 browsers, they will always have different session ids in both IE and Netscape since the

Re: reset

2001-02-01 Thread Craig R. McClanahan
John Hunt wrote: Action class calls reset of the form bean. Can we explicitly call that method in the Action class. Actually, the controller servlet calls reset() before it calls all the property setters that correspond to your input fields. You can certainly call this method from within an

Re: FormBeans

2001-02-01 Thread Craig R. McClanahan
John Hunt wrote: 1.What is the normal practice in the case where you have two pages, and part of the input entered in the first page needs to be displayed in the second page. I would say use the same form bean for both the pages. Any objections to this? This would also be the normal

Re: bean:define clarification

2001-02-01 Thread Craig R. McClanahan
Robert Quillen wrote: Maybe the "scope" attribute should be "fromScope" as well? That would make sense, but there's a consistency argument to consider as well -- the "name", "property", and "scope" attributes are comon to lots of Struts tags, and they always do the same thing -- I'd rather

Struts version

2001-02-01 Thread Sudheendra Hebbagilu
Hi All, I am pretty new to struts. But when I read about it , I really liked it. Whats the status of it ? I know the latest release was 0.5. When is 1.0 expected ? Can I use it for production now ? Is it that stable ? Does 0.5 version supports DataStore ( for connection pooling ) ? Thanks in

Re: FormBeans

2001-02-01 Thread Jason Kitchen
"Craig R. McClanahan" wrote: John Hunt wrote: 1.What is the normal practice in the case where you have two pages, and part of the input entered in the first page needs to be displayed in the second page. I would say use the same form bean for both the pages. Any objections to this?

using html:link to post a form ?

2001-02-01 Thread Justin Kennedy
Hi all I've created a form like so: form:form name="users" action="users.do" focus="username" type="com.admin.forms.UsersForm" which contains a select box named 'username' I want to provide a link which will post the form. I've created UsersForm.java to validate, and it returns an error if

How to build the struts-example?

2001-02-01 Thread Ratnadeep Bhattacharjee
Hello all. I am very new to Struts. I have downloaded the binary version of Struts 0.5 from the web and read thru the docs and also ran the examples. I was interested in building the example application instead of copying the WAR file to the webapps directory of jakarta-tomcat. I am not nure

How to build the struts-example?

2001-02-01 Thread Ratnadeep Bhattacharjee
Hello all. I am very new to Struts. I have downloaded the binary version of Struts 0.5 from the web and read thru the docs and also ran the examples. I was interested in building the example application instead of copying the WAR file to the webapps directory of jakarta-tomcat. I am not nure

RE: How to build the struts-example?

2001-02-01 Thread Justin Kennedy
First off let me suggest to you to download the latest nightly build and start from there. Porting from 0.5 to 1.0 is a real headache. If you do this, remember that action.xml is depreciated in 1.0 use struts-config.xml instead. About your problem. At first glance, it seems that you are pointing

Re: Struts version

2001-02-01 Thread Ted Husted
Whats the status of it ? I know the latest release was 0.5. When is 1.0 expected ? The 1.0 todo list is part of the package, which you can check on the Web site. There are a few documentation tasks, and Craig mentioned a showstopper that needed to be fixed, but it's not listed in BugRat

Re: question on errors, how to handle

2001-02-01 Thread Elod Horvath
i posted a suite of tags for improved handling/dealing with ActionErrors to the struts-dev list some time ago. maybe these would be of use in some or all of these cases. feel free to pilfer... they may require some tweaks to work with the current build of struts (i haven't tested it since i

Re: Struts and MySQL

2001-02-01 Thread Craig R. McClanahan
Matthias Bauer wrote: Hi all, I tried to use struts with MySQL (driver "mm.mysql.jdbc-1.2c" = class "org.gjt.mm.mysql.Driver") and ran into an Exception each time I tried to start Tomcat: I just submitted a patch to catch this -- it will show up in tonight's nightly build. Craig

Re: JSP probleme

2001-02-01 Thread Craig R. McClanahan
"Steven D. Wilkinson" wrote: Maybe Craig can answer you direct concern about 'error-less version' as compared to 0.5 version? My feeling is that the currently nightly builds are pretty solid -- several bugs in 0.5 have been fixed here, and the new code seems to work well for lots of folks.

Re: Couldn´t_install_at_bea´s_weblogic

2001-02-01 Thread Wong Kok Wai
The first step is to check you're using SP8. The second step is to check whether struts.jar has been added to the Java or Weblogic classpath. If so, you must remove it from both these classpaths and just put struts.jar in the WEB-INF/lib directory and WebLogic will load the classes from there.

how to compose and handle an http PUT request

2001-02-01 Thread GU,JAMES (HP-Corvallis,ex1)
I should have made it clear that I am using POCKET PC IE which doesn't support MultipartRequest (i.e., the input type="file" ... ). I try to URLConnection class to simulate an HTTP PUT request to upload a file to the server. But I couldn't find out how the PUT protocol should be handled in