Re: struts not reading properties file

2001-04-18 Thread G.L. Grobe
Agreed, but not the case. - Original Message - From: "Dan Miser" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 11:13 PM Subject: Re: struts not reading properties file Most likely you have a copy of struts.jar somewhere on your CLASSPATH. It only belongs in

autocomplete attribute for html form tag

2001-04-18 Thread Eric Wang
Hi, Just wondering has anyone manage to turn off the autocomplete feature in IE thru Stuts form tag? Currently I am using the Struts html form tag to come up with the login form. As far as I know, we can have an attribute autocomplete='off' in the normal form tag to turn this feature off.

maxFileSize and file upload the second

2001-04-18 Thread SPietsch
Hi, I found time to do a bit more testing on file upload. with version 1.0-b1 the parameter maxFileSize is recognised and a exception is. With the nightly build from 2001-04-17 it doesn't work any more. Obviously something changed in the mean time. Another problem is that that

Using a collection as a bean with the logic tags

2001-04-18 Thread Firmin David
Hi all, I'm having trouble using the logic taglib (specifically greaterEqual/lessThan) with a bean of type java.util.Map. I need to do varying logic based on the size of the map, but am having trouble making the value of .size() available to the tags. I'd like to do something along these lines,

datasource and jndi

2001-04-18 Thread Waumans, Jef
Hi, I want to use a datasource in a Struts based application but I also want to lookup this dataSource in objects that do not have an action or a servlet object in their scope, f.e. DAO's. In this case, using the struts-config.xml dataSource description doesn't seem the best of sollutions to me,

No ActionForm Bean Required

2001-04-18 Thread Stanley Tan
Hi all, Let's say I have a link that allows a user to empty his/her shopping cart. The link to empty the cart points to "/empty.do". I do not believe this requires an ActionForm bean (PLEASE, correct me if I am wrong). Nonetheless, I have specified an ActionForm Bean because it is

RE: autocomplete attribute for html form tag

2001-04-18 Thread Tobias Meyer
Hi Eric, Currently I am using the Struts html form tag to come up with the login form. As far as I know, we can have an attribute autocomplete='off' in the normal form tag to turn this feature off. However, the Struts form tag does not support this attribute. There's no autocomplete

RE: autocomplete attribute for html form tag

2001-04-18 Thread Alastair Briggs
Title: RE: autocomplete attribute for html form tag I think it would be a good idea to have this property on all tags as this means that the system is able to cope with those demands that are needed as things change. I get quite frustrated when using systems that don't offer this sort of

Shopping Cart Example

2001-04-18 Thread Stanley Tan
Hi all, I am building a shopping cart example using the struts framework for beginner's like myself. So far, I have a pretty simple shopping cart that connects to a database. Because I am new to this, I was wondering if any experienced programmer is willing to review my work and help me

Re: Using a collection as a bean with the logic tags

2001-04-18 Thread Jean-Noel Ribette
It is possible to use the bean:size tag to expose the size of a collection: bean:size name="items" property="values" id="itemsSize" scope="session"/ ... ... logic:greaterEqual name="itemsSize" value="1" ... ...stuff ... /logic:greaterEqual logic:lessThan name="itemsSize" value="1" ... ...other

Re: switching between SSL and non-SSL

2001-04-18 Thread Ted Husted
Any luck with this Eric? I'd like to do the same thing, a la auctions.yahoo.com Everything works if I hardcode the references, but then you end up stuck in SSL. I started a SSL FAQ, and would like to include how to do this too.

Re: Another bean:iterate question

2001-04-18 Thread Jim Crossley
I've received that error before when I forgot to include the taglib directive for the logic library. That would prevent the "field" bean from being created and result in the error you're seeing. "Brett G. Palmer" wrote: I've been working on this bean:iterate ... problem for some time now.

How to run Struts in VAJ

2001-04-18 Thread Andreas Dejung
Hi I studied the documentation and now I like to run Struts in VAJ 3.5.3. I would also like to run the Test Enviroment since I use EJB's. I found a lot of mails in this mailing-list, but I did not found a installation guide. Can somebody help me ? Does anybode know if there is such a guide

