Can I pass an object through request object from Action class

2003-06-25 Thread thirumalai . veeraswamy
Hi, Already I raised this question to this list. But no reply. Let me rephrase the question again. I need to execute and show the reports using struts. I have input jsp, action class and action form associated to that. In the action class I will generate the sql based on the input

ActionFilter captures requestUri

2003-06-25 Thread Dan Allen
When it comes to pagination, there are two solutions. Either put the dataset in the session and let the taglib return to the jsp on incremental pages or put the dataset in the request from the action each time (or a third one would be to return to the action, but check for the dataset's existence

RE: Can I pass an object through request object from Action class

2003-06-25 Thread Andrew Hill
Yes, you can put the resultset into a request attribute, forward to the jsp (make sure its a non-redirecting forward!), and have the code/tags in your jsp access the resultset. note It is considered better practice to extract/wrap the resultset data with javabeans and forward these in the request

RE: Can I pass an object through request object from Action class

2003-06-25 Thread Anurag Garg
Hi, If you are closing the connection object in the action class, in that scenario you cannot use the resultset object in your report generation code. To pass the result set object in the report generation code, use CachedRowSet class and populate it from resultset object and than pass your

Prevent file overwriting for uploaded files in Struts

2003-06-25 Thread Alen Ribic
Hi all What is the best way of prevent a file overwriting when uploading a file in Struts? For example, if file my_image.jpg exists on the server I would like it to save it as something like my_image[1].jpg. Any ideas? Thanks --Alen

html:link / - add parameters

2003-06-25 Thread Alen Ribic
Hi all I see that when using html:link / tag I can add parameters to be passed on to the destination / action too. So far I only needed a single parameter id but now I need one more. I see that one can use java.util.Map to pass a list of parameters via a link. The thing is how and where do I

Page Iterator in Struts

2003-06-25 Thread Samuel . Opoku-Boadu
Does anybody have an example of a page Iterator in Struts that displays the results of a list page by page. For example when a user clicks a next button more reults from the collection are displayed? - To unsubscribe, e-mail:

Re: Page Iterator in Struts

2003-06-25 Thread Dirk Markert
Hallo Samuel, have a look at struts-layout at http://struts.application-servers.com/ Regards, Dirk *** SOBtsc Does anybody have an example of a page Iterator in Struts SOBtsc that displays the results of a list page by page. For

Re: html:link / - add parameters

2003-06-25 Thread Nagendra Kumar O V S
HI, u will have to populate the map( with name,value pairs) and set this map to ur action form, in the jsp give the name property of the map html:link href="" name="taskForm" property="params" here taskForm is the action form to which params

Re: html:link / - add parameters

2003-06-25 Thread Nikolay Ganev
Hello Alen, Wednesday, June 25, 2003, 11:15:11 AM, you wrote: AR Hi all AR I see that when using html:link / tag I can add parameters to be passed on AR to the destination / action too. AR So far I only needed a single parameter id but now I need one more. AR I see that one can use

Re: html:link / - add parameters

2003-06-25 Thread Alen Ribic
ok. so I can create Map in view too. :) I think, I'll have an opportunity to create the map in my previous action method. thanks for your feedback. - Original Message - From: Nikolay Ganev [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003

Re: html:link / - add parameters

2003-06-25 Thread Dirk Markert
Hello Alen, *** AR Hi all AR I see that when using html:link / tag I can add parameters to be passed on AR to the destination / action too. AR So far I only needed a single parameter id but now I need one more. AR I see that one

Re: html:link / - add parameters

2003-06-25 Thread Alen Ribic
ok. got it. thanks --Alen - Original Message - From: Nagendra Kumar O V S To: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:30 AM Subject: Re: html:link / - add parameters HI, u will have to populate the map( with name,value pairs) and set this map to

Re: html:link / - add parameters

