Apache Tomcat

2004-09-30 Thread Shailender Jain
Hello All, I have got a form which has got some 200 rows which needs to be submitted to server for updation. I am using Tomcat 5..0.16 as the webserver. This passing of data from browser to server seems to be very slow. Is there any way by which i can increase the speed. I know this is dependen

RE: Apache Tomcat

2004-09-30 Thread Mazen, Tamer S
Dear Shailender, You can put those 200 rows in session and use paging mechanismto display part of those rows for example (20-30) row per page. BR -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 9:01 AM To: [EMAIL PROTECTED] Subject: A

RE: Refresh problem

2004-09-30 Thread Paul McCulloch
The token is set in a session scope attribute named "org.apache.struts.action.TOKEN". It should be relatively straightforward to include it's value within the link, as a parameter named "org.apache.struts.taglib.html.TOKEN". I suggest you take a look at the TokenProcessor class if you have any issu

RE: JSTL and Tiles

2004-09-30 Thread Paul McCulloch
Try using request scope (rather than the default of page) when you use JSTL to set your attribute value. Changes to the named attribute will be picked up by any code which is executed afterwards. Paul > -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Sent: Wednesday

NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread Adam Lipscombe
Hi, Under some circumstances my app receives a set of request params at the login.jsp page. After the user has authenticated these params need to be passed to the next page to be displayed (home.jsp). home.jsp then displays differently depending on the params passed. Normally there will be no par

Re: FW: R: Detecting the previous JSP

2004-09-30 Thread calandraca
I strongly suggest to use DOM object model when programming JavaScript, since I do it my applications are accessed from Safari, IE, Firefox without problems and no browser dependent code is required. In your case I'd do this: 1. The html form: Note that I have added the styleId attribute, this

Re: ImageButtonBean & LookupDispatchAction

2004-09-30 Thread Michael McGrady
Ben wrote: Hi Anyone knows any example on how to use ImageButtonBean in LookupDispatchAction? Or can someone give me an example implementation? Thanks. Regards, Ben This is mixing two different and competing systems, and each of them is heavier and more complex than they need to be in the first in

Reusing methods across actions classes

2004-09-30 Thread Ciaran Hanley
Hey, Bit of a dummy question here but I am wondering what is the best way to reuse methods across different action classes. Is it acceptable to make an instance of an action class within an action class so I can use one of its methods. Or would it be better to simply copy and paste the method i

[Struts Workflow] source code available for struts-workflow-1-0-3-demo ?

2004-09-30 Thread Mark Songhurst
Hi. If anyone from LivingLogic (or otherwise) can send me the source code (.java files) for the struts-workflow-1-0-3-demo.war file then it would be much appreciated and assist me greatly in integrating struts-workflow into my application. Many Thanks, Mark. __

RE: Reusing methods across actions classes

2004-09-30 Thread Mark Benussi
I would say that if you have common functionality such as a method that all objects [Actions] share then place the common method in a super class [Action] that the other classes can extend. Original Message Follows From: "Ciaran Hanley" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing

RE: Reusing methods across actions classes

2004-09-30 Thread Ciaran Hanley
My actions already extend Action. Should I write a superclass that extends Action, and then extend this class, is that correct? Thanks. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 30 September 2004 11:19 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Reus

RE: Reusing methods across actions classes

2004-09-30 Thread Mark Benussi
Yes. call your super class myaction or whatever you feel helps. And also please dont copy both mailing lists. Original Message Follows From: "Ciaran Hanley" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>,<

RE: Reusing methods across actions classes

