Re: The field name in jsp

2005-05-09 Thread Cliff Lam
Thx a lot. This is a good method but I'm not using DynaActionForms = ( . Cliff - Original Message - From: "rmanchu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, May 09, 2005 1:48 PM Subject: Re: The field name in jsp > have used the following extensively with

Cannot find bean error in any scope

2005-05-09 Thread Michael Jouravlev
This is ridiculous. I cannot find what the problem is, it depends on the phase of the Moon. I have exactly the same problem as this one: http://marc.theaimsgroup.com/?l=struts-user&m=111348029907000&w=2 Which is, I have the following block: which throws javax.servlet.ServletExceptio

Re: Multiple tiles layouts for single application

2005-05-09 Thread Andreas Toom
Hello again, great pdf there, solved my problem nice and easy. Instead of a jsp in the path attribute of a definition I used a struts action which forwards to the right template, should work really nice. Thank you very much for the help! /Andreas Allistair Crossley wrote: http://www.lifl.fr/~dum

Re: html:image and IE

2005-05-09 Thread Dakota Jack
The IE behavior you discuss is the normal behavior. That is the "trick" with multiple submits and . For various solutions you can see LookupDispatchAction in Struts (which is really heavy) or a bevy of choices at www.michaelmcgrady.com/button/ Peace On 5/9/05, Chad Rosen <[EMAIL PROTECTED]> wro

RE: html:image and IE

