DataSource timeouts?

2001-08-03 Thread VASQUEZ_JASON
Is there any parameter that can be set to timeout datasources, or to re-init them after a specified period of time? We recently bounced our Oracle database that our struts connection pool points to, and I noticed that all the connections had hung (the app just hung while trying to perform

RE: Building struts UIs

2001-08-03 Thread kurt . mccaw
Will: Joachim Peer has an interesting project on the go called DbForm (www.dbform.org) that is 'based' on Stuts. You basically give it an XML file with table/field and some information regarding the field (size, data type, etc) and it will generate the JSP forms for you. It has the searching and

Re: For Repeating Rows

2001-08-03 Thread Rohan Oberoi
Your question wasn't very precise, but I think I've been working on the kind of thing you're talking about. In particular I couldn't get the value parameters to input tags to work without using what looks like an awful kludge. See the code below. Suggestions on a better way to do this? --

Re: Embedded bean/param values

2001-08-03 Thread Pierre Delisle
Hi Devon, See below... [EMAIL PROTECTED] wrote: JSPTL allows you to do the following by using the Simplest Possible Expression Language (SPEL) provided with the reference implementation: tag attribute=$foo.bar.baz/ tag attribute=$param:paramName/ The above examples make

Forward request to another jsp-page with struts

2001-08-03 Thread Friedli Beat [UFA AG Her]
Title: Forward request to another jsp-page with struts Hi list I am shure, it is possible to check by entering a jsp-page if a sertain property is set and if not to forward the to another jsp-page. I'm looking for a tag like this logic:equal name=nav property=page value=logon

RE: Automatic Form Validation - A further question

2001-08-03 Thread Emaho, Ghoot
Thanks Martin. Your solution is actually something I considered right at the beginning. However, I felt that there may be other ways of achieveing the same thing - more cleanly and intuitively - ie this seems like a workaround. And in effect, the solution I have now, does achieve the same thing.

Struts Fundermentals

2001-08-03 Thread Rodney Smith
Hallo, I have a question that I should really know, but I honestly could not answer without getting confirmation of other Struts users. I have been asked many times about what is struts and I have responded it is a open source framework useful for building web applications in Java Servlets and

RE: Confirmation page

2001-08-03 Thread Paul Perevalov
The quick way to do this is to use Javascript. Call javascript function which shows confirmation window when user presses submut button (onclick event) and then depending on user selection submit your original form from Javascript. Good luck, Paul Perevalov -Original Message- From:

Re: String as Index

2001-08-03 Thread Gregor Rayman
Rey Francois [EMAIL PROTECTED] If you only need the string keyed properties, then don't worry about the mapper, just use the class com.capco.util.PropertyUtils. Fr. I still don't get it. Do I have to change RequestUtils.java and BeanUtils.java? -- gR

RE: Confirmation page

2001-08-03 Thread Yuriy Zubarev
Hello, The problem we have is that conirmation text should be locale-dependent (english/french), that's why I have to do it on server level. Best of luck, Yuriy Zubarev --- Paul Perevalov [EMAIL PROTECTED] wrote: The quick way to do this is to use Javascript. Call javascript function which

base, templates and relative urls

2001-08-03 Thread Nathan Coast
Hi, We've got a problem with relative urls to images in our pages due to jsps and templates residing at different directory depths. here's our directory structure /images/blah.gif /pages/MainTemplate.jsp /pages/section1/Section1Page.jsp /pages/section1/Section2Body.jsp Our pages are

Re: Building struts UIs

2001-08-03 Thread Jean-Noel Ribette
You might want to have a look at struts-layout (http://struts.application-servers.com) , a library my company is using for its struts development. It helps to build UIs very rapidly, especially UIs with forms and list of items. You still need to write JSPs but you don't need to write HTML

RE: DataSource timeouts?

2001-08-03 Thread VASQUEZ_JASON
I understand that--my app does close connections (release back to the pool). The problem is that the pool itself maintains open connections to the database, and doesn't seem to recover very well when the databsae dies and comes back. -jason [EMAIL PROTECTED] 08/02/2001 11:31 AM Please

Re: Commons jars not found in v1.0 binary distributions

2001-08-03 Thread Martin Cooper
Struts 1.0 does not use the Commons packages, which is why you did not find them bundled there. It uses its own versions, which in fact is where those particular Commons packages originated. The Struts web site reflects the latest in Struts, which is currently 1.1 in development. Struts 1.1 does

AW: Forward request to another jsp-page with struts

2001-08-03 Thread Friedli Beat [UFA AG Her]
Title: AW: Forward request to another jsp-page with struts Thanks Ted the logic:forward was what I was looking for. Don't ask me why I didn't realize that by reading the docu. (If I ask I am silly, if I dont ask I stay silly) --- Given that you've defined a session attriute named

isCancelled and infinite loops

2001-08-03 Thread DHarty
Is there a way to reset the request in the action so that it is no longer cancelled? for example, I have the following clock in the beginning of my action's perform method: if(isCancelled(request)) { return (mapping.findForward(cancel); } the cancel

Re: Forward request to another jsp-page with struts

2001-08-03 Thread Luis Olivares
Title: AW: Forward request to another jsp-page with struts What I do is create a 'User' bean with all the properties of a User (username,name, password, user type, etc). When the User logs in, I put this 'User' object in session. I check for this object in session using the logic:notPresent

WebSphere 3.5.4

2001-08-03 Thread Aapo Laakkonen
What steps are required to install Struts application on WebSphere 3.5.4 Application server? Is there something that need to be done? How did you deploy struts application on WebShere 3.5.4? Kind Regards Aapo -- Aapo Laakkonen, +358 (50) 33 99 682, ProjectCast Ltd, Helsinki, Finland.

RE: Re[2]: String as Index

2001-08-03 Thread Rey Francois
Well, you won't be able to tell Struts how to use it without changing/duplicating its code. For example if you want to use it with a tag, you'll have to reimplement the tag. I would think that Struts should ultimately incorporate this 'string keyed properties' feature, there as been several

*** ERROR *** SMS/PAGER message to 0787882396

2001-08-03 Thread sms-gateway
Delivery Report: From:[EMAIL PROTECTED] To: 0787882396 Subject: AW: Forward request to another jsp-page with struts Date:3-08-2001 13:36:34 Status: ERR Sorry - you have no access to this service End Report

Re: problem with upload file

2001-08-03 Thread Bar³omiej Paw³owski
Bar³omiej Paw³owski wrote: Thanx, for answer but when I change my form and add enctype='multipart/form-data' I receive another exception: Internal Servlet Error: java.lang.ArrayIndexOutOfBoundsException at javax.servlet.http.MultipartHandler.readLine(MultipartHandler.java:139) at

Re: Struts ActionServlet

2001-08-03 Thread Luis Olivares
Excuse me but... can EJB (entity) be managed by Tomcat? Regards - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 8:31 AM Subject: Re: Struts ActionServlet The container is a Web or Application server, like Tomcat, Resin,

handling cllient events

2001-08-03 Thread Rishi Bhardwaj
Hi, i have a select list box, which is populated bases on the value the user selects a second list box gets filled up i tried firing the onclick event on the first select box..but there was no way with which i can call the database method passing in the value id for the list to get

RE: populating a list box

2001-08-03 Thread Princeton Lau
Rishi, It depends how complicated you application is. If it is pretty complex, then you should have other beans that access the database instead of writing the code into the action. I used a database bean to retrieve information and display it on a JSP. i.e. jsp:useBean id=bob scope=request

Re: Automatic Form Validation - A further question

2001-08-03 Thread Martin Cooper
The only time your form bean's validate() method will be called by Struts is when Struts has populated the form bean from a request and is about to call your action's perform() method. So if validate() is being called, then a request is being processed for an action mapping which specifies an

Re: struts - webapps confirmation

2001-08-03 Thread Calvin Yu
You want to use the second one. Just remember that the WEB-INF directory has to be at the root of your web application directory, which in your case is /helloworld. Calvin On 03 Aug 2001 15:22:16 +0100, chuck amadi wrote: Hi , Im back again - unfortunately i am left to my own devices thus

RE: Re: Embedded bean/param values

2001-08-03 Thread Dudley [EMAIL PROTECTED]
Hi There Excuse my ignorance, but what is JSPTL? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 11:08 AM To: [EMAIL PROTECTED] Subject: RE: Re: Embedded bean/param values Using your example: tag attribute=bean:message key=...

very newbie -- compile problems

2001-08-03 Thread Hilary Pagliughi
Hello, I am modifying the example app for struts, just adding another profile property to see how things fit together. My problem is that I can't compile any of the java files that reference other classes, even ones I haven't modified. I know somehow that the solution to this is easy and that

RE: UN-SUBSCRIBE ME

2001-08-03 Thread Kemp, James A. [Alan] [VIS]
Title: RE: UN-SUBSCRIBE ME NO ---Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 4:48 PM To: [EMAIL PROTECTED] Subject: UN-SUBSCRIBE ME Plese remove my email for sturts mailing list.

refresh and Struts Action problem

2001-08-03 Thread Sibon Barman
Title: refresh and Struts Action problem Hi all, Here is my problem: I have the the following line for automatic refresh : META http-equiv=Refresh content=2;/jsp/GetMaps.jsp / The above line is conditionally added to the html output depending on some session variable. That session variable is

Re: missing classes in struts.jar

2001-08-03 Thread Martin Cooper
The ActionMessage and ActionMessages classes are recent additions for Struts 1.1, which is why they're not in the Struts 1.0 jar file. If you'd like to use those classes, you'll need to download a recent nightly build of Struts. -- Martin Cooper At 11:25 AM 8/3/01, Fletcher, Ken wrote: Has

RE: Reaching Action class from Href Link

2001-08-03 Thread Fletcher, Ken
I'm using Tomcat.don't know if it'll work using something else. Maybe if you show some of your code I can help. -Original Message- From: Greg Maletic [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: RE: Reaching Action class from Href

RE: A Few questions about struts and WebSphere

2001-08-03 Thread Assenza, Chris
1) You need to use flush=true on your template:get tags in the template. 2) Did you deploy your WAR correctly? -- Check to make sure you don't have an extra folder app folder under app in default_host. 3) Haven't used Struts' DataSource functionality, I'm afraid I can't help you there - it