2004-09-30 Thread Prasenjit Narwade
Probably you can create a Generic Action class which extends Struts Action class and make all your Action classes extend this class. You can then put the reusable methods in this class and it can be used by all your Action classes. -Prasenjit -Original Message- From: Ciaran Hanley [mailt

Mixing html:link and jstl

2004-09-30 Thread andy wix
Hi, I am trying to use an html:link tag in place of the 'a' tag in the code below so that I can use the transacation=true attribute to allow tokens to work. The code sits within a jstl forEach loop so thats how it gets the index. // working code test // end working code From the html tags ap

NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread andy wix
Hi, It's probably better to store them in the session rather then passing from page to page. In Login action: HttpSession session = request.getSession(); session.setAttribute("YourParams", params); and get them in the next page: YourClass xxx = (YourClass)session.getAttribu

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
Hi Andy A session variable can be "expensive". Why not just put it on the request by using "request.setAttribute" in one action and getting it again using "request.getAttribute" in another action? What is your "parameter"? A simple type, object, graph of objects? - Original Message -

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
Forget my previous post. Was answering an answer... :-) Might need some sleep.. :-) - Original Message - From: "andy wix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 30, 2004 1:03 PM Subject: NEWBIE: How to pass parameters between JSPs > Hi, > > It's probably b

Repost: Iterate through nested Map and set values

2004-09-30 Thread boukovska
Hi all I have a problem with setting the values on a hierarchy of nested properties. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to iterate through the k

RE: Reusing methods across actions classes

2004-09-30 Thread Robert Taylor
In Struts, you may want or have the need to use more than one "type" of Action to process your requests. If you are sure you will only use one Action throughout the lifecycle of your application, then yes, place common operations in a base class. If you are not sure and your application leverage

RE: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread Adam Lipscombe
Folks Thanks for your replies I tried using request.setAttribute(), but the HttpServletRequest instance changes between Login.jsp and the login action. The instance that Login.jsp stores the params in is not the same instance that is passed into the login action. Hence he params are not present

Re: ImageButtonBean & LookupDispatchAction

2004-09-30 Thread Michael McGrady
Ben wrote: Hi Anyone knows any example on how to use ImageButtonBean in LookupDispatchAction? Or can someone give me an example implementation? Thanks. Regards, Ben Hi, Ben, I have in the past relied upon readers to do their own thinking on this sort of thing. Let me walk you through it, however,

html error handling

2004-09-30 Thread Shahin Hadjikuliev
Hi, I have jsp with tag, if an error accures its displaying only error message , I want to display error and html form under it, how can I achive it? Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: ImageButtonBean & LookupDispatchAction

2004-09-30 Thread Michael McGrady
Note, Ben, that in LookupDispatchAction we do the following: Used the mapping attirbute parameter "method" to find "Delete It" in the request object name/value parameter pair "method='Delete It'". Created a reverse map of all the keys in the application resource property file for the users loc

Re: multi box and required validation

2004-09-30 Thread Ratnakar Parakala
Anand, We are using validator framework and validating multibox and multiselect. We are not doing anything special, but like ordinary string validation. Here is the code snippet: HTH, Ratnakar Anand M S <[EMAIL PROTECTED]> wrote: I'm using org.apache.struts.validator.DynaValidatorForm for

Re: ImageButtonBean & LookupDispatchAction

2004-09-30 Thread Michael McGrady
Michael McGrady wrote: Note, Ben, that in LookupDispatchAction we do the following: Used the mapping attirbute parameter "method" to find "Delete It" in the request object name/value parameter pair "method='Delete It'". Created a reverse map of all the keys in the application resource property

Re: The Original Web Page Cannot Be Found (HTTP 404) After Validation is Turned On

2004-09-30 Thread Caroline Jen
I have tried /ContentMgmt.do I got the same HTTP 404 file not found error. --- Gabriel França Campolina <[EMAIL PROTECTED]> wrote: > Try put the /ContentMgmt.do > > > > > On Wed, 29 Sep 2004 12:00:31 -0700 (PDT), Caroline > Jen > <[EMAIL PROTECTED]> wrote: > > I have action mapping in the str

Validation of Forms in a DispatchAction ???

2004-09-30 Thread Charles . Gouin-Vallerand
Hi all, I got a problem, I want to validate several Form in a DispatchAction. But, this Action is called after a validation of an other type of form. I got a Null Exception Pointer when I validate through my DispatchAction. Somebody has an idea, how I can validate without problem. Here an e

Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Nadia Kunkov
Hi, I'm wondering if I should use validate() method of ActionForm instead of JavaScript to validate the form. I can see the advantage of validate() when you have an internationalized application, but otherwise why would I have an overhead of going back to the server when I can do the validation