Re: How to run Struts in VAJ

2001-04-18 Thread Kyle Brown
If you mean VAJ 3.5.2 (3.5.3 has NOT been released yet) then the following instructions should work. This is from an upcoming article on this subject that I'm going to submit to the VisualAge developer domain website. Warning! This is a work in progress -- in particular I have NOT validated that

RE: No ActionForm Bean Required

2001-04-18 Thread Kristopher Brown
Hi, What do you mean by "it is required". Is that your requirement or struts. I have a similar thing called reset which is just action path="/reset" type="a.b.c.ResetAction"/ Cheers Kris. -Original Message- From: Stanley Tan [mailto:[EMAIL PROTECTED]] Sent: 17 April

radio buttion checked

2001-04-18 Thread Sundaram Ramasamy
Hello. How do I define the following radio button using htlm:radio tag. I don't find the checked attribute In html:radio tag. input type="radio" name="fd" value="" checked Thank regards sundaram

Re: getting size of a collection

2001-04-18 Thread Jean-Noel Ribette
- Original Message - From: Sundaram Ramasamy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 3:14 PM Subject: getting size of a collection Hi I have collection like this. %java.util.ArrayList list = new java.util.ArrayList(); list.add("First");

RE: getting size of a collection

2001-04-18 Thread Sundaram Ramasamy
Thanks, it defined like this bean:size name="list" id="itemsSize" scope="page"/ its working. -Original Message- From: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 9:32 AM To: [EMAIL PROTECTED] Subject:Re: getting size of a collection

why is init method of actionservlet being called twice?

2001-04-18 Thread Alex Colic
Hi, I have subclassed actionservlet. In the init method of my subclass I have called super.init(); For some reason as I step through my code the init method of my subclass is being run through twice. Any idea why? my web.xml file is as follows: !-- Action Servlet Configuration -- servlet

Re: How to run Struts in VAJ

2001-04-18 Thread Fei Xie
Hi Andreas, I am running VAJ 3.5 enterprise with tomcat 3.1 as testing env. I found this mail to be extrememly helpful, which guide you through the installation and setup process. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg00019.html Besides, you can download the Apache

RE: Handling File Upload Failures

2001-04-18 Thread Schachter, Michael
Mike, I just added two new exceptions to be thrown when the content length or maximum length is exceeded, they will be the root cause of the ServletException thrown. Is this good enough to be able to elegantly handle the problem for you? -Original Message- From: Rack, Mike

RE: maxFileSize and file upload the second

2001-04-18 Thread Schachter, Michael
Soeren, with version 1.0-b1 the parameter maxFileSize is recognised and a exception is. With the nightly build from 2001-04-17 it doesn't work any more. Obviously something changed in the mean time. This was just recently fixed. Another problem is that that with version 1.0-b1 a

RE: Handling File Upload Failures

2001-04-18 Thread Knabe, Rusty
The new upload code still does not work under ATG Dynamo. In the upload example, it still hangs just after the actual file is uploaded, and the trailing fields are being processed. I have tried it with all the popular browsers and different JDK's on the server. Anyone else out there using file

Update on caching lists.

2001-04-18 Thread Alex Colic
Hi so far my list caching is going well, I have set up a thread to monitor database changes and to update the lists stored in the servlet context. Unfortunately, although my program is noticing the change in the database and it is recompiling the data and putting the new data into the context

Update on caching lists.

2001-04-18 Thread Alex Colic
Oh, I thought about using removeAttribute() and then setting the attribute of the list again but I am worried about pulling a list out of the servletcontext just as a person might be accessing a page that needs that list. Regards Alex

RE: Update on caching lists.

2001-04-18 Thread Greg Reddin
A couple of possibilities: 1) Are you storing the list or a reference to it in session as well as servlet context? It may be that you still have a reference to the old list somewhere. 2) Are you calling context.getAttribute() again to replace your reference with one to the new list? 3) Sanity

