RE: REPOST: Relative URLs

2005-03-30 Thread tarek.nabil
: Thanks Erik. I guess when you get into the tags mood, you forget there's something called scriptlets :) -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 5:06 PM To: Struts Users Mailing List Subject: Re: REPOST: Relative URLs How about

RE: Form name collision

2005-03-30 Thread tarek.nabil
Thanks Christopher. I think that attribute property can solve my problem. But I really have never heard about it before, where are those things documented? :) -Original Message- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:08 PM To: 'Stru

Re: How to protect an action from the "user"

2005-03-30 Thread Dakota Jack
On Thu, 31 Mar 2005 01:07:14 +0200, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > I would first say that you probably want to think about > > refactoring your design. > > I think this is always true :-) We have a rule about when refactoring is advisable. Usually it is not. However, in this ca

Re: Dynamic Tables and Data

2005-03-30 Thread Vilpesh Mistry
hi well iam faced with the same task and have been searching instead of developing. go to url http://struts.application-servers.com or type & search for struts-layout tags on google here there is one screen where a row can be dynamically added thanks --- [EMAIL PROTECTED] wrote: > Greetings,

Re: How to protect an action from the "user"

2005-03-30 Thread Dakota Jack
I had a few thoughts on this one that are not directly related to your question but which impact what you are doing. A. What the heck is ActionB b = new ActionB() doing in there? Why not Action b = new ActionB()? B. If you were relying on only one instance of an Action being available, why

Re: [ANNOUNCE] New Struts PMC Chair - Martin Cooper

2005-03-30 Thread Dakota Jack
Thanks, Craig. Congratulations, Martin. -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [ANNOUNCE] New Struts PMC Chair - Martin Cooper

2005-03-30 Thread Matthias Wessendorf
Thanks to Craig and congratulations to Martin. +1 on that ;) Niall http://struts.apache.org/announce.html http://struts.apache.org/volunteers.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Recall: Give George Dubya a brain!

2005-03-30 Thread Thomson, Mark [IT]
>, "Jennie Baker \(E-mail\)" <[EMAIL PROTECTED]>, "Jo Pendrill \(E-mail\)" <[EMAIL PROTECTED]>, "Joan Leahy \(E-mail\)" <[EMAIL PROTECTED]>, "Joel Hedrick \(E-mail\)" <[EMAIL PROTECTED]>, "Jules Bellamy \(E-mail\)" <[EMAIL PROTECTED]>, "Jules Daniells

FW: Give George Dubya a brain!

2005-03-30 Thread Thomson, Mark [IT]
>, "Jennie Baker \(E-mail\)" <[EMAIL PROTECTED]>, "Jo Pendrill \(E-mail\)" <[EMAIL PROTECTED]>, "Joan Leahy \(E-mail\)" <[EMAIL PROTECTED]>, "Joel Hedrick \(E-mail\)" <[EMAIL PROTECTED]>, "Jules Bellamy \(E-mail\)" <[EMAIL PROTECTED]>, "Jules Daniells

[ANNOUNCE] New Struts PMC Chair - Martin Cooper

2005-03-30 Thread Niall Pemberton
Craig McClanahan stepped down from the Chair of the Struts PMC, informing the ASF Board at their February 2005 meeting. In Craig's words from the following thread "I will continue to be active, but it's time for someone else to take the administrative responsibilities.". http://www.mail-archive.c

RE: Struts , hibernate, and DBCP

2005-03-30 Thread David G. Friedman
Brian, How do I put this... You don't go crazy with Hibernate until you're comfortable with it. Feel free to start with implementing a few actions which do something like this to obtain a Session from within your action: // assuming you used the hibernate example listener at: // http://www.hiber

Re: Is It Possible to Code Using Struts and JSF at the Same Time?

2005-03-30 Thread Craig McClanahan
On Wed, 30 Mar 2005 07:30:41 -0800 (PST), Caroline Jen <[EMAIL PROTECTED]> wrote: > I am working on a big J2EE project. The project is at > its initial stage. The leaders of the project have not > quite made up their mind on whether we are going to > use the Struts framework or JSF. But, all member

Re: How to protect an action from the "user"