Re: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Jeff Beal
Nadia Kunkov wrote: Hi, I'm wondering if I should use validate() method of ActionForm instead of JavaScript to validate the form. I can see the advantage of validate() when you have an internationalized application, but otherwise why would I have an overhead of going back to the server when I can

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
Hi Adam I might be overwhelmed by the lack of sleep, but... I can simply don't get it.. So please confirm' 1 ) You have a login.jsp and a LoginAction 2) When the submit button (or whatever) is pressed on the rendered (by login.jsp) HTML page, LoginAction is called. 3) In LoginAction, you can get

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Sachin Bhutada
hi Nadia, What if the client who is accessing ur application disables the java script and keeps on hitting the server contineous ? Secondly, Using javascript its little difficult to modify the html pages. But using validate method andu can lay out ur error messages properl

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Sachin Bhutada
Nadia, By using struts and validator framework u can show internationalized java script error messages as well. sachin -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 6:35 PM To: Struts help (E-mail) Subject: Validate() vs JavaScri

with multiple bundles?

2004-09-30 Thread Woodchuck
hihi, has anyone a good way to handle displaying multiple messages that come from multiple bundles (resource files) on the jsp? how can i make my jsp handle messages that can come from more than one bundle? the reason why i need to do this is because we made a "base" application that all project

RE: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread Adam Lipscombe
Hi Henrik Yes that's it. I tried what you suggest and it works. Many thanks. What I was trying to avoid was storing the params in the LoginForm actionform. It seems like this approach uses the LoginForm ActionForm as a forwarding mechanism for params passed into Login.jsp. What I tried was this

Re: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Vic Cekvenich
Validattor generates Javascript! (it also automaticaly does server side as an add on) .V Nadia Kunkov wrote: Hi, I'm wondering if I should use validate() method of ActionForm instead of JavaScript to validate the form. I can see the advantage of validate() when you have an internationalized appl

The best pratice to developer a login system

2004-09-30 Thread Gabriel França Campolina
Hi folks, I never developed a login system,and I'm need developer this now with autheticantion and perfis of the user, I'd like know if exists anything developed or how created a system with secury in the Struts Sorry my english, I´m Braziliam. Thanks, -- Gabriel França Campolina Tel: 920

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Nadia Kunkov
Thanks for the replies. Have you ever noticed a performance difference though? Is it significant? Nadia -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Jeff Beal Sent: Thursday, September 30, 2004 9:14 AM To: [EMAIL PROTECTED] Subject: Re: Validate() vs JavaScript wher

Re: NEWBIE: How to pass parameters between JSPs

2004-09-30 Thread HG
Hi Adam Glad it worked out. The ActionForm is the "Struts way" of interacting with HTML forms. It is a kkey concept of the Struts framework. So, what basically happens here is that an Action CAN be tied to a FormBean, and the FormBean serves as a "layer" between your HTML form and the action. So,

Re: ImageButtonBean & LookupDispatchAction

2004-09-30 Thread Carlos Cajina - Hotmail
Hi Ben. I see that Mike McGrady already pointed you in the right direction :^) I've tried the solution he proposes with execelent results... if you have any further questions or doubts I'll be glad to help. Regards, Carlos "Premature optimization is the root of all evil." Donald E. Knut

Re: The best pratice to developer a login system

2004-09-30 Thread Sean Schofield
J2EE provides some good security options out of the box. I would look into security constraints. Sun has a nice tutorial: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security.html Sean Gabriel França Campolina wrote: Hi folks, I never developed a login system,and I'm need developer this now w

RE: with multiple bundles?

2004-09-30 Thread Paul McCulloch
A simple solution would be to change your build process to combine the base properties and the applications properties into one resource file. Paul > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 2:23 PM > To: struts > Subject: with m

Test

2004-09-30 Thread fzlists
Please ignore, just testing my ability to post to the list. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: The best pratice to developer a login system

