Multiple Ressources

2002-10-30 Thread Yann Verlynde
Hello, This is my struts-config.xml: message-resources parameter=com.oxade.struts.ApplicationResources/ message-resources parameter=com.oxade.struts.Configuration null=false key=APPLICATION_CONFIGURATION/ In my Action: MessageResources messages =

Re: How to use Templates efficently ?

2002-10-30 Thread Marcus Biel
Hi Cedric, I just had a look at Chuck's chapter about tiles. I didn't read the whole chapter yet, only the half, but from what I've read so far, it doesn't seem to be so different from templates, just gots some enhanced features. Btw: I also read that it was you who created it! :-) So you should

Can anybody tell how to use struts 1.1 beat version in WASD

2002-10-30 Thread KISHORE KUMAR KOTA Rao
It will be really helpful for me. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: Multiple Ressources

2002-10-30 Thread Yann Verlynde
It seems that the initialization is well done but: [INFO] PropertyMessageResources - -Initializing, config='com.oxade.struts.Configuration', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='com.oxade.struts.ApplicationResources', returnNull=true But I can't extract the

Re: tiles:put / in ActionForward.perform()

2002-10-30 Thread Roland Carlsson
I have solved my own question. If anyone is intrested I past the code below. The change in the definition lasts only for the request and will not make any permanent changes. Regards Roland Carlsson public ActionForward perform( ActionMapping mapping, ActionForm form,

RE: How to use Templates efficently ?

2002-10-30 Thread Pete Gieser
I still can't see a reason to use tiles instead of a simple include file. I mean, okay, you can easily change your entire layout. BUT - in return you got twice as much files! For each file you need a content.jsp and a content-body.jsp. I don't think so. The file you refer to as

Pb using ActionErrors from reset method (ActionForm)

2002-10-30 Thread PALLUEL Sylvie
Title: Message Hello, I'm using the reset methodin a class which inherits from ActionForm to initialize my form from database. This method canfail and generate an error that I want to display using ActionErrors. How can I do this ? Thanks for your help. Sylvie.

Doc changes and 1.1

2002-10-30 Thread Josh Berry
Wow, I am going to go ahead and respond to everyone in one post. First, thanks everyone for highly recommending 1.1. I was under the impression that there was a fair deal that has changed. As I said, I am just using 1.0, but some other people have tried 1.1, and had reported difficulty in

RE: Nested levels within tiles?

2002-10-30 Thread Holman, Cal
You can use extend on the mainbody portion such that logon.page.layout extends home.page.layout that way you only change the bodycontent attribute. Basically one extend on the main layout definitions and another extend for the body definitions. You cannot use multiple inheritance - yet. If the

RE: tiles:put / in ActionForward.perform()

2002-10-30 Thread Holman, Cal
You can use the TilesAction to dynamically change a definition. Check out the documentation for dynamic portals. Cal http://www.calandva.com/ -Original Message- From: Roland Carlsson [mailto:roland.c;swetravel.se] Sent: Tuesday, October 29, 2002 10:31 To: Struts Users

Problem with unicode

2002-10-30 Thread MerrilG
Hi, Suppose a field in the database has unicode values such as #1588;. when i use html:text or textarea or for that matter any html components (using struts tag), i get the correct character. However if i use the bean:write .../ tag in the output i get the following characters. amp;#1588;

RE: [Re: [how many form for update and create action ?]]

2002-10-30 Thread Xavier Combelle
I finaly chose to use the same action and the same form for create and update. This decision allow me to simplify my code, but I used two jsp because on the specification, the create and the update page are visually different thanks to all for help me about your advices . Xavier -- To

problem using 2 jsp's with same property name + DynaActionForm ?

2002-10-30 Thread Taariq Levack
If 2 of my jsp's have the same property, eg idNumber, and firstJSP forwards to firstAction.do, secondJSP displays this idNumber, but it should NOT come from the request, its meant to get its values from a VO which secondJSP's pre-action has set in its scope. I'm not using jsp:setProperty

RE: Problem with unicode

2002-10-30 Thread Xavier Combelle
I think you should use the attribute filter=false of the write tag which will disable the character filtering by struts. see the following adress for more detailed explaination http://jakarta.apache.org/struts/userGuide/struts-bean.html#write Xavier -Message d'origine- De : [EMAIL

RE: tiles:put / in ActionForward.perform()

2002-10-30 Thread Holman, Cal
Do the tiles definition and the body attribute have the same name? I would think you would have to pass two parameters - the definition to act on and the body attribute to replace. Or the definition is constant and only the body can change. What does your tiles definition file look like? Cal

RE: Sorting within an Iterate tag

2002-10-30 Thread Madel,Kurt
Just do the sort in your action... Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Peter S. Hamlen [mailto:phamlen;mail.com] Sent: Tuesday, October 29, 2002 12:25 PM To: Struts Users Mailing List Subject: Sorting within an Iterate tag I'm sure other

Re: Nested levels within tiles?

2002-10-30 Thread Cedric Dumoulin
You can add a parent definition for home.page.layout and logon.page.layout. This definition will hold constant attributes: definition name=body.portal.def put name=leftportals value=/leftPortals/index.jsp / put name=bodycontent value=/home/index.jsp / /definition definition

Re: tiles:put / in ActionForward.perform()

2002-10-30 Thread Cedric Dumoulin
Hi, I think there is an action in the Tiles/Struts distribution doing exactly that ;-) Check org.apache.struts.tiles.actions.DefinitionDispatcherAction. Cedric Roland Carlsson wrote: I have solved my own question. If anyone is intrested I past the code below. The change in the