2005-05-09 Thread Chad Rosen
Ok I'm going to reply to myself :) Adding this check solved the problem for IE.. request.getParameter("updateCart.x") != null However, I'd prefer to use the form. Is this the preferred way? Will this catch both the IE and Firefox submissions? Or should I do this? From: "Chad Rosen" <[EMAIL PRO

Re: is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Aladin Alaily
Hi Sean, iBatis works like a charm for what you're describing. You don't have to learn a new language. Just use SQLMaps and you're done. Good Luck. Aladin Sean Burlington wrote: Hi all, this is such a common problem that I'm sure there must be loads of advice on how to deal with it - I j

html:image and IE

2005-05-09 Thread Chad Rosen
Hi all.. I have a shopping cart page with two submit buttons that we've changed to html:image tags. They look like this.. and In my action I'm checking to see if the user has pressed the updateCart image. If they did I return them back to the cart. if(request.getParameter("updateCart") != n

Re: is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Erik Weber
Erik Weber wrote: As far as the implementation goes, there is no reason to be scared of switches and loops. (But favor polymorphism/virtual functions over a giant loop.) Sorry, I meant over a giant switch, not loop! However, you should get rid of all those concat operators and use StringBuffer.

Re: is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Erik Weber
As far as the implementation goes, there is no reason to be scared of switches and loops. (But favor polymorphism/virtual functions over a giant loop.) However, you should get rid of all those concat operators and use StringBuffer.append instead. The performance will improve significantly. Eri

Re: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Craig McClanahan
On 5/9/05, Benedict, Paul C <[EMAIL PROTECTED]> wrote: > Craig, > > I found out the hard way that URL patterns are not regular expressions. Why > the limitation? My solution (which I did not implement) was to attach a > filter to "/" and then run regular expression patterns on the URI. > A histo

RE: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> > They seem to be capable of more fine tuned access control > > You're talking about URL filtering, yeah, definitely. Just to clarify, you're talking about security beyond URL filtering providing more fine tuned access control. I concur. - Dave --

RE: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Is there any particular reason why custom logins are not favored > over using this sort of approach? I think it comes down to standards and the relative difficulties associated with implementing security. But, as far as favorites go, everyone has them. > They seem to be capable of more fin

RE: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Benedict, Paul C
Craig, I found out the hard way that URL patterns are not regular expressions. Why the limitation? My solution (which I did not implement) was to attach a filter to "/" and then run regular expression patterns on the URI. Paul -Original Message- From: Craig McClanahan [mailto:[EMAIL PROT

Re: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Dakota Jack
Is there any particular reason why custom logins are not favored over using this sort of approach? They seem to be capable of more fine tuned access control and can easily be relegated to a common solution for different needs. On 5/9/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/9/05, Je

Re: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Craig McClanahan
On 5/9/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > Solution 1: I don't believe there has to be any correlation between > your web-resource-collections in your security-constraints and your > servlet-mappings in web.xml. It seems to be perfectly valid to map > *.do to ActionServlet (a single servlet

Re: Feature wanted: autocomplete attribute for html:text/form tag s

2005-05-09 Thread Tomasz Nazar
On Mon, May 09, 2005 at 02:02:52PM -0400, Benedict, Paul C wrote: > Tomasz, > > If you need to output additional attributes, you don't use Struts to write > that particular tag. You are not forced to use Strut's tags. > Consider vanilla HTML -- the good ol' days -- and use EL to get what you > wa

RE: Feature wanted: autocomplete attribute for html:text/form tag s

2005-05-09 Thread Benedict, Paul C
Tomasz, If you need to output additional attributes, you don't use Struts to write that particular tag. You are not forced to use Strut's tags. Consider vanilla HTML -- the good ol' days -- and use EL to get what you want from Struts. -Original Message- From: Tomasz Nazar [mailto:[EMAIL

Re: Feature wanted: autocomplete attribute for html:text/form tags

2005-05-09 Thread Tomasz Nazar
On Mon, May 09, 2005 at 01:39:04PM -0400, Dave Newton wrote: > Tomasz Nazar wrote: > > >Problem when using Struts comes: doesn't have 'autocomplete' > >attribute. (this is not in HTML spec, but IE, Firefox, Mozilla > >implements it). > > > > > That doesn't have anything to do with Google Sugges

Re: Feature wanted: autocomplete attribute for html:text/form tags

2005-05-09 Thread Dave Newton
Tomasz Nazar wrote: Problem when using Struts comes: doesn't have 'autocomplete' attribute. (this is not in HTML spec, but IE, Firefox, Mozilla implements it). That doesn't have anything to do with Google Suggest; the "autocomplete" you're talking about deals with the browser caching form valu

Feature wanted: autocomplete attribute for html:text/form tags

2005-05-09 Thread Tomasz Nazar
Hi there! First time on the list. Hope this is the right place. AJAX technology became so popular I started using it. Tried to achieve the same thing as Google Suggest has. Problem when using Struts comes: doesn't have 'autocomplete' attribute. (this is not in HTML spec, but IE, Firefox, Mozil

Re: ANOTHER IDE

2005-05-09 Thread Rick Reumann
Adam Hardy wrote the following on 5/7/2005 3:04 PM: Sometimes it will never stop and I am doomed to have these time-wasting issues with Eclipse plug-ins not working together, or just not installing, or Java 5 bugs or whatever. Progress I guess. I'd like to know whether these kinds of issues af

Re: [OT] Looking for a tree control tag library

2005-05-09 Thread K.C. Baltz
I like the TreeMenu Pro control from Tigra/SoftComplex www.softcomplex.com. It's a pure Javascript solution, not JSP specific, but it's very fast and configurable (and browser neutral) K.C. Barnett, Brian W. wrote: If you know of a good, configurable tree control tag library for use in jsp pag

Re: ANOTHER IDE

2005-05-09 Thread Dave Newton
Adam Hardy wrote: On 04/05/05 18:25 Dave Newton wrote: Except for the crappy editor in Eclipse (a programmer's editor without macros?!?!?!) it seems to do a pretty good job with the addition of MyEclipse (~$30/yearly) although I've seen a few minor complaints and bugs. Has the same (or similar,

Re: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Jeff Beal
Solution 1: I don't believe there has to be any correlation between your web-resource-collections in your security-constraints and your servlet-mappings in web.xml. It seems to be perfectly valid to map *.do to ActionServlet (a single servlet-mapping) and have /admin/*.do and /user/*.do handled by

JSP outputstream question

2005-05-09 Thread Sheehan, Andrew
Hi all, I have a Jsp file that has several 's and custom taglibs. The work just fine but as soon as I place my menu taglib in the jsp, I receive a "java.lang.IllegalStateException: Response already committed". The menu taglib does call for the pageContexts' writer as it writes out the

Re: is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Sean Burlington
Rick Reumann wrote: Look into using iBATIS http://www.ibatis.com. It's easy to use and will handle this kind of dynamic SQL very nicel (the PDF instruction manual is nice. Look at the SQL Maps documentatoin under Dynamic Mapped Statements.) that's a bigger change in coding than I was thinking o

cancel question

2005-05-09 Thread Derrick Koes
If the user clicks cancel twice then clicks the browser back button, the browser presents a DNS error (IE with with "Show friendly HTTP error messages" checked). Why is this? Thanks, Derrick

Re: is there a better way of creating SQL queries from form objec ts ?

2005-05-09 Thread Sean Burlington
Benedict, Paul C wrote: Sean, Have you thought about constructing a DAO/Adapater object that receives your input, and then does the notorious SQL-string building on the inside? If you cannot get the elegant solution, you should at least make it appear elegant by wrapping it inside of the DAO layer.

Re: is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Rick Reumann
Look into using iBATIS http://www.ibatis.com. It's easy to use and will handle this kind of dynamic SQL very nicel (the PDF instruction manual is nice. Look at the SQL Maps documentatoin under Dynamic Mapped Statements.) Sean Burlington wrote the following on 5/9/2005 10:37 AM: Hi all, this

RE: is there a better way of creating SQL queries from form objec ts ?

2005-05-09 Thread Benedict, Paul C
Sean, Have you thought about constructing a DAO/Adapater object that receives your input, and then does the notorious SQL-string building on the inside? If you cannot get the elegant solution, you should at least make it appear elegant by wrapping it inside of the DAO layer. -Original Message

Re: Indexed Properties with Sets

2005-05-09 Thread Rick Reumann
Matt Raible wrote the following on 5/8/2005 11:39 AM: As an alternative, I suppose I could modify my Form -> POJO conversion to detect Sets and properly convert List to Set. Unfortunately I think this is what you are going to have to do Matt. I'd keep the Set property in the form bean, but use t

RE: Multiple tiles layouts for single application

2005-05-09 Thread Allistair Crossley
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf page 15 may help you Cheers. > -Original Message- > From: Andreas Toom [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 15:33 > To: Struts Users Mailing List > Subject: Re: Multiple tiles layouts for single application > > > Yes

is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Sean Burlington
Hi all, this is such a common problem that I'm sure there must be loads of advice on how to deal with it - I just can't find it. I have a database containing many records Searches can be performed on several text fields - and refined by boolean fields. The html form thus consist of several tex

Re: Multiple tiles layouts for single application

2005-05-09 Thread Andreas Toom
Yes, but a tile definition is just a.. tile definition. All my definitions extends a base tile: And my forwards are: So now, if a request has been made to http://mysite/?layout=layout1 or whatever it seems like a nice solution not have to change anything in my action configuration

RE: Multiple tiles layouts for single application

2005-05-09 Thread Allistair Crossley
Your requests should be routing through a Struts Controller via an ActionMapping, and therefore your Action can examine the request and return the appropriate view which will be a forward to the tile definition of your choice. Cheers, Allistair. > -Original Message- > From: Andreas Toom

Multiple tiles layouts for single application

2005-05-09 Thread Andreas Toom
Hello, is there a way to switch tiles layout in an applaction depending on let's say request url. I have a struts-based application with a single purpose and I want to share this functionality with other php-based sites that my company have. So if a request comes in to the site I want different

RE: Switch Tags

2005-05-09 Thread Marsh-Bourdon, Christopher
Thank you, my brain has turned to putty after a weeks holiday @;-) -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 14:32 To: Struts Users Mailing List Subject: RE: Switch Tags so that would be do this > do that do somet

RE: Switch Tags

2005-05-09 Thread Allistair Crossley
so that would be do this > do that do something else > -Original Message- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 14:26 > To: 'Struts Users Mailing List' > Subject: RE: Switch Tags > > > Yes, that goes some way.

RE: Switch Tags

2005-05-09 Thread Marsh-Bourdon, Christopher
Yes, that goes some way. I missed out that I need a case to verify several test, something like this: do this > do that do something else Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED]

Re: Switch Tags

2005-05-09 Thread gdeschen
JSTL... HTH, Glenn "Marsh-Bourdon, Christopher" <[EMAIL PROTECTED]> 09/05/2005 09:14 AM Please respond to "Struts Users Mailing List" To 'Struts Users Mailing List' cc Subject Switch Tags Classification I will of course be going off to Google in a moment

RE: Switch Tags

2005-05-09 Thread Allistair Crossley
what's wrong with jstl? do this do that do something else > -Original Message- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 14:14 > To: 'Struts Users Mailing List' > Subject: Switch Tags > > > I will of course be goin

Switch Tags

2005-05-09 Thread Marsh-Bourdon, Christopher
I will of course be going off to Google in a moment, but I would like anyone's recommendation for a Tag(s) that enable the coder to perform a Switch/Case like function within the JSP. I could of course write one, but I'm lazy! Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com --

Re: Problems with JBoss 4.0.1

2005-05-09 Thread Rodolfo =?iso-8859-1?Q?Garc=EDa_Esteban=2FCYII?=
Suresh, I haven't try to deploy struts-blank, but the same application it was deployed to Tomcat 5.0.28 alone and works well. If you can help me I would appreciate very much. I use eclipse too, but what is Lomboz. Thanks Rodolfo ___ Suresh Khatr

Re: Problems with JBoss 4.0.1

2005-05-09 Thread Suresh Khatri
Rodolfo, something wrong with struts-config.xml format I guess. I am using JBOSS4.0.1 and had the same problem in the beginning when I started it out. Realised it was a config problem. Have you tried deploying struts-blank.war and does it work? I can organize for you to download a eclipse-ready

Problems with JBoss 4.0.1

2005-05-09 Thread Rodolfo =?iso-8859-1?Q?Garc=EDa_Esteban=2FCYII?=
Hi, I'm using stuts 1.2.4 and JBoss 4.0.1sp1. Whe my struts application loads the action servlet is market as unavailable, because struts-config.xml is readed, the server try to find the DTD in jakarta.apache.org in place to read the local copy. How can I change the configuration of JBoss or I

RE: Injecting actions globally

2005-05-09 Thread Paul McCulloch
Container managed security will do this for you (though it has some drawbacks). If you don't need the advantages of container managed auth (such as automatic propogation of credentials to EJBs) then you should consider filters to implement this. Filters are a relatively recent servlet feature - I'd

Re: upgradation details of 1.1 to 1.2

2005-05-09 Thread gdeschen
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 HTH, Glenn asai thambi <[EMAIL PROTECTED]> 09/05/2005 02:44 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject upgradation details of 1.1 to 1.2 Classification hi. can any one provide the u

RE: Connection Leakage

2005-05-09 Thread Marsh-Bourdon, Christopher
That sounds like you are closing the stable door after the horse has bolted. Why not wrap a _try_ and _finally_ block around the code areas that create/open connections to prevent this? Connections are a strange fruit and should always be closed; otherwise your app could run out of memory not ju

RE: Connection Leakage

2005-05-09 Thread Mark Benussi
Shailender You can configure your connection pool to close resources after a period of time with the following options: GenericObjectPool genericObjectPool = new GenericObjectPool(null); genericObjectPool.setMaxActive(value); genericObjectPool.setMaxIdle(value); genericObjectPool.setMaxWait(value

RE: Struts 1.3 & custom controller

2005-05-09 Thread Marco Mistroni
Hello all, I have an app that was using strutsws from Frank Zammetti, and I am trying to port it to Struts 1.3.. The current version of strutsws override Struts's result processor, and in particular it overrides those following methods: - processPreprocess - processValidate - processActio

Connection Leakage

2005-05-09 Thread Shailender Jain
Hello All, I have got a application which is running live. (Struts with the usage of DBCP for connection pooling) We have found a problem that at many places we have not closed the connections. To solve this problem we thought of increasing the number of Maximum active connection. We are also th

Re: Validators

2005-05-09 Thread Kumar deepak
Please visit http://www.roseindia.net/struts/address_struts_validator.shtml its good tutorial. Regards --- Metal KoRn <[EMAIL PROTECTED]> wrote: > Hi guys I would like to validate a password and a > confirm_passwrod > fields to match, how can i do this validation with > the struts > validator.

Mapped backed property

2005-05-09 Thread Mark Benussi
I am going out of my tiny mind here... I have in my JSP In my struts config I have And in my Form class I have the following setter public void setAnswer(String questionKey, Object answerKey) { questionAnswers.put(questionKey,

Re: action to action

2005-05-09 Thread rmanchu
oh man. thanx. changing all to POST now thanx :) riyaz Michael Jouravlev wrote: If you are submitting a form, and have a button, I do not see the reason not to use POST. If you have a link like "Delete Item" in the list, then I may see that you may be tempted to use GET. At the end it is up to

RE: Quartz Scheduler with Struts

2005-05-09 Thread Marco Mistroni
Hello, Wrap your app in a MBean (if you are new to JMX, go for Standard MBean)... But much depends on what you want to do.. You may subscribe to [EMAIL PROTECTED] , you'll find more help .. Regards marco -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sen

Re: action to action

2005-05-09 Thread Michael Jouravlev
If you are submitting a form, and have a button, I do not see the reason not to use POST. If you have a link like "Delete Item" in the list, then I may see that you may be tempted to use GET. At the end it is up to you, you are the designer. But sometimes it is important to differentiate between PO