How to access Action Mapping instance if session expires

2001-04-18 Thread Puneet Vardhan
Hi, How can I access the action mapping instance if session is expired? I have a global forward in struts-config.xml which points to logon page global-forwards forward name="logon" path="/logon.jsp"/ /global-forwards in session expires I need to

html:link only uses the last param* attributes

2001-04-18 Thread Peter Doyle
When I do this html:link page="/editLoginInfo.do" paramId="srcAction" paramName="personalInfoForm" paramProperty="personal" paramId="action" paramName="personalInfoForm" paramProperty="action" paramId="personnelID" paramName="personalInfoForm" paramProperty="personnelID"

what's the attribute name for a FormBean?

2001-04-18 Thread Weining Qi
Hi, all, If I want to use bean:define to retrieve one property of current form bean as a JSP bean(an attribute accessible to the remainder of the current page), how can specify the attribute name of the form bean? I have tried the name from struts-config.xml where I define the form bean, it is

Re: Template tags

2001-04-18 Thread Cedric Dumoulin
Maybe your browser doesn't render correctly your page, due to a problem with generated html tags. Check the source code of the resulting page : do you see evidence of "missing" parts ? Cedric Olivier Houyoux wrote: Hi, I'm using the template library to create a dynamic template for

How to display odd/even rows using iterator

2001-04-18 Thread Zeltser, Mark
Hello, I have the following code to build the table: == logic:iterate id="exchangeRate" name="cache" property="displayRates" tr td class="td0" align="middle" bean:write name="exchangeRate"

RE: iPlanet and Struts Error: 400 SC_BAD_REQUEST

2001-04-18 Thread Anderson, Jessica
problem solved. my struts-config action didn't match the .do action on my link. duh. thanks for all who gave it thought. :) jessica -Original Message- From: Anderson, Jessica [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 10:36 AM To: '[EMAIL PROTECTED]' Subject: iPlanet and

Re: Update on caching lists.

2001-04-18 Thread Jim Crossley
Then don't call removeAttribute. Just call setAttribute to replace the value of your key. Your app server's session implementation will (or should) manage synchronization. Of course, one or two of your clients might get a slightly stale list, but you can't help that. At least, they'll never

RE: Oracle Servlet Engine

2001-04-18 Thread Howard Moore
Actually it may work. According to the documentation the Oracle Servlet Engine (which is different to JServ) is Servlet 2.2 compliant so should be able run Struts-based applications. If anybody does get something working I would be interested in details of how they did it. -Original

Re: How to display odd/even rows using iterator

2001-04-18 Thread Chris Butler
I used a simple java/jsp hack to do this for something similar (multiple columns for one resultset), but maybe there's a better way. One thing I noticed is that bean:define didn't seem to like an integer primitive as opposed to a String. % int rowCount= 0; int columnMod = 0; %

RE: How to display odd/even rows using iterator

2001-04-18 Thread Christine Robb
Hi, try extending the iterate tag and modify it to take in 2 (or however many you want) stylesheet parameters. Say styleGrey and styleWhite. While iterating through your collection use the different stylesheet attributes and apply them to every other row. I've got something that works similar

Re: what's the attribute name for a FormBean?

2001-04-18 Thread Ted Husted
The form bean is created by the html:form tag, or by an Action class, under the attribute name given in the config file. Are you looking for it before it is created? But, given that the flow has passed the html:form tag, or returned from the action, and given something like form-bean

Setting Select value= dynamically?

2001-04-18 Thread dhay
Hi. Am aware that you can set value= on html:select tag, as "the value to compare with for marking an option selected". For example, in the code below, to display "08" when jsp loads bean:define id="dayList" name="LogFilterForm" property="days"/ html:select

Required vs. optional name attribute

2001-04-18 Thread James Howe
I apologize in advance if this topic has come up before, but ... I'm building a Struts JSP page containing a form. I've noticed that the HTML tags typically do not require the specification of a "name" attribute in order to retrieve property values from a bean. If the name isn't specified,

Error in comps-tutorial.war (Struts + Components + Orion)