Re: How to use Templates efficently ?

2002-10-30 Thread Cedric Dumoulin
With Tiles you need one body for each page, and a definition specifying how the page is built. These definitions can be specified in one centralized file. Furthermore, there is an extends capability avoiding unnecessary repetitions. The problem is that you need to associate a definition to

Re: tiles:put / in ActionForward.perform()

2002-10-30 Thread Roland Carlsson
Hello Hal! I have limit the functionallity of the Action so it will only change the content of one tile named body. -- definition name=/layout5/page page=/layout5/layout.jsp put name=header value=/layout5/header.jsp/ put name=footer value=/layout5/footer.jsp/

Re: Can I avoid bouncing app when database goes down? (struts 1.0.2)

2002-10-30 Thread Ian Hunter
1.0.2; kinda old, I guess... - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 12:14 AM Subject: RE: Can I avoid bouncing app when database goes down? What version of Struts are you using?

Validation of a field that is optional.

2002-10-30 Thread Bas Passon
Hi, I'm using the validator for validation of my forms. In specifying the forms I came across the following problem for which I haven't found a solution anywhere yet. First I had a problem with validation of optional fields, this was solved through removing the depends='required' from the

Re: Doc changes and 1.1

2002-10-30 Thread Rob Leland
Josh Berry wrote: Second, as to the docs, I would love to help. However, I am better at proofreading then I am at most anything else. Josh, I tend to be a bad spellar and my Grammer is ain't so good either so dig in. ;-) Better docs are --always-- needed. I would suggest first cleaning up

back button

2002-10-30 Thread Gus Delgado
I have a JSP that has a sequence of actions. First one is validate which will validate some IO File and the next one is load to load the file. When the user hits validate it sends a request to the back-end to do some validation and I get back a response. When I hit Load it sends a request

Re: tiles:put / in ActionForward.perform()

