A problem with

2002-02-14 Thread Alex Paransky
In the nightly build the BufferedMultipartInputStream does not handle -1 (unlimited size download) too well it fails in the constructor, also the present tag does not appear to detect or not detect parameter values. Has any one seen these problems? -AP_ http://www.alexparansky.com -- To unsubs

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread CyberZombie
> I use reset() to provide all 'best guess' defaults. Within reset(), I > do not do any checks as to the input path, etc. -- strictly stateless > initialization. All other defaults initialization is either done by > the Session bean by the return of the VO to my > form(form.setValueObject(

Re: Using tag around tag. Is it legal?

2002-02-14 Thread CyberZombie
When I ran into that issue, I just used two action mappings -- "/editUser" to initialize the form (including an action property that identified add vs. edit) and forward that to the .jsp. And in the .jsp form tag I used "/storeEditUser" to process the results. Antony Stace wrote: >Hi Ladies and G

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread CyberZombie
I'm still on my first Struts application, so bear with me... I'm using EJBGen to generate all my Entity beans (only local interfaces) and Session beans (facades with remote interfaces). One nice byproduct of EJBGen is that it also generates Value Objects for each Entity bean (I use hand-coded

RE: [OT] Poolman problem

2002-02-14 Thread Mikkel Bruun
Allright, thank you... do you know where i can get a more stable build then??? Mikkel -Original Message- From: Mark Woon To: Struts Users Mailing List Sent: 14-02-2002 22:26 Subject: Re: [OT] Poolman problem Ted Husted wrote: > You probably should bring this up to the Poolman team.

Using tag around tag. Is it legal?

2002-02-14 Thread Antony Stace
Hi Ladies and Gentlemen I want to use tags around a but I am having errors. I am not sure if this is allowed in struts. Can someone please confirmthat this is not or is allowed in struts. The code I have is --snip rest of form d

Tomcat Connection Pool?

2002-02-14 Thread @Basebeans.com
Subject: Tomcat Connection Pool? From: Matt Raible <[EMAIL PROTECTED]> === I heard from a friend today that Tomcat 4.x has built-in Connection pooling. Is this true - he mentioned it was related to the JDBCRealm - which I thought was only available for authentication. If Tomcat does have connect

Struts jar

2002-02-14 Thread Joe Latty
This is driving me insane, first up I had the classic java.lang.NoClassDefFoundError. Trolling through the archives I found that I must not have struts.jar in the lib directory of the webserver only in the WEB-INF directory of the application. After a few days it goes belly up once again, I canno

HTML:Image (was: HTML / Struts Help)

2002-02-14 Thread Mark Takacs
> You can use the tag and set the property > to a value. Then in the action, you are able to find out, > which button was presed Ok, this sounds fine, cept Im running into the .x .y problem outlined in the HTML:IMAGE docs. Has anyone gotten this working with the html:image tag? None of the

Re: Can this be done at all using Form objects within struts framework

2002-02-14 Thread @Basebeans.com
Subject: Re: Can this be done at all using Form objects within struts framework From: Vic Cekvenich <[EMAIL PROTECTED]> === http://www.mail-archive.com/struts-user@jakarta.apache.org/msg21688.html Ted knows I don't get religious about architecture, I do what works. Expreso does the same thing I

RE: ActionForm Defaults/Updates Question

2002-02-14 Thread Jakkampudi, ChandraseKhar
Here is what I do. User (Generic Value Object) UserBean (Extends form bean) On initial page we have a link to viewUser.do?userId=100 In the Action class correspoding to viewUser.do, in the perform method we have (maybe through an controller or some such) User newUser = userDAO.getUserDetails("

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > > In the end, I've just grabbed the Form bean from the pageContext > > Pardon my ignorance but can you tell me the syntax in your JSP page to do > just that above?I think I'll need to be doing the same thing. <% MyForm form = (MyForm)pageContext.getAttribute("form

Re: Request: Property vs Attribute

2002-02-14 Thread Ted Husted
If the userId is a hidden property of the form, then it would be submitted along with all the visible properties, and be populated to the ActionForm with all the others. Try changing the method to get (temporarily) to see what is actually being submitted. "Jakkampudi, ChandraseKhar" wrote: > > T

Re: Can this be done at all using Form objects within struts framework

2002-02-14 Thread Ted Husted
The form shouldn't preload the records. You should use an Action to preload the records, put them on the form, and then forward to the JSP when it's all said and done. The form bean is part of the view. In a Model 2/MVC application, it should not interact with the model/database. -- Ted Husted,

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread theron . kousek
> In the end, I've just grabbed the Form bean from the pageContext Pardon my ignorance but can you tell me the syntax in your JSP page to do just that above?I think I'll need to be doing the same thing. thanks, Theron

usage of Map objects in ActionForms

2002-02-14 Thread Jon Pearcy
> I have an action form that contains a map of non primative types. I want > to integrate these in the the struts view framwork. > My main problem is I don't see how to use nested Map types. An outline of > the problem is below. > > Much Thanks > > We have an ActionForm with methods: > pu

Re: Datetime validation taglib for struts?

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > Thanks Mark for your answer. > > I was just curious how most others here choose "when" to perform things > like date/numeric validation? You would always want to perform in server-side, once you've received the user's input, regardless of whether you have JS validatio

Can this be done at all using Form objects within struts framework

2002-02-14 Thread theron . kousek
With struts,when using a Form, I'd like to be able to have the form "pre-load" records prior to the form being displayed. Actually, more than just that, I'd like to have a form that can be entered in 3 different possible states: - Insert state (in which case the form is empty) - Edit/View state

RE: Request: Property vs Attribute

2002-02-14 Thread Jakkampudi, ChandraseKhar
The userID property is already in the action form. Only, it is a hidden property which is neither displayed on the form or updated. It is only there to update the proper record when the object is modified. It is not retained when validation fails. Thus I get a database error when I update because

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread Ted Husted
The best approach is to never let the user go directly to a JSP page. Always pass control through an Action first, which gives you the opportunity to pre-populate forms, and a number of any other things. To prime the pump, you can have the index.jsp forward to an Action. After that it should alw

Re: Request: Property vs Attribute

2002-02-14 Thread Ted Husted
You might try adding the userId property to the ActionForm, and seeing if that approach works better for you. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ "Jakkampudi, ChandraseKhar" wrote: >

Re: Nightly Builds

2002-02-14 Thread Ted Husted
Here's one: http://husted.com/struts/resources/jakarta-struts-20020112.zip "Thompson, Darryl" wrote: > > Can any one tell me which nightly build is stable enough to actually > develop with? Often I encounter problems with missing tag handlers or > conflicting method definitions between the TLD

RE: [OT] Poolman problem

2002-02-14 Thread Nathan Anderson
Version 2.04 works better in my experience. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Woon Sent: Thursday, February 14, 2002 1:26 PM To: Struts Users Mailing List Subject: Re: [OT] Poolman problem Ted Husted wrote: > You probably should brin

RE: ActionForm Defaults/Updates Question

2002-02-14 Thread Jakkampudi, ChandraseKhar
I used a value object to prepopulate the form on initial access for modification like and as I mentioned in a previous post. Everything works fine except that the userID which is a hidden field is not retained on returning to input page either on failure of validatoin or other reasons. User In

Re: Datetime validation taglib for struts?

2002-02-14 Thread theron . kousek
Thanks Mark for your answer. I was just curious how most others here choose "when" to perform things like date/numeric validation? thanks, Therion Mark

Re: Datetime validation taglib for struts?

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > Does there exist a taglib or a way to perform date/time validation on an > input form WITHOUT having to use Javascript in the form? [snip] > I don't see any that will actually perform validation on a field after > focus has been lost... I don't see how you could poss

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > 1. What is the best way to load default values into an ActionForm bean that > will show up the first time a user visits the site and pulls up a jsp page? You know, this question has come up a bunch of times, but I've never seen any good responses. If I've got a form i

RE: Request: Property vs Attribute

2002-02-14 Thread Jakkampudi, ChandraseKhar
The form is initially populated from a value object like and userInfo is not my ActionForm bean, rather it is a value object that is created as part of the previous request (via a database call) that specifies which userId is to be modified. This is also in request scope. On coming back to

Datetime validation taglib for struts?

2002-02-14 Thread theron . kousek
Hi Folks: Does there exist a taglib or a way to perform date/time validation on an input form WITHOUT having to use Javascript in the form? Preferably a tag library would be the way to go.Unfortunately, all of the date time tag libraries that I see (including the one on jakarta's site) just

ActionForm Defaults/Updates Question

2002-02-14 Thread Tom . M . Brunner
Hi all, I am new to struts and am working on converting an existing system that we have to Struts to get to know the framework for future development. There are two questions that really stick out in my mind that I am confused about. 1. What is the best way to load default values into an ActionF

Re: Request: Property vs Attribute

2002-02-14 Thread Ted Husted
As long as it is on the ActionForm bean, you can have the action put the UserID there. While the request attributes are there, and there's nothing to prevent you from using them, everything really does work a lot better if you forget about the parameters, and use the ActionForm bean instead. -

Re: Passing Action Errors from one perform() method to another perform() method - Expert help?

2002-02-14 Thread Ted Husted
As long as you are not redirecting, the ActionErrors object is going to be there when you get to the 2nd action, and ultimately the presentation page. What I would do is put a method on a base action that can check for an Action.ERRORS object in the request, and either use that or create a new o

RE: Request: Property vs Attribute

2002-02-14 Thread Jakkampudi, ChandraseKhar
UserID is a member of my action form sub class. I do not have a reset method defined and I do not use the html:reset. I do use html:hidden tag as you suggested but for scalability and other reasons I do not use a session scoped form but use request scope. -JC -Original Message- From: Pe

RE: Request: Property vs Attribute

2002-02-14 Thread Pedone, Tim
Is userID a member of your ActionForm subclass? If you make it a member of your ActionForm, it will get maintained (provided you don't wipe it out in your reset() method) for you if you have a tag in your jsp. I tried this using a session scoped form and it worked. Tim -Original Message

Re: [OT] Poolman problem

2002-02-14 Thread Mark Woon
Ted Husted wrote: > You probably should bring this up to the Poolman team. Alas, the PoolMan "team" (one guy) is no longer working on PoolMan. As to the problem: you probably have to turn off . You should probably use true as well. You're using 2.1b1, which is definitely a beta1, and buggy.

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (Ted Husted) wrote: > If someone submitted a patch to bugzilla that allowed the generation of > the token to be switched off on a form by form basis, I'm sure it would > be considered. If I did this, it seems like a good default might be to remove the transaction token for GET

RE: Request: Property vs Attribute

2002-02-14 Thread Jakkampudi, ChandraseKhar
This also seems to be an issue with other logic tags too. You can use these tags for request parameters but not attributes.(Why dont we have a request.setParameter() anyway?) Any suggested work arounds? -JC -Original Message- From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]] Sen

Templates and session cookies

2002-02-14 Thread John O'Hanley
Hi folks, I am encountering unexpected session behaviour when I use templates: the web container (Tomcat 3.2.3) does not seem to send a session-cookie to the browser. When I do not use templates, the session behaviour is as expected: the first page has re-written URLs, and the second does not, s

taglibs struts X struts-html

2002-02-14 Thread Rubens Gama
What's the diference between the tags struts and struts-html in the struts 1.0.1? For example: or or . thanks in advice -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Struts vs Cocoon

2002-02-14 Thread Jeff Pennal
From what I have seen of Cocoon, it is more oriented towards a "publishing" framework, rather than an "application" framework, like struts. I you are interested in using xml/xslt in the view layer, you may be interested in checking out a struts extension I wrote called stxx at http://www.open

Request: Property vs Attribute

2002-02-14 Thread Jakkampudi, ChandraseKhar
I have a jsp that displays details of a user. The display is in a form that can also be used to modify user details. Access to this page is via a url like http://xyz.com/userDetails.do?userID=123. However the userid is not a editable field and I use a hidden variable to pass this information back

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
The autopopulation takes place before the ActionForm gets control, so that's really not an option. The request is passed to validate, and so you could put a token checker there. That does make a certain amount of sense, since it is after all a kind of validation error. But, returning people

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (Keith) wrote: > Isn't it easy enough to test which form you came from to decide whether to call > isTokenValid()? Not a problem in this respect. The problem is the URL for a GET (see below). > > However the URL is no longer very clean. > I don't get what you mean. It conta

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (Ted Husted) wrote: > The usual workflow is to visit an Action before displaying the page. > This gives you the opportunity to any number of things, including > setting up the tokens. There is no problem setting up the token for a response. The problem is that as the request c

Bean tag and substrings

2002-02-14 Thread Dave J Dandeneau
Is there any way to use the bean tag to display a substring of a property? Thanks, dave -- To unsubscribe, e-mail: For additional commands, e-mail:

Struts-config initialization

2002-02-14 Thread Phase Communcations
When the struts-config file is initialized, does it place the ActionMappings into a bean or are the ActionMappings checked against the struts-config file each time a */do/* url is accessed? My reason for asking is that I plan to create a config file that will define the content available to a page

RE: Nightly Builds

2002-02-14 Thread Thompson, Darryl
Can any one tell me which nightly build is stable enough to actually develop with? Often I encounter problems with missing tag handlers or conflicting method definitions between the TLD and tag classes making the build pretty much unusable... Thanks > -Original Message- > From: Sid Stu

Re: Passing Action Errors from one perform() method to another perfor m() method - Expert help?

2002-02-14 Thread David M. Karr
> "John" == John Mattos writes: John> Hi all. John> I'm trying to do the following. John> In an Action.perform() method, I'm adding an ActionErrors object to the John> request as follows John> // Snippet from an Action.perform() method John> ActionErrors errors = ne

Re: error running tile: Cannot find message resources

2002-02-14 Thread Cedric Dumoulin
The example run on my development version. What about the others links in examples ? Maybe a problem with your configuration ? Cedric c tang wrote: > I am running the app as "as is". > I used the trick you suggested and it solved the > resource problem. > Another problem occured when a

Re: commons valiador

2002-02-14 Thread David Winterfeldt
There is an example in the nightly source in contrib/validator (contrib/validator/src/example and contrib/validator/web/example). It is also posted at http://home.earthlink.net/~dwinterfeldt/ and there is a compiled jar of the Commons Validator in the build directory (no nightly build of it yet)

RE: Showing a result after a long running query

2002-02-14 Thread Tim Sawyer
A solution that was written before we used Struts, but it works for us. We have a process that generates some figures for bank loans. It takes interest rate and loan amount, and works out repayments etc, taking into account lots of other variables. This process can take minutes to complete. In

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Wilson, Les J SI-FSIA
Hi, try this total += parseFloat(x); Les -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 15:00 To: [EMAIL PROTECTED] Subject: Re: Indexed Tag and JavaScript Problem Now I have another problem. In JavaScirpt I have; var total=0.0; var x; for

RE: Showing a result after a long running query

2002-02-14 Thread Keith
Chris's idea seems good. But I think users might find such a screen rather irritating. Some thoughts:- 1 - I've heard of something called 'push' technology. Servers push data out to the client when it suits them. Search web for that. 2 - Alternative. Store on your DB that a request for this us

BIG DUMMY: SQL in Logic Bean or Action class

2002-02-14 Thread Phase Communcations
SORRY I FORGOT TO TO CHANGE THE RECIPIENT. -Original Message- From: Phase Communcations [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 9:03 AM To: Struts Users Mailing List Subject: RE: SQL in Logic Bean or Action class Hey sean, The following is some dialog I had with a

RE: SQL in Logic Bean or Action class

2002-02-14 Thread Phase Communcations
Hey sean, The following is some dialog I had with a couple of guys on the message board about sql placement. I thought you might find it interesting. Ultimately, just read Ted Husted. Also, I have some thoughts I would like to pass by you when you have a few moments. I have to make some changes

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
Oops. That should be total =+ parseFloat( x); Mark -Original Message- From: Galbreath, Mark Sent: Thursday, February 14, 2002 10:49 AM To: 'Struts Users Mailing List' Subject: RE: Indexed Tag and JavaScript Problem total =+ total + parseInt( x); Cheers! Mark -- Try before you cry:

RE: Showing a result after a long running query

2002-02-14 Thread Chris Birch
Jim, These comments are really guesses about how to do this rather than knowledge... None of it relies on Struts in particular. You have three pages: Form, Working and Results. On the form page, you submit the data to the Working page which will store the query request somewhere (possibly in th

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
total =+ total + parseInt( x); Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:00 AM To: [EMAIL PROTECTED] Subject: Re: Indexed Tag an

Internationalization issues

2002-02-14 Thread bwillner
Hi all :) I have to questions concerning initialization. In the user's guide I saw an example with a bean:message and an html:message tag being used for retrieving strings from a properties file from the struts-bean taglib and the struts:html taglib. What's the difference? I saw that in web.xml

RE: Transaction Token check required before form populate

2002-02-14 Thread Galbreath, Mark
If you simply need to prevent resubmits, set a token as a session variable, check its value on any submit, and change its value on the first submit. Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: [EMAIL PROTECTE

Re: digest

2002-02-14 Thread Ted Husted
Thanks for bringing this up. I just realized the Digest subscription information is not on the mailing list page. The address you are looking for is [EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://ww

Re: digest

2002-02-14 Thread Keith
How did you know I'd just eaten lunch? --- [EMAIL PROTECTED] wrote: > > digest > > __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -

Re: Transaction Token check required before form populate

2002-02-14 Thread Keith
Hi Duncan, Isn't it easy enough to test which form you came from to decide whether to call isTokenValid()? > However the URL is no longer very clean. I don't get what you mean. Keith. --- Duncan Harris <[EMAIL PROTECTED]> wrote: > > The other thing that seems to be an annoyance is that the > or

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Thanks.I used parseFloat() to do that and it works. >From: [EMAIL PROTECTED] (Duncan Harris) >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Indexed Tag and JavaScript Problem >Date: Thu, 14 Feb 2002 15:12 + (GMT Standard Time) > >[EMAIL PROTECTED] (SUPRIYA MISRA) wrote: >

RE: isTokenValid(request) is always returning false

2002-02-14 Thread Keith
> This (IMHO) is the primary use of tokens, to make sure the user > navigates your site as intended and does not use the back button, or a > bookmark get out of sequence. (IMHO) your humble opinion is absolutely right except it's the only use of tokens. Note that data entry forms don't always ne

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
One solution would be to write the GET form youself, using bean:write to populate the the HTML controls. If someone submitted a patch to bugzilla that allowed the generation of the token to be switched off on a form by form basis, I'm sure it would be considered. -- Ted Husted, Husted dot Com,

digest

2002-02-14 Thread cody.burleson
digest The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
The usual workflow is to visit an Action before displaying the page. This gives you the opportunity to any number of things, including setting up the tokens. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
oops skip that didnt look well enough at your code try this: var x = parseInt(...,10) Gr Ronald > -Original Message- > From: Ronald Haring [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 14, 2002 4:20 PM > To: 'Struts Users Mailing List' > Subject: RE: Indexed Tag and JavaScript

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
long time ago, but try this x=eval("document.curentForm.elements[actHour["+loop+"].faHrsDay1].value"); Gr Ronald > -Original Message- > From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 14, 2002 4:00 PM > To: [EMAIL PROTECTED] > Subject: Re: Indexed Tag and Java

Re:

2002-02-14 Thread Keith
Did u search the archives? - you should be able to find examples there. http://www.mail-archive.com/struts-user@jakarta.apache.org/ Here's how I do links - people say don't use scriptlets but this can handle 1 or more parms easily & is quite readable. <% String linkMaintURL = "linkList.

Re: session beans

2002-02-14 Thread Sid Stuart
FilterBean filter = (FilterBean) session.getAttribute (FilterBean.FILTERBEAN_KEY); if (filter == null) { log.info ("Creating Filter"); session.setAttribute (FilterBean.FILTERBEAN_KEY, new FilterBean ()); } Henry Lu wrote: > How

Question taglib TEI function

2002-02-14 Thread Ronald Haring
Hi all, back again with a question. (btw thx for help so far) In the logic iterate tag you can say how many lines you like to display. Now I would like to have a previous/next button if there are still objects in the list available. To enable this, I added a next and previous boolean var in the i

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (SUPRIYA MISRA) wrote: > Now I have another problem. > In JavaScirpt I have; > > var total=0.0; > var x; > > for loop > x=document.currentForm.elements["actHour["+loop+"].faHrsDay1"].value; > alert(x); > total=total+x; > alert(total); > end loop > > x gets the correct values

RE: isTokenValid(request) is always returning false

2002-02-14 Thread Pritchard, Sean
IsTokenValid() is a tricky thing. I recommend you look at the source code of this method (from Action) to better understand it. I've included the relevant source below. The tricky part is, the token needs to exist in two different places under two different keys for the call to return true. As

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
The other thing that seems to be an annoyance is that the org.apache.struts.taglib.html.TOKEN parameter gets added for all forms on the page if it is set. I don't want this to happen. There appears to be no way to easily avoid this without overriding and replicating the whole of the FormTag.doSta

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Now I have another problem. In JavaScirpt I have; var total=0.0; var x; for loop x=document.currentForm.elements["actHour["+loop+"].faHrsDay1"].value; alert(x); total=total+x; alert(total); end loop x gets the correct values like 1,2,3 but total=0.0 then 0.01, then 0.012 and so on. It is doing

Status of 1.1

2002-02-14 Thread Jürgen Albertsen
Hi, we currently consider using Struts for un upcoming project and will most definetley use Struts. However, I would like to use the 1.1 version because of sveral features that appeal to us - mainly the DynaForm and the updated validation cpapbilities. From personal evaluation I learned that 1.1-

commons valiador

2002-02-14 Thread neil
Hi I decided to try one of the recent nightly builds of struts since I wanted to become familiar with the commons validator. I am having some problems understanding what changes are needed (if any) in my source code for my formbeans etc. Is there an example app which uses the commons validator? I

session beans

2002-02-14 Thread Henry Lu
How to set/get session beans in a formaction program? Could you show me an example with a code? Thanks, --- Henry Lu MCITphone: (734) 936-2063 University of Michigan Medical Cente

RES: Writing Complex Reports and PDF

2002-02-14 Thread Régis Melo
Hello Ted, JasperReport is a great open source tool. But, Java really need a professional tool to generate reports. There is some limitations to use JasperReports - doesn't exists a visual report tool to create the reports, doesn't permit subreports... There are promesses to inc

Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
I need my transaction token checking before my form is populated. Problem here is that I have indexed properties and the valid index range may be different at different times. When all is well, the form bean and the HTML form correspond, but if the user goes back and re-submits then they may not

RE: Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
This works wonderfully. Thanks everyone. Stephen. -Original Message- From: Joel Barnum [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 14:10 To: Struts Users Mailing List Subject: Re: Help forwarding from one site to another. [EMAIL PROTECTED] wrote: > Thanks for that. A simple b

RE: Multiple struts-config.xml files?

2002-02-14 Thread Press, Michael
For the record, to create multiple ActionServlets, I just extended ActionServlet with an empty class body - basically creating an identical servlet with a different name, for each role. This is working fine with each ActionServlet reading a different struts-config file. Could there be some othe

RE: Help forwarding from one site to another.

2002-02-14 Thread Keith
MessageResources resources = getServlet().getResources(); resources.getMessage("aURLOrSomething"); This is what struts supplies to get any literal from ApplicationResources.properties. That's all we need I think. --- [EMAIL PROTECTED] wrote: > Thanks for that. A simple but effective idea. I am

Re: Help forwarding from one site to another.

2002-02-14 Thread Joel Barnum
[EMAIL PROTECTED] wrote: > Thanks for that. A simple but effective idea. I am wondering if there are > any plans to add, for example, an external tag to the forward statement so > that this would be unnecessary? Did you try: http://www.slashdot.com"/> Joel -- --

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Thank you so much Adams. It works. >From: "Adam Grohs" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Re: Indexed Tag and JavaScript Problem >Date: Mon, 16 Jul 2001 09:02:32 -0400 > >Your syntax is

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Adam Grohs
Your syntax is causing the browser's js interpreter is looking for "actHour1" as an array object in the JavaScript code, it will return object expected errors because the form elements name is actually "actHour[1].faHrsDay1" and there is likely no such array object elsewhere in your JavaScript on

RE: Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
Thanks for that. A simple but effective idea. I am wondering if there are any plans to add, for example, an external tag to the forward statement so that this would be unnecessary? Stephen. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 13:5

Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Since I am using Indexed tag, my form gets the the following structure the update function is in JavaScript where I want to do some check. How to I access the form element? document.currentForm.actHour[1].faHrsDay1.value=1+1+3 does not work. error message from JavaScript is as follows. a

Re: Help forwarding from one site to another.

2002-02-14 Thread geert
This works : use Go.jsp contains nothing but a redirect. <%response.sendRedirect("http://www.slashdot.org/";);%> On Thu, 14 Feb 2002 13:32:31 - [EMAIL PROTECTED] wrote: >Hello all, > >Upon a successful response from an action class I would like to forward to a >differen

RE: Help forwarding from one site to another.

2002-02-14 Thread Robert Taylor
I believe you also have to return null to let the ActionServlet know that the Action is handling the response. The reason it fails when you forward is that a RequestDispatcher can only forward to a url which is relative to a context. getRequestDispatcher public RequestDispatcher getRequestDispa

RE: Help forwarding from one site to another.

2002-02-14 Thread Keith
it's not hard coded if you use a variable instead of a literal. response.sendRedirect(aVariableThatIsSetFromSomeResourcesFileOrDatabase); --- [EMAIL PROTECTED] wrote: > Thanks for that, but the issue is that it is hard coded and doesn't allow > the flexibility the tag allows. This flexibility wo

struts-user@jakarta.apache.org

2002-02-14 Thread ulrika
Hello, I am new to Struts and I hope someone can help with this problem: I am using the iterate tag to disply some obejects (like this and I can write the data like etc. ) For each iteration i want to create a link to a servlet. The link will contain values from the object so

RE: Why no "indexed" attribute defined in struts-html.tld?

2002-02-14 Thread SUPRIYA MISRA
try indexed=true. If you need the stuts.jar which has indexed tag and works I have it and send it to you. >From: "Galbreath, Mark" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> >Subject: RE: Why no "indexed" a

RE: A good database pool?

2002-02-14 Thread Alex Colic
Hi, is this part of the expresso package. IE do I download the whole expresso package or is this a separate add on that can be used without expresso. I went to the site and all I can find is the whole package. Thanks Alex -Original Message- From: Sandra Cann [mailto:[EMAIL PROTECTED]]

RE: Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
Thanks for that, but the issue is that it is hard coded and doesn't allow the flexibility the tag allows. This flexibility would be advantageous for a pluggable corporate network. Stephen. -Original Message- From: Oliver Reflé [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 13:39 To:

AW: Help forwarding from one site to another.

2002-02-14 Thread Oliver Reflé
i would insert in the action code response.sendRedirect("www.slashdot.org"); cause struts takes all addresses in the struts-config.xml as they are in the same context. This would be the easiest way to implement it. Maybe you can also achieve it with the RequestUtils of Struts, but that i don*t kn

Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
Hello all, Upon a successful response from an action class I would like to forward to a different site. I have tried adding http://www.slashdot.org/"; /> to my struts-config.xml, but it fails. Is there a nice way of achieving this? Thanks. Stephen. --

RE: ActionServlet return a pdf document

2002-02-14 Thread Galbreath, Mark
Then I suspect that therein your problem lies. Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 7:31 AM Here I use Itext tool to cre

  1   2   >