Re: ActionForm vs. ActionFormBean

2001-04-18 Thread Martin Cooper
The ActionForm class is the base class from which your form bean classes should be derived. The ActionFormBean class is used internally by the Struts controller, and is very rarely used in Struts applications. -- Martin Cooper - Original Message - From: "Will Spies/Towers Perrin" <[EMAI

Re: Problem with localization

2001-04-18 Thread Martin Cooper
I don't know if this would explain the exact errors you're seeing, but Tomcat 3.2.1 is known to have many bugs that could affect a Struts application. You should switch to Tomcat 3.2.2 or later if you can. Mail archives can be found in at least these two places: http://archive.covalent.net/ http

Re: Problems with

2001-04-18 Thread Martin Cooper
Did you remember the taglib directive at the top of your JSP? That is, you need: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> Otherwise, your and tags will be silently ignored. Annoying, but true. :-} -- Martin Cooper - Original Message - From: "Abraham Kang" <[EMAIL P

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 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 should be all you n

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? :-)

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

Re: What is 'text' field for in ?

2001-04-18 Thread Martin Cooper
There isn't a 'text' attribute for the 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 up based on

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 doin

Re: Selecting multiple lines in a listbox

2001-04-18 Thread Martin Cooper
To have multiple items selected, I believe your levelOneClassifList property will have to be a String array (i.e. String[]). The tag will use the array specified by the 'name' and 'property' as the list of values which should be initially selected. -- Martin Cooper - Original Message -

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 from

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 tags and tags etc. This page tends to be slow when it is rendering. It is compounded if I open more than one browser a

Paging in Struts (was Re: How to display odd/even rows using iterator)

2001-04-18 Thread james . webster
You would need more than just enhancements to however to have paging functionality similar to the pager taglib at jsptags.com, you would also need tags for the index (previous/next, etc). I've used the pager taglib inconjunction with Struts and find it to work well... is there any point inventi

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 lu

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: 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

always wants form bean

2001-04-18 Thread Vimal Kansal
Hi, I am having a strange problem. I have an action nmapping defined as And then in my XDIViewAdminConfigForm.jsp, I have the following : When I request this, I get the following exception : "javax.servlet.jsp.jSpException : Cannot retrieve definition for form bean n

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: [

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 suggesti

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. Dav

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: 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). > >< >http://jakarta.apache.org:8080/jyve-faq/Tur

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: 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

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: 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

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: <% if(index%2==0) { %> <% } else { %> <% } %> index++; --- Anthony Martin <[EMAIL PROTECTED]> wrote: > I'm sure I'll get to this in my project. Why not > make it a read property of > the bean? >

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

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 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 i

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). < http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/S

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: 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. <% int i = 0; %> <% i++; if ( i % 2 == 0) { %> <% } else { %> <% } %> { columns } What I would really like to see (before I write it myself) is code for using iterate as a pager. The hooks seem

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:

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 element in its corresponding element has a path with a suffix of "do" instead of "jsp". The ass

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:

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'). > A

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 na

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 o

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 woul

Feature request

2001-04-18 Thread James Howe
I'm using the tag to add parameters to a dynamically generated URL used by some javascript on my JSP page. The problem with 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 value encoded. Would

Iterate...

2001-04-18 Thread Christine Robb
Can anyone help? See code below. It's a very simple iterate. I have an 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 same action

Re: Setting Select value= dynamically?

2001-04-18 Thread dhay
Have created a hack to do this, using Surely there is a cleaner way to do it than this?! Not least as I have to do it for month, year, hour and minute as well! Seems like I already have "day" right there, but can't figure out how to acc

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 se

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! Ch

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, t

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 Before this jsp, I am filtering some records and want

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 then should exp

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 t

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 didn't seem to like an integer primitive as opposed to a String. <% int rowCount= 0; int columnMod = 0; %> <%

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 Message

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 ge

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 S

How to display odd/even rows using iterator

2001-04-18 Thread Zeltser, Mark
Hello, I have the following code to build the table: ==

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

iPlanet and Struts Error: 400 SC_BAD_REQUEST

2001-04-18 Thread Anderson, Jessica
iPlanet users: I've built my WAR file to include content, action classes, controller and config files (I also have struts.jar, parser.jar, and jaxp.jar in WEB-INF\lib), but i am getting the following error when clicking a link with a .do?[some parameters] extension. Error:400 SC_BAD_REQUEST nu