Re: problem with upload file

2001-08-03 Thread Bar³omiej Paw³owski
Thanx, for answer but when I change my form and add enctype='multipart/form-data' I receive another exception: Internal Servlet Error: java.lang.ArrayIndexOutOfBoundsException at javax.servlet.http.MultipartHandler.readLine(MultipartHandler.java:139) at

Re: populating a list box

2001-08-03 Thread Martin Cooper
The best place to do this is, as you suspected, in an Action before the form is displayed. Your user should be coming through an action first in any case, to make the request for that view page. If you are bypassing actions and having the user go directly to a JSP, then you are really

RE: Reaching Action class from Href Link

2001-08-03 Thread Greg Maletic
I don't believe I can use this approach because my original JSP has many links that all lead to the EditProduct action, but each link specifies a different productId, corresponding to a different product. I need to wait until the user clicks on a specific product before I can populate the bean,

RE: Reaching Action class from Href Link

2001-08-03 Thread Greg Maletic
Now I'm really confused! Your original problem was that you wanted to have a link forward to an action. Your clarification shows how to do it from a form (form action=SomeAction), but then you say that using a link or href will not work. That doesn't seem to solve your original problem, does

Validation of errors and re-population of request

2001-08-03 Thread Tim Trentham
I'm wondering if there is a best practice or standard Struts way of handling repopulation of request attributes needed for a page after an error. For instance, I have a list of contacts with a checkbox next to each one. The list is generated by the logic:iterate and multibox tags using a vector