2004-09-30 Thread Luis Urueña Frías
Hi! Most of web application´s security depends of the contanier. If you're using Tomcat exists some authentication - autoritation methods. Form based authetication is the most easy, and cliente certificate I think is very powerful. This security features (security constraints) where configure

Re: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Emmanouil Batsis
There is no real validate() VS javascript question. Ideally, you have to use both. You make sure your input is valid with serverside validation and you avoid meaningless submissions and server resources with javascript. Nadia Kunkov wrote: Thanks for the replies. Have you ever noticed a performa

Thank you

2004-09-30 Thread fzlists
I'm not actually a new user to the list, but unfortunately from work I am forced to use a webmail client, but even more unfortunately there is a bug in the client that causes my messages to not get through to the list. So, I had to throw together a quick eMail client myself just to be able to p

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Brantley Hobbs
Performance is likely to be the last thing you'll be worried about if someone sneaks malicious input past your validation. Client-side form validation is just plain /wrong/! Never trust input you get back from a client. Never. Brantley > -Original Message- > From: Nadia Kunkov [mailto:

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread Shabada, Gnaneshwer
OK. Here is the html code from the JSP. Let me know if I am missing anything. Thanks for your help -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 5:05 PM To: Struts Users Mailing List Subject: Re: FW: R: Detecting the previous JSP

Re: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Luis Urueña Frías
Hi! JavaScript is one more technology added to the HTTP world. This protocol was origannly designed to transmit formatted data, so Javascript is fully optional. There is only one methos to check the validity of data, by means of server validation (struts or not). Javascript validation helps be

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread fzlists
Did you forget to post it? I'm not seeing it here... Remember, it's the HTML as rendered on the browser, NOT what's in your JSP. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, September 30, 2004 10:27 am, Shabada, Gnaneshwer said:

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread fzlists
While absolutely agree with the premise that you shouldn't trust what the client sends you, I think this reponse is a little too rigid. You need to take into account the environment your working in. If your talking about a situation where your clients are captive (i.e., an internal-only applic

J2EE versions and Struts

2004-09-30 Thread Brent Vaughn
What versions of J2EE are compliant with the newest release of Struts?

J2EE versions and Struts

2004-09-30 Thread Brent Vaughn
What versions of J2EE are compliant with the newest release of Struts?

Struts ans JSR 168

2004-09-30 Thread Xavier Lawrence
Hi all, I am looking for a working example of a struts application where its views would be seen in JSR-168 portlets. I would like to make my struts-portlets application work on Tomcat, with pluto for example. Can anybody give me a link of a working example, or even send me some source code

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Brantley Hobbs
In limited, very controlled environments, I can see the advantages of client-side validation, but even then I would still validate server side because all it takes is one disgruntled employee and all of a sudden your nice controlled environment is blown apart. The only way you can guarantee a secu

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread Shabada, Gnaneshwer
Oops, I sent it as an attachment. I guess the mailing list doesn't take it. Anyways, below is the rendered html code from my JSP. When I click the DELETE button, the JS error comes on line 38 i.e, as marked below..Let me know if you find anything Thanks for your help http://localho

RE: with multiple bundles?

2004-09-30 Thread Woodchuck
that is a great idea! i will work with Ant to do that right away. thanks, Paul!! woodchuck --- Paul McCulloch <[EMAIL PROTECTED]> wrote: > A simple solution would be to change your build process to combine > the base > properties and the applications properties into one resource file. >

jstl and the brink of madness

2004-09-30 Thread andy wix
Hi, The following expression always evaluates to true even though I can see the create parameter in the request. <%@ taglib uri="jstl/c" prefix="c" %> hello goodbye I set the parameter up in the previous action with: request.setAttribute("create","create"); Any ideas? Thanks, Andy ___

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread fzlists
No argument here. Even though I've broken the rule on numerous occassion, that doesn't mean I don't agree with it :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, September 30, 2004 10:52 am, Brantley Hobbs said: > In limited, ver

RE: jstl and the brink of madness

2004-09-30 Thread Paul McCulloch
I don't think scoped attributes & parameters are the same thing. Try http://somehost/app/mypage.jsp?create=something to set a parameter. Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 3:59 PM > To: [EMAIL PROTECTED] > Subject: jst