2001-04-18 Thread chris . chang
Folks, Anyone using components on top of struts? I got a problem when I tried to execute comps-tutorial.war (tutorial from components) within orion. Any ideas? Pls c the attachment for error. P.S. I already moved the dtd files from struts.jar into the classes directory. Thanks in advance!

Newbie Question - Troubles Running Struts on Tomcat

2001-04-18 Thread Jim Bruno Goldberg
Hi, people! I am beginning in JSPs, Tomcat and Struts now: please, be pacient. ;) What I do: Copy *.war files from struts distribuition into webapps tomcat directory Copy * from struts .\lib dir into tomcat .\lib dir Modify

Re: Setting Select value= dynamically?

2001-04-18 Thread dhay
Have created a hack to do this, using bean:define id="thisDay" name="LogFilterForm" property="day"/ html:select property="day" value="%=(String)thisDay%" html:options collection="dayList" property="value"

Iterate...

2001-04-18 Thread Christine Robb
Can anyone help? See code below. It's a very simple iterate. I have an html:hidden form item called 'id'. I want to set itemName (in the submitRollo tag) to the value of that id. (it's a submit button tag) Keep in mind this is in an iterate tag and that there will be many buttons all with the

Feature request

2001-04-18 Thread James Howe
I'm using the bean:write tag to add parameters to a dynamically generated URL used by some javascript on my JSP page. The problem with bean:write is that it doesn't URL encode the result. In general, this is probably a good thing. However, there are times when it would be nice to have the

Problems setting form in session

2001-04-18 Thread Eric Rasmussen
I am trying to set a form bean in session so it can be used accross Action classes. Specifically, I am trying to get the form bean to remember a value so it can repopulate the jsp page accordingly when that page appears again (if the user hits 'cancel'). My assumption: that setting

how to use a select option with a property from the form bean?

2001-04-18 Thread Roxie Rochat
I would like to configure a form bean with a property that contains a collection to be rendered as a select statement, but I can't get it to work. If the options collection attribute is not specified, the docs say that you can specify just the property: "The value of this attribute is the name

Re: Required vs. optional name attribute

2001-04-18 Thread Rob Leland
James Howe wrote: It's not a terribly big deal, but it seems as if the name attribute shouldn't have to be required if some sort of "default" bean is available for the page. The original designers were probably trying not to couple the logic tags to the html tags, or to struts itself. The

Re: Problems setting form in session

2001-04-18 Thread Rob Leland
Eric Rasmussen wrote: I am trying to set a form bean in session so it can be used accross Action classes. Specifically, I am trying to get the form bean to remember a value so it can repopulate the jsp page accordingly when that page appears again (if the user hits 'cancel'). As you

Re: Problems setting form in session

2001-04-18 Thread Eric Rasmussen
Yes, I thought of that, but reset() is not being called (I put a println to see). Rather, a brand new form is being passed (which is correct if it was at request level). This is why I wanted to keep the old one in session. - Original Message - From: "Rob Leland" [EMAIL PROTECTED] To:

Actions forwarding to Actions

2001-04-18 Thread Jim Crossley
I think I found a bug or, as Larry Wall might say, it would be difficult to interpret it as a feature. :-) I have an Action that occasionally needs to forward its request to another Action. So the forward element in its corresponding action element has a path with a suffix of "do" instead of

Re: How to run Struts in VAJ

2001-04-18 Thread Bazoud Olivier
VAJ 3.5.3 will be released next week. http://www7.software.ibm.com/vad.nsf/data/document4541 And WTE will implement Servlet 2.2 and JSP 1.1, so it will work with Struts. - Original Message - From: "Kyle Brown" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 3:08

Re: How to display odd/even rows using iterator

2001-04-18 Thread Ted Husted
I like Christine's answer better, but here's a simple solution using (ugh) a scriptlet. tr % int i = 0; % logic:iterate id="lot" name="rows" % i++; if ( i % 2 == 0) { % tr bgcolor="#EE" % } else { % tr bgcolor="#FF" % } % td { columns } /td /tr /logic:iterate What I would really

