Re: [OT] JSP Clutter
Sorry, the point was not to compare .net/JSF/Tapestry against Struts, but to highlight that a bit fore thought into developing a good CSS at the start of the project would have reduced the amount of markup we have had to write in the last six months. It certainly makes our life easier to maintain the code. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 8 Aug 2005, at 22:22, Michael Jouravlev wrote: On 8/8/05, Christopher Marsh-Bourdon <[EMAIL PROTECTED]> wrote: Over the past six months we have been migrating our front-ends from .net to Java based technologies, and Struts in the main. Now a new manager has come on board and he wishes us to revisit the reasons why we choose Struts. Now I was the main instigator as I have been using Struts for the past 3 years and I had previously been using an in-house MVC (urrgh!). I like MVCs and especially Struts, mainly because it fits my mindset of seperation. The main critisism (and the point of this missive) is that the argument I keep on facing is: "JSP/HTML/XHTML is a messy mark-up. It is cumbersome to refactor and a bugger to work out. We could use Tapestry or JSF and forget about HTML." I would have thought that the main criticism would have been "Struts is a simple controller framework and does not have cool drop-in web controls or built-in DAO components, or out-of-the-box viewstate management, or simple view/business component integration, etc. Struts is a strange choice of yours, considering that you moved from asp.net. I have still to convince this new manager that Struts is the way, but I've removed one of the major arguments to going down the Tapestry/JSF route for now (not that they don't use CSSes)! At least this is the area where asp.net is suckier than Struts: many asp.net controls have built-in font sizes or colors or table styles, so they cannot be controlled by CSS. On the other hand, Struts does not have the notion of web controls at all. You have to build all pages yourself and manually wire them to action form properties or to other beans' properties. Struts offers more freedom; maybe too much than an average web developer would wish for. Michael. --- Struts Dialogs http://struts.sourceforge.net/strutsdialogs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JSP Clutter
No, I'm not saying that JSF or Tapestry will be able to mind read, but I am under the impression (probably very wrong by the way this is going) that they are able to generate content based on XML or Java markup. As I say I haven't had the time to look further into JSF/ Tapestry bar a few articles and a demonstration. Yours in ignorance! Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 8 Aug 2005, at 22:14, Leon Rosenberg wrote: -Ursprüngliche Nachricht- Von: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. August 2005 23:05 An: Struts Users Mailing List Betreff: Re: [OT] JSP Clutter The anti-Struts/MVC argument, and it isn't mine, is that whereas Tapestry and JSF will generate the HTML/JSP, with Struts it has to be written and maintained. Now I haven't spent that much time with either Tapestry or JSF, but from what little I have read; it would appear that they can generate the HTML/JSP it without the need for it to be directly written (in HTML etc). That seems to be the gist of it. It's funny :-) So you think you take Tapestry or Shale, and your site comes out by magic? I am sorry, but even, if Graig himself would come to your office and snip with his fingers, it wouldn't be enough to YOUR HTML of YOUR SITE appear by magic. Whichever framework you choose, none of them will know, that your site is in red on black background with blue drop down lists in Verdana 8px. If you find one, tell me, it would probably save me 30-50% of project time, and make about 10.000 html producers world wide unemployed :-) Regards Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JSP Clutter
I mean where you can specify how a tag is rendered (within your browser) totally using CSS rules, rather than specifying messy and deprecated tags such as . I also exclude using inline CSS styles such as when it could declared as and let a CSS define it's behavior. Inline CSS doesn't reduce the clutter, it generally adds to it, especially if you want more than one tag to exhibit the same behavior. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 8 Aug 2005, at 22:06, Johnson, Kaerstin wrote: I am not understanding what you mean by this (encompassing* CSS), or perhaps I am not familiar with some technique, can you elaborate or provide an example? I am intrigued.. * By "encompassing', I mean no formatting is used directly in the JSP where >it can be deferred to a style. -Original Message- From: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 4:41 PM To: Struts Users Mailing List Subject: [OT] JSP Clutter Apologies if this it _too_ off-topic, but I think it might be worth mentioning. In the same vein as my "web framework is better than yours" we, in the office, have been having a fairly heated discussion about which way we go technology wise next. Over the past six months we have been migrating our front-ends from .net to Java based technologies, and Struts in the main. Now a new manager has come on board and he wishes us to revisit the reasons why we choose Struts. Now I was the main instigator as I have been using Struts for the past 3 years and I had previously been using an in-house MVC (urrgh!). I like MVCs and especially Struts, mainly because it fits my mindset of seperation. The main critisism (and the point of this missive) is that the argument I keep on facing is: "JSP/HTML/XHTML is a messy mark-up. It is cumbersome to refactor and a bugger to work out. We could use Tapestry or JSF and forget about HTML." So, I've gone back and revisited our JSPs to see if this criticism is correct; and to be honest it is. I am a fairly careful coder and I adhere to the XHTML standards as diligently as possible, but it still looks pretty confusing. Now the main issue is that we really (a team of three) never had the time to get the basics right prior to launching into the migration from .net to Struts. By the basics, I mean working out an encompassing* CSS. So, I've gone back and re- factored the JSP to use an encompassing* CSS document, and lo and behold the code (JSP) is cleaner and so much better to work with. Now maybe everyone but me and my team uses an encompassing* CSS throughout their JSP as standard and never deviates from that path, but if you don't; take a little while to research what it can do for your development. I have still to convince this new manager that Struts is the way, but I've removed one of the major arguments to going down the Tapestry/JSF route for now (not that they don't use CSSes)! * By "encompassing', I mean no formatting is used directly in the JSP where it can be deferred to a style. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JSP Clutter
The anti-Struts/MVC argument, and it isn't mine, is that whereas Tapestry and JSF will generate the HTML/JSP, with Struts it has to be written and maintained. Now I haven't spent that much time with either Tapestry or JSF, but from what little I have read; it would appear that they can generate the HTML/JSP it without the need for it to be directly written (in HTML etc). That seems to be the gist of it. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 8 Aug 2005, at 21:58, Leon Rosenberg wrote: "JSP/HTML/XHTML is a messy mark-up. It is cumbersome to refactor and a bugger to work out. We could use Tapestry or JSF and forget about HTML." That's right, but as long as you deliver html to the customer, you have to deal with it, regardless of your technology. At the end of the day, someone has to produce the html. It can be a view component as in JSF, a tile as in Struts, or whatever, but it has to be done, and the HTML code is ABSOLUTELY IDENTICAL in all cases :-) So sorry, but this is no argument pro or contra struts. So, I've gone back and revisited our JSPs to see if this criticism is correct; and to be honest it is. I am a fairly careful coder and I adhere to the XHTML standards as diligently as possible, but it still looks pretty confusing. Now the main issue is that we really (a team of three) never had the time to get the basics right prior to launching into the migration from .net to Struts. By the basics, I mean working out an encompassing* CSS. Good decision :-) So, I've gone back and re- factored the JSP to use an encompassing* CSS document, and lo and behold the code (JSP) is cleaner and so much better to work with. Now maybe everyone but me and my team uses an encompassing* CSS throughout their JSP as standard and never deviates from that path, but if you don't; take a little while to research what it can do for your development. I have still to convince this new manager that Struts is the way, but I've removed one of the major arguments to going down the Tapestry/JSF route for now (not that they don't use CSSes)! * By "encompassing', I mean no formatting is used directly in the JSP where it can be deferred to a style. Again, what exactly is the difference in framework you use, as long as the resulting HTML page looks the same? Don't misunderstand me, I congratulate you to better code and encourage you to use css, but I don't see how the usage of css can influence a pro- or contra-struts solution? Regards Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] JSP Clutter
Apologies if this it _too_ off-topic, but I think it might be worth mentioning. In the same vein as my "web framework is better than yours" we, in the office, have been having a fairly heated discussion about which way we go technology wise next. Over the past six months we have been migrating our front-ends from .net to Java based technologies, and Struts in the main. Now a new manager has come on board and he wishes us to revisit the reasons why we choose Struts. Now I was the main instigator as I have been using Struts for the past 3 years and I had previously been using an in-house MVC (urrgh!). I like MVCs and especially Struts, mainly because it fits my mindset of seperation. The main critisism (and the point of this missive) is that the argument I keep on facing is: "JSP/HTML/XHTML is a messy mark-up. It is cumbersome to refactor and a bugger to work out. We could use Tapestry or JSF and forget about HTML." So, I've gone back and revisited our JSPs to see if this criticism is correct; and to be honest it is. I am a fairly careful coder and I adhere to the XHTML standards as diligently as possible, but it still looks pretty confusing. Now the main issue is that we really (a team of three) never had the time to get the basics right prior to launching into the migration from .net to Struts. By the basics, I mean working out an encompassing* CSS. So, I've gone back and re- factored the JSP to use an encompassing* CSS document, and lo and behold the code (JSP) is cleaner and so much better to work with. Now maybe everyone but me and my team uses an encompassing* CSS throughout their JSP as standard and never deviates from that path, but if you don't; take a little while to research what it can do for your development. I have still to convince this new manager that Struts is the way, but I've removed one of the major arguments to going down the Tapestry/JSF route for now (not that they don't use CSSes)! * By "encompassing', I mean no formatting is used directly in the JSP where it can be deferred to a style. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon
[OT] Sub Project - Table Renderer
I would be interested in getting a feel for those developers who would be interested in a dynamic table renderer that allows for automatic sorting across a single or multiple columns and the ability to redisplay only the table using Frank Zametti's AjaxTags (it can do it as a whole page to, but that is just wasteful!). I've been evolving one over several years and it would be but a days work to get it generic enough to make available to others. I'm sure there are other solutions out there; there definitely is one by Bill Siggelkow in his 'Jakarta Struts Cookbook'. This solution is a more encompassing, removing the need to have to hard code the ordering in your action, it can be specified via XML or just left to the renderer to work it out based on the underlying Class of the bean (assuming there is only one) within the collection. Anyways, can I just ask any of those who are interested to give me a yay (or nay) so I get a gist as to whether I am wasting my time or not? Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon
Re: how to use tiles
d d This depends on which machine you only want the "bit" to be refreshed. With Tiles, it will only refresh the bit that needs refreshing on the server, but the whole page will be refreshed on the client regardless. I think if you wanted to achieve what you are asking, frames really is the only (and not very nice, IMHO) solution. However, there is AJAX (have a look at Frank Zammetti's implementation, AJAX Struts, or Struts AJAX - it is on the Struts WIKI). AJAX can refresh/build sections on the screen without the entire page being refreshed, and Frank's implementation works very nicely. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 30 Jul 2005, at 10:12, d d wrote: i am building an application where i have to refresh a perticular part of page rather than whole page..I used the concept of IFRAMES but it takes hell lot of time to load and refresh..I guess struts tiles may be useful here. Any idea if we can refresh only a part of full tile keep other parts untouched??
Re: JSF is the beginning of the end of Struts !!!
http://www.prokmu.com/ After looking at this, my servers are going on eBay! Sometimes it doesn't pay to own your own kit. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 27 Jul 2005, at 20:08, Leon Rosenberg wrote: I charge 15-20 euro / month for an own tomcat, full ssh/scp access, apache in front, mysql dbs, mail server and so on. 30 euro for a full service package including backups and appl. level support. (from 50 euro on you can rent a complete machine at different providers in germany) Just for info :-) Leon P.S. 1 euro is 1.2 USD -Ursprüngliche Nachricht- Von: John Henry Xu [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 27. Juli 2005 20:18 An: Struts Users Mailing List Betreff: Re: JSF is the beginning of the end of Struts !!! +1 on Yan Hu, Tamas and Pedro If one open a web hosting business, what should J2EE hosting (including EJB, struts, JSP, servlets, MySQL, PostgreSQL, web services on JBoss) charge per month that you are willing to pay? What is the market price for such hosting now? It seems there is a market there I can explore. Regards, John H. Xu http://www.usanalyst.com http://www.GetusJobs.com (The largest free job portal in North America) - Original Message - From: "Pedro Salgado" To: "Struts Users Mailing List" Subject: Re: JSF is the beginning of the end of Struts !!! Date: Wed, 27 Jul 2005 17:47:20 +0200 +1 for that answer. Pedro Salgado On 27/07/2005 08:15, "Tamas Szabo" wrote: I wouldn't bet on PHP being more popular than Java webapps. I think that there will be more smaller Java webapps if there were much support for them at web hosting companies. I know several cases when Java webapp programmers, had to use PHP to make some smaller webapps for someone because most web hosting companies offer PHP support but they have no Java webcontainers installed. Tamas Yan Hu wrote: Xu: One of the reasons why you see a lot of PHP apps is that there are always a lot more small apps than large scale ones. I can not imagin you program a large scale site using PHP. If you are an OO guy, I could hardly imagin you even would like PHP(mixing all server side code with html code). There are a lot of java intranet applications you will never be able to access. PHP has its niche in the small app domain. It is fine. But it will never be at the same level as Java. I do not understand why you think PHP is more popular than Java. Let me ask you one simple question. Why are there so many more java jobs than PHP jobs? Anyone will tell you it is because there is a lot more demand for java. So you get the idea. With the advent of JSF, Java will be even sexier. I have long wished for something like asp.net code behind in C#. Now we have JSF code behind in Java. If asp.net can be a big success, why can't JSF? - 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] Jack H. Xu Technology columnist and editor http://www.usanalyst.com http://www.getusjobs.com (The largest free job portal in North America) -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to hide URL in Adress bar?
Why would you have to route every action through a single servlet/ action? The others are nice to have for a web application (who wants a web app cached on indexable?), but if you code web sites you might be right. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 13 Jul 2005, at 16:16, Leon Rosenberg wrote: sorry, i've hit the send button too quickly... why not using POST: your page will not be found (or indexed) by any search engine you have to recode all (ALL!) links in your page with javascript to submit forms you will completely switch of browser cashes (whether you want it or not) back button will be disabled you will have to route every action through a single servlet/action is it enough? :-) regards Leon p.s. mod_rewrite is a apache module which allows you to rewrite urls with reg expressions. On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote: Ok, Thanks for all of your QUICK answers! I think that usinf Frameset is not a good solution has it is not recommended from W3C Using POST seems to be a good solution if it worksand it will only hide the parameters isn't it? Micheal, what is mod_rewrite? Thanks to all of you! - Original Message - From: "Gaet" <[EMAIL PROTECTED]> To: "Mailing List Struts" Sent: Wednesday, July 13, 2005 2:48 PM Subject: How to hide URL in Adress bar? Hi evrybody, I would like to hide the struts URL in the Adress bar of the client browser is there a way do always have www.mysite.com in the adress bar instead of www.mysite.com/myStrutsAction.do?param1=param...?? Thanks for your help! - 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: Invalid dates / numbers etc on forms
Have you never developed using Dynamic Action Forms? With the vanilla Action Forms you may be right, but with Dynamic ones, I have found that Validator really cuts down the work. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 13 Jul 2005, at 14:54, Larry Meadors wrote: No offense (and not to sound like Mark Galbreath), but as a long time struts user, I have never found validator to save time or code...not even once. Larry On 7/13/05, Martin Gainty <[EMAIL PROTECTED]> wrote: The Struts-validator will certainly be able to handle date- validation for you there is an excellent tutorial located at http://www.oracle.com/technology/products/jdev/howtos/10g/ strutsvalidator/struts_validator_howto.html#setup 1)Add validator to your struts-config.xml 2)copy validator-rules.xml into WEB-INF/validator folder 3)copy predefined validator error messages from validator- rules.xml into your resources file (generally called ApplicationResources.properties) 4)Setup form beans to use the correct class..Notice the election between static Form Beans and Dynamic Form Beans to quote when several forms reuse the same validation rules then use ValidatorForm the Action which is applicable in your case if you are using ActionMappings are applicable when differing rulesets apply to FormBean depending on which Action is consuming the FormBean then use ValidatorActionForm/DynaValidatorActionForm 5)setup validation rules in /WEB-INF/validator/validations.xml there is a good primer available at http://jakarta.apache.org/struts/userGuide/dev_validator.html HTH, Martin- - Original Message - From: "Lance Semmens" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 13, 2005 7:17 AM Subject: Invalid dates / numbers etc on forms Is there a standard way of handling invalid user input in date / number fields etc. I can forsee 2 possible solutions. 1. Declare date properties on your form as java.lang.Strings and validate / parse them explicitely. 2. Declare date properties as java.util.Dates, have struts parse dates, check for null form properties and use request.getParameter() to see if an invalid date was entered. I prefer option 2. Are there any libraries around to do this generically or another way that I haven't thought of? (NB i'm a newbie). Thanks, Lance. - 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: Validation's disappearing messages
Will do, I'm back at home now, so I'll email them out tomorrow morning. Tonight I am going to to attempt the whole thing from scratch with a new project and 1.2, see if that gives me the answer. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com > From: "Fogleson, Allen" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" > Date: Wed, 20 Apr 2005 13:49:43 -0400 > To: "Struts Users Mailing List" > Subject: RE: Validation's disappearing messages > > Christopher, > > It might help if you include portions of the offending code, > struts-config and such. I have seen this before but usually it is the > result of a bad config or such. > > Al > > > -Original Message- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 20, 2005 11:22 AM > To: 'Struts Users Mailing List' > Subject: RE: Validation's disappearing messages > > Paul > > I am not redirecting. I am wondering whether it is the version of > Struts I > am on. I think tomorrow I will upgrade to 1.2. However, if anyone has > any > suggestions (polite), please let me know? > > Christopher Marsh-Bourdon > www.marsh-bourdon.com > > > > -Original Message- > From: Benedict, Paul C [mailto:[EMAIL PROTECTED] > Sent: 20 April 2005 16:56 > To: 'Struts Users Mailing List' > Subject: RE: Validation's disappearing messages > > > Chris, > > At first, make sure you are not redirecting. Error messages are request > based, and redirection equals two requests and thus the messages are not > persisted. > > -Original Message- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 20, 2005 11:52 AM > To: 'Struts Users Mailing List' > Subject: Validation's disappearing messages > > > Afternoon all > > Under Struts 1.1 (previously I have been using 1.0), I have validation > on a > form (it extends ValidatorActionForm) but after validation has failed > and I > have (within the validate method) logged the number of errors, I can not > for > the life of me get them to show within the JSP. I have followed the > examples in both the Struts Cookbook and the Struts site, but still to > no > avail. I raise errors on this form using both the Validation.xml and > manually, and I ensure that I return the errors object. > > I have also taken a dump of both the Request and Session for the user, > and I > find nothing that has a class of ActionErrors or ActionMessages. > > Has anyone had this problem and can help? I assume I doing something > really > silly that is ballsing this up. > > Cheers > > Christopher Marsh-Bourdon > -- > > > > > > 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] > > > > > > > > -- > 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: [EMA
Re: ot: get the fud
There are three kinds of lies: lies, damn lies, and statistics." - Benjamin Disraeli On 4/8/04 13:49, "Vic Cekvenich" <[EMAIL PROTECTED]> wrote: > http://www.microsoft.com/mscorp/facts/default.asp > > .V > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Christopher Marsh-Bourdon Pyplia Limited +44 (0) 20 7324 6060Switchboard +44 (0) 77 4865 4660Mobile +44 (0) 20 7324 6001Fax www.pyplia.com WWW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get the ActionForward for the _previous_ page
Stefan I am not aware of a way of recording the last JSP/(Action or Servlet) a user was at within Struts, so for my applications I do it myself and save the String to a Session object (or store it within another object that is stored in the session scope). I do it seperately for the JSP and (Action or Servlet) urls, as depending on what I am doing, depends on which one I go back to. Each action (or servlet) that is called updates the value of the two session properties, thus a successive servlet can reference them. There may of course be a more refined way to do this, but at least this is relatively simple. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com Stefan Siegl <[EMAIL PROTECTED]> 27/07/2004 13:50 Please respond to "Struts Users Mailing List" To: [EMAIL PROTECTED] cc: Subject:How to get the ActionForward for the _previous_ page Hello, I created a small application using Struts and the internationalization and provided images (with the flags in the appropriate language) that allow the user to change the language. The changing of the language is done using a normal Action class. My problem is that after changing the language (resetting the session attribute) I do not know where to forward to. I want to forward to the last page independently on which page the language was selected. The problem with Struts is that i do not get any information about the last page that the user was on, so I am not able to forward to the last page. Is this correct or is there any workaround to do this? If this is not possible, then it would be nice to have that in a further release of Struts because I think that would be very helpful to create dialogues based on Struts. Thanks for your time, Best regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: HSQLDV / STRUTS
Its always the obvious! Michael McGrady <[EMAIL PROTECTED]> 12/07/2004 15:59 Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:Re: HSQLDV / STRUTS The correct syntax is "SELECT * FROM At 05:23 AM 7/12/2004, you wrote: >Andre > >What type of commit are you using under JDBC, automatic or manual? Perhaps >you should reply with the offending code so we can see what is happeneing. > Also, what exception handling are you using around the INSERT code, as >you may be handling an exception/error but not doing anything with it. > >Regards > >Christopher Marsh-Bourdon >www.marsh-bourdon.com > > > > > >"Bussie, Andre D" <[EMAIL PROTECTED]> >12/07/2004 13:09 >Please respond to "Struts Users Mailing List" > > > To: [EMAIL PROTECTED] > cc: > Subject:HSQLDV / STRUTS > > > > > > >I'm using HSQLDB I have a Java Action Class that performs an INSERT >(queryStr = "INSERT INTO USERS (PASSWORD, EMAIL) VALUES ('?', '?')";) >query my code indicates that the INSERT is successful however when I >query the Database SELECT * it doesn't show the current >INSERT that was made. Any suggestions on why the code is not being >reflected in the database? > > > > > > > > >- >The information in this e-mail is confidential. It is intended solely for >the addressee. If you are not the intended recipient please notify the >sender immediately and delete this message. Any review, dissemination, >distribution, copying or other use of this communication or the >information in it is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: HSQLDV / STRUTS
Andre What type of commit are you using under JDBC, automatic or manual? Perhaps you should reply with the offending code so we can see what is happeneing. Also, what exception handling are you using around the INSERT code, as you may be handling an exception/error but not doing anything with it. Regards Christopher Marsh-Bourdon www.marsh-bourdon.com "Bussie, Andre D" <[EMAIL PROTECTED]> 12/07/2004 13:09 Please respond to "Struts Users Mailing List" To: [EMAIL PROTECTED] cc: Subject:HSQLDV / STRUTS I'm using HSQLDB I have a Java Action Class that performs an INSERT (queryStr = "INSERT INTO USERS (PASSWORD, EMAIL) VALUES ('?', '?')";) query my code indicates that the INSERT is successful however when I query the Database SELECT * it doesn't show the current INSERT that was made. Any suggestions on why the code is not being reflected in the database? - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: OT:SOLUTION:Re: Why Ajp13Connector.class is not found in tomcat-jk.jar inTomca 5.x but in Tomca 4.x
This guy constantly asks questions in the same manner, isn't there a way to prevent repeat offenders posting? Christopher On 10/7/04 15:05, "Bryan Hunt" <[EMAIL PROTECTED]> wrote: > I know the solution, for u *NIX users > > vi ~/.procmailrc > > snip= > :0 h > *^Subject:.*I can't bother my ass looking on google so I send noise to > the list > /dev/null > =snip > > > --b > > > Robert Taylor wrote: > >> http://jakarta.apache.org/site/mail2.html#Tomcat >> >> >> >>> -Original Message- >>> From: ganesh gadi [mailto:[EMAIL PROTECTED] >>> Sent: Saturday, July 10, 2004 6:31 AM >>> To: Struts Users Mailing List >>> Subject: Why Ajp13Connector.class is not found in tomcat-jk.jar inTomca >>> 5.x but in Tomca 4.x >>> >>> >>> >>> Hi List, >>> >>> i'm using Tomcat 5.0.19 server. >>> I need to connect Ajp13Connector through Tomcat 5.0.19 >>> >>> I configured in Tomcat. >>> But while i'm running ,NoClassDefFoundException is >>> getting.i.e.,Ajp13Connector.class is not available in "tomcat-jk.jar" >>> But the class is available in Tomcat 4.x in the same jar >>> file(tomcat-jk.jar). >>> Why didn't I find that file in Tomcat 5.x >>> I redownload tomcat 5.x again but i got the same problem. >>> Please give me the solution for that. >>> awaiting for u reply. >>> >>> Thanks >>> Ganesh >>> >>> >>> >>> - >>> Do you Yahoo!? >>> Yahoo! Mail - 50x more storage than other providers! >>> >>> >> >> - >> 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: Book recommendations
Jakarta Struts, Chuck Cavaness, O'Reilly "Davis, Nick" <[EMAIL PROTECTED]> 06/07/2004 15:39 Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject:Book recommendations Hi All, I am looking for a good Struts book. Does anyone have any recommendations? -Nick - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: big validation.xml
James Thank you for that, just what we needed. Thanks Christopher Marsh-Bourdon "James Mitchell" <[EMAIL PROTECTED]> 01/07/2004 10:37 Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:Re: big validation.xml I would not recommend using Modules unless you have a specific need for them. And from what you both describe, you don't need Modules. You are better off splitting up the validation.xml and struts-config.xml into smaller, more managable peices. By activity or use case. (from web.xml) ... ... action org.apache.struts.action.ActionServlet config /WEB-INF/classes/elms/resource/struts-config.xml, /WEB-INF/classes/elms/resource/struts-config-common.xml, /WEB-INF/classes/elms/resource/struts-config-manageproducts.xml, /WEB-INF/classes/elms/resource/struts-config-payment.xml, /WEB-INF/classes/elms/resource/struts-config-makeloan.xml, /WEB-INF/classes/elms/resource/struts-config-disbursement.xml, /WEB-INF/classes/elms/resource/struts-config-workcollections.xml, /WEB-INF/classes/elms/resource/struts-config-branchTab.xml, /WEB-INF/classes/elms/resource/struts-config-corporateTab.xml debug ... ... (from struts-config.xml) ... ... ... ... Using this simple technique we have virtually eliminated contention of files. Be careful with this though, if you define duplicate action-mapping (by path) or form-beans (by name), the last one loaded silently wins. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Foux Dev." <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 01, 2004 4:22 AM Subject: Re: big validation.xml > Hi, > > I would suggest you take a close look to Struts Modules. Isolating > specific parts of your application into modules has the following > advantages: > > - reduces size of validation.xml and struts-config.xml files, as each > module as its own set of files; althrough validation and resources can > be shared between modules. > > - better separation of team work: each team handles its own set of XML, > resources, HTML/JSP/.. files, and therefore reduces dramatically > CVS/SVN/.. conflicts! Working in a team on a huge monolithic > configuration file is a nightmare! > > - better overview of your global application and a lot more maintainable. > > Of course, splitting your application into modules will also need some > "standard rules" between them, but that's not of Struts' responsability, > rather a development management issue. And there are not specific rules > for splitting applications into modules: it's more based on logic and > common sense than anything else. > > Cheers, > Fulco > > > some useful links: > - http://jakarta.apache.org/struts/userGuide/configuration.html > - he "Struts Survival Guide" on www.objectsource.com has a lot of tips > and tricks that will save you hours of surfing forums/mailinglist > looking for answers (nooo, I've nothing to do with that book ;o)) > > > [EMAIL PROTECTED] wrote: > > >I'm in the same boat, up until now we've developed small Struts > >applications (about 20 different sets of input/view forms). Now we are > >going to migrate an application which we wrote in our own framework to > >Struts. This contains about 300 separate input/view forms (a lot will be > >reduced down due to re-usability of Struts over our own framework). As > >Dion asks, what is the best practice for projects of this size? > > > >Cheers > > > >Christopher Marsh-Bourdon > > > > > > > > > > > >"Dionisius Purba" <[EMAIL PROTECTED]> > >01/07/2004 08:07 > >Please respond to "Struts Users Mailing List" > > > > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >cc: > >Subject:big validation.xml > > > > > >Hi all, > > > >Struts-validator, or I guess it has become common-validator (?) is very > >cool, > >a lot of thanks for making life easier. > >Because there are lots of entities in application that I'm developing, > >more than 80, > >the validation.xml file will be so big, roughly more than two thousands > >line. > > > >For such a big validation.xml, will there be effect in performance > >in the JSP that utilize the validation.xml? > >Are there any tips/b
Re: big validation.xml
I'm in the same boat, up until now we've developed small Struts applications (about 20 different sets of input/view forms). Now we are going to migrate an application which we wrote in our own framework to Struts. This contains about 300 separate input/view forms (a lot will be reduced down due to re-usability of Struts over our own framework). As Dion asks, what is the best practice for projects of this size? Cheers Christopher Marsh-Bourdon "Dionisius Purba" <[EMAIL PROTECTED]> 01/07/2004 08:07 Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:big validation.xml Hi all, Struts-validator, or I guess it has become common-validator (?) is very cool, a lot of thanks for making life easier. Because there are lots of entities in application that I'm developing, more than 80, the validation.xml file will be so big, roughly more than two thousands line. For such a big validation.xml, will there be effect in performance in the JSP that utilize the validation.xml? Are there any tips/best practices for such situation? Thanks a lot in advance for any comments/suggestions. ~dion - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: how do i get the reference of ServletContext in Action Class
servlet.getServletContext(). The 'servlet' is part of the super class 'Action' that contains an object 'servlet' of the type 'ActionServlet'. It's from this object the method 'getServletContext()' comes from. Cheers Christopher Marsh-Bourdon Pyplia Limited Asim Ghosh <[EMAIL PROTECTED]> 24/06/2004 07:19 Please respond to "Struts Users Mailing List" To: [EMAIL PROTECTED] cc: Subject:how do i get the reference of ServletContext in Action Class hello guys, can any one tell me that how do i get the reference of ServletContext in Action Class. asim - ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: Setting html:hidden property using JSTL
James Do you include the HTML tag library within the jsp page? It needs to go at the top and look like this: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> Cheers Christopher Marsh-Bourdon Pyplia Limited klute <[EMAIL PROTECTED]> 23/06/2004 18:25 Please respond to "Struts Users Mailing List" To: Struts Users Mailing List <[EMAIL PROTECTED]> cc: Subject:Setting html:hidden property using JSTL Hi All, I just started experimenting with jstl and i'd like to set a hidden field on MyActionForm using a value (contentId) available as an attribute on the request. Basically, i'd like to do something like this: "/> Which does not work. Should i be using EL syntax instead? And what would the correct syntax be? I did check that returns a valid value so my confusion is just passing it as a value to the html:hidden property. Any help is greatly appreciated. James __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: Setting html:hidden property using JSTL
I've also noticed you are doubling up on double quotes, try this: or Cheers Christopher Marsh-Bourdon Pyplia Limited klute <[EMAIL PROTECTED]> 23/06/2004 18:25 Please respond to "Struts Users Mailing List" To: Struts Users Mailing List <[EMAIL PROTECTED]> cc: Subject:Setting html:hidden property using JSTL Hi All, I just started experimenting with jstl and i'd like to set a hidden field on MyActionForm using a value (contentId) available as an attribute on the request. Basically, i'd like to do something like this: "/> Which does not work. Should i be using EL syntax instead? And what would the correct syntax be? I did check that returns a valid value so my confusion is just passing it as a value to the html:hidden property. Any help is greatly appreciated. James __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: tiles sidebar,header,footer
Jignesh Apologies if you think I'm fobbing you off, but the Struts example explains what you need to know. I fail to see the point of someone having to force feed you the information because you don't want read some documentation. Cheers Christopher Marsh-Bourdon Pyplia Limited <[EMAIL PROTECTED]> 23/06/2004 13:14 Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject:Re: tiles sidebar,header,footer No I am talking for tiles only. But rather then getting precise answer, I am getting reply to read tutorial. -Jignesh On Wed, 23 Jun 2004 04:59 , Michael McGrady <[EMAIL PROTECTED]> sent: >Are you talking about frames? > >At 02:15 AM 6/23/2004, [EMAIL PROTECTED] wrote: >>Jignesh >> >>What do you mean by static and called back? >> >>If by this you mean the tiles for these areas do not change, then yes, >>this is possible. The "called back" has me puzzling though. >> >>Cheers >> >>Christopher Marsh-Bourdon >>Pyplia Limited >> >> >> >> >> >>[EMAIL PROTECTED]> >>23/06/2004 10:10 >>Please respond to "Struts Users Mailing List" >> >> >> To: "'Struts Users Mailing List'" [EMAIL PROTECTED]> >> cc: >> Subject:tiles sidebar,header,footer >> >> >>Hi All, >>We are using tiles. Is it possible to make header,footer static means all >>the time >>they will not be called back,when page is submmitted. Also sometimes >>sidebar also >>remains nonmovable only content gets changed. >> >> >>-Jignesh >> >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >>- >>The information in this e-mail is confidential. It is intended solely for >>the addressee. If you are not the intended recipient please notify the >>sender immediately and delete this message. Any review, dissemination, >>distribution, copying or other use of this communication or the >>information in it is strictly prohibited. > > > >- >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 in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: tiles sidebar,header,footer
There is an example of this in the struts example code. What you are asking to do is kind of the whole reason for using Tiles (or at least a fairly important one), so I can assume you really haven't looked at any of the user documentation/examples as of yet. I'd suggest a visit to http://jakarta.apache.org/struts/ and reading through the documentation. Cheers Christopher Marsh-Bourdon Pyplia Limited <[EMAIL PROTECTED]> 23/06/2004 10:32 Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject:Re: tiles sidebar,header,footer Hi Christopher, Thanks for immediate response "If by this you mean the tiles for these areas do not change" - My purpose is same. Please provide me guideline. -Jignesh On Wed, 23 Jun 2004 10:15 , [EMAIL PROTECTED] sent: >Jignesh > > > >What do you mean by static and called back? > > > >If by this you mean the tiles for these areas do not change, then yes, > >this is possible. The "called back" has me puzzling though. > > > >Cheers > > > >Christopher Marsh-Bourdon > >Pyplia Limited > > > > > > > > > > > >[EMAIL PROTECTED]> > >23/06/2004 10:10 > >Please respond to "Struts Users Mailing List" > > > > > >To: "'Struts Users Mailing List'" [EMAIL PROTECTED]> > >cc: > >Subject:tiles sidebar,header,footer > > > > > >Hi All, > >We are using tiles. Is it possible to make header,footer static means all > >the time > >they will not be called back,when page is submmitted. Also sometimes > >sidebar also > >remains nonmovable only content gets changed. > > > > > >-Jignesh > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > >- > >The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Re: tiles sidebar,header,footer
Jignesh What do you mean by static and called back? If by this you mean the tiles for these areas do not change, then yes, this is possible. The "called back" has me puzzling though. Cheers Christopher Marsh-Bourdon Pyplia Limited <[EMAIL PROTECTED]> 23/06/2004 10:10 Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject:tiles sidebar,header,footer Hi All, We are using tiles. Is it possible to make header,footer static means all the time they will not be called back,when page is submmitted. Also sometimes sidebar also remains nonmovable only content gets changed. -Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information in this e-mail is confidential. It is intended solely for the addressee. If you are not the intended recipient please notify the sender immediately and delete this message. Any review, dissemination, distribution, copying or other use of this communication or the information in it is strictly prohibited.
Actions and Anchors
Evening All I have a sticky problem, and it goes something like this: I have a JSP which will be returned by an Action. On this JSP page there are a fair few Anchors like: I¹m an Anchor. Normally (well under Servlets) you can pass a parameter in the url like this: http://www.pyplia.com/wibble.jsp#ImAnAnchor, and the browser will take you to the point of the Anchor. Has anyone managed to get this to work under Struts Actions? Cheers in advance Christopher Marsh-Bourdon Pyplia Limited www.pyplia.com WWW
[OT] Posting timings
Can anyone tell me why my postings appear a lot later than when I send them? All my other emails arrive within seconds/minutes when I post them to other mailing lists/email accounts? Cheers Christopher Marsh-Bourdon Pyplia Limited www.pyplia.com WWW