Re: The field name in jsp
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 DynaActionForms. i would think > that this would work with any extension of ActionForms. The form fields > are represented by FormPropertyConfig objects contained within the > FormBeanConfig objects. you could place the following code in you JSP > and see what happens. > > > HttpServletRequest request = > (HttpServletRequest)pageContext.getRequest(); > ModuleConfig moduleConfig = > (ModuleConfig)request.getAttribute(Globals.MODULE_KEY); > FormBeanConfig formBean = moduleConfig.findFormBeanConfig(formName); > FormPropertyConfig[] formProps = formBean.findFormPropertyConfigs(); > for (int i = 0; i < formProps.length; i++) { > // get property > FormPropertyConfig prop = formProps[i]; > System.out.println(prop.getName()); > } > > Cliff Lam wrote: > > Should I hard code the field name in the collection ? > > > > I want to do it in each page in my web application =.=" > > > > Cliff > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot find bean error in any scope
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.ServletException: Cannot find bean error in any scope If I change it to this one: Yes mess It shows "Yes mess", which means that messages are present. It works sometimes, than it stops and I don't know what did I do that broke it! When it breaks, I cannot fix it. I do stupid things like rolling back the code until it works, but I could not find where it exactly breaks. I save messages in my action: ActionMessages errors = ActionTools.getStrutsErrors(wizardManager.getErrors()); saveErrors(request, errors); return mapping.findForward(strMapping); Using ActionErrors does not help. Mapping is a forward, not a redirect. Even if it were redirect, should not work, but it shows that there are messages present! I have all the taglibs in place: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> What the... ? Btw, was like this with 1.2.4, and the same thing with 1.3, which I compiled from sources. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple tiles layouts for single application
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/~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, 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 and instead have a filter/extension of a controller indicating which tile definitions to use, is this possible? or do I have to add a action-mapping/forward for each new site I want enable this search functionality? As I sad before, the main problem as I see it is the input parameter in form validation, I guess I could solve it with some action in the input parameter instead, but all those solutions feel ugly and leaves me with much work if anything is about to change.. Any other ideas? :) /Andreas Allistair Crossley wrote: 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 [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 15:05 To: user@struts.apache.org Subject: Multiple tiles layouts for single application 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 layouts, each matching the calling site, for example: http://myhost/myapp/ <- Original layout http://myhost/myapp/site1 <- Site1 layout http://myhost/myapp/site2 <- Site2 layout The reason I wan't this is because I don't want do duplicate any action mappings in my struts-config. The major problem is form validation, since the input is just a simple tile definitions the app has no way to determine which layout to use. So if I had tiles-defs.xml, tiles-defs-site1.xml tiles-defs-site2.xml and a way to tell struts when to use which definition I figure the problem would be solved... Is there a way to solve this without extending the request processor/ tiles plugin?, if not can anyone point me in a good start direction? Any ideas appreciated. /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:image and IE
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]> wrote: > Hi all.. > > I have a shopping cart page with two submit buttons that we've changed to > html:image tags. > > They look like this.. > > src="/cerebus/store/images/checkout.gif"/> > > and > > src="/cerebus/store/images/updateCart.gif"/> > > 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") != null) > { >//do stuff here. > } > > So, this works in firefox/netscape but it doesn't in IE. I guess IE submits > the value of the image as updateCart.x and updateCart.y (where x and y are > the coordinates of the image that were pressed). > > What is the propper way to deal with this so that it works in both IE and > Firefox. I'm defining my form beans in the struts-config as > DynaValidatorActionForms so I can't do the solution in the struts user > guide. > > Thanks, > > Chad > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "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: html:image and IE
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 PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: html:image and IE Date: Mon, 09 May 2005 19:20:47 -0400 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") != null) { //do stuff here. } So, this works in firefox/netscape but it doesn't in IE. I guess IE submits the value of the image as updateCart.x and updateCart.y (where x and y are the coordinates of the image that were pressed). What is the propper way to deal with this so that it works in both IE and Firefox. I'm defining my form beans in the struts-config as DynaValidatorActionForms so I can't do the solution in the struts user guide. Thanks, Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a better way of creating SQL queries from form objects ?
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 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 text inputs and several checkboxes. Only one text box should ever be filled in. I can work out the resultant sql query by using lots of if statements as below but it just doesn't seem very elegant ... I could also break the search down into several forms and so different actions - but this seems overly complex. String query = "select order from po where"; String searchTerm = ""; if (!"".equals(search.getCode())){ query += " code=?"; searchTerm = search.getCode(); } else if (!"".equals(search.getParish())){ query += " parish=?"; searchTerm = search.getParish(); } else if (!"".equals(search.getDetails())){ query += " details=?"; searchTerm = search.getDetails(); } if (search.isActiveMods()){ query += " and active"; } if (search.isActiveReclass()){ query += " and reclass"; } PreparedStatement statement = conn.prepareStatement(query); statement.setString(1, searchTerm); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:image and IE
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") != null) { //do stuff here. } So, this works in firefox/netscape but it doesn't in IE. I guess IE submits the value of the image as updateCart.x and updateCart.y (where x and y are the coordinates of the image that were pressed). What is the propper way to deal with this so that it works in both IE and Firefox. I'm defining my form beans in the struts-config as DynaValidatorActionForms so I can't do the solution in the struts user guide. Thanks, Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a better way of creating SQL queries from form objects ?
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.append instead. The performance will improve significantly. Erik 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 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 text inputs and several checkboxes. Only one text box should ever be filled in. I can work out the resultant sql query by using lots of if statements as below but it just doesn't seem very elegant ... I could also break the search down into several forms and so different actions - but this seems overly complex. String query = "select order from po where"; String searchTerm = ""; if (!"".equals(search.getCode())){ query += " code=?"; searchTerm = search.getCode(); } else if (!"".equals(search.getParish())){ query += " parish=?"; searchTerm = search.getParish(); } else if (!"".equals(search.getDetails())){ query += " details=?"; searchTerm = search.getDetails(); } if (search.isActiveMods()){ query += " and active"; } if (search.isActiveReclass()){ query += " and reclass"; } PreparedStatement statement = conn.prepareStatement(query); statement.setString(1, searchTerm); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a better way of creating SQL queries from form objects ?
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. Erik 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 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 text inputs and several checkboxes. Only one text box should ever be filled in. I can work out the resultant sql query by using lots of if statements as below but it just doesn't seem very elegant ... I could also break the search down into several forms and so different actions - but this seems overly complex. String query = "select order from po where"; String searchTerm = ""; if (!"".equals(search.getCode())){ query += " code=?"; searchTerm = search.getCode(); } else if (!"".equals(search.getParish())){ query += " parish=?"; searchTerm = search.getParish(); } else if (!"".equals(search.getDetails())){ query += " details=?"; searchTerm = search.getDetails(); } if (search.isActiveMods()){ query += " and active"; } if (search.isActiveReclass()){ query += " and reclass"; } PreparedStatement statement = conn.prepareStatement(query); statement.setString(1, searchTerm); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sample Code for Desclarative Security in Struts
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 historical accident, really. The supported patterns were first defined back in Servlet 2.0 (late 1990s sometime), *long* before there was efficient regular expression processing in Java code -- and they've never been updated in any subsequent servlet spec. > Paul Craig > > -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Monday, May 09, 2005 3:39 PM > To: Struts Users Mailing List; Jeff Beal > Subject: Re: Sample Code for Desclarative Security in Struts > > 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-mapping) and have /admin/*.do > > and /user/*.do handled by two different security constraints. > > There's an important detail necessary to get this right. > > URL patterns in web.xml are not fully flexible regular expressions. > What you would do in this case is map Struts to "*.do", and have web > resource collection constraints on "/admin/*" and "/user/*". That > would have the effect of protecting the admin and user actions (as > well as anything else in those two subdirectories), while allowing > unauthenticated access to all the other actions. > > > > > Solution 2: You also have the option (since Struts 1.1) to declare > > your security inside of struts-config.xml. The roles attribute of the > > action element lists the set of roles that you are allowing to access > > a particular action. > > This is likely to be better if you want to protect just a few actions, > instead of groups of them. In the latter case, Solution 1 is likely > to work better. > > > > > -- Jeff > > > > Craig > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Notice: This e-mail message, together with any attachments, contains > information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New > Jersey, USA 08889), and/or its affiliates (which may be known outside the > United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as > Banyu) that may be confidential, proprietary copyrighted and/or legally > privileged. It is intended solely for the use of the individual or entity > named on this message. If you are not the intended recipient, and have > received this message in error, please notify us immediately by reply e-mail > and then delete it from your system. > -- > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sample Code for Desclarative Security in Struts
> > 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sample Code for Desclarative Security in Struts
> 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 fine tuned access control You're talking about URL filtering, yeah, definitely. > and can easily be relegated to a common solution for different needs. Not so definitely on this one. Currently, I'm comparing the relative benefits drawback of JAAS vs. acegi. Does anyone having any success or horror stories in this area? - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sample Code for Desclarative Security in Struts
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 PROTECTED] Sent: Monday, May 09, 2005 3:39 PM To: Struts Users Mailing List; Jeff Beal Subject: Re: Sample Code for Desclarative Security in Struts 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-mapping) and have /admin/*.do > and /user/*.do handled by two different security constraints. There's an important detail necessary to get this right. URL patterns in web.xml are not fully flexible regular expressions. What you would do in this case is map Struts to "*.do", and have web resource collection constraints on "/admin/*" and "/user/*". That would have the effect of protecting the admin and user actions (as well as anything else in those two subdirectories), while allowing unauthenticated access to all the other actions. > > Solution 2: You also have the option (since Struts 1.1) to declare > your security inside of struts-config.xml. The roles attribute of the > action element lists the set of roles that you are allowing to access > a particular action. This is likely to be better if you want to protect just a few actions, instead of groups of them. In the latter case, Solution 1 is likely to work better. > > -- Jeff > Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sample Code for Desclarative Security in Struts
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, 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-mapping) and have /admin/*.do > > and /user/*.do handled by two different security constraints. > > There's an important detail necessary to get this right. > > URL patterns in web.xml are not fully flexible regular expressions. > What you would do in this case is map Struts to "*.do", and have web > resource collection constraints on "/admin/*" and "/user/*". That > would have the effect of protecting the admin and user actions (as > well as anything else in those two subdirectories), while allowing > unauthenticated access to all the other actions. > > > > > Solution 2: You also have the option (since Struts 1.1) to declare > > your security inside of struts-config.xml. The roles attribute of the > > action element lists the set of roles that you are allowing to access > > a particular action. > > This is likely to be better if you want to protect just a few actions, > instead of groups of them. In the latter case, Solution 1 is likely > to work better. > > > > > -- Jeff > > > > Craig > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "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: Sample Code for Desclarative Security in Struts
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-mapping) and have /admin/*.do > and /user/*.do handled by two different security constraints. There's an important detail necessary to get this right. URL patterns in web.xml are not fully flexible regular expressions. What you would do in this case is map Struts to "*.do", and have web resource collection constraints on "/admin/*" and "/user/*". That would have the effect of protecting the admin and user actions (as well as anything else in those two subdirectories), while allowing unauthenticated access to all the other actions. > > Solution 2: You also have the option (since Struts 1.1) to declare > your security inside of struts-config.xml. The roles attribute of the > action element lists the set of roles that you are allowing to access > a particular action. This is likely to be better if you want to protect just a few actions, instead of groups of them. In the latter case, Solution 1 is likely to work better. > > -- Jeff > Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Feature wanted: autocomplete attribute for html:text/form tag s
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 > want from Struts. That's the way it works now. But, you know I like my work to be "consistent". I even don't like to use <%= .. %>. I treat Struts as a high level web framework and every exception (like "autocomplete") just isn't right.. Anyway.. are there any efforts to introduce "options" or "autocomplete" attributes to those tags like T. Husted suggested? Tomasz Nazar -- _i__'simplicity_is_the_key'__tomasz_nazar _ii'i_am_concern_oriented'__iiuwr _iii__'patsystem.sf.net'___linux_user _Heaven_&_Fellows,_PPP__prevayler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Feature wanted: autocomplete attribute for html:text/form tag s
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 PROTECTED] Sent: Monday, May 09, 2005 1:55 PM To: Struts Users Mailing List Subject: Re: Feature wanted: autocomplete attribute for html:text/form tags 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 Suggest; the "autocomplete" > you're talking about deals with the browser caching form values by input > tag name/id. IOW, the 'autocomplete' property doesn't magickally > implement "Suggest"-like features. > > Dave Hmm ;), really? Of course I've implemented sth like Google Suggest, and I need to turn the autocomplete feature of the browser off... like the GoogleSuggest does. Otherwise you'll end with two combos going down, and this is ugly and distracting having to things that "complete" words. Problem is I don't know (can't) how to achieve:
Re: Feature wanted: autocomplete attribute for html:text/form tags
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 Suggest; the "autocomplete" > you're talking about deals with the browser caching form values by input > tag name/id. IOW, the 'autocomplete' property doesn't magickally > implement "Suggest"-like features. > > Dave Hmm ;), really? Of course I've implemented sth like Google Suggest, and I need to turn the autocomplete feature of the browser off... like the GoogleSuggest does. Otherwise you'll end with two combos going down, and this is ugly and distracting having to things that "complete" words. Problem is I don't know (can't) how to achieve:
Re: Feature wanted: autocomplete attribute for html:text/form tags
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 values by input tag name/id. IOW, the 'autocomplete' property doesn't magickally implement "Suggest"-like features. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Feature wanted: autocomplete attribute for html:text/form tags
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, Mozilla implements it). This thread by Ted Husted also describes the problem: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg06383.html Some generic 'options' attribute might be fine to me and possibly for others. What do you think? Or I missed sth and it is possible with Sturts.. Kind regards, Tomasz Nazar -- _i__'simplicity_is_the_key'__tomasz_nazar _ii'i_am_concern_oriented'__iiuwr _iii__'patsystem.sf.net'___linux_user _Heaven_&_Fellows,_PPP__prevayler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ANOTHER IDE
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 affect IDEA users. When was the last time you spent a whole morning trying to get tomcat to run inside Eclipse, or an hour a day for a week fighting to get Maven menus to appear? That's why I like IDEA. Things just seem to work and I too had problems with things working in Eclipse and it seemed buggy. That's what prompted me to look at alternatives in the first place. (Haven't tried the Maven plugin stuff for IDEA though so I can't claim to know anything about how that behaves.) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Looking for a tree control tag library
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 pages, please advise. Thanks, Brian Barnett This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ANOTHER IDE
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, perhaps slightly less functional?) features: XML editing and tag completion for XML and JSP, code completion inside JSP, Pretty Good refactoring support. I used to code with emacs, without code completion or debugging or whatever, and I managed fine - now I code in Eclipse and I have all the whizz bang plug-ins like maven and cvs and xmlspy and I've got the Problems List which highlights the code causing errors, plus I can refactor, BUT I waste so much time, hours and hours when it goes wrong. I think/thought the XRefactor emacs package did code completion--no debugging support that I'm aware of, but the refactoring/completion stuff was satisfactory for me, and the price was low. Emacs is still king :) I'd like to know whether these kinds of issues affect IDEA users. When was the last time you spent a whole morning trying to get tomcat to run inside Eclipse, or an hour a day for a week fighting to get Maven menus to appear? You must just be lucky--I haven't had any major Eclipse problems once getting away from the 2.x series, although it is kinda draggy sometimes. PS what does myeclipse do? JSP/XML editing/completiong, Struts, etc. support. Cheap and mostly works. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sample Code for Desclarative Security in Struts
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 two different security constraints. Solution 2: You also have the option (since Struts 1.1) to declare your security inside of struts-config.xml. The roles attribute of the action element lists the set of roles that you are allowing to access a particular action. -- Jeff On 5/8/05, alec <[EMAIL PROTECTED]> wrote: > Would there be any sample code showing how to use declarative security in > Struts? I guess this would be a bit tricky as there is only 1 web resource > to protect (ActionServlet) > > Appreciate any pointer. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP outputstream question
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 menu html. It seems [to me] that all should be fine with my implementation, but obviously that's not true. Should I use <%@ include file="/includes/registration/header.jsp" %>, and not ? Any suggestions? I have a Jsp such as this: <%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="/pages/system/error.jsp" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/navigation" prefix="menu" %> http://www.w3.org/TR/html4/loose.dtd";> [standard html content]
Re: is there a better way of creating SQL queries from form objects ?
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 of ... but interesting - what advantages does this have over hibernate ? -- Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cancel question
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 ?
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. yes - I've done that bit :-) I'm a solo in-house programmer and sometimes I worry that I'm doing things like this badly. your comment "notorious SQL-string building" makes me think maybe I'm not doing so bad and that this is just a pain Cheers for the advice -- Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a better way of creating SQL queries from form objects ?
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 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 text inputs and several checkboxes. Only one text box should ever be filled in. I can work out the resultant sql query by using lots of if statements as below but it just doesn't seem very elegant ... I could also break the search down into several forms and so different actions - but this seems overly complex. String query = "select order from po where"; String searchTerm = ""; if (!"".equals(search.getCode())){ query += " code=?"; searchTerm = search.getCode(); } else if (!"".equals(search.getParish())){ query += " parish=?"; searchTerm = search.getParish(); } else if (!"".equals(search.getDetails())){ query += " details=?"; searchTerm = search.getDetails(); } if (search.isActiveMods()){ query += " and active"; } if (search.isActiveReclass()){ query += " and reclass"; } PreparedStatement statement = conn.prepareStatement(query); statement.setString(1, searchTerm); -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: is there a better way of creating SQL queries from form objec ts ?
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- From: Sean Burlington [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 10:38 AM To: Struts Users Mailing List Subject: is there a better way of creating SQL queries from form objects ? 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 text inputs and several checkboxes. Only one text box should ever be filled in. I can work out the resultant sql query by using lots of if statements as below but it just doesn't seem very elegant ... I could also break the search down into several forms and so different actions - but this seems overly complex. String query = "select order from po where"; String searchTerm = ""; if (!"".equals(search.getCode())){ query += " code=?"; searchTerm = search.getCode(); } else if (!"".equals(search.getParish())){ query += " parish=?"; searchTerm = search.getParish(); } else if (!"".equals(search.getDetails())){ query += " details=?"; searchTerm = search.getDetails(); } if (search.isActiveMods()){ query += " and active"; } if (search.isActiveReclass()){ query += " and reclass"; } PreparedStatement statement = conn.prepareStatement(query); statement.setString(1, searchTerm); -- Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Indexed Properties with Sets
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 the List property in the html: //ActionForm Set someSet; List someList; getSomeList { //*gets someList from the someSet } setSomeList //sets someList //*also populates someSet from someList setSomeSet //sets someSet getSomeSet //gets someSet Now the above should work even if your Value Object has a Set property. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple tiles layouts for single application
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, but a tile definition is just a.. tile definition. All my > definitions extends a base tile: > > path="/front/tiles/tiles_front_main.jsp"> > > > > > extends="com.acme.web.search.tiles.main"> > > > > 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 and instead have a filter/extension of a > controller > indicating which tile definitions to use, is this possible? > or do I have > to add a action-mapping/forward for each new site I want enable this > search functionality? > > As I sad before, the main problem as I see it is the input > parameter in > form validation, I guess I could solve it with some action in > the input > parameter instead, but all those solutions feel ugly and > leaves me with > much work if anything is about to change.. > > Any other ideas? :) > > /Andreas > > Allistair Crossley wrote: > > 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 [mailto:[EMAIL PROTECTED] > >>Sent: 09 May 2005 15:05 > >>To: user@struts.apache.org > >>Subject: Multiple tiles layouts for single application > >> > >> > >>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 layouts, each > >>matching the calling site, for example: > >> > >>http://myhost/myapp/ <- Original layout > >>http://myhost/myapp/site1 <- Site1 layout > >>http://myhost/myapp/site2 <- Site2 layout > >> > >>The reason I wan't this is because I don't want do duplicate > >>any action > >>mappings in my struts-config. The major problem is form validation, > >>since the input is just a simple tile definitions the app has > >>no way to > >>determine which layout to use. So if I had tiles-defs.xml, > >>tiles-defs-site1.xml tiles-defs-site2.xml and a way to tell > >>struts when > >>to use which definition I figure the problem would be solved... > >> > >>Is there a way to solve this without extending the request > processor/ > >>tiles plugin?, if not can anyone point me in a good start direction? > >> > >>Any ideas appreciated. > >> > >>/Andreas > >> > >> > >> > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > > > > --- > > QAS Ltd. > > Developers of QuickAddress Software > > http://www.qas.com";>www.qas.com > > Registered in England: No 2582055 > > Registered in Australia: No 082 851 474 > > --- > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
is there a better way of creating SQL queries from form objects ?
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 text inputs and several checkboxes. Only one text box should ever be filled in. I can work out the resultant sql query by using lots of if statements as below but it just doesn't seem very elegant ... I could also break the search down into several forms and so different actions - but this seems overly complex. String query = "select order from po where"; String searchTerm = ""; if (!"".equals(search.getCode())){ query += " code=?"; searchTerm = search.getCode(); } else if (!"".equals(search.getParish())){ query += " parish=?"; searchTerm = search.getParish(); } else if (!"".equals(search.getDetails())){ query += " details=?"; searchTerm = search.getDetails(); } if (search.isActiveMods()){ query += " and active"; } if (search.isActiveReclass()){ query += " and reclass"; } PreparedStatement statement = conn.prepareStatement(query); statement.setString(1, searchTerm); -- Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple tiles layouts for single application
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 and instead have a filter/extension of a controller indicating which tile definitions to use, is this possible? or do I have to add a action-mapping/forward for each new site I want enable this search functionality? As I sad before, the main problem as I see it is the input parameter in form validation, I guess I could solve it with some action in the input parameter instead, but all those solutions feel ugly and leaves me with much work if anything is about to change.. Any other ideas? :) /Andreas Allistair Crossley wrote: 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 [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 15:05 To: user@struts.apache.org Subject: Multiple tiles layouts for single application 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 layouts, each matching the calling site, for example: http://myhost/myapp/ <- Original layout http://myhost/myapp/site1 <- Site1 layout http://myhost/myapp/site2 <- Site2 layout The reason I wan't this is because I don't want do duplicate any action mappings in my struts-config. The major problem is form validation, since the input is just a simple tile definitions the app has no way to determine which layout to use. So if I had tiles-defs.xml, tiles-defs-site1.xml tiles-defs-site2.xml and a way to tell struts when to use which definition I figure the problem would be solved... Is there a way to solve this without extending the request processor/ tiles plugin?, if not can anyone point me in a good start direction? Any ideas appreciated. /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple tiles layouts for single application
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 [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 15:05 > To: user@struts.apache.org > Subject: Multiple tiles layouts for single application > > > 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 layouts, each > matching the calling site, for example: > > http://myhost/myapp/ <- Original layout > http://myhost/myapp/site1 <- Site1 layout > http://myhost/myapp/site2 <- Site2 layout > > The reason I wan't this is because I don't want do duplicate > any action > mappings in my struts-config. The major problem is form validation, > since the input is just a simple tile definitions the app has > no way to > determine which layout to use. So if I had tiles-defs.xml, > tiles-defs-site1.xml tiles-defs-site2.xml and a way to tell > struts when > to use which definition I figure the problem would be solved... > > Is there a way to solve this without extending the request processor/ > tiles plugin?, if not can anyone point me in a good start direction? > > Any ideas appreciated. > > /Andreas > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple tiles layouts for single application
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 layouts, each matching the calling site, for example: http://myhost/myapp/ <- Original layout http://myhost/myapp/site1 <- Site1 layout http://myhost/myapp/site2 <- Site2 layout The reason I wan't this is because I don't want do duplicate any action mappings in my struts-config. The major problem is form validation, since the input is just a simple tile definitions the app has no way to determine which layout to use. So if I had tiles-defs.xml, tiles-defs-site1.xml tiles-defs-site2.xml and a way to tell struts when to use which definition I figure the problem would be solved... Is there a way to solve this without extending the request processor/ tiles plugin?, if not can anyone point me in a good start direction? Any ideas appreciated. /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Switch Tags
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 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. 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] > Sent: 09 May 2005 14:18 > To: Struts Users Mailing List > Subject: RE: Switch Tags > > > 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 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 > > -- > > > > > > -- > > -- > > The information contained herein is confidential and is > > intended solely for the > > addressee. Access by any other party is unauthorised without > > the express > > written permission of the sender. If you are not the intended > > recipient, please > > contact the sender either via the company switchboard on +44 > > (0)20 7623 8000, or > > via e-mail return. If you have received this e-mail in error > > or wish to read our > > e-mail disclaimer statement and monitoring policy, please refer to > > http://www.drkw.com/disc/email/ or contact the sender. 3166 > > -- > > -- > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --- > QAS Ltd. > Developers of QuickAddress Software > http://www.qas.com";>www.qas.com > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > --- > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- > > > -- > -- > The information contained herein is confidential and is > intended solely for the > addressee. Access by any other party is unauthorised without > the express > written permission of the sender. If you are not the intended > recipient, please > contact the sender either via the company switchboard on +44 > (0)20 7623 8000, or > via e-mail return. If you have received this e-mail in error > or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. 3166 > -- > -- > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Switch Tags
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. 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] > Sent: 09 May 2005 14:18 > To: Struts Users Mailing List > Subject: RE: Switch Tags > > > 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 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 > > -- > > > > > > -- > > -- > > The information contained herein is confidential and is > > intended solely for the > > addressee. Access by any other party is unauthorised without > > the express > > written permission of the sender. If you are not the intended > > recipient, please > > contact the sender either via the company switchboard on +44 > > (0)20 7623 8000, or > > via e-mail return. If you have received this e-mail in error > > or wish to read our > > e-mail disclaimer statement and monitoring policy, please refer to > > http://www.drkw.com/disc/email/ or contact the sender. 3166 > > -- > > -- > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --- > QAS Ltd. > Developers of QuickAddress Software > http://www.qas.com";>www.qas.com > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > --- > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- > > > -- > -- > The information contained herein is confidential and is > intended solely for the > addressee. Access by any other party is unauthorised without > the express > written permission of the sender. If you are not the intended > recipient, please > contact the sender either via the company switchboard on +44 > (0)20 7623 8000, or > via e-mail return. If you have received this e-mail in error > or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. 3166 > -- > -- > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Switch Tags
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] Sent: 09 May 2005 14:18 To: Struts Users Mailing List Subject: RE: Switch Tags 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 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 > -- > > > -- > -- > The information contained herein is confidential and is > intended solely for the > addressee. Access by any other party is unauthorised without > the express > written permission of the sender. If you are not the intended > recipient, please > contact the sender either via the company switchboard on +44 > (0)20 7623 8000, or > via e-mail return. If you have received this e-mail in error > or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. 3166 > -- > -- > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Switch Tags
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, 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 -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Switch Tags
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 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 > -- > > > -- > -- > The information contained herein is confidential and is > intended solely for the > addressee. Access by any other party is unauthorised without > the express > written permission of the sender. If you are not the intended > recipient, please > contact the sender either via the company switchboard on +44 > (0)20 7623 8000, or > via e-mail return. If you have received this e-mail in error > or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. 3166 > -- > -- > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Switch Tags
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 -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with JBoss 4.0.1
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 Khatri <[EMAIL PROTECTED]> 09/05/2005 14:10 Por favor, responda a "Struts Users Mailing List" Para: Struts Users Mailing List cc: (cco: Rodolfo García Esteban/CYII) Asunto: Re: Problems with JBoss 4.0.1 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 project if you want to test with your jboss using Lomboz Drop me a line, if you do. Original message >Date: Mon, 9 May 2005 13:35:17 +0200 >From: "Rodolfo García Esteban/CYII" <[EMAIL PROTECTED]> >Subject: Problems with JBoss 4.0.1 >To: user@struts.apache.org > >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 must >change the config of struts? > >Best regards > >Rodolfo >___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with JBoss 4.0.1
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 project if you want to test with your jboss using Lomboz Drop me a line, if you do. Original message >Date: Mon, 9 May 2005 13:35:17 +0200 >From: "Rodolfo García Esteban/CYII" <[EMAIL PROTECTED]> >Subject: Problems with JBoss 4.0.1 >To: user@struts.apache.org > >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 must >change the config of struts? > >Best regards > >Rodolfo >___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with JBoss 4.0.1
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 must change the config of struts? Best regards Rodolfo ___
RE: Injecting actions globally
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 probably disregard posts from 2001. I believe there is a package called security-filter which does lots of this kind of thing for you. Search the archives - I've posted a few times on this subject in the last few months, there is some useful advice & pointers in those threads. Paul > -Original Message- > From: Paul Daniell [mailto:[EMAIL PROTECTED] > Sent: 2005/09/05 00:11 > To: user@struts.apache.org > Subject: Injecting actions globally > > > I have an application which has some actions which require > authentication and some which do not. When moving between a page that > doesn't require authentication to one that does, I'd like to > "inject" a > login form page. Upon authentication, a session identifier is > placed in > a client-side cookie. Subsequently I'd like to return the user to the > original, requested action. > > Is there a standard pattern to do this in Struts 1.2? I found this > response from Craig M. ( > http://www.mail-archive.com/struts-user@jakarta.apache.org/msg > 01812.html ) > from January 2001, which suggests that in Struts 1.0 you ought to > subclass ActionServlet. But he also says that future versions might > alter this behavior. Is this still the standard way to get such > behavior. Perhaps I am being overly academic, but it seems like > modifying the ActionServlet means penetrating deep into the > framework to > do work that ought to be able to accomplished merely through > actionmappings and forwards. > > Any suggestions are sincerely appreciated, > Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgradation details of 1.1 to 1.2
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 upgradation details of 1.1 to 1.2 ? thanks Asaithambi.B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Leakage
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 just connections. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 11:27 To: user@struts.apache.org Subject: Connection Leakage 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 thinking if there is a way by which we can configure the connection pool so that it should close the connection after some time if it is not done by the code. Thanks Shailender Jain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Leakage
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); Defined here: http://jakarta.apache.org/commons/pool/apidocs/org/apache/commons/pool/impl/ GenericObjectPool.html However not closing you connections is bad practice. You should not configure the GenericObjectPool to close your resources as a way of escaping bad code. I guess must people will tell you the same thing. Imagine if you did not pool your Database resources, you would end up with an application with no connections available. Always in your finally do: try { conn.close(); } catch (Throwable te) { // Unecessary catch block } Regards, Mark -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 11:27 To: user@struts.apache.org Subject: Connection Leakage 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 thinking if there is a way by which we can configure the connection pool so that it should close the connection after some time if it is not done by the code. Thanks Shailender Jain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.3 & custom controller
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 - processActionPerform - processMapping - processException I had a look at Struts 1.3 core, and how chain & ComposableRequestProcessor Are used instead of old request processor, and in evaluating what to write, which class to extend and wht changes to do I got a littlebit stuck... So far, I got to this conclusions, and I was wondering if someone can check Them as well as help me in some points - preprocess().: this does some logic depending on request, eventually modifying the path in order to append additional parameters... so I thought to extend org.apache.struts.chain.command.servlet.PerformForward - processValidate: in the method, code needs to validate a SOAPRequest, so I thought to extend org.apache.struts.chain.command.servlet.ValidateActionForm - processActionPerform(): this metod was supposed to redirect to a custom page after action has done its job and, so I thought that I need to extend org.apache.struts.chain.command.servlet.SelectForward - processMapping(): ?. I really don't know which class to extend / write for this... below are the javadoc comments.. I was not able to identify similar functionality in commands of Struts 1.3.. anyone can help? /** * This method will override the processMapping() method in the base * RequestProcessor class. When we service a Web Service request, we will be * overriding the input that might be specified in the ActionMapping so that * we can properly handle form validation failures. Problem is, since the * ActionMapping returned by the super version of this method is shared by * all requests, anything that we might alter could impact them all. For * instance, if a Web Service request comes in, it would work fine without * this, but if a regular request comes in for the same action next time * and a validation failure occurs, the input page will be an XML response, * which would of course be wrong. So, here we will determine if we are * servicing a Web Service request or not, and if we are we'll return a * clone of the mapping, otherwise we'll return the real mapping that the * call to the super version gives us. - processException(): here I suppose I need to extend org.apache.struts.chain.command.servlet.ExceptionHandler Frank, you might be able to provide more clarifications or correct me if I was wrong in my explanations. I had a look yesterday at WSRequestProcessor after 3 days on holiday in sunshine maybe my brain boiled a little bit in the sun :-) Thanx in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection Leakage
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 thinking if there is a way by which we can configure the connection pool so that it should close the connection after some time if it is not done by the code. Thanks Shailender Jain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validators
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. > > The other is to VALIDATE if a field > value is > 0 > > Someone could help me with this?? > > thanx. > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mapped backed property
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, answerKey); } My problem is that the method is never called! Any suggestions please?
Re: action to action
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 you, you are the designer. But sometimes it is important to differentiate between POST and GET. For example, if you have a single action, which you submit to, and which displays the result, you may use POST for submit and GET to load the result page. So, if you use GET to submit, you would not be able to differentiate input from output. It is another question why would one want to use one action for input and output. Here is an example. I have a wizard, which has several pages, and is controlled by one action. I submit input data to the action using POST. Action sees that request method is POST, and it accepts input data and modifies model, then it redirects to itself. So, when it recieves redirected request, it has GET type and action understands, that now it has to show the page, corresponding to the wizard. Easy. Another great thing about using one action is that if you use exactly same URL, then MSIE and Mozilla do not add pages to page history. This is great when you modify some data several times. You change some data, sumbit it, it is wrong, the same page is displayed. Then you change it, sumbit it, it is wrong, the same page is displayed. You can do this several times. Then you tired, and you click Back, and you return from this form immediately, because it was stored in browser session history only once. On 5/8/05, rmanchu <[EMAIL PROTECTED]> wrote: hi. thanx to all who wrote back. after having read the replies and links provided i'm going to use the Redirect-after-Post method in my app. i would have to craft a dynamic Forward with the right params which i think for my needs is a much shorter/easier route. thanx to all. now i have a different question :) all you guys and the articles _seemed_ to stress the POST method for form submission. my default is use the GET method if there is no file uploads. am i setting myself for a big fall by doing this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Quartz Scheduler with Struts
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] Sent: 08 May 2005 08:09 To: 'Struts Users Mailing List' Subject: AW: Quartz Scheduler with Struts Can you give me a pointer how to monitor with JMX? Zsolt > -Ursprüngliche Nachricht- > Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Vic Cekvenich > (netsql) > Gesendet: Sonntag, 8. Mai 2005 02:28 > An: user@struts.apache.org > Betreff: Re: Quartz Scheduler with Struts > > ot: consider using JMX for monitoring webapps, that's what I use. > .V > > Brian McGovern wrote: > > I need to set up a bunch of jobs that monitor various pieces of my > struts app. I decided to use Quartz but am wondering if anyone has > experience with setting up quartz to run in struts. I'm guessing this > would be achieved with by either writing a plugin class to be started from > struts-config.xml, or by setting up a Quartz servlet. Can anyone get me > started in the right direction and lemme know of things to watch out for? > > > > thanks > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action to action
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 POST and GET. For example, if you have a single action, which you submit to, and which displays the result, you may use POST for submit and GET to load the result page. So, if you use GET to submit, you would not be able to differentiate input from output. It is another question why would one want to use one action for input and output. Here is an example. I have a wizard, which has several pages, and is controlled by one action. I submit input data to the action using POST. Action sees that request method is POST, and it accepts input data and modifies model, then it redirects to itself. So, when it recieves redirected request, it has GET type and action understands, that now it has to show the page, corresponding to the wizard. Easy. Another great thing about using one action is that if you use exactly same URL, then MSIE and Mozilla do not add pages to page history. This is great when you modify some data several times. You change some data, sumbit it, it is wrong, the same page is displayed. Then you change it, sumbit it, it is wrong, the same page is displayed. You can do this several times. Then you tired, and you click Back, and you return from this form immediately, because it was stored in browser session history only once. On 5/8/05, rmanchu <[EMAIL PROTECTED]> wrote: > > hi. > > thanx to all who wrote back. > > after having read the replies and links provided i'm going to use the > Redirect-after-Post method in my app. i would have to craft a dynamic > Forward with the right params which i think for my needs is a much > shorter/easier route. thanx to all. > > now i have a different question :) > > all you guys and the articles _seemed_ to stress the POST method for > form submission. my default is use the GET method if there is no file > uploads. am i setting myself for a big fall by doing this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]