2005-03-30 Thread Frank W. Zammetti
Well, the bottom line is you got a solution, and in the end that's all that matters :) Leon Rosenberg wrote: Well in this case the action was instantiated a business object reference (like ejb remote) for later invocation of business methods in execute. I mean, I have to do it somewhere and it is

Re: Model

2005-03-30 Thread Martin Gainty
Rafael- Did you take a look at http://daoexamples.sourceforge.net/xref/index.html Saludos, Martin- - Original Message - From: "Rafael Taboada" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 30, 2005 1:24 PM Subject: Model > Hi folks. > > I'm developing on struts and I don't know how

RE: Is It Possible to Code Using Struts and JSF at the Same Time?

2005-03-30 Thread Himanshu Shah
Hi, Its all depend on your project's domain. But I can tell you boldly that you can use Struts and JSP together without worried your project size. So, at present if you want to start coding you can start design your JSP pages, and later on add struts tags. Regards, Himanshu Shah -Original

RE: Is It Possible to Code Using Struts and JSF at the Same Time?

2005-03-30 Thread Himanshu Shah
Hi, Its all depend on your project's domain. But I can tell you boldly that you can use Struts and JSP together without worried your project size. So, at present if you want to start coding you can start design your JSP pages, and later on add struts tags. Regards, Himanshu Shah -Original

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Fogleson, Allen
You could write your own tag... But it is not available in Struts tags as they sit. At least not to my knowledge. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 7:50 PM To: Struts Users Mailing List Subject: RE: [OT] Re: Iterate through

Re: [HELP] How can javascript reference to 1 html:hidden tag or html:text ???

2005-03-30 Thread Pham Anh Tuan
Thank you all :"), my problem is solved! - Original Message - From: "Mark Benussi" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Thursday, March 31, 2005 12:05 AM Subject: RE: [HELP] How can javascript reference to 1 html:hidden tag or html:text ??? document.forms['formBe

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Brian McGovern
Yeah. I know what you mean, I'd do it in an action rather than this way too. But i don't think i was clear. I want a tag library way of getting the iteration to work with the reason being that if I can reference an individual Key without specifying its resource bundle in the action servlet (

Validator valid-when help

2005-03-30 Thread David Kennedy
I'd appreciate some help with the valid-when validator rule. I have a text field 'foo' as part of my DynaValidatorForm which should be validated with my custom 'ipAddress' validator rule. This is easy to set up in validation.xml. Now I have a checkbox 'useFoo' associated with the text field 'foo

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Fogleson, Allen
Actually it doesn't matter whether it's a servlet or a jsp. A JSP is a servlet after all. Now granted this is way off topic, and I would be like wendy and do it in an action then put the properties (or some other collection of the key-value pairs) into the request and do it that way. With that said

Re: Design question

2005-03-30 Thread Rajesh Thiharie
1. In a single form you would have the button as a parameter. This is better because you will need to develop a single Action and write a switch-case for the buttons (parameter(s) per tab). 2. For separate actions you would not need to bother with parameters because each button is mapped to a s

Re: How to protect an action from the "user"

2005-03-30 Thread Leon Rosenberg
> I would first say that you probably want to think about > refactoring your design. I think this is always true :-) > Actions are designed to be a > per-request handling mechanism, so anything that is creating > persistent objects, or as a result of the function creates > persistent objec

Re: How to protect an action from the "user"

2005-03-30 Thread Leon Rosenberg
> I would first say that you probably want to think about > refactoring your design. I think this is always true :-) > Actions are designed to be a > per-request handling mechanism, so anything that is creating > persistent objects, or as a result of the function creates > persistent objec

Re: How to protect an action from the "user"

2005-03-30 Thread Leon Rosenberg
Thanx Dave, You message just brought the answer :-) As I read "HashMap" I remembered that I actually do have a HashMap in the ActionRegistry, where each action is registered in BaseActions constructor, so I can collect actionstats (number of requests, min/max/middle times etc) for later presen

Re: How to protect an action from the "user"

2005-03-30 Thread Leon Rosenberg
Thanx Dave, You message just brought the answer :-) As I read "HashMap" I remembered that I actually do have a HashMap in the ActionRegistry, where each action is registered in BaseActions constructor, so I can collect actionstats (number of requests, min/max/middle times etc) for later presen