2002-10-30 Thread Roland Carlsson
Ok, I'll take a look into that one. I found out that my Action did last over requests... witch it isn't supposed to do. :-( So I'm back to square one. Regards Roland - Original Message - From: Cedric Dumoulin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

HTMLTable framework for Struts

2002-10-30 Thread Rainer Mueller
Hi, has anyone used the HTMLTable framework from Yuriy Zubarev? Are there any alternatives for handling table sorting/paging within Struts? Thanks, Rainer -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: back button

2002-10-30 Thread Arnaud HERITIER
You can use Action.saveToken(...) to create a transaction in the first action. Then you use in your last action Action.isTokenValid(...) to verify if the user can commit his response. if(isTokenValid(...)){ // do your validation // if validation is done successfully

scope

2002-10-30 Thread Knoernschild, Kirk W
I'm using a databean to populate my JSP page. I put the bean on the request. The page populates fine. When submitting however, Struts builds my formbean and calls the validate method. If the validate method fails, I try to return to the submitting page. However, that page uses the databean,

intermittent error 500, refresh brings up jsp

2002-10-30 Thread Ruth Butlin
I have struts 1.1b-2 deployed to Oracle 9.02. It deploys and runs, then periodically when clicking on the image buttons to navigate through the jsp pages gives an error 500, internal server error. Clicking the refresh button will fix it, the jsp will then come up and their is no error recorded in

masks and ActionForm

2002-10-30 Thread Arnaud . PASQUIERS
Hello, Can someone give me an example using masks declared in the form-validation tag ? Thanks Arno -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: scope

2002-10-30 Thread Jeff_Mychasiw
Here is what we had to do. I would love opinions to know if I am on the right track. In our BaseAction we have a helper method that looks for ActionErrors in request scope (with the Struts Key): protected boolean isValErrorsPresent(HttpServletRequest request){ ActionErrors errors =

Another issueRE: Problem with unicode

2002-10-30 Thread MerrilG
thank you for the information. It worked. Another issue is this. In a JSP page whose charset i have defined as iso-8859-1 (using the meta html tag), i enter arabic words using arabic keyboard (not fonts) into a textfield. The server obtains the correct unicode characters. No problem in that. I

Re: back button

2002-10-30 Thread Affan Qureshi
You can disable the back button by using JavaScript history.forward() at the top of your page. But i dont know if that solves your problem. - Original Message - From: Gus Delgado [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 6:38 PM

Location of ApplicationResources.properties file

2002-10-30 Thread Hohlen, John
Is there a preferred location for the ApplicationResources.properties file? Does it matter whether I placed it in: 1) WEB-INF/classes 2) WEB-INF/classes/com.abc.project I realize whatever the location, I have fully qualify it in my web.xml file. I was just wondering if one location is better

Sorting within an Iterate tag

2002-10-30 Thread Peter S. Hamlen
I'm sure other people have encountered this, and I hope someone has a simple answer somewhere: We display lists throughout our Struts application, and depending on the screen, the lists need to be sorted differently. Is there a useful SortedIterate tag or somesuch out there? Example: We often

RE: Can I avoid bouncing app when database goes down? (struts1.0 .2)

2002-10-30 Thread Zeltser, Mark
I had the same problem. Try using poolman (I had to patch it since it was running in endless loop whenever sybase server was rebooted) -Original Message- From: Ian Hunter [mailto:ihunter;hunterweb.net] Sent: Wednesday, October 30, 2002 8:39 AM To: Struts Users Mailing List Subject: Re:

Re: [scope]

2002-10-30 Thread Josh Berry
Response below... Knoernschild, Kirk W [EMAIL PROTECTED] wrote: I'm using a databean to populate my JSP page. I put the bean on the request. The page populates fine. When submitting however, Struts builds my formbean and calls the validate method. If the validate method fails, I try to

Re: [Sorting within an Iterate tag]

2002-10-30 Thread Josh Berry
Response below. Peter S. Hamlen [EMAIL PROTECTED] wrote: We display lists throughout our Struts application, and depending on the screen, the lists need to be sorted differently. Is there a useful SortedIterate tag or somesuch out there? I believe the best solution here would be to deal with it

Struts Validator / dynamically enabling/disabling

2002-10-30 Thread Thomas Delnoij
Hi. I am using the Struts Validator in conjunction with a ValidatorForm. My html form has two submit buttons, one for saving without validation, another one with validation. Is it possible to dynamically switch on and of the validator depending on which button is pressed? I could of course

Form using beans as data member

2002-10-30 Thread Bhamani, Nizar A TL56E
I have a FormBean Class : public class SomeForm extends ActionForm implements Serializable { private SomeBean someBean; // .. } public class SomeBean implements Serializable { private String field1; private String field2; public String getField1() {

Re: Form using beans as data member

2002-10-30 Thread Rajesh Kalluri Kalluri
Nested propertys can be accesed among other ways by a . notation html:form action=SomeAction name=someForm type=com.something.SomeForm !-- How to use someBean.field1 property here -- html:text property=SomeBean.field1 size=3 maxlength=3/ /html:form [EMAIL PROTECTED] 10/30/02 09:15AM I

Re: tiles:put / in ActionForward.perform()

2002-10-30 Thread Roland Carlsson
Hi ! I think the DefinitionDispatcherAction doesn't do what I want to do Imagine that you have a definition with 2 tiles (left and body) In the left tile there are a collection of links that will change the content of body. If I understands what the DefinitonDispatcherAction does it will

RE: scope

2002-10-30 Thread Xavier Combelle
I think you could solve this problem by specifying in the input attribute af your action the action which populate the JSP page instead of the JSP page itself or by putting the first time the bean in session scope Xavier Knoernschild, Kirk W [EMAIL PROTECTED] on 10/30/2002 08:27:21 AM

struts messages

2002-10-30 Thread meissa . Sakho
When I start Tomcat , I have a series of messages (from struts) about ActionServlet, ActionMapping ans so ... Can someone tells me how to prevent from this. meissa -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: HTMLTable framework for Struts

2002-10-30 Thread Darren Hill
Try struts-layout ... its really good. http://struts.application-servers.com/ -Original Message- From: Rainer Mueller [mailto:rmueller;inventage.com] Sent: October 30, 2002 10:37 AM To: Struts Users Mailing List Subject: HTMLTable framework for Struts Hi, has anyone used the HTMLTable

Re: back button

2002-10-30 Thread David Graham
That is an absolutely hideous solution to the problem. Breaking the user's back button will only make them angry. David From: Affan Qureshi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: back button Date:

Form-Based Authentication and Struts

2002-10-30 Thread Etienne Labont
Hi, Is there any relation to be made between Tomcat Form-Based Authentication and Struts? The Tomcat admin webapp seems to be based on Struts and uses Form-Based Authentication. But it looks like it is not using Struts to handle the login form. On the other hand, the Struts-example webapp uses

Re: [Re: back button]

2002-10-30 Thread Josh Berry
Responses below. I actually marked the quotes this time, sorry for forgetting on my last. :( David Graham [EMAIL PROTECTED] wrote: That is an absolutely hideous solution to the problem. Breaking the user's back button will only make them angry. I agree, though I see attempts at just such

jsessionid embedded to javascipt

2002-10-30 Thread Sandeep Karnwal, Noida
Hi! All I am currently using struts 1.1b with Tomcat. I am using html:link like this html:link href=javascript:popup('abc','RME168',102112,'02',33,66352,29,1,30);abc /html:link In javascript popup function I am opening a new window script function

RE: struts messages

2002-10-30 Thread Xavier Combelle
The same thing append when I used log4j with struts framework, I made it disappear by specifing a high log level in the log4j configuration file logger name=org.apache.struts level value=ERROR/ /logger Xavier -Message d'origine- De : [EMAIL PROTECTED]

xhtml-support

2002-10-30 Thread Marko Petersen
Hi list, I am new to struts and want to use the struts-html.tld to generate an xhtml page. Is there any way to force struts to close tags like html:text ... / becomes input ... / ? Greetings, Marko -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional

Re: tiles:put / in ActionForward.perform()

2002-10-30 Thread Cedric Dumoulin
Ok, I haven't read carefully enough your previous mail. You can create a new definition from a definition read in the factory, and then instruct current Struts action to use your new definition. More precisely, the definition associated to the struts forward will be overloaded by your

Tags question

2002-10-30 Thread Gilbert, Antoine
Hi I m trying to dynamically create a tag for some tests prupose. At first, i have this : mapinfo:mapapp korem:myTag/ /mapinfo:mapapp If you check in servlet produced by compiled jsp, you can do something like that in your jsp. mapinfo:mapapp % MyTag mytag = MyTag();

Re: Can I avoid bouncing app when database goes down? (struts 1.0 .2) (try poolman)

2002-10-30 Thread Ian Hunter
http://www.codestudio.com says it is no longer supported. I'll keep looking, but if you have any suggestions... - Original Message - From: Zeltser, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 9:49 AM Subject: RE: Can I avoid

Re: xhtml-support

2002-10-30 Thread David Graham
The developers have debated this issue quite a bit recently. I'm not sure that xhtml will make it into 1.1. David From: Marko Petersen [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: xhtml-support Date: Wed, 30 Oct 2002 16:51:29 +0100

[OT] Getting a Collection's size in JSTL

2002-10-30 Thread David Graham
Sorry for the OT post but the java forum was unresponsive. How do you get the size of a collection class in the JSTL EL? You can do it with jsp expressions like: %= collection.size() % but I want to do something like c:if test=${collection.size 0} I've tried every variation on that syntax

Re: Can I avoid bouncing app when database goes down? (struts 1.0 .2) (try poolman)

2002-10-30 Thread Ian Hunter
http://www.codestudio.com/index.shtml allowed me to download it. That's so weird. Anyway, is there any way to implement this just by specifying the class in struts-config.xml, so I wind up with code like this? ds = (PoolmanConnection)

RE: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread Karr, David
-Original Message- From: David Graham [mailto:dgraham1980;hotmail.com] Sent: Wednesday, October 30, 2002 8:14 AM Sorry for the OT post but the java forum was unresponsive. How do you get the size of a collection class in the JSTL EL? You can do it with jsp expressions like:

RE: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread David Graham
Thanks David. Do you really think I'm not using struts :-) ? Dave From: Karr, David [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: [OT] Getting a Collection's size in JSTL Date: Wed, 30 Oct 2002 11:18:48

RE: Can I avoid bouncing app when database goes down? (struts1.0 .2) (try poolman)

2002-10-30 Thread Zeltser, Mark
Ian, You will need to configure poolman.xml and put it in your app/WEB-INF/classes directory. Then you can do the following: DataSource dataSource = PoolMan.findDataSource( Constants.DATASOURCE_KEY ); Connection connection = dataSource.getConnection(); Take a look at docs included with

RE: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread Karr, David
Well, for a second I thought maybe you were possessed or something :) . -Original Message- From: David Graham [mailto:dgraham1980;hotmail.com] Sent: Wednesday, October 30, 2002 8:24 AM To: [EMAIL PROTECTED] Subject: RE: [OT] Getting a Collection's size in JSTL Thanks David. Do

RE: back button

2002-10-30 Thread Trieu, Danny
Use transaction token to guaranty your transaction. And don't forget To set your controller to no-cache. -Original Message- From: David Graham [mailto:dgraham1980;hotmail.com] Sent: Wednesday, October 30, 2002 7:29 AM To: [EMAIL PROTECTED] Subject: Re: back button That is an

Trouble with messages duplicated directly to me (was RE: [Sorting within an Iterate tag])

2002-10-30 Thread Dennis Doubleday
Does anybody else have this problem with the mailing list: Sometimes people send messages to the list and they are also sent to me directly. This screws up my filtering. And it doesn't seem to be random. For example, I am getting in the To: field of every message Josh Berry sends to the list,

RE: Can anybody tell how to use struts 1.1 beat version in WASD

2002-10-30 Thread Hajratwala, Nayan (N.)
just import the WAR file for the struts-example... it is really that simple. I've done this successfully using WSAD 4.03 --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: KISHORE KUMAR KOTA Rao [mailto:RKishore;covansys.com] Sent:

RE: intermittent error 500, refresh brings up jsp

2002-10-30 Thread James Mitchell
I have seen strange behavior like this with Tomcat 4.1.8 (and higher). It PI##ED me off so bad that I was forced to go back to 4.0.4, but it seems that 4.1.12 is a lot better. Not sure if that helps you. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two

RE: Can anybody tell how to use struts 1.1 beat version in WASD

2002-10-30 Thread Chappell, Simon P
I have also been successful in just importing the struts-example.war into WSAD. But ... has anyone been successful in importing the source code version and then creating a WAR file from that? Simon - Simon P. Chappell

[Tiles] Getting wrong page definition when Struts does auto validation.

2002-10-30 Thread Jeff_Mychasiw
I have converted most of my developing application to Tiles with great success, but I have just found a error that I hope somone could help me with. It apears to me to be a bug because I think I have it configured properly. I am using 1.1b2 with tomcat 4.0.4 Most of my pages will extend one

Re: back button

2002-10-30 Thread Gus Delgado
please explain the controller to no-cache part? Trieu, Danny wrote: Use transaction token to guaranty your transaction. And don't forget To set your controller to no-cache. -Original Message- From: David Graham [mailto:dgraham1980;hotmail.com] Sent: Wednesday, October 30, 2002 7:29

[Tiles] Accessing layout attribute from a page (tile)

2002-10-30 Thread Hue Holleran
Is it possible to access a tiles layout attribute from a tile? e.g. if a layout is defined with an attribute, e.g. x: definition name=rootLayout path=rootLayout.jsp put name=x value=Hello direct=true / put name=body value=page.jsp / /definition How would I access the attribute x in

RE: [Tiles] Accessing layout attribute from a page (tile)

2002-10-30 Thread Madel,Kurt
tiles:getAsString name=x/ Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hue Holleran [mailto:hueh;softwareskills.net] Sent: Wednesday, October 30, 2002 12:02 PM To: Struts Users Mailing List (E-mail) Subject: [Tiles] Accessing layout attribute from a page

Re: [Sorting within an Iterate tag]

2002-10-30 Thread Peter S. Hamlen
Josh, Thanks for replying! Your recommendation is certainly technically possible and essentially what I'm doing now, but it leaves me particularly unsatisfied. Wouldn't you agree that the order of the list is strictly a display issue, rather than a business logic/processing issue?The action

RE: [JAVASCRIPT] parent reloader

2002-10-30 Thread Mark Silva
but what about parameters and such. i really just want to reload the page, and not figure out the url and parameters to reload. i guess this will work if nothing else does. -mark -Original Message- From: Joe Latty [mailto:joe;team2media.com] Sent: Tuesday, October 29, 2002 6:20 PM

Re: [Trouble with messages duplicated directly to me (was RE: [Sortingwithin an Iterate tag])]

2002-10-30 Thread Josh Berry
As I nervously check the to field in my email this time... I only show the mailing list as what I am sending to, and nobody is in my cc/bcc fields. I apologize, as this is almost guaranteed to double to you, but I just wanted to get it out there that I am checked the common error between the

RE: [Tiles] Accessing layout attribute from a page (tile)

2002-10-30 Thread Hue Holleran
Hi Kurt, Thanks for the response. Unfortunately this does not seem to work in a page included by the layout template, i.e. tiles:insert... or tiles:getAsString... both work fine in the template, e.g. in this case rootLayout.jsp. page.jsp is a tile used by the template and the attribute does not

Tiles definitions/Struts config odd behavior

2002-10-30 Thread Peterkofsky, Don
I have two essentially identical pairs of Struts actions and Tiles definitions, which are behaving differently, and problematically. I have these two actions in a sub-application struts-config: action path=/fwpagetemplate

RE: [Trouble with messages duplicated directly to me (was RE: [Sorting within an Iterate tag])]

2002-10-30 Thread James Mitchell
One thing I noticed is (when using Outlook or Outlook Express) if you have an email address in the 'Reply To' setting under Accounts, when someone hits 'reply' to an email, it will add both struts-users@ and that person's email address. This may be why you send one message, but receive 2 replies.

RE: [JAVASCRIPT] parent reloader

2002-10-30 Thread James Mitchell
You will always get the do you want to repost message if you refresh a page that was posted. The only way to avoid it is by sending the browser to a url, as Joe mentioned. Figuring out the parameters is up to you. This is slightly related to the 'should I chain my actions' argument. If you had

Re: [Re: [Sorting within an Iterate tag]]

2002-10-30 Thread Josh Berry
Responses below. Peter S. Hamlen [EMAIL PROTECTED] wrote: Thanks for replying! Your recommendation is certainly technically possible and essentially what I'm doing now, but it leaves me particularly unsatisfied. Wouldn't you agree that the order of the list is strictly a display issue,

Re: Form-Based Authentication and Struts

2002-10-30 Thread Craig R. McClanahan
On Wed, 30 Oct 2002, [utf-8] Etienne Labonté wrote: Date: Wed, 30 Oct 2002 10:35:45 -0500 From: [utf-8] Etienne Labonté [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Subject: Form-Based Authentication and

Re: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread Craig R. McClanahan
On Wed, 30 Oct 2002, David Graham wrote: Date: Wed, 30 Oct 2002 09:13:49 -0700 From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT] Getting a Collection's size in JSTL Sorry for the OT post but the java forum was

Re: [Tiles] Accessing layout attribute from a page (tile)

2002-10-30 Thread Cedric Dumoulin
You can't access attribute x from your page.jsp. Tiles attribute are like method's parameters: they are only visible in the inserted tiles, not in the surrounding tiles and not in sub-inserted tiles. If you want to access x from page.jsp, you have to pass it explicitly. This can be done in

href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
I have a jsp with a list of shipment data where hrefs are defined on the equipment keys. I would like the client to click on the link to drill down from the list to a detailed jsp. If I do the following: a href=/vcsc/shipmentTracking.do?equipmentNumber=MATU33445 I get a 404 url not found. How

RE: back button

2002-10-30 Thread Trieu, Danny
No-cache settings in the controller will make sure that every response going Through the controller will have its head setting to no-cache on the user Browser. Meaning, the content on the user browser get expired as the user Going to another page, and so when the user click the back button the

Re: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread David Graham
Thanks Craig. I realize that it doesn't work because of the naming issue but I was wondering if there was an easy way around it. Subclassing is certainly an option, would this be a useful method to add to the commons FastArrayList? Dave From: Craig R. McClanahan [EMAIL PROTECTED]

Re: [href to perform an action]

2002-10-30 Thread Josh Berry
Responses below... Cindy Horn at SF x4874 [EMAIL PROTECTED] wrote: I have a jsp with a list of shipment data where hrefs are defined on the equipment keys. I would like the client to click on the link to drill down from the list to a detailed jsp. If I do the following: a

Re: html:options ordering

2002-10-30 Thread Danny Mui
Hash Tables don't guarantee order when you pull them out enmasse. probably best bet is to store it in a list and sort accordingly (Collections.sort). Dennis Muhlestein wrote: I have a hashtable with key/value that get displayed by an html:options tag. Works ok, but they are ordered in

Re: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread David Graham
I actually thought of a better idea which is getting into commons collections territory but I'll post a quick description here. I made a JstlCollectionWrapper class that wraps any Collection object and implements the Collection interface. I added a getSize() method to this class. The

[ANNOUNCE] Struts Console v3.0

2002-10-30 Thread James Holmes
Struts Console version 3.0 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-3.0.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-3.0.tar.gz Struts Console is FREE software. Eclipse plugin support and Validator

Re: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread David Graham
Eclipse support! Cool, I'll try it out. David From: James Holmes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [ANNOUNCE] Struts Console v3.0 Date: Wed, 30 Oct 2002 10:50:37 -0800 (PST) Struts Console

RE: href to perform an action

2002-10-30 Thread James Mitchell
No, if #1 is your application name (i.e. you deployed vcsc.war) and #2 is correctly defined in your struts-config, then all should be fine (btw. case matters) a href=/vcsc/shipmentTracking.do?equipmentNumber=MATU33445 #1#2 James Mitchell

Re: Can I avoid bouncing app when database goes down? (struts 1.0 .2) (try poolman) (use validationQuery)

2002-10-30 Thread Dan Tran
Question: Do you keep your connection all the time? If you do, it is not adviced to do so. Close it when ever you can. Do you use connection pooling? -D - Original Message - From: Ian Hunter [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

RE: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread Chappell, Simon P
James, you're a coding animal! Don't you have a life? ;-) Simon -Original Message- From: James Holmes [mailto:jholmes612;yahoo.com] Sent: Wednesday, October 30, 2002 12:51 PM To: Struts Users Mailing List Subject: [ANNOUNCE] Struts Console v3.0 Struts Console version 3.0 is now

Re: Can I avoid bouncing app when database goes down? (struts 1.0 .2) (try poolman) (use validationQuery)

2002-10-30 Thread Ian Hunter
The socket connection from the servlet container to the database itself is always open. The application itself closes each connection at the end of each page. I have been implementing connection pooling from the beginning, and all that was fine -- the only problem was when the database itself

RE: Can I avoid bouncing app when database goes down? (struts1.0 .2) (try poolman) (use validationQuery)

2002-10-30 Thread Zeltser, Mark
I am using poolman 2.1 with Sybase jconnect driver and don't have this problem. Mark. -Original Message- From: Ian Hunter [mailto:ihunter;hunterweb.net] Sent: Wednesday, October 30, 2002 2:42 PM To: Struts Users Mailing List Subject: Re: Can I avoid bouncing app when database goes down?

RE: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread James Holmes
I'm just having fun :) ...and I do have a life... :) -james --- Chappell, Simon P [EMAIL PROTECTED] wrote: James, you're a coding animal! Don't you have a life? ;-) Simon -Original Message- From: James Holmes [mailto:jholmes612;yahoo.com] Sent: Wednesday, October 30, 2002

Can Nested Tag lib go 2 Level Deep.

2002-10-30 Thread Gopal Mukkamala
Class A { private int a; List hldB ;//holds references for class B } Class B { int b; List hldC; ;//holds references for class C } Class C { int c; } Is it possible with nested tag libs to get hldC from Class A and iterate ? bean id=A

RE: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread David Graham
James, Your eclipse install instructions would be much simpler if you provided an update manager site. You just supply the url and eclipse downloads and installs everything automatically, including future updates. Can you please provide this? Thanks, David From: James Holmes [EMAIL

RE: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread Chappell, Simon P
Congrats on the Oracle award ... can I get your autograph? ;-) I even put a link to your site on my new Struts page on my site! (Major sucking up of course, but the console is wonderful) http://www.simonpeter.com/techie/java/struts/ Simon

RE: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread James Mitchell
I missed the quote that was supposed to be under it. You not using my Console? I kick you azz!!! ;) James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert

[ANNOUNCE] Struts 1.1 UML diagrams

2002-10-30 Thread Jean-Michel Garnier
I have updated my tutorial about illustrating Struts and MVC model 2 with UML Diagrams : http://rollerjm.free.fr/pro/Struts11.html If you know Struts 1.1, please feel free to send me your comments. As soon as it will be validated by the community, I will update the link in the official Struts

  1   2   >