Re: jstl and the brink of madness

2004-09-30 Thread Duncan Mills
Shouldn't your test be: hello goodbye As you've set this as a Request attribute Regards Duncan Mills andy wix wrote: Hi, The following expression always evaluates to true even though I can see the create parameter in the request. <%@ taglib uri="jstl/c" prefix="c" %> hello goodbye I set the

Re: jstl and the brink of madness

2004-09-30 Thread Luis Urueña Frías
Hi, be careful!! Not is the same a HTTP parameter (arrives in the HTTP header or content of the HTTP procotol) like an Attribute, which is an object attached to the request, context or session Java implementation. Only parameter haven´t Java dependence If you want yor code rules try:

Re: with multiple bundles?

2004-09-30 Thread Niall Pemberton
There are outstanding enhacement requests for this kind of feature: http://issues.apache.org/bugzilla/show_bug.cgi?id=7892 http://issues.apache.org/bugzilla/show_bug.cgi?id=30401 Niall - Original Message - From: "Woodchuck" <[EMAIL PROTECTED]> To: "struts" <[EMAIL PROTECTED]> Sent: Thur

Re: jstl and the brink of madness

2004-09-30 Thread Fredrik Sundberg
Try ${empty create} instead. Regards, /Fredrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread fzlists
Found the problem! Note that you have a submit button with the NAME "submit"... This is confusing the call to the submit() method in your JS function. Change the name of the button to submit1 or something and it'll work. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Techno

RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Nadia Kunkov
Thank you very much. I appreciate all your inputs. Nadia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:41 AM To: [EMAIL PROTECTED] Subject: RE: Validate() vs JavaScript where is the advantage? While absolutely agree with the pre

Re: jstl and the brink of madness

2004-09-30 Thread andy wix
Hi, Thanks - requestScope.create works. I was copying from page 12 of Core JSTL - can't belive all you read! Cheers, Andy _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ---

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread Shabada, Gnaneshwer
Dohh!! that was silly of me :) Thanks Frank. Nice eye. I got rid of that JS problem now but it still wouldn't recognize my action on submit. I get the following error on my console. [9/30/04 11:27:48:550 EDT] 3324009f OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/

RE: html error handling

2004-09-30 Thread Barnett, Brian W.
Can you show us your jsp code? -Original Message- From: Shahin Hadjikuliev [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 6:32 AM To: [EMAIL PROTECTED] Subject: html error handling Hi, I have jsp with tag, if an error accures its displaying only error message , I want to

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread Shabada, Gnaneshwer
Never mind.. I think I am really being impatient..:) I found it, its the path to the action in the JS function. Had to set it to full path..it works now Thanks anyways -Original Message- From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 11:34 AM To

Re: J2EE versions and Struts

2004-09-30 Thread Craig McClanahan
Struts 1.2.4 remains compatible with J2EE 1.2 or later (Servlet 2.2 or later, and JSP 1.1 or later). That is unlikely to be the case for Struts 1.3, however. Craig On Thu, 30 Sep 2004 09:44:13 -0500, Brent Vaughn <[EMAIL PROTECTED]> wrote: > What versions of J2EE are compliant with the newest r

RE: Struts and Quartz Scheduler

2004-09-30 Thread Mick.Knutson
This works for me: web.xml QuartzInitializer com.baselogic.yoursos.scheduler.QuartzInitializerServlet 1 quartz-config.xml:

Help! Iterating through nested hashmap and setting properties

2004-09-30 Thread boukovska
Hi all I have a problem with setting the values on a hierarchy of nested properties. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to iterate through the ke

Visual editors for JSP's with Struts tags