2003-06-25 Thread Alen Ribic
- Original Message - From: Dirk Markert [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:36 AM Subject: Re: html:link / - add parameters Hello Alen, *** AR Hi all AR I

display an image

2003-06-25 Thread Richard Raquepo
i want to write a web app to display an image from a mssql db (image datatype). my action should be displayImage.do?imageid=1 where: imageid is the id of a particular image from the db. now my action class would retrieve this for example: byte[] dataBytes; //an array

AW: Page Iterator in Struts

2003-06-25 Thread Samuel . Opoku-Boadu
Thanks Dirk. This looks interesting. -Ursprungliche Nachricht- Von: Dirk Markert [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Juni 2003 10:25 An: Struts Users Mailing List Betreff: Re: Page Iterator in Struts Hallo Samuel, have a look at struts-layout at

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Adam Hardy
I would use container-managed security. All the secured pages should go in a directory which is the target of a security constraint in the deployment descriptor. This forces the user to log in when trying to access any secured pages. In the actions where a user-object is required, this can be

Re: Connection Pool: JPetStore Database Layer

2003-06-25 Thread Adam Hardy
FrenzyGNX wrote: My personal experience with DBCP is not good. I would avoid it in my next project. From what point of view were you disappointed? Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

dispatching actionForm and httprequest parameters

2003-06-25 Thread Ionel Gardais
Hi, I am using a DispatchAction to switch between tasks. For one of my methods, I forward to another Action (a simple action, not a dispatch action) Unfortunatly, the form and the request parameters that I can retrieve in the dispatch action's method are not available in the second action

Re: Connection Pool: JPetStore Database Layer

2003-06-25 Thread FrenzyGNX
There is a bug in DBCP that will return closed connections, even if the validation query is set. http://www.mail-archive.com/[EMAIL PROTECTED]/msg66565.html Also due to the very fact that it is removed from Struts 1.1rc2, and there were some discussions regarding it in this list earlier on.

Re: dispatching actionForm and httprequest parameters

2003-06-25 Thread Affan Qureshi
Do you forward to the second action or redirect? They should be available as long as it is the same request. Affan - Original Message - From: Ionel Gardais [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 2:21 PM Subject: dispatching

Re: Prevent file overwriting for uploaded files in Struts

2003-06-25 Thread Affan Qureshi
Once you have the stream you can always use java.io.* APIs to do whatever you like. See the java.io.File class for possibilities. Affan - Original Message - From: Alen Ribic [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:15 PM Subject:

Re: dispatching actionForm and httprequest parameters

2003-06-25 Thread Ionel Gardais
it is a forward. the target is available in struts-config.xml and the dispatchaction only does a return mapping.findForward(target); is it considered as the same request ? thanks, ionel - To unsubscribe, e-mail: [EMAIL

Re: Checking for a null property

2003-06-25 Thread Affan Qureshi
Save yourself all the trouble and use c:if test=!empty collection/c:if Affan - Original Message - From: Varun Garg [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 3:24 AM Subject: RE: Checking for a null property I think you can use

Re: Prevent file overwriting for uploaded files in Struts

2003-06-25 Thread Alen Ribic
ye, I was just thinking if Struts upload facility supplies some type of function like setOverwriteFile(true); where that would automatically check if file already exists and then supply a alternative file name. If not, I will probably use java.io.File with some effort to perform the task. thanks

Re: Prevent file overwriting for uploaded files in Struts

2003-06-25 Thread Alen Ribic
oops typo. I mean: setOverwriteFile(false); - Original Message - From: Alen Ribic [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 12:16 PM Subject: Re: Prevent file overwriting for uploaded files in Struts ye, I was just thinking if

Re: refresh

2003-06-25 Thread Affan Qureshi
Just use redirect when sending the page back instead of forward. Would this help in your case? Affan - Original Message - From: Frances Aleah Z. de Guzman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Jing Zhou [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 6:11 AM

problem in logic:iterate using HashMap

2003-06-25 Thread O_Parthasarathy Kesavaraj
Hi, I tried the same mentioned by Rick. But it gives me the following error. java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:329) at org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java :308) My code goes like this

Re: url-pattern

2003-06-25 Thread Eric Jain
At this moment, we have not gone that far yet. But you could do it across application modules now. To start with, I'd already be quite happy to be able to do the following mapping: /app/books/ - BookSearchAction /app/books/?since=20030101 BookSearchAction with since=20030101 /app/books/1234 -

RE: Can I pass an object through request object from Action class

2003-06-25 Thread thirumalai . veeraswamy
Anurag, Thanks for the reply. I didn't visualize the connection closure. The issue is crystal reports has a method where I can pass only the resultset object, public void setDataSource(java.sql.ResultSet data, java.lang.String oldTableAlias,

Re: Connection Pool: JPetStore Database Layer

2003-06-25 Thread Adam Hardy
I just checked the Apache bugzilla and couldn't find any bugs on this (I queried using closed or connection and got 23 hits). There are 2 bugs about closed connections, but they are both resolved - http://issues.apache.org/bugzilla/show_bug.cgi?id=9073

RE: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Alex Shneyderman
I have a webapp which have several pages which require the user to be logged in(have a httpSession with a usercontainer object stored) , and a few pages that doesn't require a log in(the log-in page, references, indexes...). All pages are fronted by actions. My current solution is to check

Re: [ANNOUNCEMENT] Struts 1.1 Release Candidate 2 released

2003-06-25 Thread Vic Cekvenich
This is great, great news. Thank you Martin, thank you Struts-dev. I am going to celebrate when it's out. Ted Husted wrote: Just a note on the RC2 status. Martin posted the release vote for FileUpload on Monday, and there are already 3 binding +1s. yeah!/ We've one outstanding Bugzilla ticket

[OT] url-pattern

2003-06-25 Thread Filip Polsakiewicz
Hi, i have a problem with url-patterns in web.xml i need a pattern that matches /webdav/*, /webdav/hello/* and so on. I.e. webdav and all subdirectories. i tried url-pattern /webdav/* /url-pattern but it doesn't work. Help please Filip Polsakiewicz

Using StrutsTestCase with Validator??

2003-06-25 Thread Xero
Is it possible to unit test the Validator with the StrutsTestCase, if so does anyone know were I could see an example of it. thanks Marty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Question iterating over an array

2003-06-25 Thread trang_nguyen
Hi, MeasResultValue.java is XDoclet generated code (attached below). I tried another approach using a scriplet (%=item%) and it seems to work, but I am frustrated why bean:write ... does not work, so it's great if you would have some ideas. Thanks, Trang logic:iterate id=item

Re: [ANNOUNCEMENT] Struts 1.1 Release Candidate 2 released

2003-06-25 Thread Ted Husted
Just a note on the RC2 status. Martin posted the release vote for FileUpload on Monday, and there are already 3 binding +1s. yeah!/ We've one outstanding Bugzilla ticket against RC2, which we should be able to either resolve or postpone. Given the imminent release of FU 1.0, I plan to post the

delay before redirect

2003-06-25 Thread Ionel Gardais
Hi, is it possible to set a delay before a redirect ? I'd like to do that in order to display a result page for 5 seconds and then go to the welcome page. I am already using an http-equiv=refresh with a 300 seconds delay for the whole page but I want to bypass it with a redirection after 5

null control servlet in the ActionForm constructor

2003-06-25 Thread rablists
Hello. ActionServlet as = this.getServlet(); return null from ActionForm constructor. I am having problem getting hold on the ActionServlet from an ActionForm constructor. It returns null. I dont want to populate the form by an Action, I want to do it through the form's constructor. I want

How can I subclass ActionServlet to work? (null getservlet in the ActionForm)

2003-06-25 Thread rablists
I actually found similar questions on the list but none were answered. I am now confident that the ActionForm does not set the servlet. So how can I subclass the ActionServlet to make it to work, so the ActionForm's servlet will be set everytime we initialize it. Any ideas? thanks a lot..

Re: [tiles] programatically putting a definition into a layout

2003-06-25 Thread William Salvucci
Under what circumstances will ComponentContext.getContext( request ); return null? That is what I am seeing in my example. [EMAIL PROTECTED] 06/24/03 04:15AM Hi, There is an example on how to retrieve the tile context in org.apache.struts.webapp.tiles.test.TestActionTileAction. A

release candidate

2003-06-25 Thread Zhang, Min [IT]
I have been waiting for struts 1.1 release. It went through b1, b2, b3, rc1 and rc2. Any idea about the apache standred process and when the Struts 1.1 will be out? I don't see many other apache releases go this long way to a stable release. Thanks in advance!

RE: accessing servlet from an ActionForm

2003-06-25 Thread Kumar, Kiran
I will try this. but I dont know where we can set the System.setProperty();;; Thanks KiranKumar (Raj) ext 7203 -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 5:56 PM To: 'Struts Users Mailing List' Subject: RE: accessing servlet from an

Re: delay before redirect

2003-06-25 Thread James Mitchell
I would suggest staying with the meta tag approach. This lessens the burden on the container and let's them (basically) poll your app in the case where they are waiting for some asynchronous process to complete. Just my $.02 -- James Mitchell Software Developer/Struts Evangelist

RE: delay before redirect

2003-06-25 Thread Filip Polsakiewicz
-Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 3:01 PM To: Struts Users Mailing List Subject: Re: delay before redirect I would suggest staying with the meta tag approach. This lessens the burden on the container and let's

RE: release candidate

2003-06-25 Thread Mike Jasnowski
If you monitor the Struts dev list you'll get a better idea about Struts release/beta info. The last thing I saw posted was june 29th for final -Original Message- From: Zhang, Min [IT] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:37 AM To: [EMAIL PROTECTED] Subject: release

Re: delay before redirect

2003-06-25 Thread James Mitchell
C'est une énonciation commune. En donnant un rapport qui est seulement de mon propre avis, je donne ma valeur de 2 cents à la matière. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: Filip Polsakiewicz [EMAIL PROTECTED]

html links

2003-06-25 Thread Andy Richards
Can anyone shed some light on this for me. Being a newbie i tried to perform a search on the list archive however it just says text searches are not allowed. Anyway my question is this, at present a multimedia designer will hand me a HTML site requiring the addition of functionality. All

Re: delay before redirect

2003-06-25 Thread Ionel Gardais
Hi James, Thanks for the reply. Can I had another refresh equiv in addition to the first ? (I would then get two meta refresh, one set at 5 minutes and one at 5 seconds) The first meta refresh is hard coded in the tiles template I use for my pages that's why I am looking for something to

RE: html links

2003-06-25 Thread Filip Polsakiewicz
-Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 3:14 PM To: [EMAIL PROTECTED] Subject: html links Can anyone shed some light on this for me. Being a newbie i tried to perform a search on the list archive however it just says text

Proble in Iterating over a form bean property

2003-06-25 Thread O_Parthasarathy Kesavaraj
Hai In formbean i am having an arraylist that contains a value object having id and name.I am loading that in my jsp.The code goed like this. logic:iterate id=element property=userAdmins TR TDbean:write name=element property=id/ /TD TDbean:write name=element property=name/BR/TD

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Erik Price
Adam Hardy wrote: I would use container-managed security. All the secured pages should go in a directory which is the target of a security constraint in the deployment descriptor. This forces the user to log in when trying to access any secured pages. In the actions where a user-object is

Re: [OT] url-pattern

2003-06-25 Thread Erik Price
Filip Polsakiewicz wrote: Hi, i have a problem with url-patterns in web.xml i need a pattern that matches /webdav/*, /webdav/hello/* and so on. I.e. webdav and all subdirectories. i tried url-pattern /webdav/* /url-pattern Maybe: /webdav/*/* Erik

Re: delay before redirect

2003-06-25 Thread James Mitchell
What's the use case here? What are you trying to do with your app? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: Ionel Gardais [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25,

RE: accessing servlet from an ActionForm

2003-06-25 Thread Varun Garg
You will have to do some more work to get the System.setProperty(), cause this needs to happen before the ActionServlet is initialized. One way to do is create a StartupServlet and have it load before the ActionServlet and in the init method of StartupServlet put the System.setProperty. The other

way to format a date property inside an iterate loop?

2003-06-25 Thread Nielsen, Jim
Hi, Is there a simple way to format a date property inside an iterate loop? The property is a long value. I want to have the display the date in a localize format. Not having much luck searching for examples. Thanks in advance for any advice. logic:iterate id=FileInfo indexId=ix

Re: html links

2003-06-25 Thread Andy Richards
Thanks filip But do i have to do this for every link in the config file, or can i configure the struts config file so as that any links not mapped go through a particular action. If i have to map all links in the designers menu system, i will be here till next month !! : ) regards Andy Can

Re: way to format a date property inside an iterate loop?

2003-06-25 Thread Rick Reumann
On Wed, 2003-06-25 at 09:47, Nielsen, Jim wrote: Hi, Is there a simple way to format a date property inside an iterate loop? The property is a long value. I want to have the display the date in a localize format. Not having much luck searching for examples. You could see if the JSTL fmt

RE: html links

2003-06-25 Thread Filip Polsakiewicz
-Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 3:53 PM To: Struts Users Mailing List Subject: Re: html links Thanks filip But do i have to do this for every link in the config file, or can i configure the struts config file so

Form field styling/error reporting - Alternate solution [Long]

2003-06-25 Thread Mike Jasnowski
Greetings, The subject of styling form field labels based on the results of form errors is a well-known subject on this list. And recently, and not so recently, there have been different solutions from using struts logic tags, to creating a Label tag that was smart about form errors. I would

RE: [ANNOUNCE] Struts Console v4.0

2003-06-25 Thread Chappell, Simon P
James, I tried version 4 in WSAD 4.0.3 and received errors. Version 3.6 worked fine. Does this new version have a dependency on a newer version of Eclipse? Simon -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:29 PM To: 'Struts Users

Re: delay before redirect

2003-06-25 Thread Ionel Gardais
- the user asks for an edit page. - a form is displayed. - when the form is filled the user clicks on the validate button. - action is called and a server side computation is done. - when the computation is completed, a page display a success or failure message to the user - on success, the main

Struts Taglib DTD's and Firewalls

2003-06-25 Thread Matt E
Hello All. I'm attempting to deploy a Struts project to a server here at work. Whenever I try to access any pages in it I get this error: org.apache.jasper.compiler.CompileException: /int0/webdata/swtools/apps/tir/toolDevelopmentRequest.jsp(0,0) Unable to open taglibrary

How to read init-parm defined in web.xml in an Action class

2003-06-25 Thread Sashi Ravipati
Hi I have this entry in my web.xml file init-param param-namedeveloper-test-id/param-name param-valuetestmode/param-value /init-param How can I get the value (testmode) in my action class. In a servlet we I could do it like this public void init(ServletConfig config)

RE: Struts Taglib DTD's and Firewalls

2003-06-25 Thread Kevin Peters
That's what we did. We downloaded all of the DTDs our application references so we can point to a local copy. Make sure you keep them current, though. Kevin -Original Message- From: Matt E [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:06 AM To: [EMAIL PROTECTED] Subject:

I am Not Able To See any Logs From My Action Classes

2003-06-25 Thread AshokD
Dear All, I am in a confusion problem. I configured Log4J through my CustomActionServlet, init() method. It is configuread successfully I got a log from this init() method also. [6/25/03 8:27:46:888 GMT-05:00] 63ffdf SystemOut U 08:27:46,887 [ORB.thread.pool:2] DEBUG

Struts taglibs on iPlanet 4.1SP12

2003-06-25 Thread Kevin Robair
Hi all, I am faced with the enjoyable task of deploying a struts1.1RC2 app to iPlanet 4.1SP12. My current problem is that the jasper compiler cannot file the TLD's for the struts tags libraries. I have placed WEB-INF in docroot, in the file system root, and in my application's subdir, all to

RE: [ANNOUNCE] Struts Console v4.0

2003-06-25 Thread bmoritz
In my eclipse version (Version: 2.1.0, Build id: 200306051737) it runs fine, after I renamed struts-console.jar (in the lib-dir) to console.jar (this name is referenced in plugin.xml. James, I tried version 4 in WSAD 4.0.3 and received errors. Version 3.6 worked fine. Does this new version

Re: html links

2003-06-25 Thread Andy Richards
Anyone else have any opinions on the best method to do this.? cheers Andy But do i have to do this for every link in the config file, or can i configure the struts config file so as that any links not mapped go through a particular action. If i have to map all links in the

RE: How to read init-parm defined in web.xml in an Action class

2003-06-25 Thread Varun Garg
Try this this.servlet.getServletConfig().getInitParameter() -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: How to read init-parm defined in web.xml in an Action class Hi I have this entry in

ActionForm

2003-06-25 Thread AJGadgil
I'm running into a problem with using ActioForm. I mean I know how to do the normal stuff like say a login form, but I'm running into serious issues when it comes to a dynamic forms. I writing a survey application and well the form is created dynamically as I dunno how many questions will

RE: ActionForm DB validation

2003-06-25 Thread Fedor Smirnoff
Hey, I wanted to find out if its acceptable to access database in the validation stage of SOMEActionForm. Basically when a user enters email address to subscribe, I need to check if it already exists in the database, should I do it in SOMEAction or SOMEActionForm? Thank you Fedor

Could not deserialize context attribute

2003-06-25 Thread Abhinav (Cognizant)
When I compile my code already deploed in the server and then try to access my page I get 'Could not deserialize context attribute' exception. Any ideas, Why ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Adam Hardy
Erik Price wrote: I would use container-managed security. All the secured pages should go in a directory which is the target of a security constraint in the deployment descriptor. This forces the user to log in when trying to access any secured pages. In the actions where a user-object is

RE: How to read init-parm defined in web.xml in an Actionclass

2003-06-25 Thread Sashi Ravipati
Thanks [EMAIL PROTECTED] 06/25/03 10:19AM Try this this.servlet.getServletConfig().getInitParameter() -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: How to read init-parm defined in web.xml

Re: Could not deserialize context attribute

2003-06-25 Thread Brian Lee
It seems like Struts puts a couple of non-serializable objects into the application scope (RequestProcessor, ValidatorPlugIn) but does not remove them in the ActionServlet.destroy. You can do the quick thing, extend ActionServlet and override the destroy() method to remove the objects from the

RE: Struts Taglib DTD's and Firewalls

2003-06-25 Thread Matt E
Kevin, I downloaded all the DTDs and editied the taglib and XML files to remove the url but keep the DTD. I now get this error: org.apache.jasper.compiler.CompileException: /int0/webdata/swtools/apps/tir/toolDevelopmentRequest.jsp(0,0) Unable to open taglibrary /WEB-INF/struts-html.tld : Parse

Setting focus on a field that referring to a deed property

2003-06-25 Thread Jeremy Nix
Okay, I have an object on my ActionForm that is a container object for many other objects. So, within my form you will see a lot of property names like: a.b.c, a.b.d, etc... This works great and all my properties are properly reflected upon, but I'm having a small issue trying to figure out how

RE: Setting focus on a field that referring to a deed property

2003-06-25 Thread Jeremy Nix
Sorry, that should have said deep property. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jeremy Nix Sent: Wednesday, June 25, 2003 10:31 AM To: [EMAIL PROTECTED] Subject: Setting

RE: Setting focus on a field that referring to a deed property

2003-06-25 Thread Abhinav (Cognizant)
Use document.form_1.elements('element_name') -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:01 PM To: [EMAIL PROTECTED] Subject: Setting focus on a field that referring to a deed property Okay, I have an object on my ActionForm that is a

Re: delay before redirect

2003-06-25 Thread James Mitchell
So what's stopping you from putting this META HTTP-EQUIV=Refresh CONTENT=5; URL=html:rewrite forward=someGlobalForward// ...in the head section of the page? someGlobalForward would obviously be a global forward that is the entry point into the application or as you put it app root and might

RE: Setting focus on a field that referring to a deed property

2003-06-25 Thread Jeremy Nix
Thanks. Figured it was simple enough, but I didn't have any reference books around. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED] Sent:

Problem in Iterating over a form bean property

2003-06-25 Thread O_Parthasarathy Kesavaraj
Hai I have not received any replies.let me put my question like this.is it possible to iterate over an ArrayList which is my form bean's property Regards Partha In formbean i am having an arraylist that contains a value object having id and name.I am loading that in my jsp.The code goed like

Re: way to format a date property inside an iterate loop?

2003-06-25 Thread Kris Schneider
With JSTL: jsp:useBean id=date class=java.util.Date/ %-- in loop --% c:set target=${date} property=time value=${longValue}/ fmt:formatDate value=${date} .../ Quoting Rick Reumann [EMAIL PROTECTED]: On Wed, 2003-06-25 at 09:47, Nielsen, Jim wrote: Hi, Is there a simple way to format a

Using modules and actionforward to an action

2003-06-25 Thread Abhinav (Cognizant)
For logging out I use this piece of code : RequestUtils.selectModule(, req, getServlet().getServletContext()); return (new ActionForward(/AuthFail.jsp)); I don't want to hardcode /AuthFail.jsp instead of that i want to forward to an action /logout

Re: [ANNOUNCE] Struts Console v4.0

2003-06-25 Thread William W
James, Congratulations, it is a great tool ! Thanks William. From: James Holmes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: [ANNOUNCE] Struts Console v4.0 Date: Tue, 24 Jun 2003 23:28:57 -0400 Struts

Re: delay before redirect

2003-06-25 Thread Ionel Gardais
James Mitchell wrote: So what's stopping you from putting this META HTTP-EQUIV=Refresh CONTENT=5; URL=html:rewrite forward=someGlobalForward// ...in the head section of the page? I already have a META HTTP-EQUIV=Refresh CONTENT=300; URL=javascript:location.reload() from the Tiles template.

RE: [ANNOUNCE] Struts Console v4.0

2003-06-25 Thread James Holmes
Hey Simon, Good catch. Sorry I messed up the plugin.xml file for Eclipse. All you need to do is edit plugin.xml underneath the com.jamesholmes.console.struts directory and change this: library name=lib/console.jar/ to this: library name=lib/struts-console.jar/ Thanks, James -Original

Tiles question

2003-06-25 Thread Bailey, Shane C.
I am looking to do something like what is listed below, is it possible or a way to do similar: tiles-defs.xml: definition name=doc.errorPage

Re: delay before redirect

2003-06-25 Thread James Mitchell
Ok, so add a small script in the body of your page that does it's own (e.g. overrides) the meta refresh. Here's what I mean (change to your liking): !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleTest Page/title meta http-equiv=Refresh content=300;

Re: Form field styling/error reporting - Alternate solution [Long]

2003-06-25 Thread Erik Price
Mike, this seems like a great idea. But wouldn't it be easier to just have the html:errors property=prop/ tag output the appropriate span type directly? This would avoid incurring the extra overhead of XSLT, and would work on non-XML-valid pages (not that I think very highly of

Do not parse html tags in properties file

2003-06-25 Thread Michael Remijan
Title: Do not parse html tags in properties file In my properties file where I put localized strings, I would also like to include some html tags. But when I use bean:message key=3Dwhatever/ to get the string I want, it parses the html tags so that is lt; and is gt; How do I prevent

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Jing Zhou
- Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 4:13 AM Subject: Re: Looking for ideas for action servlet checking for logged in user. I would use container-managed security. All the secured pages

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Erik Price
Adam Hardy wrote: Erik Price wrote: I would use container-managed security. All the secured pages should go in a directory which is the target of a security constraint in the deployment descriptor. This forces the user to log in when trying to access any secured pages. In the actions where a

Logic Iterate

2003-06-25 Thread Delio Dirazar
Hi: I want to edit an array of objects. I use logic:iterate , when it display the page, all values are displayed, but when I submit the form, it doesn't reflect the values on my bean ? Can anybody give me an example ? Thanks Delio The bean testbean have an array of object

RE: [ANNOUNCE] Struts Console v4.0

2003-06-25 Thread Chappell, Simon P
Will do James. And thanks for a wonderful tool. I've been using Struts Console for nearly a year and a half now ... wow. :-) Simon -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:00 AM To: 'Struts Users Mailing List' Subject: RE:

No Getter Method for int to String conversion

2003-06-25 Thread Nail, Evan Burke
I have a number of beans whose instance variables are int. private int claimcount; When generating a report, I use get methods to convert the int to a string. public String getClaimcount(){ return claimcount+; } My jsps have started throwing no getter method exceptions. ( These pages

requiredif question

2003-06-25 Thread Mick Knutson
I have the following code that does not seem to operate at all. I want phone1type to be a required field _if_ the phone1 attribute is _not_ field property=phone1type depends=requiredif arg0 key=form.phone1type/ var

validwhen in the validation-rules?

2003-06-25 Thread Mick Knutson
I can't find any examples of validwhen in the validation rules. Does anyone have a working example for me to use? --- Thanks... Mick Knutson --- _ MSN 8 with e-mail virus protection service: 2 months FREE*

RE: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Michael Remijan
I've found using security constraints to be a little cumbersome, especially since it requires some moderate modification of tomcat to put in a jdbc realm that fits your needs. My preference is to use Filters. A filter set up on your secure directory (specifed as /secure-dir-name/*) can be

  1   2   >