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

2005-01-20 Thread Jesse Alexander (KBSA 21)
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 Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 11:07 PM

Need a sample for DBConnection Pooling code

2005-01-20 Thread Manisha Sathe
Till now i am using simple JDBC call to connect to database inside struts. (I created one class which returns connection ). I am thinking of shifting this to DataSource Connection Pooling. I saw few posts regarding connection pooling today, but as i am a beginner i need some step wise

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

2005-01-20 Thread Pavel Kolesnikov
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 those coutries for now. T.T. Huw Richards [EMAIL PROTECTED] wrote: Interesting choice of countries on your registration page.

Re: Need a sample for DBConnection Pooling code

2005-01-20 Thread Pavel Kolesnikov
Following link describes how to configure a DBCP connection pool and access it using JNDI (for Tomcat): http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html BTW this link was sent to this mailing list at least three times during the last week ;) Pavel On Thu, 20

RE : Post - Redirect - Get

2005-01-20 Thread Michaël Bienstein
I got an error 500 when I tested the prgtoolkit.htm application entering 123 for the value of a new Item. It had a security error in the bean utils. I don't know the security model yet and am just starting out so I can't tell you why it happened. Just letting you know since you've told us to

Struts token doesn't work problem

2005-01-20 Thread Anthony Hong
I use server side xslt transformation and return it to client side for rendering. I saw use struts token mechanism can control form double submit problem. But it doesn't work in my enviorment. Is there any additional step I should put it into my response? Or it only work with the JSP view? --

Custom Currency Validation.

2005-01-20 Thread Sharon Jolly
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 entered. 3. User can

Re: NitroX for JSP/Struts Expiration

2005-01-20 Thread Rolf C. Graulich
Thank you for your responce. Am Mittwoch, 17. November 2004 01:05 schrieb Christopher Nguyen: Thank you for your interest in NitroX. It has been approximately 15 days since you downloaded the product and your license is about to expire. I've ordered a copy of Nitrox 2 for Struts Web for a

xmoon new version released

2005-01-20 Thread mario nee
now supports several script language: BeanShell,JRuby,JudoScript,Jython, Rhino (Javascript) XMoon site: http://www.xmoon.org Petstore demo site: http://www.demozone.org/petstore/index.do - To unsubscribe, e-mail: [EMAIL

Re: Struts token doesn't work problem

2005-01-20 Thread Will Stranathan
You have to do a couple of things: 1) While preparing the form, call generateToken(request); 2) Make sure you use the html:form tag - otherwise the token won't get put on the page. 3) When the user submits, do two things 3a) Check isTokenValid(request) - if it is, contiue, if not, warn the user.

Re: select multiple woes

2005-01-20 Thread Will Stranathan
Yes, it did. Which is why the detailed logging shows: setProperty([EMAIL PROTECTED], bar, [2,4,8]) I had selected mutliple items. w On Thu, 20 Jan 2005 00:22:56 -0600 Kishore Senji [EMAIL PROTECTED] wrote: Did you take a look at the html source (with String[])? It should have multiple=multiple

Re: Action Returning to previous page

2005-01-20 Thread Will Stranathan
On Wed, 19 Jan 2005 22:16:34 -0800 Dakota Jack [EMAIL PROTECTED] wrote: snip 2) Specify a forward / 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. /snip You can specify a dynamic ActionForward

Re: Problem with html:radio when disabled is true

2005-01-20 Thread Will Stranathan
Browsers (AFAIK) don't send a request parameter with disabled radio buttons. You'll have to do some additional checking in the reset() method of your bean to set those to the proper values. w On Thu, 20 Jan 2005 02:02:34 -0400 Néstor Boscán [EMAIL PROTECTED] wrote: Hi I'm working with struts

Re: Session Strategy

2005-01-20 Thread Will Stranathan
Nope - Andrew is right - JSP's are only part of the configuation and support files in a well-written MVC webapp - it's only TEMPLATE text. Just like if you send a canned email, I'm sure you keep your email templates under WEB-INF, right? Well, JSP's are just out.println() template. w On Thu,

Re: format attribute of the Bean:Write tag

2005-01-20 Thread gdeschen
After waiting sometime for any suggestions I decided to download the source code and look at the format attribute of the Write tag. String values are never formatted. // Return String object as is. if ( value instanceof java.lang.String ) { return (String)value;

Re: RE : Post - Redirect - Get

2005-01-20 Thread Matthew Ryan
The site has some trouble. However I have downloaded the archive and run it in my own install of Tomcat and not had any problem with it. Matt Quoting Michaël Bienstein [EMAIL PROTECTED]: I got an error 500 when I tested the prgtoolkit.htm application entering 123 for the value of a new

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

2005-01-20 Thread Backus, Matthew J
though not a struts issue, the anchor tags target attribute is generally used when dealing with frames. I have READ that forcing content into a new window can cause problems for user agents (html readers). -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent:

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

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

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. logic:iterate id=tab name=tabList type=org.apache.struts.tiles.beans.MenuItem % ...

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

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

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

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 the way

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

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

Re: Action Returning to previous page

2005-01-20 Thread Brandon Mercer
Will Stranathan wrote: snip 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 ... //

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

Re: Struts token doesn't work problem

2005-01-20 Thread Jeff Beal
Look at the source for the html:form/ 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 html:form/ tag. -- Jeff Anthony Hong wrote: I think my

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 those

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 required

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: snip 2) Specify a forward / 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. /snip You can specify a

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

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 user

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

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

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

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

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

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

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

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

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

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 html:form/ 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

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

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 have a

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 parent form.

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. session-config session-timeout30/session-timeout /session-config 30 are minutes You can set the session-timeout also in the web container (see tomcat

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

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

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

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

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

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

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

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

Re: Validator question

2005-01-20 Thread Hubert Rabago
I'm not exactly sure what you mean. If you meant the html:javascript resulted in javascript code being written without being surrounded by script tags, it happens to me whenever I forget to specify the form I wanted validation for. html:javascript formName=.../ On Wed, 19 Jan 2005 20:50:51

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

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

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

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

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: html:form action=/nestBeanArray html:text property=title/ html:text property=subTitle/ nested:iterate id=item

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

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

Using html:link with LookupDispatchAction

2005-01-20 Thread Flávio Maldonado
I'm trying to put a link like this: html:link page=user.do?action=user.newNew User/html:link 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: action path=/user

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

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 form action=display.jsp method=post 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

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

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: html:link page=user.do?action=user.newNew User/html:link It's not user.new, it's whatever user.new resolves to in your properties file. I usually do something like: bean:define

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

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

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

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

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

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)

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. attribute name=Java2ClassLoadingCompliancefalse/attribute

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 is

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

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

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 a

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

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

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

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

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

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

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

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

  1   2   >