Re: Out of memory

2001-08-03 Thread chuck amadi
Martin Cooper wrote: You might have more luck with this if you ask on the tomcat-user list. I would also recommend providing a bit more information about the problem - for example, which Hi , there - is your problem (out of memeory or out of environment space ). Cheers Chuckie now using

Simple Login app on Husted.com + Tomcat 4.0 beta 6

2001-08-03 Thread Nicky Eshkenazi
Another clarification on this one... I have noticed that the web.xml file that comes with the struts-logon.war includes a reference for the \WEB-INF\app.tld, however the app.tld file wasn't a part of the extract...Can anybody shed some light on this one? Any input will be appreciated? I really

RE: struts.jar for Websphere is Final?

2001-08-03 Thread Calabrese, Jason
I'm not sure, the only class that was changed was FormTag. You may want to make the changes yourself and run the ant script. -Original Message-From: Luis Olivares [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 31, 2001 11:57 AMTo: [EMAIL PROTECTED]Subject: struts.jar for

Problem using TILES template with STRUTS

2001-08-03 Thread BinhMinh Nguyen
Hi, I am a big fan of your Components, it woks very pretty. But since you rename Component to Tiles things are not pretty any more:) I have hard time switching one Components to Tiles , I did every things following your instrcutions, and it is still not working. Even when I just copy directly

