Re: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
On Thu, 20 Jan 2005 22:59:09 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > ... it is a filter ... notice how it says "implements Filter". The > mapping in web.xml is a dead giveaway too. You are right. And you know you are right. I guess that is why you feel free to be sardonic, although you

Re: Validator question

2005-01-20 Thread Curtis Taylor
Hi Hubert, Thanks for the reply; very helpful & much appreciated (as is all your work ;-). I've done a bit more gumshoeing; it seems to me the html:javascript tag's exception handling is a bit different than other Struts tags. I discovered that the reason that the html:javascript tag printed th

Re: Filter for Expired Sessions

2005-01-20 Thread Eddie Bush
Leading by example is good, except when you give a poor example. It's generally considered POOR ETIQUETTE to post code, stack traces, or anything else that adds significant size to a message. Put it on a site somewhere and mention the URL to it in your post, or, if someone specifically requests i

Re: Session Strategy (here's a filter)

2005-01-20 Thread Eddie Bush
... it is a filter ... notice how it says "implements Filter". The mapping in web.xml is a dead giveaway too. I'd love to know how it detects session timeouts though. Far as I can tell it will tell people who have yet to have a session created that they've timed out. ... first trip around the b

Re: [shale] Re: Struts Shale

2005-01-20 Thread Dakota Jack
Oh, I see, Craig. I usually assume that the email I got was from the list rather than from an individual and with a copy to the list. So, I thought I was responding to the list. Here it goes to the list. Jack On Thu, 20 Jan 2005 20:42:01 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > > On T

Re: JDBC Driver

2005-01-20 Thread Eddie Bush
I agree with your premise. However, some shops like to keep things elementary -- like to cook their own dog food so they know what it's made of. I'm far too lazy to write JDBC calls everywhere, and this seems to be the dominant behavior of folks :-( Once I get the spit and polish of my subsystem

Re: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
I was interested, again, in a filter. Jack On Thu, 20 Jan 2005 14:41:32 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote: > I was looking for a filter that detected sessions that had expired and > rerouted the request to a login or other appropriate page. > >

Struts commons logging and debugging

2005-01-20 Thread send2rajesh
Hi, I am using struts 1.1 with Weblogic 7. I am having little difficulty debugging when I mess up things like : In JSP use a Form Bean property which I missed to define in the FormBean. or Type the wrong class name of the Form Bean in struts-config.xml The application just show the common error

Re: UTF8 encoding for weblogic

2005-01-20 Thread Anthony Hong
Look at this, hope this is what you want. http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1039258 On Thu, 20 Jan 2005 18:34:52 -0800, Betty Koon <[EMAIL PROTECTED]> wrote: > Sorry that I have to post this question here but I figure a lot of struts > developers may be using weblogic 8.1

UTF8 encoding for weblogic

2005-01-20 Thread Betty Koon
Sorry that I have to post this question here but I figure a lot of struts developers may be using weblogic 8.1 (SP4 or SP3). I am running into a problem where higher ASCII character or multi-bytes characters are not encoded correctly in url passing within weblogic. I already have a filter set up

Re: message tag, resource bundle

2005-01-20 Thread Anthony Hong
Struts message mechanism use Java ResourceBundle to load language bundle resource, it's follow Java ResourceBundle's rule. I would like to recommend you to look at Java's Internationalization technic http://java.sun.com/docs/books/tutorial/i18n/resbundle/index.html Struts offer configuration for r

Re: Struts token doesn't work problem

2005-01-20 Thread Anthony Hong
Actually I use xslt to do as my view. So I couldn't use struts tags at all. Is there any other mechanism that I could use to control double click? I have to simulate struts's token action? -- Anthony Hong - To unsubscribe, e-ma

Nested properties using

2005-01-20 Thread Simon MARTIN
Hi, I'm using an array of SchuelerMatura-Objects in a DynaValidatorForm, being defined like this in struts-config: I want to show and edit those elements in a table, whereas I iterate through the array as follows: This works quite fine for schueler.*n

Re: Need a sample for DBConnection Pooling code

2005-01-20 Thread Manisha Sathe
Oh! sorry, i did not make it clear. I do went thr this. Currently i am on TomCat but live environment may not be. (I believe this is for TomCat ?? I might be wrong ). I want to develop some generalised code which can be used on any server. Also in instructions MSSQL Database is not mentioned

Re: installing Struts on JBoss

2005-01-20 Thread kjc
Alex Kravets wrote: but how I ago about fixing JBoss? I can't even shutdown/start gives me exceptions all over the place. And I can't subscribe to Jboss mailing list, returns mail delivery failed when I try to confirmwhat a day Greg Dunn wrote: Sorry I confused things. We had to do thi

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
but how I ago about fixing JBoss? I can't even shutdown/start gives me exceptions all over the place. And I can't subscribe to Jboss mailing list, returns mail delivery failed when I try to confirmwhat a day Greg Dunn wrote: Sorry I confused things. We had to do this to get our app to l

Re: [OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread t t
At first I thought one can play basketball by himself/herself if he/she cannot find someone else to play with. Later on, I thought it's better to add it to the list, but I forgot to do it. Thanks for reminding me. T.T. Bill Siggelkow <[EMAIL PROTECTED]> wrote: Any reason you don't list "Bask

RE: installing Struts on JBoss

2005-01-20 Thread Greg Dunn
Sorry I confused things. We had to do this to get our app to load. In this case it's deployed as an .ear with a .war packed inside (EJB's for the Model layer) and using Struts 1.1. What I believe is happening is that without the setting we get NoClassDefFoundError because the JBoss tries to lo

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
I tried it and nothing works now. I can't even restart JBoss :( Pavel Kolesnikov wrote: Greg, could you please explain this a bit more? I'm curious about it, because I'm running multiple Struts based application on JBoss without this setting and I've never encountered any problems with mysterious

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
I can shutdown JBoss, but when start again I get this: JBoss Bootstrap Environment JBOSS_HOME: /export/home/jboss-3.2.3 JAVA: /export/home/java/jdk1.5.0/bin/java JAVA_OPTS: -server -Dprogram.name=run.sh CLASSPATH:

Re: installing Struts on JBoss

2005-01-20 Thread Pavel Kolesnikov
Greg, could you please explain this a bit more? I'm curious about it, because I'm running multiple Struts based application on JBoss without this setting and I've never encountered any problems with mysterious ServletExceptions. BWT I've just tried to deploy struts-examples on a vanilla JBoss 4.

Re: Editing Struts-Config file

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 15:50:59 -0600, Brent Vaughn <[EMAIL PROTECTED]> wrote: > What do they plan on doing with the datasource? It's kind of redundant now that the various containers are including data source configuration in them. Iirc the spec says the data source is handled in the server. > >

RE: Editing Struts-Config file

2005-01-20 Thread Brent Vaughn
What do they plan on doing with the datasource? -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 3:24 PM To: Struts Users Mailing List Subject: Re: Editing Struts-Config file On Thu, 20 Jan 2005 14:48:32 -0600, Brent Vaughn <[EMAIL PROTECTED

RE: Editing Struts-Config file

2005-01-20 Thread Brent Vaughn
What do they plan on doing with the datasource? -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 3:24 PM To: Struts Users Mailing List Subject: Re: Editing Struts-Config file On Thu, 20 Jan 2005 14:48:32 -0600, Brent Vaughn <[EMAIL PROTECTED

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
I modified jboss-service.xml and now nothing works :( I had applications that access database and when I submit I get blank action page and error in server.log: 2005-01-20 16:33:04,717 ERROR [org.jboss.web.localhost.Engine] CoyoteAdapter An exception or error occurred in the container during the

Re: Editing Struts-Config file

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 14:48:32 -0600, Brent Vaughn <[EMAIL PROTECTED]> wrote: > I was attempting to internally add a datasource to the struts-config file > through a web-based application. Ah rumor around here is that defining a datasource in struts-config is going away soon. So it' s probably

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
Graig, After I modify jboss-service.xml do I need to restart the server or just run the application? Alex Greg Dunn wrote: For Struts apps on Jboss you need to make sure you set the 'Java2ClassLoadingCompliance' flag to "false" indicating the servlet 2.3 web container first model should be used o

Re: message tag, resource bundle

2005-01-20 Thread Corey Probst
> 1) Why does the globalResources.properties live under /WEB-INF/classes? Is > there a way to configure this differently? I'm not an expert but I'll try to help... The properties file is loaded using a ClassLoader. So the short answer is that the /WEB-INF/classes folder is on the class path by d

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
In server.log just before 'root cause' I have 2005-01-20 15:18:52,579 ERROR [org.jboss.web.localhost.Engine] Also, localhost.log has entry 192.9.200.230 - - [20/Jan/2005:15:18:52 -0500] "POST /log/QuerySubmit.do HTTP/1.1" 500 10707 Pavel Kolesnikov wrote: Unfortunatelly this stack trace doesn't

Re: installing Struts on JBoss

2005-01-20 Thread Pavel Kolesnikov
Unfortunatelly this stack trace doesn't say anything more than "there was some error processing a Test.jsp". Couldn't you find anything more in the server log? ($JBOSS_HOME/server/default/logs/server.log) Pavel On Thu, 20 Jan 2005 15:54:40 -0500, Alex Kravets <[EMAIL PROTECTED]> wrote: > Ok, this

RE: installing Struts on JBoss

2005-01-20 Thread Greg Dunn
For Struts apps on Jboss you need to make sure you set the 'Java2ClassLoadingCompliance' flag to "false" indicating the servlet 2.3 web container first model should be used over the normal Java2 parent first class loading model. false In Jboss 4.x this is in the file .../deploy/jboss

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
Ok, this is all I get from application running on JBoss after submitting the page. org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

message tag, resource bundle

2005-01-20 Thread Scott Purcell
Hello, I am having trouble understanding how the message tag and the resource bundle work together. Let me try and summarize. I have gone through the O'Reilly book and I see how the resoruce bundle and the bean:message tag work, but would like a little more in-depth understanding: In a jsp

Re: installing Struts on JBoss

2005-01-20 Thread kjc
Alex Kravets wrote: I mean as far as copying all the jar and tld files. Apache Struts site mentions different requirements for different containers on this page http://struts.apache.org/userGuide/installation.html, no mention of JBoss though. It's just seems odd to me if I just have to copy *jar

RE: Editing Struts-Config file

2005-01-20 Thread Brent Vaughn
I was attempting to internally add a datasource to the struts-config file through a web-based application. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 2:33 PM To: Struts Users Mailing List Subject: Re: Editing Struts-Config file On Th

RE: Editing Struts-Config file

2005-01-20 Thread Brent Vaughn
I was attempting to internally add a datasource to the struts-config file through a web-based application. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 2:33 PM To: Struts Users Mailing List Subject: Re: Editing Struts-Config file On Th

Re: installing Struts on JBoss

2005-01-20 Thread Alex Kravets
I mean as far as copying all the jar and tld files. Apache Struts site mentions different requirements for different containers on this page http://struts.apache.org/userGuide/installation.html, no mention of JBoss though. It's just seems odd to me if I just have to copy *jar *tld to lib direct

Re: installing Struts on JBoss

2005-01-20 Thread Pavel Kolesnikov
On Thu, 20 Jan 2005 15:22:01 -0500, Alex Kravets <[EMAIL PROTECTED]> wrote: > Are there any special requirements to install and run Struts > applications on JBoss? If you application doesn't need to use any external resources like a datasources, EJBs or so on, you don't need to do anything special

Re: Editing Struts-Config file

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 14:33:21 -0600, Brent Vaughn <[EMAIL PROTECTED]> wrote: > Is it possible to edit the struts-config.xml file from within the struts > application? Will it cause Struts to fail? I think struts only reads it at startup. The configuration is usually locked so you can't change it.

Re: Using html:link with LookupDispatchAction

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 18:14:00 -0200, Flávio Maldonado <[EMAIL PROTECTED]> wrote: > I'm trying to put a link like this: > " New User " It's not user.new, it's whatever user.new resolves to in your properties file. I usually do something like: > > So, in my getKeyMethodMap, I did: >

Re: installing Struts on JBoss

2005-01-20 Thread kjc
Alex Kravets wrote: Are there any special requirements to install and run Struts applications on JBoss? I istalled JBoss on Tomcat and have been able to run Struts applications w/o any problems. Same application on JBoss gives me Servlet Exception. I would try mailing lists/forums for JBoss, but

Editing Struts-Config file

2005-01-20 Thread Brent Vaughn
Is it possible to edit the struts-config.xml file from within the struts application? Will it cause Struts to fail?

Editing Struts-Config file

2005-01-20 Thread Brent Vaughn
Is it possible to edit the struts-config.xml file from within the struts application? Will it cause Struts to fail?

Re: open new window form struts action

2005-01-20 Thread [EMAIL PROTECTED]
Ashish Kulkarni wrote: Hi can we open a new window from action class? i dont want to use target="_blank"> as i want to be able to open this new window from any form( i have a menu option which can be executed from any page of my website) Basically i have a java script which looks like this TheNew

installing Struts on JBoss

2005-01-20 Thread Alex Kravets
Are there any special requirements to install and run Struts applications on JBoss? I istalled JBoss on Tomcat and have been able to run Struts applications w/o any problems. Same application on JBoss gives me Servlet Exception. I would try mailing lists/forums for JBoss, but I find them not es

Re: [OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread Bill Siggelkow
Any reason you don't list "Basketball"? t t wrote: I am not sure. But I guess it's the official one, since I got it from the demo application coming with Struts package. T.T. David Suarez <[EMAIL PROTECTED]> wrote: Is the "Powered By Struts" logo an official Struts logo or something that you cre

Using html:link with LookupDispatchAction

2005-01-20 Thread Flávio Maldonado
I'm trying to put a link like this: " New User " So, in my getKeyMethodMap, I did: protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("user.new", "newUser"); return map } And, my Struts-config.xml is like this: I have a method, in my LookupDispatchAction class, called: public

Re: [OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread Hubert Rabago
You can also get it from the bottom of the Struts home page http://struts.apache.org . On Thu, 20 Jan 2005 11:49:26 -0800 (PST), t t <[EMAIL PROTECTED]> wrote: > I am not sure. But I guess it's the official one, since I got it from the > demo application coming with Struts package. > > T.T. >

Re: [OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread t t
I am not sure. But I guess it's the official one, since I got it from the demo application coming with Struts package. T.T. David Suarez <[EMAIL PROTECTED]> wrote: Is the "Powered By Struts" logo an official Struts logo or something that you created? Curious if there is some branding that I sho

Re: Session Strategy (here's a filter)

2005-01-20 Thread john . chesher
Dakota Jack wrote: I was looking for a filter that detected sessions that had expired and rerouted the request to a login or other appropriate page. That's what this does, specifically the following section of code: > if (session.isNew()) { >

Re: array of nested objects -- adding a new object

2005-01-20 Thread Peter Maas
Small miscommuncation here ;) I have only one form with nested bean elements, which inherit from actionform. I think this is perfectly legal :-) In psuedo code the form is like this: Child[] bean Title: Child[] bean subTitle:

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread fzlists
If your looking for something to run WHEN a session expires, the better choice is probably a SessionListener. I'm not clear on if that's what you really want though. Assuming it is, here's an example from one of my apps... this basically updates a list of active users in a static member of a c

[OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread David Suarez
Is the "Powered By Struts" logo an official Struts logo or something that you created? Curious if there is some branding that I should be using when there are no requirements against something like that. Please advise...djsuarez -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sen

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
That's right. And, that is what I provided. There is an error in the ServletExpireFilter I provided, however. You have to change filterConfig = filterConfig to this.filterConfig = filterConfig in two places. Then it works like a charm. Jack On Thu, 20 Jan 2005 10:05:51 -0800, Wiebe de Jong <

Re: Referencing the Local DTD rather than the http:// one

2005-01-20 Thread Joe Germuska
I haven't seen a final answer to this, but in all cases where Struts is doing a validating parse of an XML document (including validator, which is actually commons-validator and not core Struts code), the DTDs are registered so that if you have the correct public ID, the code will read them fro

RE: open new window form struts action..java script variable

2005-01-20 Thread Ashish Kulkarni
Hi it is not the name, when you exit from that jsp page and revisit it, the variable is defined again, and does not refer to the previously defined, and so have no clue of te open browser window Ashish --- "David G. Friedman" <[EMAIL PROTECTED]> wrote: > Why not set the window name to something s

Re: Validator question

2005-01-20 Thread Hubert Rabago
I'm not exactly sure what you mean. If you meant the resulted in javascript code being written without being surrounded by

Re: Session Strategy

2005-01-20 Thread Dakota Jack
package com.crackwillow.filter; import java.io.IOException; import java.io.PrintStream; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletExcepti

RE: R: Session Strategy (here's a filter)

2005-01-20 Thread Wiebe de Jong
This will detect that a session has already expired, but I think that is not what he wants. I think Jack is looking for something to run WHEN the session expires, similar to the destroy() method in a plugin that runs when the application stops. Wiebe de Jong -Original Message- From: Aml

RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread t t
Thank you very much. I had been thinking I missed something when I looked at the banner. Here we are! T.T. [EMAIL PROTECTED] wrote: Don't forget the 'e' at the end of 'Welcom'. Remy. -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 3:58 PM To:

Re: OT: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread t t
Thanks! T.T. Dakota Jack <[EMAIL PROTECTED]> wrote: Your site is looking MUCH better. Good job! Jack On Thu, 20 Jan 2005 09:30:59 +0100, Pavel Kolesnikov wrote: > maybe you could add Taiwan ;) > > On Wed, 19 Jan 2005 14:07:21 -0800 (PST), t t wrote: > > Since I only have the names of states

Filter for Expired Sessions

2005-01-20 Thread Dakota Jack
I thought it would be best to put this where it would be easy to find for searchers. package com.crackwillow.filter; import java.io.IOException; import java.io.PrintStream; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.Reque

Struts 1.2.7?

2005-01-20 Thread Benedict, Paul C
I saw the votes on Struts 1.2.6 (http://wiki.apache.org/struts/StrutsRelease126) and it was voted Beta quality. I also know that Struts 1.3 is receiving active development, but is this preventing the next GA for 1.2.7+? Thanks, Paul ---

R: R: Session Strategy (here's a filter)

2005-01-20 Thread Amleto Di Salle
Hello Jack, you detect a session expiration using the getSession( false ) method. If you use false, the session is not created if there is no current session. In fact, in a previous e-mail that I sent, there was my Filter which used the getSession method. All it works if the session expires, and yo

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Kris Schneider
The simplest solution is probably just to use HttpServletRequest.isRequestedSessionIdValid(). If it's valid, carry on, if not, forward to your login page. Note that HttpServletRequest.isRequestedSessionIdValid() will return "false" when HttpSession.isNew() returns "true"... if (request.isRequested

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread fzlists
Jack, I think any of the example filters posted should be good templates for what you want... The question is, how would you detect an expired session now? You'd do the same in the filter. Ymight do something like this: (1) When the user logs on, that is, when you have validated them through

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
Hello, Amleto, I am not looking to create a timeout but to detect a session expiration, so that the user can be redirected to a page. I am not, that is, looking to get rid of people but looking to help people that have their session expired. Jack On Thu, 20 Jan 2005 17:42:55 +0100, Amleto Di S

R: Session Strategy (here's a filter)

2005-01-20 Thread Amleto Di Salle
You can do this using request.getSession( false ) (false doesn't create the session) and use the following in the tag in the web.xml. 30 30 are minutes You can set the session-timeout also in the web container (see tomcat documentation). BR /Amleto > -Messaggio originale- > Da: Dako

Re: array of nested objects -- adding a new object

2005-01-20 Thread Peter Maas
In one form... using nested tags. Isn't that the way to do it? On Thu, 2005-01-20 at 09:24 -0700, Jim Barrows wrote: > On Thu, 20 Jan 2005 16:58:37 +0100, Peter Maas <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am trying to use the nested iterator have a list of ActionForms > > nested in the par

Re: array of nested objects -- adding a new object

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 16:58:37 +0100, Peter Maas <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use the nested iterator have a list of ActionForms > nested in the parent form. U... as in more then one action form inside a form? Or multiple forms on one page? I would tend to think you hav

Re: struts token to prevent duplicate submission

2005-01-20 Thread Hubert Rabago
>From http://www.husted.com/struts/catalog.html -- Use the Action Token methods to prevent duplicate submits There are methods built into the Struts action to generate one-use tokens. A token is placed in the session when a form is populated and also into the HTML form as a hid

Re: Struts token doesn't work problem

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 09:54:00 -0500, Jeff Beal <[EMAIL PROTECTED]> wrote: > Look at the source for the tag and see how it inserts the > token. The token is just a session-scoped attribute and it's inserted > on the page as a hidden form field. You can probably write it to the > page easily withou

Re: Session Strategy

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 06:53:36 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > I am also too lazy to make a filter! LOL ;-) Anyone have one of > these in their toolbox they would like to share? package com.sssc.csr.web.filters; import java.io.IOException; import java.util.Iterator; import java.ut

Re: Action Returning to previous page

2005-01-20 Thread Will Stranathan
Hello again, I've found this interesting and seemingly useful piece of information in a struts book I recently obtained. Dynamic Forwards ActionForward forward = new ActionForward("/do/itemEdit?action=edit"); Then it goes on to tell me to use the runtime parameter techniques in the previous s

Re: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
I was looking for a filter that detected sessions that had expired and rerouted the request to a login or other appropriate page. Jack On Thu, 20 Jan 2005 10:53:09 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Here's the filter I use. It contains some logging that you can choose to > ig

Re: array of nested objects -- adding a new object

2005-01-20 Thread Hubert Rabago
It might help to inspect the values that are actually reaching the server. I often have a servlet that does nothing but dump request parameters (aside from other data). This would be another case where I'd use them, to make sure that my javascript is generating form fields using the proper names

array of nested objects -- adding a new object

2005-01-20 Thread Peter Maas
Hi, I am trying to use the nested iterator have a list of ActionForms nested in the parent form. I managed to get it to work when I create the nested object manually in the constructor of the parent form, if I do this I can succesfully edit the bean properties using nested tags. If however I wa

Re: Session Strategy (here's a filter)

2005-01-20 Thread john . chesher
Here's the filter I use. It contains some logging that you can choose to ignore and I also set some session attributes that I use for navigation AFTER the re-login, to get the user back to the page they were on or as near as possible, given only their first/last name and password. I also incl

Re: Action Returning to previous page

2005-01-20 Thread Dakota Jack
This is all cool, but, I think, overly complicated for what you need. I think a better solution, simpler and less archane, would be to create a helper class that constructs the appropriate ActionForward given your needs/rules. SomeAction extends Action with execute(...) { return ActionForwar

Re: Pre populate form missing values from nested object

2005-01-20 Thread Conrad CRAMPTON PSE 52704
Ok, thanks Hubert - this confirms that I will have to do what I want another way. Cheers Conrad   Conrad CramptonSoftware Solutions ManagerForce Headquarters11 Edinburgh SquareSutton RoadMaidstoneME15 9BZ01622 653283 (ext)19-3283 (internal)07814 011752 (mobile)>>> [EMAIL PROTECTED] 20/01/05 15:36

Re: Pre populate form missing values from nested object

2005-01-20 Thread Hubert Rabago
Our views align on the use of session scoped beans, however, it seems that session scope is what meets your needs. > So this essentially means that nested objects are worthless as you can't > keep reference to child objects that you populate in the middle tier for the > trip around to the UI and

R: Session Strategy

2005-01-20 Thread Amleto Di Salle
Hi, I created the following Filter and it seems to work. Note 1) I used a custom security model, i.e. a login page inside my application. And this solution implies the extension of TilesRequestProcessor if you have a menu roles-based. 2) The object "userID" contains information regarding the use

RE: Help with logic tags, and commas please.

2005-01-20 Thread Mick.Knutson
Well, note that each of the items is a Boolean not a boolean. So they are each objects in the arraylist. Will this help reduce the chunk of code? Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This message may contain confidential and/or privileged information. If

Re: Action Returning to previous page

2005-01-20 Thread Brandon Mercer
Will Stranathan wrote: On Wed, 19 Jan 2005 22:16:34 -0800 Dakota Jack <[EMAIL PROTECTED]> wrote: > 2) Specify a for the Action that sends the user back to > from whence they came. I don't think I can do this because they may come from a number of pages. You can specify a dynamic ActionForward

Re: Pre populate form missing values from nested object

2005-01-20 Thread Conrad CRAMPTON PSE 52704
    Conrad CramptonSoftware Solutions ManagerForce Headquarters11 Edinburgh SquareSutton RoadMaidstoneME15 9BZ01622 653283 (ext)19-3283 (internal)07814 011752 (mobile)>>> [EMAIL PROTECTED] 19/01/05 16:07:49 >>> > So the question is this - how do I retain values of nested properties that> aren't r

Re: OT: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread Dakota Jack
Your site is looking MUCH better. Good job! Jack On Thu, 20 Jan 2005 09:30:59 +0100, Pavel Kolesnikov <[EMAIL PROTECTED]> wrote: > maybe you could add Taiwan ;) > > On Wed, 19 Jan 2005 14:07:21 -0800 (PST), t t <[EMAIL PROTECTED]> wrote: > > Since I only have the names of states/provinces of t

Re: Struts token doesn't work problem

2005-01-20 Thread Jeff Beal
Look at the source for the tag and see how it inserts the token. The token is just a session-scoped attribute and it's inserted on the page as a hidden form field. You can probably write it to the page easily without using the tag. -- Jeff Anthony Hong wrote: I think my problem is I didn't

Re: Session Strategy

2005-01-20 Thread Dakota Jack
I am also too lazy to make a filter! LOL ;-) Anyone have one of these in their toolbox they would like to share? Jack On Thu, 20 Jan 2005 12:49:41 +0800, Andrew Hill <[EMAIL PROTECTED]> wrote: > Id support the filter suggestion, though for myself I generally do the > check in the RequestProce

Re: getting html:textarea multiliple values

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 07:10:16 +0530, Sudheer <[EMAIL PROTECTED]> wrote: > No, single textarea with multiple item selected. I want to get the selected > items. If you're thinking of something a GUI text area where you can get the area the user selected, then you can't do it. It's an HTML thing. You

Re: Action Returning to previous page

2005-01-20 Thread Brandon Mercer
Will Stranathan wrote: My apologies for not reading first - yeah - use a dynamic one like jack said. I would PROBABLY subclass Action with an abstract subclass - something like: public ... execute(...) { // This overrides Action.execute() // Do whatever up-front checking ... // Now,

Re: Validation problem - for a form with multiple names

2005-01-20 Thread Matt Bathje
Manisha Sathe wrote: I have a form whose fields are from an dynamic customer array. I display Customer name and giving i/p field for Amount to enter. The JSP might contain 2-3 text fields called amt against different customers (I am identifying it with IDs) My form bean is something like this

Re: Struts token doesn't work problem

2005-01-20 Thread Anthony Hong
I think my problem is I didn't use html:form struts tag, I use form tag in html directly. So it didn't work. Thanks. -- Anthony Hong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help with logic tags, and commas please.

2005-01-20 Thread bmf5
>I need to know if this would be correct as well, where > creditApplicationListDto.businessLine is a Boolean: No. Kishore already explained. >>Note that you can do this in the DTO if you want to and expose >>the collection through a getter Not sure if it's the "best" way but this would be t

RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread Remy . ANNIS
Don't forget the 'e' at the end of 'Welcom'. Remy. -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 3:58 PM To: Struts Users Mailing List Subject: Welcome to sportslovers.net which is powered by Struts! Hi, all, I just updated www.sportslovers.ne

RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread t t
Thanks. I'll think about it. T.T. "Jesse Alexander (KBSA 21)" <[EMAIL PROTECTED]> wrote: usually States have to be filled only for USAway. All other countries should be used without state... or create a state "other" which c an be used for other countries... regards Alexander -Original Me

Re: Custom Currency Validation.

2005-01-20 Thread Matt Bathje
Sharon Jolly wrote: Hi, I am part of a project where in a form i have 3 field where the user can enter amount values and my requirement is i need to allow the user to enter amount in the following formats. 1. user can enter the amount alone. 2. It should allow only 2 decimal places to be entere

struts token to prevent duplicate submission

2005-01-20 Thread Kalra, Ashwani
Hi, Can someone point me to the struts token usage any sample code/or documentation link ? Regds Ashwani This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are

Re: how to substring with JSTL taglib

2005-01-20 Thread Pavel Kolesnikov
On Thu, 20 Jan 2005 21:53:23 +0800, PC Leung <[EMAIL PROTECTED]> wrote: > <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %> > > Then I substring the ending characters with the following codes. > > type="org.apache.struts.tiles.beans.MenuItem" > > <% > ... > String suffix

Re: Session Strategy

2005-01-20 Thread Frank W. Zammetti
I'm not sure I agree with the point, but I do see where your coming from. It's debatable I think, but you make a reasonable argument. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Will Stranathan wrote: Nope - Andrew is right - JSP's are on

how to substring with JSTL taglib

2005-01-20 Thread PC Leung
I do not know how to display graphics in tab index of Tiles layout. So that I modify the tabsLayout.jsp to display graphics. In order to do that, I try to check the tab index name if it is ended with ".gif". I add the taglib at the front of tabsLayout.jsp like this <%@ taglib uri="http://java.su

  1   2   >