what's the attribute name for a FormBean?

2001-04-18 Thread Weining Qi
Hi, all, If I want to use 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 still saying:

html:link only uses the last param* attributes

2001-04-18 Thread Peter Doyle
When I do this The rendered URL is http://192.168.0.190:8082/mm06/editLoginInfo.do?personnelID=1">Login Information If I change the order of the paramId's the rendered query string only contains the last parameter specified. I know I can use a hashtable of parameters, but I'm trying to

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 in session expires I need to forward to logon page something likeif ( session == null ) mappin

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

http status 500 - Child of an Engine must be a Host

2001-04-18 Thread jdware
Hi all, I get this error when trying to access my struts app over an intranet using just IP:port/context rather than hostname:port/context. I'm using struts source( ~4/13), tomcat 4.0-b1 standalone. This is a new one to me. thanks john ware

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

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 un

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 u

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

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 [mailto:[EMAI

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 To

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 com.myCompany.rd.pwActionSe

Re: radio buttion checked

2001-04-18 Thread Jean-Noel Ribette
Your form bean must have a property "fd". If the value of this property is equals to "aValue" the button will be checked. Jean-Noel - Original Message - From: Sundaram Ramasamy <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 3:24 PM Subject: radio buttion c

Re: radio buttion checked

2001-04-18 Thread Thierry Cools
This is done by checking the value of your radio tag and the value returned by your getter method.   e.g if you have        if the getXxx method returns "2" the second radio button will be selected.   Thierry    Thierry Cools Senior Java Developer S1 Brussels Kleine Kloosterstraat, 23 1932 st

RE: getting size of a collection

2001-04-18 Thread Sundaram Ramasamy
Thanks, it defined like this 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 - Original Message - From: Sundaram Ramasa

Re: Confirmation page

2001-04-18 Thread Peter Alfors
If you do not need to pass any information back to the previous page, then you could use a standard javascript call as your cancel link. CANCEL However, this requires that the user has a javascript enabled browser (and does not have it turned off). If you cannot guarantee this, you may want to a

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");

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. Thank & regards sundaram

getting size of a collection

2001-04-18 Thread Sundaram Ramasamy
Hi I have collection like this. <%java.util.ArrayList list = new java.util.ArrayList(); list.add("First"); list.add("Second"); list.add("Third"); list.add("Fourth"); list.add("Fifth"); pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE); %> Before processing this collection, I

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 Cheers Kris. -Original Message- From: Stanley Tan [mailto:[EMAIL PROTECTED]] Sent: 17 April 2001 10:43 To: [EMAIL PROTECTED] Subject: No Ac

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

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 or

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 problem for some time now. I > finally had

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. < http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/Displa

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

2001-04-18 Thread Jean-Noel Ribette
It is possible to use the tag to expose the size of a collection: ... ... ... ...stuff ... ... ...other stuff ... Jean-Noel - Original Message - From: Firmin David <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 11:17 AM Subject: Using a collection a

Re: How to avoid hardcoding image path in table

2001-04-18 Thread Ted Husted
There aren't any Struts tags for writing tables (at least not yet ;-), but one workaround would be to try a standard JSP expression, like background="<%=request.getContextPath()%>/images/table_top_chip.gif%>" Jacob Thomas wrote: > > When creating a table row, is there a way to avoid having to

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 impr

RE: No ActionForm Bean Required

2001-04-18 Thread Tobias Meyer
Hi Stanley, > 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

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 funct

Re: autocomplete attribute for html form tag

2001-04-18 Thread Ted Husted
Something we could consider in the 1.1 timeframe is a generic "options" property that would just render non-standard options verbatim. So in this case we might have something like options="autocomplete=off" in the Struts tag, and then the tags would just append that to the tag properties, no quest

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 autocomplet

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 required

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, I

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, bu

Re: struts not reading properties file

2001-04-18 Thread Chris Butler
well, for me with weblogic i noticed that putting a specific location in the classpath helps... and putting the file there.  in the case below it would require putting your properties file in /com/yourDomain java classpath.      action   org.apache.struts.action.ActionServlet  

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 with

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. Howeve