Re: Error in comps-tutorial.war (Struts + Components + Orion)

2001-04-18 Thread Ted Husted
Yes, but I haven't tried it with Orion. [EMAIL PROTECTED] wrote: Anyone using components on top of struts? I got a problem when I tried to execute comps-tutorial.war (tutorial from components) within orion.

Re: Newbie Question - Troubles Running Struts on Tomcat

2001-04-18 Thread Ted Husted
You probably * don't * want to copy anything over from Struts except for the WARs. Having the struts.jar on your classpath while running your container is problematic (since it is also loaded from the WAR).

RE: How to display odd/even rows using iterator

2001-04-18 Thread Anthony Martin
I'm sure I'll get to this in my project. Why not make it a read property of the bean? protected String rowColor = "#FF" ; public String getRowColor ( ) { return this.rowColor ; } public void setRowColor ( String value ) { this.rowColor = value ; } Then all you need

PAGE LINKING

2001-04-18 Thread TIqbal
Is there any simple example that shows how i can link page from one page to another page. e.g. I have one jsp that shows user list USER IDUSE NAMELOCATION PHONE === == == 1TAHIR IQBAL

Re: How to run Struts in VAJ

2001-04-18 Thread Kyle Brown
I agree that VAJ 3.5.3 will be released next week -- in fact I'm working with an IBM internal beta now. It should work with Struts, however, that does not necessarily mean it will work with Struts :) I'm going to remain commentless until I prove that it works. I'm working on moving Struts over

RE: How to display odd/even rows using iterator

2001-04-18 Thread Scott Walter
Although I don't like to place Java code in my JSP pages, this is how I accomplished this: strutlogic:iterate id="row" name="list" % if(index%2==0) { % TR class="rowoff" % } else { % TR class="rowon" % } % index++; /strutlogic:iterate --- Anthony Martin [EMAIL PROTECTED] wrote: I'm sure

Re: How to run Struts in VAJ

2001-04-18 Thread Bazoud Olivier
It is true that patch 3 does not speak about change of version of XML parser or the introduction of JAXP in WTE. Maybe patch 4 :-) - Original Message - From: "Kyle Brown" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 10:55 PM Subject: Re: How to run Struts in

action.xml

2001-04-18 Thread sampath kanakaraju
Hi, I am new to struts and was going thru the documentation for struts 1.0-b1. I found that action.xml file is no more necessary in version 1.0. Could anyone please clarify with this. The docuementation says that this file has been deprecated. I am confused. Thanx for the information. sampath

Re: action.xml

2001-04-18 Thread Marcile Moulene
it's now called struts-config.xml sampath kanakaraju wrote: Hi, I am new to struts and was going thru the documentation for struts 1.0-b1. I found that action.xml file is no more necessary in version 1.0. Could anyone please clarify with this. The docuementation says that this file has

Re: action.xml

2001-04-18 Thread Ratnadeep Bhattacharjee
It has been replaced by struts-config.xml -Deep. Hi, I am new to struts and was going thru the documentation for struts 1.0-b1. I found that action.xml file is no more necessary in version 1.0. Could anyone please clarify with this. The docuementation says that this file has been

Re: Newbie Question - Troubles Running Struts on Tomcat

2001-04-18 Thread Jim Bruno Goldberg
At 16:24 18/04/01 -0400, you wrote: You probably * don't * want to copy anything over from Struts except for the WARs. Having the struts.jar on your classpath while running your container is problematic (since it is also loaded from the WAR).

How to represent a table of select inputs in the ActionForm and in the corresponding HTML?

2001-04-18 Thread Allamsetty, Venkata
Is there a good example that I can use, to represent a table of select inputs ? I tried using a two dimensional array without much success. thanks Venkata Allamsetty

Re: How to display odd/even rows using iterator

2001-04-18 Thread David Winterfeldt
What are you suggesting when you mention having iterate work like a pager? Do you mean having the iterate tag call a method on a bean before or after it iterates? If the interface gave the bean a handle on the environment then it could even a create a variable that could have the row color.