Re: How to protect an action from the "user"

2005-03-30 Thread Dave Newton
Whoops, too quick on the trigger. You'd want to look at Action.processActionCreate to implement my somewhat... suspect solution outlined below. It's easy and fun; we did a processRoles override for doing our own role-based action access; really nothing to it. It's nice all that stuff is abstrac

Re: How to protect an action from the "user"

2005-03-30 Thread Frank W. Zammetti
Hi Leon, I would first say that you probably want to think about refactoring your design. Actions are designed to be a per-request handling mechanism, so anything that is creating persistent objects, or as a result of the function creates persistent objects (like a ThreadPool as you mentioned)

Re: How to protect an action from the "user"

2005-03-30 Thread Dave Newton
Leon Rosenberg wrote: The question is now, how can I ensure, that an action is actually created once, and from proper "caller" without changing 500 existing action classes. The only thing I could imagine, would be introducing a test mode, and if running in test mode, throw an exception in the BaseA

Re: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Wendy Smoak
From: "Brian McGovern" <[EMAIL PROTECTED]> > Thanks. I figured I know I can get it to work in servlet code but im hoping to avoid that. > I know that single properties are made available by the framework in taglibs like this key="error.application_error" />. Ther has to be a simple way to just ge

How to protect an action from the "user"

2005-03-30 Thread Leon Rosenberg
Hi, I have following problem. Recently in code review we found some places, where one very young and very inexperienced developer was directly instantiating an action: in execute of ActionA: ... ActionB b = new ActionB(); b.callSomeMethod(); ... Unfortunately ActionB was getting some resources

How to protect an action from the "user"

2005-03-30 Thread Leon Rosenberg
Hi, I have following problem. Recently in code review we found some places, where one very young and very inexperienced developer was directly instantiating an action: in execute of ActionA: ... ActionB b = new ActionB(); b.callSomeMethod(); ... Unfortunately ActionB was getting some resources

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Brian McGovern
Thanks. I figured I know I can get it to work in servlet code but im hoping to avoid that. I know that single properties are made available by the framework in taglibs like this . Ther has to be a simple way to just get ALL the properties in a particular bundle directly from the jsp itself.

[OT] Re: Iterate through blah.properties file

2005-03-30 Thread Wendy Smoak
From: "Brian McGovern" <[EMAIL PROTECTED]> > Can someone tell me how to iterate through a properties file in my JSP. > I want to grab the keys and values for everythign within a certin Blah.properties file > in my class path and display on the page. Here's part of a Factory class I use in my DAO l

Iterate through blah.properties file

2005-03-30 Thread Brian McGovern
Can someone tell me how to iterate through a properties file in my JSP. I want to grab the keys and values for everythign within a certin Blah.properties file in my class path and display on the page. This has to be possible. -Thanks -B

Re: DynaValidationForm Display In JSP?

2005-03-30 Thread Dave Newton
Scott Purcell wrote: That is what I said. Its got to work, or why have it. Anyway, the error, (past my tail command by now) was the tag could not find a getter for the coversCheckbox element. And of course it can't, there is none. There needs to be a way to let the html: element know that this i

Re: DynaValidationForm Display In JSP?

2005-03-30 Thread Wendy Smoak
From: "Scott Purcell" <[EMAIL PROTECTED]> > I thought the DynaValidatorForm existed to cut down on the number of "Physical class beans" > we had to create. I hope this works. Not really... Dynamic forms only get you out of writing all those get/set methods, and remove the temptation to do things t

Model

2005-03-30 Thread Rafael Taboada
Hi folks. I'm developing on struts and I don't know how to implement model layer. Do u know some sample codes about model layer?.. I was reviewing about DAO in daoexample.sourceforge.net but i'd like to have another material. thanks -- Rafael Taboada

RE: DynaValidationForm Display In JSP?

2005-03-30 Thread Scott Purcell
Thanks Mike, That is what I said. Its got to work, or why have it. Anyway, the error, (past my tail command by now) was the tag could not find a getter for the coversCheckbox element. And of course it can't, there is none. There needs to be a way to let the html: element know that this is a Dyn

RE: DynaValidationForm Display In JSP?