Re: Form processing question

2001-08-03 Thread Yuriy Zubarev
Hello Greg, Struts encourages you to use slight different yet powerful approach. If you have a jsp page with a form it's nice to have two actions to serve this form. One action is used to prepare data for form (direct db access, ejb, xml, text file, whatever you want) and another to collect info

Confirmations

2001-08-03 Thread Yuriy Zubarev
Hello everyone, I have a form (in request scope) with submit and cancel buttons and after pushing either of them I should display a confirmation dialog (Are you sure?) and depending on user's choice I have to perform the actual action 'submit' or 'cancel' if user clicks 'yes' and have to return

Re: Reaching Action class from Href Link

2001-08-03 Thread Martin Cooper
If you use the Struts html:form tag, the value of the 'action' attribute is used to look up the corresponding action mapping, and Struts will append the .do if you are using extension mapping for your servlet. If you use the Struts html:link tag with the 'href' attribute, then that value is

Re: Reaching Action class from Href Link

2001-08-03 Thread Martin Cooper
Yes, that's correct. Using extension mapping with Struts, and .do in particular, is just a Struts convention. I suspect that most people are probably following that convention, but it is not a requirement. You are free to use a different extension, such as .act or .cmd or whatever, or to use

RE: Reaching Action class from Href Link

2001-08-03 Thread Gus Delgado
jsp:useBean id=info class=logon.InfoForm scope=session / bean:write name=info property=moreInfo/ In addition, If you set the variables from your bean into an ActionForm you won't even have to use the jsp:useBean neither. -Original Message- From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]

Re: Simple Login app on Husted.com + Tomcat 4.0 beta 6

2001-08-03 Thread Brian . Duchouquette
Nicky, Try 2 things: 1. Remove any XML parsers from your classpath. A pre-existing xml parser in your classpath may supercede the XML parser which comes with struts. Struts will not work with just any XML parser... 2. Try struts with Tomcat 3.2.3 (people seem to be having better luck with

Re: struts - webapps confirmation

2001-08-03 Thread chuck amadi
chuck amadi wrote: Hi , Im back again - unfortunately i am left to my own devices thus after making good progress i fell flat when i made modifications to mt action classes (Windows box). Nevertheless i am to try again albeit this time on a linux box running v7.1. Thus it may sound a

test - no need to read

2001-08-03 Thread Felix Schmid
test

Building struts UIs

2001-08-03 Thread Will Spies/Towers Perrin
I have a generic question. We use struts. Struts *really* doesn't help much with rapidly building UIs. I'm sure everyone here realizes this. I do not want to abandon struts, I've have had great experience with it but I also would like a way to build a mechanism to rapidly automatic the building

Re: cookies/form fields

2001-08-03 Thread Martin Cooper
I haven't actually worked with cookies this way, but it seems like this should work: bean:cookie id=the_cookie name=username_cookie value=username_cookie not set / bean:define id=the_value name=the_cookie property=value / html:text property=username value=%= the_value % / This doesn't deal

Re: A Few questions about struts and WebSphere

2001-08-03 Thread Aapo Laakkonen
1) You need to use flush=true on your template:get tags in the template. Thank you very much. Actually this did not solve my problem, because flush is only useful with get tags, but not with template:insert. I know that jsp:include has capability to flush, but I like using template tags. Is it

Re: Building struts UIs