Re: How to display odd/even rows using iterator

2001-04-18 Thread Ted Husted
Sorry for the confusion. My aside was off-topic and not directly related to the odd/even question (though I ~would~ need to do both in the end result). I meant using iterate instead of something like http://jsptags.com/tags/navigation/pager/ David Winterfeldt wrote: What are you suggesting

RE: Shopping Cart Example

2001-04-18 Thread josephhakim
Hi Stanley, I was thinking of doing exactly the same. Although I am a struts newbie, I myself am dabbling with such a task. I'd like to help in any way I can. Cheers, Joseph. -Original Message- From: Stanley Tan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 18 April 2001 9:14 PM To:

html:form always wants form bean

2001-04-18 Thread Vimal Kansal
Hi, I am having a strange problem. I have an action nmapping defined as action path="/viewadminconfig" type="..." forward name="success" path="/XDIViewAdminConfigForm.jsp" / /action And then in my XDIViewAdminConfigForm.jsp, I have the following : html:form onsubmit="..."

Re: autocomplete attribute for html form tag

2001-04-18 Thread Eric Wang
I think it is a good idea to have a generic attrbitue for the tag too. Do anyone has any idea when when will this feature be in Struts? Regards Eric Alastair Briggs wrote: I think it would be a good idea to have this property on all tags as this means that the system is able to cope with those

Re: Shopping Cart Example

2001-04-18 Thread Jason
same here. I would like to get involved in this also [EMAIL PROTECTED] wrote: Hi Stanley, I was thinking of doing exactly the same. Although I am a struts newbie, I myself am dabbling with such a task. I'd like to help in any way I can. Cheers, Joseph. -Original Message-

Re: switching between SSL and non-SSL

2001-04-18 Thread Eric Wang
Hi Ted, I did a redirect instead of forward in the perform method of Action class. String url = aMapping.findForward("somepath").getPath(); ActionForward fwd = new ActionForward( url, true ); return fwd; Regards Eric Ted Husted wrote: Any

i18n and performance

2001-04-18 Thread jsmith
I have a project where internationalization was a requirement. For the most part, the page display speed is pretty fast. However, I have one page where there are several bean:message tags and html:text tags etc. This page tends to be slow when it is rendering. It is compounded if I open

Re: Actions forwarding to Actions

2001-04-18 Thread Jim Crossley
Forgive me for replying to myself, but I think I may have figured out what's going on: the second bean is not populated from the first bean as I mistakenly assumed -- it's populated from the request! So, just as the first bean got its name from the request parameter, the second get its name

Re: Newbie - Digester/Sax Parsing Error

2001-04-18 Thread Martin Cooper
You have to prefix the path to your DTD with "file:" to make it a valid URL. -- Martin Cooper - Original Message - From: "Trevor Griffiths" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 9:26 AM Subject: Newbie - Digester/Sax Parsing Error Hi, I'm doing some

Re: What is 'text' field for in html:option?

2001-04-18 Thread Martin Cooper
There isn't a 'text' attribute for the html:option tag. If it is referenced somewhere, that would be a documentation bug - please let us know where you are seeing this. The documentation says: "The text displayed to the user comes from either the body of this tag, or from a message string looked

Best practices

2001-04-18 Thread Ajit Joglekar
What issues are there if i give access to all the jsp pages in an application only through the action servlet? Is this a good practise to follow? Is there any collection of struts best practices somewhere? TIA. Ajit

input and output form in Action

2001-04-18 Thread Gunnar Boström
Newbie question. Is the form parameter in the perform method meant to be used both for input values and output values (from the Action)? If not how do I specify the output form? :-)

Re: Iterating through a hashtable of objects

2001-04-18 Thread Martin Cooper
You don't need the import, or the scriptlet, or the 'type' attribute in the logic:iterate tag, and you should be able to use the 'name' and 'property' attributes instead of the 'collection' attribute with a scriptlet. That is, given what you said about your 'floorplan' object, the following