2005-03-30 Thread Nidel, Mike
Wow. I'm stumped. As I said, I don't have firsthand experience with DynaForms... Only thing I can think of is, did you set the input to your JSP correctly in the struts-config? Not to sound overly optimistic, but it's GOT to work. It uses the same functionality on the sending as it does when sett

Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Matt Raible
On Mar 30, 2005, at 5:35 AM, Ted Husted wrote: Spring is a large project with several components. The Spring Core works just fine with Struts. You can use it to instantiate your business objects from Struts Actions. Aside from Spring Core, the Spring project also includes a Spring MVC component. Sp

DynaValidationForm Display In JSP?

2005-03-30 Thread Scott Purcell
I have finally figured out how to get my DynaValidationForm data in the Action class using the get() and set("Name", obj); So I finally got a checkbox set in a DynaValidatorForm object, and I go to my JSP page to display its checked status. Since it is a single checkbox, I figured I would throw

Re: Pressing enter in a form

2005-03-30 Thread Frank W. Zammetti
You could simply attach an onKeypress event to the textboxes... This will ignore anything other than Enter (13). I'm actually not sure about that this.form part, off the top of my head that might be wrong... I remember there being a way to get a reference to the form an belongs to, but that mi

Re: Struts + Ajax + Firefox

2005-03-30 Thread Frank W. Zammetti
Nope, I haven't looked at it at all. I just checked out the home page for Struts Flow though, where do you see the announcement? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, March 30, 2005 12:11 pm, Matthias Wessendorf said: > Fra

RE: bean in a Actionform

2005-03-30 Thread Nidel, Mike
Hello Temp, It seems like you want to use a combination of the nested bean property naming and list-backed properties. I think your property name in the form element will be something like mybean.prop which will result in form.getMybean().setProp() when the form is submitted. I believe your s

bean in a Actionform

2005-03-30 Thread temp temp
I have an actionform which contains a bean as a property. This bean has getter and setter methods for few Strings . 1. How to display properties from this bean in my jsp in a list . And when the form is submitted 2. Can I automatically populate my bean in actionform with the values

Re: Pressing enter in a form