2001-08-03 Thread Will Spies/Towers Perrin
I asked a similar question on the velocity mailing list and they said look at texen ( http://jakarta.apache.org/velocity/texen.html ). My first reaction is similar to yours. Texen seems more about generating pages statically not dynamically but I really don't know much about it at all yet. I

RE: Reaching Action class from Href Link

2001-08-03 Thread Fletcher, Ken
I tried unsuccessfully to do that. Maybe I missed something - do you still have to add the bean to the HttpSession? -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 2:41 PM To: [EMAIL PROTECTED] Subject: RE: Reaching Action class from Href

Re: checkbox

2001-08-03 Thread Rohan Oberoi
Stefan, I've done something similar. My solution (which may not be ideal) was as follows: define an ArrayList property (activitiesToDelete) in the Form bean to which you are submitting this form. Then use a cell inside your iterator like this: td html:multibox

Out of memory

2001-08-03 Thread Harden ZHU
Hi After I run tomcat for couple days, I will get out of memory problem. What can be wrong? And how to solve it? Thanks. Harden

Re: very newbie -- compile problems

2001-08-03 Thread Keith Bacon
Hi Hilary, For windows I use this strutscompile.bat file. The compile ignores the classpath environment variable, buidling it's own, which is I think what Sun reccomend. Hope it helps, better still can some-one post a better one?! Keith =

Re: String as Index

2001-08-03 Thread Gregor Rayman
Hi Fracois, so I've hacked a bit in the beanutils package and now struts does work perfectly with your string based properties. No need to change struts, it is enough to change beanutils. What I dit was: - I've renamed the original BeanUtils class to OriginalPropertyUtils. - I replaced

RE: Confirmation page

2001-08-03 Thread Aaron Ravenberg
Sorry, every one just noticed the follow up on this thread, didn't see it in th e 112 msgs I got this morning :) Aaron Ravenberg -Original Message- From: Aaron Ravenberg [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 9:01 AM To: [EMAIL PROTECTED] Subject: RE: Confirmation page

RE: struts

2001-08-03 Thread Prashanth_Thm
Yes, I have been using struts framework in weblogic 6 since last one month. Prashanth. -Original Message- From: Kemp, James A. [Alan] [VIS] [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: struts anybody

weblogic 60 sp1 and struts 1_0 and jsp1.1 spe

2001-08-03 Thread Ben Gill
Hi, Has anyone seen this before: 8-01 16:51:50:739 - (E) SMSActionServlet Thread [ExecuteThread: '11' for queue: 'default']; Exception [weblogic.servlet.jsp.JspException: (line 3): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='struts': The Tag class

infinite loop

2001-08-03 Thread Rama Krishna
hello all, i posted a question regarding the Stackoverflow error. but i got no help. thought i will explain my problem in more detail. i have an adduser.jsp which is invoked thru a href in a normal html page. this adduser.jsp displays a form. there is formbean and actionclass for this

RE: Reaching Action class from Href Link

2001-08-03 Thread Fletcher, Ken
I haven't played around with paramID, paramName and paramProperty in the tag yet (still experimenting). However, I have been able to get the bean to show up on the forwarded JSP by putting it in the HttpSession (from the action class) and then have the JSP access the properties in regular

*** ERROR *** SMS/PAGER message to 0787882396

2001-08-03 Thread sms-gateway
Delivery Report: From:[EMAIL PROTECTED] To: 0787882396 Subject: Forward request to another jsp-page with struts Date:3-08-2001 07:16:55 Status: ERR Sorry - you have no access to this service End Report

Re: Struts Fundermentals

2001-08-03 Thread Ted Husted
In simplest terms, Struts is a toolkit. Or, as you say, a collection of Java classes. Struts provides essential development mechanisms required by modern Web applications. Without Struts, a developer needs to construct a good number of support classes to create an application. (Java !=

How to restrict the upload file size?

2001-08-03 Thread Michael Q. Ma
Hi, Anybody got the idea of restricting the upload file size without user actually sending large file to the server's temporary directory? I have known that in struts web.xml configuration file that there is a init parameter to restrict the uploaded file size named 'maxFileSize' something like

Reaching Action class from Href Link

2001-08-03 Thread John M. Corro
I've recently begun working with Struts and am looking to create a scenario where a user can click on a link and trigger some event in an Action class (ie the clicking of a link would be the same as clicking a form's submit button). My understanding is that within Struts forms submit by the post

UN-SUBSCRIBE ME

2001-08-03 Thread TIqbal
Plese remove my email for sturts mailing list.

RE: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd

2001-08-03 Thread Assenza, Chris
Or get it out of the JAR file if you just want to d/l it. :) Chris -Original Message- From: Anthony Xin Chen [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 1:46 PM To: Ben Gill Subject: Re: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd Hello Ben, Thursday,

Re: Validation of errors and re-population of request

2001-08-03 Thread Bill Clinton
Tim, I'm not sure this will work for you, but if it does, it may be the easiest solution. I am assuming that you have a failure forward in the Delete action that sends the user back to the list page. Instead of mapping this forward to the list page, map it to the list action. That way,