2004-09-30 Thread Adam Lipscombe
Folks, My graphic designer is having difficulties with the design view in DreamWeaver looking at JSp's with struts tags. We have the fwasi struts tag plugs-ins for DW. Basically it seems DW design view support for JSP/Struts is rudimentary at best, and in our case mostly doesn't work. I think

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread fzlists
You shouldn't need to put the full path in, just setting the action to "deleteRegistration.do" should be sufficient (assuming it's a root path, meaning not something like "/my/app/deleteRegistration". Not sure why it wouldn't work, looking at my own code that's what I have (i.e., NOT the full p

Re: Help! Iterating through nested hashmap and setting properties

2004-09-30 Thread Jeff Beal
boukovska wrote: Hi all I have a problem with setting the values on a hierarchy of nested properties. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to itera

Re: Visual editors for JSP's with Struts tags

2004-09-30 Thread Rogue Chameleon
have a look at the myeclipse (www.myeclipseide.com) add-on to eclipse (www.eclipse.org). On Thu, 30 Sep 2004 17:36:52 +0100, Adam Lipscombe <[EMAIL PROTECTED]> wrote: > Folks, > > My graphic designer is having difficulties with the design view in > DreamWeaver looking at JSp's with struts tags.

RE: Help! Iterating through nested hashmap and setting properties

2004-09-30 Thread Boukovska, Danielle
I am trying to edit property "foo" below -Original Message- From: Jeff Beal [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 5:50 PM To: [EMAIL PROTECTED] Subject: Re: Help! Iterating through nested hashmap and setting properties boukovska wrote: > Hi all > I have a problem

RE: Reusing methods across actions classes

2004-09-30 Thread Danilo Gurovich
Why don't you just create an abstract action and extend it? Danilo Gurovich Manager, Web Development LowerMyBills.com [EMAIL PROTECTED] 2401 Colorado Ave., 2nd Floor Santa Monica, CA 90404 (310) 998-6412 -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Thursday

How to handle multiploe unknown form fields

2004-09-30 Thread fzlists
I have an interesting situation, one that has never come up before, and I'm unsure how to deal with it... Imagine you have some records from a database representing various skills (i.e., HTML, Javascript, J2EE, etc.). Each has a SkillID associated with it. You create a JSP that lists each skil

Re: Reusing methods across actions classes

2004-09-30 Thread Sean Schofield
It may also depend on what kind of code you are trying to reuse. If its something that is action-related (populating a form, etc.) then I would agree with Danilo's answer. If on the other hand, the code is related to business logic that is really independent of the struts portion, then I would

Re: J2EE versions and Struts

2004-09-30 Thread Vic Cekvenich
Servlet 2.2; ex: Tomcat 3. .V Brent Vaughn wrote: What versions of J2EE are compliant with the newest release of Struts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Reusing methods across actions classes

2004-09-30 Thread fzlists
Writing your own Action class that extends Action and then extending that to make each class is an option. Depending on the nature of your shared code, it might be easier to just make an "ActionHelpers" class that contains a bunch of methods, maybe a bunch of static methods even, depending on

Re: Visual editors for JSP's with Struts tags

2004-09-30 Thread DGraham
Sun Java Studio Creator http://wwws.sun.com/software/products/jscreator/ M7 NitroX http://www.m7.com/topten.do Dennis "Adam Lipscombe" <[EMAIL PROTECTED]> 09/30/2004 12:36 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread Shabada, Gnaneshwer
Well. If I say document.forms[0].action="/registration/deleteRegistration.do"; it doesn't recognize as "registration" is the context root of my app and the url was resolved as http://localhost:9080/deleteRegistration.do That is why it was giving me webGroup not found error. But when I set it t

timeouts

2004-09-30 Thread Lucero, Dennis M
I am setting connection timeouts in server.xml but these settings do not seem to be working. Does struts have a timeout function? I am he, as you are he, as you are me, and we are all together.

RE: FW: R: Detecting the previous JSP

2004-09-30 Thread fzlists
Well, certainly it it works, that's what counts :) But the path should be the path that is in your struts-config file, the physical path shouldn't matter, i.e., if your JSP in in the directory structure /my/app/jsp/part1, where /my is the root of the webapp, and you submit a form to /some/bogus

Validator

2004-09-30 Thread Vinicius Carvalho
Hi there! I've been using Struts for quite sometime, but haven't used the validator yet. So I followed the receipt provided by Struts in Action, but got no success at all. Here's what I've done Struts-config is configured for the right plugin My ActionForm extends ValidatorForm and has no valida

Re: How to handle multiploe unknown form fields

2004-09-30 Thread Bill Siggelkow
Frank, Couldn't you create your elements within ? You would need to dynamically generate the name attribute using an a RTEXPR (or using html-el tags). Also, LazyActionForm might help here ... [EMAIL PROTECTED] wrote: I have an interesting situation, one that has never come up before, and I'm un

Re: How to handle multiploe unknown form fields

2004-09-30 Thread Niall Pemberton
You simply need a property in your ActionForm that returns a collection of "skill" beans and used the "indexed" attribute on the tags. The "isssue" that most people have problems with is when using a "Request" scope ActionForm you need to populate your collection with the right number of skill bea

RE: Validator

2004-09-30 Thread Charles . Gouin-Vallerand
Hi Vinicius, An easy question, have you put the right attribute in the struts-config.xml in the actionMapping ? You need to put the xml attribute validate="true" and an input for the page you want to return if the validation throw an error. An exemple :

Re: How to handle multiploe unknown form fields

2004-09-30 Thread fzlists
I understand the JSP side of this eqation as you wrote it, although I should have said I was looking for a solution that doesn't use Struts taglibs because I try to avoid them at all costs, but that aside... I'm still unclear however on what the ActionForm does... Using this concept, do I HAVE

Re: How to handle multiploe unknown form fields

2004-09-30 Thread fzlists
That will take care of the presentation side, true enough. But the problem I'm still trying to solve is how to deal with all the parameters when the form submission happens. For instance, let's say I dynamically construct names for each drop-down along the lines of "dropdown" where is

Using WildCards

2004-09-30 Thread Jose Alecio Carvalho
Hi! I'm having some troubles using WildCards. I have a Action declaration like this: The WildCard for this declaration works fine with all the items, except the one which is into the : "" It doesn't replace the flag. How can i do such a thing? thanks! Alecio

Re: How to handle multiploe unknown form fields

2004-09-30 Thread bmf5
Frank, Will this help? http://www.reumann.net/struts/nested.do You didn't say anything about JSTL. Just today I'm working on populating a checkbox field in an object that's contained in a list. Oops. I just remembered I'm using html-el too. I haven't tried it with with plain html. This

Re: Using WildCards

2004-09-30 Thread Don Brown
Unfortunately, set-property is processed at config parsing time, rather than runtime, so it is not possible to use wildcard replacement in it. Don On Thu, 30 Sep 2004 14:59:17 -0300 (ART), Jose Alecio Carvalho <[EMAIL PROTECTED]> wrote: > Hi! I'm having some troubles using WildCards. I have > a

Re: timeouts

2004-09-30 Thread James Mitchell
No, Struts does not control session timeouts -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Lucero, Dennis M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 30, 2004 1:26 PM Subje

Re: Validator

2004-09-30 Thread Vinicius Carvalho
[EMAIL PROTECTED] wrote: Hi Vinicius, An easy question, have you put the right attribute in the struts-config.xml in the actionMapping ? You need to put the xml attribute validate="true" and an input for the page you want to return if the validation throw an error. An exemple :

RE: Struts and Quartz Scheduler

2004-09-30 Thread Wiebe de Jong
Starting Quartz from a servlet is not a good idea, use a Plugin instead. Reason: I am running on the JBoss application server, and the threads that Quartz creates on startup are attached to the app server when using the servlet method. Everything works fine, but when your webapp is shutdown, the

Page refresh results in multiple calls to form bean?

2004-09-30 Thread Tom McCobb
I have a templated page. In a detail display section (in Detail.jsp), after an update, I forward back to the main page (call it Master.jsp). I also have a search section (Search.jsp) on the page. I put a log statement in a getter on the Form Bean behind Search.jsp. I notice that when I do somet

validator for radio button does not work

2004-09-30 Thread Jayaraman . Dorai
the client side validator for radio button does not work for required validation. The validation rules check for field.type==radio, but the field.type is 'undefined' when I tried an alert. But field[0].type returned radio. The validation_rules.xml has field.type==radio check all over. Has anyone s

  1   2   >