2005-03-30 Thread Wendy Smoak
From: "Abdullah Jibaly" <[EMAIL PROTECTED]> > I have a form with an followed by an . > How can I get the submit to be activated when enter is pressed inside a text box on that form? > It is activating cancel right now. What I do is put an invisible button at the top of my form. (A button with a

Re: Struts + Ajax + Firefox

2005-03-30 Thread Matthias Wessendorf
Frank, did you took a look at Struts Flow allready? I just surfed the subproject and saw that AJAX is announced there. Thanks, Matthias Frank W. Zammetti wrote: Actually, I didn't intend for it to be private :) I'm not writing it for any publication in particular, although it could wind up one one

Re: DynaValidatorForm and Checkbox

2005-03-30 Thread Wendy Smoak
From: "Scott Purcell" <[EMAIL PROTECTED]> > DynaValidatorForm theForm = (DynaValidatorForm)form; > String catalogID = theForm.getCatalogID(); > Boolean checkbox = theForm.getCovers(); > But it will not compile. How do I get the values from the form? I usually create my own physical bea

RE: [HELP] How can javascript reference to 1 html:hidden tag or html:text ???

2005-03-30 Thread Mark Benussi
document.forms['formBeanName'].elements['userId'].value = 'xyz'; if you invoke the Javascript from a form element, you can pass this reference and simply do: formReference.elements['userId'].value = 'xyz'; -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: 30 M

RE: DynaValidatorForm and Checkbox

2005-03-30 Thread Nidel, Mike
Having never used DynaValidatorForm before, I'm not 100% sure what the means for accessing the properties would be. It's clear that getCatalogID() is not going to be defined on DynaValidatorForm as an available method. So I'd try calling getDynaProperty() and if that doesn't work you should researc

RE: DynaValidatorForm and Checkbox

2005-03-30 Thread Scott Purcell
Ok, making headway but have issue: Since it is a single checkbox, I am using a Boolean, so here is my bean: Now when the user submits the form, there will be a catalogID set. So I am trying to pull out the catalogID like this in my Action class: public ActionForward exe

Re: Pressing enter in a form

2005-03-30 Thread Jason King
Put the submit button first is the simplest most-straightforward answer.. If having cancel appear on the page first is a requirement that can't be worked around, put both buttons in s and use css to position the s so the cancel-div appears first. The "click the first button looks through the ht

RE: Load message resources from DB???

2005-03-30 Thread Mick.Knutson
Do you mean substitution like the ???form.tag.name??? -- Thanks... Mick Knutson Systems Developer Business Direct Services, Wells Fargo Bank 333 Market Street, SF, CA 94103 (415) 371-2553 [EMAIL PROTECTED] MAC A0103-223 "This message may contain confidential and/or privileged informatio

Re: Struts + Ajax + Firefox

2005-03-30 Thread Matthias Wessendorf
Ok, thanks! -Matthias Frank W. Zammetti wrote: Actually, I didn't intend for it to be private :) I'm not writing it for any publication in particular, although it could wind up one one somewhere. I'll certainly announce it here when it's done. ---

Pressing enter in a form

2005-03-30 Thread Abdullah Jibaly
Hi all, I have a form with an followed by an . How can I get the submit to be activated when enter is pressed inside a text box on that form? It is activating cancel right now. Thanks, Abdullah - To unsubscribe, e-mail: [EMAI

Re: Struts + Ajax + Firefox

2005-03-30 Thread Frank W. Zammetti
Actually, I didn't intend for it to be private :) I'm not writing it for any publication in particular, although it could wind up one one somewhere. I'll certainly announce it here when it's done. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.

Re: DynaValidatorForm and Checkbox

2005-03-30 Thread Wendy Smoak
From: "Scott Purcell" <[EMAIL PROTECTED]> > I have a couple of jsp pages where there is a single checkbox on the page. > But as a newbie, I am not sure what type in the creation to make it? A String? A Boolean? I usually use Boolean for checkboxes. (Read the docs about using the 'reset' method to

DynaValidatorForm and Checkbox

2005-03-30 Thread Scott Purcell
I have a couple of jsp pages where there is a single checkbox on the page. I would like to create a DynaValidatorForm with a single element in it (the checkbox). Then in the action, run a query, if the database says to turn it on, then I would like to set it to true (X) or else show a unchecked

Re: Struts + Ajax + Firefox

2005-03-30 Thread Frank W. Zammetti
I don't know of any right now, but there *will* be one by the weekend :) (I'm working on an article on this all, and it will include a Struts-based application showing a number of usages... I had hoped to be done already, but you know, life gets in the way...) -- Frank W. Zammetti Founder and Ch

Re: Struts + Ajax + Firefox

2005-03-30 Thread Matthias Wessendorf
I started reading on ajax technology bundle and now I am wondering if anybody knows a *deployable* WAR that demonstrates Struts Actions and *AJAX* :-) -Matthias Stéphane Zuckerman wrote: Joe Germuska a écrit : I don't think this is a problem with Struts, rather with Firefox and its way of handling

Re: Struts + Ajax + Firefox

2005-03-30 Thread Stéphane Zuckerman
Joe Germuska a écrit : I don't think this is a problem with Struts, rather with Firefox and its way of handling XMLHttpRequest... But is there a way to bypass this behaviour ? I don't think you can use ActiveXObjects in Firefox -- you certainly wouldn't be able to reach users of non-Windows sys

RE: prepopulation action form

2005-03-30 Thread temp temp
I have set redirect="true" only for one action it did not work there and other actions got nothing like redirect="true" but it doesnot work even there. thanks & regards --- "Fogleson, Allen" <[EMAIL PROTECTED]> wrote: > Hmmm really? I do it all the time for request scope. > Are you setting > re

RE: [HELP] How can javascript reference to 1 html:hidden tag or h tml:text ???

2005-03-30 Thread Slattery, Tim - BLS
> I don't know how javascript reference to 1 html:hidden tag or > html:text tag of struts tag lib and change their value. > for example: > I have document.getElementsByName("userId")[0].value="whatever"; If you use the "styleId" attribute, which yields an "id" attribute in HTML: You can

RE: prepopulation action form

2005-03-30 Thread Fogleson, Allen
Hmmm really? I do it all the time for request scope. Are you setting redirect="true"? that would likely mess it up. Al -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 9:44 AM To: Struts Users Mailing List Subject: RE: prepopulation action for

RE: prepopulation action form

2005-03-30 Thread temp temp
I said as you said . It works fine with session but not with request.Which is better to use request or session. thanks & regards --- "Fogleson, Allen" <[EMAIL PROTECTED]> wrote: > Sure... > > Lets say jsp1 posts to actionA which forwards to > jsp2 > > In actionA simply create and instance of

Design question

2005-03-30 Thread Apte, Dhanashree (Noblestar)
Hi All, What would be the way to go with forms when I have multiple tabs on a web page? Single form for all the tabs or multiple forms (one for each tab)? Does anyone know of an example that I could look at? Thanks a lot! Dhanashree.

RE: Struts + Spring or Struts versus Spring

2005-03-30 Thread Fumo, Vince
Don't know if it's appropriate to do this, but I am adding my 2c as well. I've been using Spring and Hibernate with Struts for some time now and have found it to be excellent. If you are the book type, there is a very good book on Spring from Apress titled "Pro Spring" that covers the entire framew

Is It Possible to Code Using Struts and JSF at the Same Time?

2005-03-30 Thread Caroline Jen
I am working on a big J2EE project. The project is at its initial stage. The leaders of the project have not quite made up their mind on whether we are going to use the Struts framework or JSF. But, all members of the team think that we should start coding. Is it possible to use the Struts framewo

Re: Struts 1.3

2005-03-30 Thread Corey Probst
> But I can't find a link on where to download it.. The nightly builds are located here. http://svn.apache.org/builds/struts/maven/nightly/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: Struts + Ajax + Firefox (was: Best practice for "dynamic reloading" of a part of the JSP ?)

2005-03-30 Thread Frank W. Zammetti
Yes, Joe is correct... As per the sample I posted a day or so ago, in simplest terms, use the following Javascript to get the object: if (window.XMLHttpRequest) { // Non-IE browsers req = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE req = new ActiveXObject("Microsoft.XMLHTTP"

RE: prepopulation action form

2005-03-30 Thread Fogleson, Allen
Sure... Lets say jsp1 posts to actionA which forwards to jsp2 In actionA simply create and instance of the actionForm for jsp2, populate the parameter into it and save it in the appropriate scope. For instance if my actionMapping for actionB is: blah blah you would just do a: request.se

Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Joe Germuska
In short, what Ted said. More elaborately, I've been using Spring with a lot of Struts web apps, and I'm very happy with the combination. Spring does a whole lot more than Struts ever wanted to do, and you can use as much or as little of it as you like. And even though Spring MVC exists as a

prepopulation action form

2005-03-30 Thread temp temp
I have two actionforms two action classes and two jsps .Clicking on a link in a jsp should take me to next jsp .Here I must pass some parameter to next jsp. In the first jsp I display some data from a collection containing objects which I generate from database in action class and set thi

Re: Struts + Ajax + Firefox (was: Best practice for "dynamic reloading" of a part of the JSP ?)

2005-03-30 Thread Joe Germuska
This is working fine AFAIK, but while in IE it displays the result and that is all, in Firefox the page is still in a loading process... even though it has displayed all there was to be displayed ! I don't think this is a problem with Struts, rather with Firefox and its way of handling XMLHttp

Dynamic Tables and Data

2005-03-30 Thread gdeschen
Greetings, Apologies if this has already been posted... but since the List Archive is not available I must post. I have a requirement to display rows of the the same data such as: Date Description Delete indicator The user can change any data in any row at any time. Additionally, the user can a

RE: Struts , hibernate, and DBCP

2005-03-30 Thread Brian McGovern
David , OK I got this working. It creates the pool on startup. But the question now becomes how to get a session from the factory. This listener provides a open(HttpServletRequest) method, but no close method. I intend to wrap my data access objects in a separate layer and would like to avo

Struts 1.3

2005-03-30 Thread Marco Mistroni
Hello all, After reading Bill Siggelkow's interesting article on Struts & Commons Chain, I'd like to have a look at Struts 1.3 (as suggested in article) But I can't find a link on where to download it.. Links on struts page point to at most version 1.2.6 Any help? Thanx and regards

Re: Actions and form methods ...

2005-03-30 Thread Stéphane Zuckerman
Erik Weber a écrit : Try using request.getParameterNames to see what's actually being delivered to the server. I did try it (although I should have mentionned it). I've progressed a little so far : it seems that if I type the url directly inside the navigation bar, it works. But in fact it is a

Re: Actions and form methods ...

2005-03-30 Thread Erik Weber
Try using request.getParameterNames to see what's actually being delivered to the server. Erik Stéphane Zuckerman wrote: Hello, Are the Action classes only processing "POST" forms ? I am asking this because I'd like to give some parameters to an Action I am creating, and can't get no result wit

Re: REPOST: Relative URLs

2005-03-30 Thread Erik Weber
How about: <% String basePathVar = (String) application.getAttribute("myPathVar"); %> . . . Erik tarek.nabil wrote: Thanks everyone. I really like the idea of using a ServletContext attribute, but I'm not using the EL, is there a way I can do that without using the EL? -Original Message- F

Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Ted Husted
Spring is a large project with several components. The Spring Core works just fine with Struts. You can use it to instantiate your business objects from Struts Actions. Aside from Spring Core, the Spring project also includes a Spring MVC component. Spring MVC does overlap with Struts. Spring MVC

Struts + Spring or Struts versus Spring

2005-03-30 Thread Rodolfo García Esteban/CYII
Hi, I have been reading about frameworks and I have seen something about Spring, and I have a lot of doubts. Spring is complementary or is then same place?. In some places said that Spring is complementary thats threats about the middle tier, but I have seen some examples and Spring replaces t

RE: Form name collision

2005-03-30 Thread Marsh-Bourdon, Christopher
There are two solutions that you have available to you (well that I know off the top of my head): 1) Use the _attribute_ property in the action tag to give each form a pseudonym: This would l

RE: REPOST: Relative URLs

2005-03-30 Thread tarek.nabil
Hi David, I'm afraid I don't understand your solution. I'm using Struts 1.1, but I don't know what you mean by contextRelative="false". It doesn't seem to be an attribute on the img or image tags. Also, I need a solution that will work with plain old html tags as well, not just with Struts html ta

Form name collision

2005-03-30 Thread tarek.nabil
Hi, I'm facing a problem with having multiple forms that submit to the same action on the same page. I have a search page with a few search fields. The user does the search and gets the paged results in the *SAME* page. Now, the user can either change the search criteria and search again, or use

Actions and form methods ...

2005-03-30 Thread Stéphane Zuckerman
Hello, Are the Action classes only processing "POST" forms ? I am asking this because I'd like to give some parameters to an Action I am creating, and can't get no result with the request.getParameter() method... Thank you for your time -- Stéphane Zuckerman -

[HELP] how to get value of check box array ???

2005-03-30 Thread Pham Anh Tuan
Hi, I still need more help. I have a group of check box (with the same name ), so how to get this array values from Form Bean thank for reading

[HELP] How can javascript reference to 1 html:hidden tag or html:text ???

2005-03-30 Thread Pham Anh Tuan
Hi, I don't know how javascript reference to 1 html:hidden tag or html:text tag of struts tag lib and change their value. for example: I have How can I change the value of tag above by javascript. Maybe document.all.userId.value="somevalue" <-- like this ??? help me :(

Struts + Ajax + Firefox (was: Best practice for "dynamic reloading" of a part of the JSP ?)

2005-03-30 Thread Stéphane Zuckerman
Frank W. Zammetti a écrit : I reposted it at the same address. Of perhaps more interest though... I am working on an article covering this in more details with a few more examples. I'm hoping to finish it today, tomorrow at the latest. Back to Struts ;-) I did a little something so I could test AJ

Struts - verify on too much tag library reference files?

2005-03-30 Thread Jan-Jaap Endenburg - Vera
Hi all! Does anyone know a tool (or a way) for verifying all jsp-pages on their tag library reference files? Example of what I call a tag library reference file: <%@ taglib uri="/tlds/struts-html.tld" prefix="html" %> The problem is not that I have too little tag library reference files: this

RE: Struts - Not instantiating Action class.

2005-03-30 Thread Shashikant Hire
Al Thanks for you suggestion, I will try them and let you know results. regards, Shashi -Original Message- From: Fogleson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 1:20 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Struts - Not instantiating Acti