Re: Specify a file name when using DownloadAction
Hi, You can try with this, for me work fine // Set the headers. res.setContentType("application/x-download"); res.setHeader("Content-Disposition", "attachment; filename=" + filename); // Send the file. OutputStream out = res.getOutputStream( ); returnFile(filename, out); // Shown earlier in the chapter "Vu, Thai" <[EMAIL PROTECTED]To: "Struts Users Mailing List" com> cc: bcc: 15/12/2005 19:56 Subject: Specify a file name when using DownloadAction Please respond to "Struts Users Mailing List" Does anybody know how to specify a file name when we use DownloadAction to send a file to users? Sincerely, Thai - 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]
y this happens?
I have an error coming when I start my application using Tiles. org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:279) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:422) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:162) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.ClassCastException: org.apache.struts.taglib.bean.CookieTei org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:162) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
Ok, this might be lengthy, but hopefully you will get my point after reading it:) This hypothetical I'm proposing isn't my actual use case, I'm creating an example that is easier to work with even if not totally realistic. The business requirement is the user needs to select a letter of alphabet and then get back companies that start with that lettter so that they can edit the Companies and the Divisions within each Company and within each division be able to edit the Departments. All form ONE screen. So for ultimate simplicity lets say it looks like: //unkown num of companies Company Name Company Date //unknown num of divisions Division Name Division Date //unkown num of Departments Deapartment Name Department Date All fields above are editable and all dates need to be validated to be in correct input format. Your domain layer already has in place several beans that it uses: Company, Division, Department. All have String name and java.util.Date date fields. So the user selects "letter D" from the drop down and submits. Ok now walk me through what you would set up. In my scenario it makes sense to make a call to the backend passing in the letter "D" into: List getCompanies(String letter); I'll now have in my Action a List of Companies, where each Company in the List has a List of Divisions and within each Divison I have a List of Departments. Tell me how I'm going to easily set that up in my ActionForm so that I can edit those date fields? Remember POJOs already exist that have a Date property in them. You aren't suggesting the developer go through and create all new POJOs with Strings in them to hold the Dates? Actually most of the suggestions i've seen talk about addign String properties directly on the form which in this case is impossible. You have no idea how many of each type you would need, and then think of the work involved to put them back into the nested objects in order to give the data back to the backend methods for update. Now let's even take a more mundane example. Let's take a "Person" object. Before we even need to do any editing we have to display some users. Most would agree that in OO programming its good to separate out responsibilities so since a Person can have different Addresses (ie Work, Home, School, etc) we typically have an Address object that would hold that data and maybe in Person we'd have a Collection addresses to hold the Address objects. This fits nicely with what our domain model gives us back when we make queries as well. So displaying a List of Users we could also easily beneath each user display their various addresses. Now what happens when you click on that Person and you want to be able to edit that Person AND edit the different addresses all from one screen? What are your properties going to be in your PersonActionForm? In this case since it's just a one level deep nest you could create a List of HashMaps and hold each Address info in a HashMap, but besides that being conceptually ugly, what if your Address object also had some other data that needed to be updated (maybe a Collection of Phone Numbers per address?). I'm not so fond of cracking open each value object POJO and adding birthDateAsString properties into them and then having them do coversions to the underlying Date birthDate properties. Although that works it's really not a very clean solution. Does anyone know if the newer versions of Struts, Sruts TiBo, StrutsRocky III, handle any of this? (I've been on the dark side doing some .NET stuff so have been out of the loop for a while, but want to get back up to speed with the latest buzz in the struts world). -- Rick
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
I want to add one thing to Raghu's advice: You only need String-only DTOs at the form layer for INPUT variables only. Anything you retrieved from the business layer can be stuck in the request as it is for display purposes, or attached right to the form. You may want something like this in your array: Pretend you have a class with 50 attributes. You obviously don't want "double the objects" and you won't, because you only model the portion that belongs to your input. You could do this: public class LineItemInputDTO { LineItem item; // use this to display read only data String inputAttr1; String inputAttr2; } So you could create this object, as I said, in the "load" method -- and then once you're happy with the validation in the "savE" method, you convert those input attributes back into the actual model. Paul --- Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > Have a strDate which is of type string. The setStrDate() needs to be coded > in such a way that it sets the date attribute also which is of type Date. > > The getDate() which returns Date object can be used in the "business" > layers. For example, my Hibernate mappings map to getDate and not to > getStrDate... but my setStrDate is used at the struts form layer. > > While I do see the point of not mixing your business objects with DTO's, for > most *small* applications I see it as a overhead (mostly from maintenance > point of view) to separate them. You would end up doubling the number of > your business objects. Atleast on the small application I started off with > struts, I have just one or two attributes for a class with around say 10 > attributes which require this workaround. So I did rather "contaminate" my > class with a few strXXX attributes rather than create a separate class > (called DTOs and business objects), ofcourse contrary to the common wisdom ! > :-) I have been using this on my current *small* application and it doesnt > seem to give any problems. > > The other way to not "contaminate" your business classes would be to define > these attributes in the dyna form, do the validation on these additional > attributes and on submit (if the validation passes) populate the business > object (in your action class). > > You can choose your poison! :-) or wait for later releases of struts to take > care of this more elegantly! :-) > > > Regards, > Raghu > > > > On 12/16/05, Rick R <[EMAIL PROTECTED]> wrote: > > > > Cutting right to the chase... > > > > I'm curious on how others handle the age-old struts problem of: "How do > > you > > handle nested objects in an ActionForm that have non String properties > > that > > might be editable by a user on a JSP?" > > > > To provide a watered down example... > > > > Imagine you go to the DB to get a List of Company objects. Each company > > object in the List has nested in it a List of Division objects. Each > > Division has a "date" field in it (say a startDate). You then need to > > display a form that displays the companies and divisions and could allow > > the > > user to edit the date (in a free-form text field) and submit the form. > > > > Things work fine if you didn't have to worry about form validation - in > > which case, you could just have one property in your ActionForm: List > > companies; //set/get and you are done (using the List of Company value > > objects). You'd display the data on the form and submit and things are > > nice. > > > > However, nested sort of deep is that "date" field. If the user enters in > > the > > date wrong we want to return to the page and display what they entered so > > they can fix it. This can't be done if you just want to use the nested > > value > > object(POJO) approach. > > > > This above scenario is Strut's biggest weakness. (It's compounded with > > BeanUtils crazy notion of also not keeping wrapper clases like Integer > > truly > > "null" when a String is null - instead it decides to make the Integer 0). > > > > Besides wondering how others deal with this annoying problem (other than > > moving to another framework like JSF), I was wondering if maybe DyanForms > > could be a solution? Can you nest them ? If so then that might be the > > answer. Typically I haven't been too fond of DyanForms in the past (for a > > couple of reasons), but if it could solve this issue it would definitely > > be > > worth their use. > > > > -- > > Rick Reumann > > > > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
Have a strDate which is of type string. The setStrDate() needs to be coded in such a way that it sets the date attribute also which is of type Date. The getDate() which returns Date object can be used in the "business" layers. For example, my Hibernate mappings map to getDate and not to getStrDate... but my setStrDate is used at the struts form layer. While I do see the point of not mixing your business objects with DTO's, for most *small* applications I see it as a overhead (mostly from maintenance point of view) to separate them. You would end up doubling the number of your business objects. Atleast on the small application I started off with struts, I have just one or two attributes for a class with around say 10 attributes which require this workaround. So I did rather "contaminate" my class with a few strXXX attributes rather than create a separate class (called DTOs and business objects), ofcourse contrary to the common wisdom ! :-) I have been using this on my current *small* application and it doesnt seem to give any problems. The other way to not "contaminate" your business classes would be to define these attributes in the dyna form, do the validation on these additional attributes and on submit (if the validation passes) populate the business object (in your action class). You can choose your poison! :-) or wait for later releases of struts to take care of this more elegantly! :-) Regards, Raghu On 12/16/05, Rick R <[EMAIL PROTECTED]> wrote: > > Cutting right to the chase... > > I'm curious on how others handle the age-old struts problem of: "How do > you > handle nested objects in an ActionForm that have non String properties > that > might be editable by a user on a JSP?" > > To provide a watered down example... > > Imagine you go to the DB to get a List of Company objects. Each company > object in the List has nested in it a List of Division objects. Each > Division has a "date" field in it (say a startDate). You then need to > display a form that displays the companies and divisions and could allow > the > user to edit the date (in a free-form text field) and submit the form. > > Things work fine if you didn't have to worry about form validation - in > which case, you could just have one property in your ActionForm: List > companies; //set/get and you are done (using the List of Company value > objects). You'd display the data on the form and submit and things are > nice. > > However, nested sort of deep is that "date" field. If the user enters in > the > date wrong we want to return to the page and display what they entered so > they can fix it. This can't be done if you just want to use the nested > value > object(POJO) approach. > > This above scenario is Strut's biggest weakness. (It's compounded with > BeanUtils crazy notion of also not keeping wrapper clases like Integer > truly > "null" when a String is null - instead it decides to make the Integer 0). > > Besides wondering how others deal with this annoying problem (other than > moving to another framework like JSF), I was wondering if maybe DyanForms > could be a solution? Can you nest them ? If so then that might be the > answer. Typically I haven't been too fond of DyanForms in the past (for a > couple of reasons), but if it could solve this issue it would definitely > be > worth their use. > > -- > Rick Reumann > >
Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF
On 12/15/05, Chris McCormack <[EMAIL PROTECTED]> wrote: > > This might be a dumb question but for those of us not able to make > ApacheCon, are there any videos of the presentations online anywhere? Some of the sessions were videotaped, but this one wasn't alas. As was mentioned in a different response, this preso is similar to the one that David Geary and I gave at JavaOne (with an audio track available) but I've added some additional content at the end to reflect more recent happenings. I'd be happy to answer any specific questions on points that are in the slides. Chris Craig
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
Rick, I just hope you're not making the situation more complicated than it needs to be. If I have to display a 2D list of items (like say a table), I may be using a DTO which has multiple properties. These are all strings. I only found nested objects to be complex when I tried to make them business objects. It never worked successfully with simplicity for me. If you have to edit a Line Item order, for example, have a list of DTO objects like: class LineItem { String id; String name; String price; } And then iterate over the list, outputting the text boxes as such. I hope this helps. Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validation javascripts
ya.. i agree with you Raghu!! I would want minlength validation to work before mask is applied.. But the order in which the validations are specified do not affect the order in which they are applied. I have tried that out. On 12/15/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > > >> I'm not sure it matters much which order they're applied in, though, > since all have to pass > >> anyway. > > Order does matter... That will decide which *one* of the error messages to > display to the user when one of these tests fail. > > > > On 12/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > > > Deepa Khetan wrote: > > > Is there a way to specify the order of validaions to occur using > > > validation.xml?? I have noticed that "mask" take precedence over > > "minlength" > > > > I'm not sure; maybe the order they're listed will affect the order > > they're applied? I'm not sure it matters much which order they're > > applied in, though, since all have to pass anyway. > > > > L. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >
Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Dakota, > > Last week, I wrote about three messages voicing my opinon that I think it > is an error to accept > Shale under the Struts banner. I still hold that to be true, but I also > see the justification of > the commiters, which are: > > [1] Struts is now an "umbrella" label to contain MANY frameworks. As the > old Action 1.x framework > phases out, others will come in like WebWork/Struts 2.x, Shale, etc. > > [2] Many companies recognize the Struts label, so having Shale called > Struts Shale allows your > manager to instantly buy into the technology. > > [3] IBM has certified Struts; so this is certification for Shale too (ala > point #2). > > [4] Sharing the Struts community with Shale is a big win for JSF. > > I can't really argue with these opinions; their reasoning is sound. The > philosophy is certainly > much different than mine and I prefer Struts to be the name of ONE > FRAMEWORK ONLY TO PREVENT > BRANDING DILUTION, but I was told by a Commiter "what difference does it > make to you?" Well I > certainly won't be caring anymore with that kind of response :) I cared > because I was interested > in not diluting the brand name but... I can only care so much since, in > reality, it's not my > decision and responsibility anyway. By the way, the original decision to incorporate Shale as a subproject occurred nearly 11 months ago: http://marc.theaimsgroup.com/?l=struts-user&m=110651419515521&w=2 -- Paul Craig
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > > As I said, the problem is you're using model objects for input. Don't do > that. Your "load" action > should convert the specific and limit poritions of your intended user > input into the Form; > probably a list of Strings. In your "save" action, you convert them back > into the model object. You're missing what I'm saying. You can't easily do what you are saying with nested items. Very rarely do I ever need nested objects in Struts, in my experience. I've > done Struts for about > 3 years now and I think only one time I had to do it in a big business > application. Usually, all > the user needs to do is update a simple list; so typically you can pull > out all your nested data > into a simple array. Well, my experience has been just the opposite and have been using Struts for over three years. I'm usually dealing with business applications where things are much more complex than you describe.. and that's been the norm not the exception. Later when I get back from seeing the Lion The Witch and the Wardrobe, I'll provide even some simple cases that make much more sense to have nested objects Larry if you read this.. explain the deal with the Department id situation:) I got a run.. -- Rick
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
>> I'm concerned with having to deal with that limitation then how DO you deal >> with the 'model/domain/business' objects that do need to get populated? Sure in a simple form it's easy, but real life is a different story. Many times you get back objects that are nested in Collections... As I said, the problem is you're using model objects for input. Don't do that. Your "load" action should convert the specific and limit poritions of your intended user input into the Form; probably a list of Strings. In your "save" action, you convert them back into the model object. Very rarely do I ever need nested objects in Struts, in my experience. I've done Struts for about 3 years now and I think only one time I had to do it in a big business application. Usually, all the user needs to do is update a simple list; so typically you can pull out all your nested data into a simple array. Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF
Dakota, Last week, I wrote about three messages voicing my opinon that I think it is an error to accept Shale under the Struts banner. I still hold that to be true, but I also see the justification of the commiters, which are: [1] Struts is now an "umbrella" label to contain MANY frameworks. As the old Action 1.x framework phases out, others will come in like WebWork/Struts 2.x, Shale, etc. [2] Many companies recognize the Struts label, so having Shale called Struts Shale allows your manager to instantly buy into the technology. [3] IBM has certified Struts; so this is certification for Shale too (ala point #2). [4] Sharing the Struts community with Shale is a big win for JSF. I can't really argue with these opinions; their reasoning is sound. The philosophy is certainly much different than mine and I prefer Struts to be the name of ONE FRAMEWORK ONLY TO PREVENT BRANDING DILUTION, but I was told by a Commiter "what difference does it make to you?" Well I certainly won't be caring anymore with that kind of response :) I cared because I was interested in not diluting the brand name but... I can only care so much since, in reality, it's not my decision and responsibility anyway. -- Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Action Forms are DTO objects. They are not your model/domain/business > objects. Struts is the only > framework (historical design) that forces you to use String objects in the > Form/DTO, but that's > not a bad thing. It's a container to accept user input, which is all from > the Internet transmitted > as strings. You can of course have non-string values in the form, but > those should NEVER accept > input -- and it's because the input needs a place to reside as Strings > before the validator can > validate them. Otherwise you would blow up with bad input when the > conversion fails. Ok, yes you aren' t telling me anything new or addressing the problem that still needs to be solved. Sure you can state the reason of why ActionForms should only have String properties... been there explored that... that's not my question. I'm concerned with having to deal with that limitation then how DO you deal with the 'model/domain/business' objects that do need to get populated? Sure in a simple form it's easy, but real life is a different story. Many times you get back objects that are nested in Collections and those properties in those domain objects have to be translated somehow to a front end representation that can update them when the form submits. Various approaches exist to this. What is your preferred approach? Now this will change with Struts 2.x; there is an automatic type converter > and you can submit into > model/domain/business objects. I'll have to look into this. Is this feature documented anywhere other than in the 2.0 src? -- Rick
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
This below is very interesting Hubert. I'm going to have to to give this a try tomorrow. So basically there is a way to bind all your nested objects to Dyna objects which of course can be validated as String properties even though they'll map to non-string props if validation passes. I think this might be the answer. I look forward to trying it out. Thanks. On 12/15/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > Ok, my fault. I focused on the validation part. > > For this part: > > Why if you already have existing code > > working great wtih iBATIS, hibernate, or EJBs should you have to try and > > re-write all you POJOs to have String properties included in the > objects. > > That would be a maintenance nightmare and not even really practical. > > ...I'll give you one guess what my response is. > > > And if you guessed "formdef" you'd be correct. > > Here's how the "address", "employee", and "company" forms were defined > in the sample app I have: > > beanType="formdef.plugin.example.nested.business.Address"/> > > > beanType="formdef.plugin.example.nested.business.Employee"> > > > > > > > > > > > beanType="formdef.plugin.example.nested.business.Company" > formType="org.apache.struts.validator.DynaValidatorForm"> > > > > > > > type=" > formdef.plugin.conversion.FormCollectionConverter" > param="employeeForm"> > > > > > > > To summarize, it says "create addressForm and give it the same fields > as my Address object", "create employeeForm and give it the same > fields as my Employee object, plus a 'selectedButton' field. Oh, and > use the 'addressForm' definition for the 'address' field", and the > same essentially for the "companyForm", except I defined "employees" > to be a list, and told the converter which form to map its elements > to, and which Collection implementation class to use. > > Hubert > > > On 12/15/05, Rick R <[EMAIL PROTECTED]> wrote: > > On 12/15/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > > > > > I've always used String values. > > > > > > But that above is the problem - you can't always have String values > returned > > to you in nested objects from the domain-layer, backend, mid-tier, etc. > When > > you query the backend for value objects that have nested objects inside > of > > them, you can be sure those will have all String fields in them. (I > guess > > you could if you decided to rewrite the whole backend/midtier but that's > > just not feasible or a good idea. Why if you already have existing code > > working great wtih iBATIS, hibernate, or EJBs should you have to try and > > re-write all you POJOs to have String properties included in the > objects. > > That would be a maintenance nightmare and not even really practical). > > > > So the question is how do you deal with the objects that come to you > from > > the backend that do not have all String properties and you need to > update > > them from the front end. I'm yet to see a clean solution for this, but > I'm > > still on my search:) > > > > -- > > Rick > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Rick
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
Action Forms are DTO objects. They are not your model/domain/business objects. Struts is the only framework (historical design) that forces you to use String objects in the Form/DTO, but that's not a bad thing. It's a container to accept user input, which is all from the Internet transmitted as strings. You can of course have non-string values in the form, but those should NEVER accept input -- and it's because the input needs a place to reside as Strings before the validator can validate them. Otherwise you would blow up with bad input when the conversion fails. Now this will change with Struts 2.x; there is an automatic type converter and you can submit into model/domain/business objects. That's a good thing too because Spring, WebWork, Tapestry, JSF, and all other modern frameworks allow this. Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletException: duplicate class definition ?!
Thank, But all my JAR are in WEB-APP/lib. And I've not found multiple copie. In my my frame there is only JSP from one webapp ! Regards. 2005/12/15, Laurie Harper <[EMAIL PROTECTED]>: > Jean-Charles Giardina wrote: > > Hi every body, > > > > I get an javax.servlet.ServletException: duplicate class definition: > > com/amarda/framework/taglib/RowTag > > on webapp start up only. Upon refreshing the page this error goes away. > > > > This exception occurs when using more than one frame (including internal > > frame). > > > > Tks folks. > > Check for multiple copies of your RowTag class in the classpath (or > multiple copies of a JARc containing that class). You probably have the > class in a shared library as well as your webapp's libraries / classes. > > L. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
Ok, my fault. I focused on the validation part. For this part: > Why if you already have existing code > working great wtih iBATIS, hibernate, or EJBs should you have to try and > re-write all you POJOs to have String properties included in the objects. > That would be a maintenance nightmare and not even really practical. ...I'll give you one guess what my response is. And if you guessed "formdef" you'd be correct. Here's how the "address", "employee", and "company" forms were defined in the sample app I have: To summarize, it says "create addressForm and give it the same fields as my Address object", "create employeeForm and give it the same fields as my Employee object, plus a 'selectedButton' field. Oh, and use the 'addressForm' definition for the 'address' field", and the same essentially for the "companyForm", except I defined "employees" to be a list, and told the converter which form to map its elements to, and which Collection implementation class to use. Hubert On 12/15/05, Rick R <[EMAIL PROTECTED]> wrote: > On 12/15/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > > > I've always used String values. > > > But that above is the problem - you can't always have String values returned > to you in nested objects from the domain-layer, backend, mid-tier, etc. When > you query the backend for value objects that have nested objects inside of > them, you can be sure those will have all String fields in them. (I guess > you could if you decided to rewrite the whole backend/midtier but that's > just not feasible or a good idea. Why if you already have existing code > working great wtih iBATIS, hibernate, or EJBs should you have to try and > re-write all you POJOs to have String properties included in the objects. > That would be a maintenance nightmare and not even really practical). > > So the question is how do you deal with the objects that come to you from > the backend that do not have all String properties and you need to update > them from the front end. I'm yet to see a clean solution for this, but I'm > still on my search:) > > -- > Rick > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
On 12/15/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > I've always used String values. But that above is the problem - you can't always have String values returned to you in nested objects from the domain-layer, backend, mid-tier, etc. When you query the backend for value objects that have nested objects inside of them, you can be sure those will have all String fields in them. (I guess you could if you decided to rewrite the whole backend/midtier but that's just not feasible or a good idea. Why if you already have existing code working great wtih iBATIS, hibernate, or EJBs should you have to try and re-write all you POJOs to have String properties included in the objects. That would be a maintenance nightmare and not even really practical). So the question is how do you deal with the objects that come to you from the backend that do not have all String properties and you need to update them from the front end. I'm yet to see a clean solution for this, but I'm still on my search:) -- Rick
Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
I've always used String values. Given that difference, I've seen this work: datePatternStrict MM/dd/ In this case, the form bean has a collection of "employees", and each employee has a "birth" field. Then something like beside the field will show which of the many employees has the invalid date. I have a sample app (minus the tag, though I've just tried that and it works) somewhere you can download it if you want to see it. That sample app actually goes one level deeper: Each "employee" has an address field which is also a nested form, with zip as an int field. Hubert On 12/15/05, Rick R <[EMAIL PROTECTED]> wrote: > Cutting right to the chase... > > I'm curious on how others handle the age-old struts problem of: "How do you > handle nested objects in an ActionForm that have non String properties that > might be editable by a user on a JSP?" > > To provide a watered down example... > > Imagine you go to the DB to get a List of Company objects. Each company > object in the List has nested in it a List of Division objects. Each > Division has a "date" field in it (say a startDate). You then need to > display a form that displays the companies and divisions and could allow the > user to edit the date (in a free-form text field) and submit the form. > > Things work fine if you didn't have to worry about form validation - in > which case, you could just have one property in your ActionForm: List > companies; //set/get and you are done (using the List of Company value > objects). You'd display the data on the form and submit and things are nice. > > However, nested sort of deep is that "date" field. If the user enters in the > date wrong we want to return to the page and display what they entered so > they can fix it. This can't be done if you just want to use the nested value > object(POJO) approach. > > This above scenario is Strut's biggest weakness. (It's compounded with > BeanUtils crazy notion of also not keeping wrapper clases like Integer truly > "null" when a String is null - instead it decides to make the Integer 0). > > Besides wondering how others deal with this annoying problem (other than > moving to another framework like JSF), I was wondering if maybe DyanForms > could be a solution? Can you nest them ? If so then that might be the > answer. Typically I haven't been too fond of DyanForms in the past (for a > couple of reasons), but if it could solve this issue it would definitely be > worth their use. > > -- > Rick Reumann > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The Age-Old problem of validation when you have Nested Items- opinions and Dyna question
Cutting right to the chase... I'm curious on how others handle the age-old struts problem of: "How do you handle nested objects in an ActionForm that have non String properties that might be editable by a user on a JSP?" To provide a watered down example... Imagine you go to the DB to get a List of Company objects. Each company object in the List has nested in it a List of Division objects. Each Division has a "date" field in it (say a startDate). You then need to display a form that displays the companies and divisions and could allow the user to edit the date (in a free-form text field) and submit the form. Things work fine if you didn't have to worry about form validation - in which case, you could just have one property in your ActionForm: List companies; //set/get and you are done (using the List of Company value objects). You'd display the data on the form and submit and things are nice. However, nested sort of deep is that "date" field. If the user enters in the date wrong we want to return to the page and display what they entered so they can fix it. This can't be done if you just want to use the nested value object(POJO) approach. This above scenario is Strut's biggest weakness. (It's compounded with BeanUtils crazy notion of also not keeping wrapper clases like Integer truly "null" when a String is null - instead it decides to make the Integer 0). Besides wondering how others deal with this annoying problem (other than moving to another framework like JSF), I was wondering if maybe DyanForms could be a solution? Can you nest them ? If so then that might be the answer. Typically I haven't been too fond of DyanForms in the past (for a couple of reasons), but if it could solve this issue it would definitely be worth their use. -- Rick Reumann
Re: Problem with Tiles and URLRewrite Filter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I should clarify one thing. The target JSP when made a tile, is included in the body of the tile definition tag that extends a template., If I make the target JSP the path, and do not have the definition inherit from a template, then the outbound rule works. bah! Thanks again, Randy On Dec 15, 2005, at 3:14 PM, Randy Shepherd wrote: Hey all, So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts target is a tile. As a result none of my links that match the rule are being rewritten. So, if put a vanilla JSP as the Struts target in which there is a href which should be rewritten, it works. But if I define that same JSP as a tile, then have the Struts target as that tile., the url is not rewritten. Anyone else run into this problem? Thanks, Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDof6OvmgyD0mfSYQRAjTVAJ9a97XJ8DXtfDJejGi651mYO4ME+gCdE3aK OotnZyCwHgQ/Wc3pjhn15DI= =I+Ub -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles and URLRewrite Filter
On Dec 15, 2005, at 5:14 PM, Randy Shepherd wrote: So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts target is a tile. As a result none of my links that match the rule are being rewritten. So, if put a vanilla JSP as the Struts target in which there is a href which should be rewritten, it works. But if I define that same JSP as a tile, then have the Struts target as that tile., the url is not rewritten. I'm not familiar with the Tuckey tool, but at first glance my hunch would be that it's related to Tiles' use of RequestDispatcher.include () as opposed to forward(), which is typically used by Struts. Are you running under Servlet 2.3 or 2.4? If under 2.3 and the Tuckey tool is implemented as a filter then it won't be executed when the RequestDispatcher is used if my understanding is correct. Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tiles and URLRewrite Filter
Hey all, So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts target is a tile. As a result none of my links that match the rule are being rewritten. So, if put a vanilla JSP as the Struts target in which there is a href which should be rewritten, it works. But if I define that same JSP as a tile, then have the Struts target as that tile., the url is not rewritten. Anyone else run into this problem? Thanks, Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with using Logic:equla tag.
On 12/15/05, David Evans <[EMAIL PROTECTED]> wrote: > I am not sure the specifics, but some versions of jsp require you to do > this: > <%@ page isELIgnored="false" %> > and some older version of the jstl don't take EL in the attributes. > > you could test to see if EL is being evaluted by doing this: > > > maybe this will help: > http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html > This may help as well: http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions -Rahul > dave > > On Fri, 2005-12-16 at 01:15 +0330, Legolas Woodland wrote: > > David Evans wrote: > > > As someone else mentioned, the problem could be the scope of your > > > variable. Another thing to check, are you sure that EL is being > > > evaluated in your page? > > > > > > > > How i can ensure about : does EL evaluate or not ? > > What i have done is : > > I add the JSTL taglib declaration to my jsp file and i do those coding > > that i mentioned. > > if the variable is not in my page scope , how it is shown when i use : > > > > <%=sysvar%> > > > > , can you tell me how i should check the variable scope ? > > if variable is not in the scope , why the Tag does not return exception . > > > > Thank you > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with using Logic:equla tag.
I am not sure the specifics, but some versions of jsp require you to do this: <%@ page isELIgnored="false" %> and some older version of the jstl don't take EL in the attributes. you could test to see if EL is being evaluted by doing this: maybe this will help: http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html dave On Fri, 2005-12-16 at 01:15 +0330, Legolas Woodland wrote: > David Evans wrote: > > As someone else mentioned, the problem could be the scope of your > > variable. Another thing to check, are you sure that EL is being > > evaluated in your page? > > > > > How i can ensure about : does EL evaluate or not ? > What i have done is : > I add the JSTL taglib declaration to my jsp file and i do those coding > that i mentioned. > if the variable is not in my page scope , how it is shown when i use : > > <%=sysvar%> > > , can you tell me how i should check the variable scope ? > if variable is not in the scope , why the Tag does not return exception . > > Thank you > > > dave > > > > On Fri, 2005-12-16 at 00:30 +0330, Legolas Woodland wrote: > > > >> [EMAIL PROTECTED] wrote: > >> > >>> Hi > >>> > >>> Don't use this. Use the jstl tags instead. In this case >>> test="${sysvar=='loop'}"> > >>> > >>> > >> Thank you very much. > >> I think my problem is wired , > >> I used > >> > >> Do this Tags when sysvar is equal to > >> loop > >> and in some next lines i did : > >> Do this Tags when sysvar is NOT equal to > >> loop > >> > >> wonderful thing is that both of these blocks runs and the result is > >> rendered in html page in the browser. > >> Do i used The syntax correctly ? > >> Am i missing something ? > >> > >> > >> > >>> If you read the tag doc's you will see that you are encouraged to switch > >>> to the jstl tags in place og the struts tags. In so doing, use the > >>> struts-el tag librarys > >>> > >>> Hermod > >>> > >>> -Original Message- > >>> From: Legolas Woodland [mailto:[EMAIL PROTECTED] > >>> Sent: Thursday, December 15, 2005 1:44 PM > >>> To: Struts Users Mailing List > >>> Subject: Problem with using Logic:equla tag. > >>> > >>> > >>> Hi > >>> I have a un-natural problem here > >>> > >>> Im trying to use : > >>> [code] > >>> > >>> > >>> > >>> > >>> .. > >>> > >>> > >>> > >>> [/code] > >>> > >>> it never enter the above block. > >>> even i tried and showed sysvar by using the following code line in the > >>> browser > >>> [code] > >>> <%=sysvar%> > >>> [/code] > >>> I can see that its value > >>> is loop bu there is no luck to enter the above block. > >>> No my question is : > >>> while the value that is inside sysvar is equal to what Im checking with > >>> Struts logic tag , why it never enter the block ? > >>> is it an encoding problem ? > >>> > >>> can some one please tell me how to write that conditional block in JSTL ? > >>> maybe JSTL Do it correctly. > >>> > >>> - > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > >>> * > >>> > >>> This email with attachments is solely for the use of the individual or > >>> entity to whom it is addressed. Please also be aware that DnB NOR cannot > >>> accept any payment orders or other legally binding correspondence with > >>> customers as a part of an email. > >>> > >>> This email message has been virus checked by the virus programs used > >>> in the DnB NOR Group. > >>> > >>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > >>> * > >>> > >>> > >>> > >> - > >> 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: Ideas needed for SSL problem
actually its fu-bar it means nicht genau Martin- - Original Message - From: "Danny Lee" <[EMAIL PROTECTED]> To: Sent: Thursday, December 15, 2005 3:57 PM Subject: Re: Ideas needed for SSL problem Well I really tried to solve this one, but finaly "redirect true" for all actions aviable from under the HTTPS part was the only solution... I mean, finally, HTTPS and HTTP is something like 2 different servers, I don't really think you can move around there without redirect... Btw, what do you mean with "foobared"? If anyone have a good solution, you're welcome (but pls not SSLEXT, too much troubles with that one...) Cheers, Danny Jim Reynolds schrieb: Hello, I have got a problem. I have created a struts module that fits into an existing java model 1 architecture webapp. - 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: Problem with using Logic:equla tag.
[EMAIL PROTECTED] wrote: Hi Don't use this. Use the jstl tags instead. In this case Thank you very much. I think my problem is wired , I used Do this Tags when sysvar is equal to loop and in some next lines i did : Do this Tags when sysvar is NOT equal to loop wonderful thing is that both of these blocks runs and the result is rendered in html page in the browser. And i know that sysVars in some condition is equla to loop , i also add some tags to view the sysvar content by using <%=sysvar%> and it showed loop Do i used The syntax correctly ? Am i missing something ? If you read the tag doc's you will see that you are encouraged to switch to the jstl tags in place og the struts tags. In so doing, use the struts-el tag librarys Hermod -Original Message- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 1:44 PM To: Struts Users Mailing List Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with using Logic:equla tag.
David Evans wrote: As someone else mentioned, the problem could be the scope of your variable. Another thing to check, are you sure that EL is being evaluated in your page? How i can ensure about : does EL evaluate or not ? What i have done is : I add the JSTL taglib declaration to my jsp file and i do those coding that i mentioned. if the variable is not in my page scope , how it is shown when i use : <%=sysvar%> , can you tell me how i should check the variable scope ? if variable is not in the scope , why the Tag does not return exception . Thank you dave On Fri, 2005-12-16 at 00:30 +0330, Legolas Woodland wrote: [EMAIL PROTECTED] wrote: Hi Don't use this. Use the jstl tags instead. In this case Thank you very much. I think my problem is wired , I used Do this Tags when sysvar is equal to loop and in some next lines i did : Do this Tags when sysvar is NOT equal to loop wonderful thing is that both of these blocks runs and the result is rendered in html page in the browser. Do i used The syntax correctly ? Am i missing something ? If you read the tag doc's you will see that you are encouraged to switch to the jstl tags in place og the struts tags. In so doing, use the struts-el tag librarys Hermod -Original Message- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 1:44 PM To: Struts Users Mailing List Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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: Problem with using Logic:equla tag.
Martin Gainty wrote: Legolas- what is the scope for variable sysvar? variable is in scope , i think it is in page scope . this variable defined in another jsp file inside some scriptlet. I think , there is no problem about variable scope because i can view the content of variable by using <%=sysvar%> Thank you for answering my question. Anyone else? Martin- - Original Message - From: "Legolas Woodland" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, December 15, 2005 7:43 AM Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - 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: Problem with using Logic:equla tag.
As someone else mentioned, the problem could be the scope of your variable. Another thing to check, are you sure that EL is being evaluated in your page? dave On Fri, 2005-12-16 at 00:30 +0330, Legolas Woodland wrote: > [EMAIL PROTECTED] wrote: > > Hi > > > > Don't use this. Use the jstl tags instead. In this case > test="${sysvar=='loop'}"> > > > Thank you very much. > I think my problem is wired , > I used > > Do this Tags when sysvar is equal to > loop > and in some next lines i did : > Do this Tags when sysvar is NOT equal to > loop > > wonderful thing is that both of these blocks runs and the result is rendered > in html page in the browser. > Do i used The syntax correctly ? > Am i missing something ? > > > > If you read the tag doc's you will see that you are encouraged to switch to > > the jstl tags in place og the struts tags. In so doing, use the struts-el > > tag librarys > > > > Hermod > > > > -Original Message- > > From: Legolas Woodland [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 15, 2005 1:44 PM > > To: Struts Users Mailing List > > Subject: Problem with using Logic:equla tag. > > > > > > Hi > > I have a un-natural problem here > > > > Im trying to use : > > [code] > > > > > > > > > > .. > > > > > > > > [/code] > > > > it never enter the above block. > > even i tried and showed sysvar by using the following code line in the > > browser > > [code] > > <%=sysvar%> > > [/code] > > I can see that its value > > is loop bu there is no luck to enter the above block. > > No my question is : > > while the value that is inside sysvar is equal to what Im checking with > > Struts logic tag , why it never enter the block ? > > is it an encoding problem ? > > > > can some one please tell me how to write that conditional block in JSTL ? > > maybe JSTL Do it correctly. > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > > This email with attachments is solely for the use of the individual or > > entity to whom it is addressed. Please also be aware that DnB NOR cannot > > accept any payment orders or other legally binding correspondence with > > customers as a part of an email. > > > > This email message has been virus checked by the virus programs used > > in the DnB NOR Group. > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > > > > > - > 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]
Subject: [ot] XML Formatter that lets path be first
Is there a free XML Formatter that lets path be first in the struts config file be first? The one I have puts the attributes in alphabetical order and I hate that. Shawn 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.
[ot] XML Formatter that lets path be first
Is there a free XML Formatter that lets path be first in the struts config file be first? The one I have puts the attributes in alphabetical order and I hate that. Shawn 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]
Re: Problem with using Logic:equla tag.
[EMAIL PROTECTED] wrote: Hi Don't use this. Use the jstl tags instead. In this case Thank you very much. I think my problem is wired , I used Do this Tags when sysvar is equal to loop and in some next lines i did : Do this Tags when sysvar is NOT equal to loop wonderful thing is that both of these blocks runs and the result is rendered in html page in the browser. Do i used The syntax correctly ? Am i missing something ? If you read the tag doc's you will see that you are encouraged to switch to the jstl tags in place og the struts tags. In so doing, use the struts-el tag librarys Hermod -Original Message- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 1:44 PM To: Struts Users Mailing List Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I attach error messages with the field
Sony Thomas wrote: Is there is any way to attach error messages with the specific field. I mean I have an error messsage "Username required" How can I print that message just down the label of username. Use ... to access messages specific to the field 'user'. For example: User Name: L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ideas needed for SSL problem
Well I really tried to solve this one, but finaly "redirect true" for all actions aviable from under the HTTPS part was the only solution... I mean, finally, HTTPS and HTTP is something like 2 different servers, I don't really think you can move around there without redirect... Btw, what do you mean with "foobared"? If anyone have a good solution, you're welcome (but pls not SSLEXT, too much troubles with that one...) Cheers, Danny Jim Reynolds schrieb: Hello, I have got a problem. I have created a struts module that fits into an existing java model 1 architecture webapp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSLEXT extension and Struts 1.2.7
Randy Shepherd wrote: The latest version of SSLEXT seems to be for Struts 1.2.2, is there a newer version, or have people had success implementing the 1.2.2 version of SSLEXT with Struts 1.2.7? I haven't used sslext, but Struts 1.2.7 should be similar enough to 1.2.2 that you shouldn't have any problems. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletException: duplicate class definition ?!
Jean-Charles Giardina wrote: Hi every body, I get an javax.servlet.ServletException: duplicate class definition: com/amarda/framework/taglib/RowTag on webapp start up only. Upon refreshing the page this error goes away. This exception occurs when using more than one frame (including internal frame). Tks folks. Check for multiple copies of your RowTag class in the classpath (or multiple copies of a JARc containing that class). You probably have the class in a shared library as well as your webapp's libraries / classes. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upload all files of a dir at one go
Dave Newton wrote: Shivani Sawhney wrote: And tell me something, probably I am just thinking aloud and am even wrong, but if I can do it through code then can't we just have a custom tag that zips the chosen directory at client side, uploads the zipped file on to the server and provides the programmer with appropriate methods to use the entries in the zipped file more conveniently. Custom tags are run _on_the_server_ not on the client. That said, if you render JavaScript it will be run on the client side, but I don't know if there's any way to access the client's filesystem. Seems like that would be scary. You could probably do it with an ActiveX control, because apparently you can wreak all sorts of havoc that way. Yep, you can't access the filesystem from Javascript, for security reasons. It's probably possible using an ActiveX control. You could also do it with a signed Java applet, buy you don't want to get into the pain of dealing with that unless you have a really strong need to do this ;-) L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: chinese characters and bean tags
[EMAIL PROTECTED] wrote: I have problem to show chinese characters stored in MySQL database with use of struts bean tag. Data is read out using Hibernate. When I call myHibernateObject.getMyProperty() method - everything works fine. But using does show text in this notation: . Same problem occurres when I use this bean in struts form with Encoding of database is set up properly to gb2312. JSP page uses UTF-8 encoding. How can I set character encoding for struts bean tag ? Or where is the problem ? How are you verifying that what you get back from the database is correct? If anywhere in the data retrieval pipeline is using the wrong encoding, you'll get corrupted data. Try hard-coding an output value to see if you are able to display that correctly. If that fails, it must be something in the way you've written your JSP; make sure that you have the UFT-8 charsett declared in the content type of the response -- e.g. with <%@ page contentType="text/html; charset=UTF-8"%> and/or HTML META-tags. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I have verified it with <%=myObject.getProperty()%> in the JSP. In this case I got chinese string with right encoding. But using produces string in this wrong encoding format: . Charset of the JSP page is set to UTF-8. In that case I'm not sure what's going on... Can you post a short JSP fragment that demonstrates the problem? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specify a file name when using DownloadAction
On 12/15/05, Vu, Thai <[EMAIL PROTECTED]> wrote: > Does anybody know how to specify a file name when we use DownloadAction > to send a file to users? This page might help: http://wiki.apache.org/struts/StrutsFileDownload -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Specify a file name when using DownloadAction
Does anybody know how to specify a file name when we use DownloadAction to send a file to users? Sincerely, Thai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSLEXT extension and Struts 1.2.7
The latest version of SSLEXT seems to be for Struts 1.2.2, is there a newer version, or have people had success implementing the 1.2.2 version of SSLEXT with Struts 1.2.7? Thanks, Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF
This reads like Shale is not only a proposal but part of Struts. Is that true? If that is true, can someone explain how that happened? What the process was? On 12/14/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > > 14 Dec 2005 - To give JavaServer Faces developers a head start on building > scalable web applications for the enterprise, Apache Struts now offers the > Shale Framework. Like the original "Struts Action Framework", Shale > provides > developers with a front controller, and several other components, to > provide > the "invisible underpinnings that hold an application together". > > "When JavaServer Faces arrived," explains the Struts website, "our > development community chose to 'make new friends but keep the old'. Some > of > us want (or need) to stick with the original request-based framework. > Others > are ready to switch to an component-based framework that builds on > JavaServer Faces. We offer both frameworks because we have volunteers to > create and maintain both frameworks." > > Shale is based on the recently standardized JavaServer Faces APIs, and > focuses on adding value, rather than redundantly implementing features > that > JSF already provides. Shale will run on any compliant JSF implementation, > including the one being developed by the Apache MyFaces project. It also > includes many features that Struts users appreciate, such as supporting > client side validation and the Tiles framework. > > Struts Shale was discussed by Craig McClanahan in a talk at ApacheCon on > Tuesday, December 13, 2005, entitled "Shale: The Next Struts??". Slides > from > the talk are available online [ > http://people.apache.org/~craigmcc/apachecon-2005-shale.pdf]. > > For more about Shale, visit the Struts Shale website [ > http://struts.apache.org/struts-shale/]. > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~
Re: Looking for a wizard flow
You may try this one for a change (it is part of my project): http://struts.sourceforge.net/strutsdialogs/wizardaction.html Michael. On 12/15/05, hicham abassi <[EMAIL PROTECTED]> wrote: > Hello, > > I need to create a wizard with struts. > I find this project : http://struts.apache.org/struts-flow/ > Have you docs or other toolkits to do this ? > > Thanks. > > -- > Struts 1.1 > JBoss 3.x > Eclipse 3.1 > > - > 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: Upload all files of a dir at one go
Shivani Sawhney wrote: And tell me something, probably I am just thinking aloud and am even wrong, but if I can do it through code then can't we just have a custom tag that zips the chosen directory at client side, uploads the zipped file on to the server and provides the programmer with appropriate methods to use the entries in the zipped file more conveniently. Custom tags are run _on_the_server_ not on the client. That said, if you render JavaScript it will be run on the client side, but I don't know if there's any way to access the client's filesystem. Seems like that would be scary. You could probably do it with an ActiveX control, because apparently you can wreak all sorts of havoc that way. Really sorry if you find my reply rude at all. Not at all. I actually respect you for all the knowledge you have. That's only because you don't know how little I know ;) I wasn't directing my rant at you, you just happened to get caught in the crossfire ;) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] utility to move data from one database to other
Hi Is there any open source utility which will help in moving data from one database to other, Does this utility works with most available and commonly used databases. Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ideas needed for SSL problem
Hello, I have got a problem. I have created a struts module that fits into an existing java model 1 architecture webapp. Anyway, when moving the code to test, I realized that the site is all HTTPS. But the webservers are not doing the 443. There are a pair of load balancers handling the 443 traffic, and auth, and the webservers are running on port 80. The problem I have is that all my action forwards (which use relative paths) because they are using RequestDispatcher need to be switched to full URLs which means something like this: https://xxxkxkxk/ksksk/foo.jsp But that will not work for forwards, and I do NOT want to use redirect="true" because then all my request data from the actions is foobared. Does anyone have any ideas how I can get around this issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upload all files of a dir at one go
Hi Dave, Thanks for the reply. When I said "upload all the files of a directory at one go", I didn't really mean that upload the directory as is. May be a smarter reply would be that yes, we actually can upload all files of a directory at one go, given that we zip the directory and upload the zipped file on the server and then unzip it through code and extract the files and use them. Thanks to you and the words you chose, it somehow just sparked me to just get the code ready just immediately. And tell me something, probably I am just thinking aloud and am even wrong, but if I can do it through code then can't we just have a custom tag that zips the chosen directory at client side, uploads the zipped file on to the server and provides the programmer with appropriate methods to use the entries in the zipped file more conveniently. Really sorry if you find my reply rude at all. I actually respect you for all the knowledge you have. But.Imagination is stronger than knowledge. Sorry, if it was melodramatic. :-) Regards, Shivani This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 15 December, 2005 6:02 PM To: Struts Users Mailing List Subject: Re: Upload all files of a dir at one go Shivani Sawhney wrote: >I want to upload all the files of a directory at one go. Is there a tag >available that I can use. The tag would only let me select a >file not a directory. > > Short answer: no. That's just not how browsers work. There seems to be a general lack of knowledge about how web applications, browsers, etc. work. When did this happen? I don't recall so many people having so little knowledge until recently, and I'm not sure how or why it happened. Things like the differences between client-side and server-side, what custom tags are actually doing, etc. Does anybody have any insights? It's to the point where I want to write a couple pages on the complete basics of all this stuff. Just kinda freaks me out is all. Dave - 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]
org.apache.struts.mock classes
I've downloaded Struts 1.2.8 and am interested in using the classes in org.apache.struts.mock package to unit test my actions, forms, etc... I see the source files but cannot seem to find the binaries. Am I missing something? Do I have to build and integrate them into the struts.jar myself or create a separate strutmock.jar? Before I go and do this, is there an easier way? Has someone already done this? /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts DTD - basic question
On 12/15/05, Rivka Shisman <[EMAIL PROTECTED]> wrote: > When I use in my struts-config.xml the line: PUBLIC "-//Apache Software Foundation//DTD Struts Configuration1.2//EN" > "http://struts.apache.org/dtds/struts-config_1_2.dtd";> - it works while > running the application but not in my IDE when the apache site is down. You should be able to map the public identifier and/or the URL to the local copy, without changing the doctype declaration. (It's the public identifier, starting with "-//Apache..." that the framework is using to register its own local copy, that's why changing it breaks your app.) So try telling Eclipse that "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" is mapped to /path/to/struts-config_1_2.dtd . Here's the best reference I've found on what all the parts of a doctype declaration mean: http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm And one on XML Catalogs (just ignore the DocBook-specific parts): http://www.sagehill.net/docbookxsl/Catalogs.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with using Logic:equla tag.
Legolas- what is the scope for variable sysvar? Anyone else? Martin- - Original Message - From: "Legolas Woodland" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, December 15, 2005 7:43 AM Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - 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: Problem with using Logic:equla tag.
Hi Don't use this. Use the jstl tags instead. In this case If you read the tag doc's you will see that you are encouraged to switch to the jstl tags in place og the struts tags. In so doing, use the struts-el tag librarys Hermod -Original Message- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 1:44 PM To: Struts Users Mailing List Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Problem with using Logic:equla tag.
Hi I have a un-natural problem here Im trying to use : [code] .. [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] <%=sysvar%> [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upload all files of a dir at one go
Shivani Sawhney wrote: I want to upload all the files of a directory at one go. Is there a tag available that I can use. The tag would only let me select a file not a directory. Short answer: no. That's just not how browsers work. There seems to be a general lack of knowledge about how web applications, browsers, etc. work. When did this happen? I don't recall so many people having so little knowledge until recently, and I'm not sure how or why it happened. Things like the differences between client-side and server-side, what custom tags are actually doing, etc. Does anybody have any insights? It's to the point where I want to write a couple pages on the complete basics of all this stuff. Just kinda freaks me out is all. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF
The presentation looks similar to the one made during JavaOne 2005. Audio is available on JavaOne website. On 12/15/05, Chris McCormack <[EMAIL PROTECTED]> wrote: > This might be a dumb question but for those of us not able to make > ApacheCon, are there any videos of the presentations online anywhere? > > Chris > > -Original Message- > From: Martin Cooper [mailto:[EMAIL PROTECTED] > Sent: 14 December 2005 20:22 > To: announcements@struts.apache.org; user@struts.apache.org; > dev@struts.apache.org > Subject: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF > > 14 Dec 2005 - To give JavaServer Faces developers a head start on building > scalable web applications for the enterprise, Apache Struts now offers the > Shale Framework. Like the original "Struts Action Framework", Shale provides > developers with a front controller, and several other components, to provide > the "invisible underpinnings that hold an application together". > > "When JavaServer Faces arrived," explains the Struts website, "our > development community chose to 'make new friends but keep the old'. Some of > us want (or need) to stick with the original request-based framework. Others > are ready to switch to an component-based framework that builds on > JavaServer Faces. We offer both frameworks because we have volunteers to > create and maintain both frameworks." > > Shale is based on the recently standardized JavaServer Faces APIs, and > focuses on adding value, rather than redundantly implementing features that > JSF already provides. Shale will run on any compliant JSF implementation, > including the one being developed by the Apache MyFaces project. It also > includes many features that Struts users appreciate, such as supporting > client side validation and the Tiles framework. > > Struts Shale was discussed by Craig McClanahan in a talk at ApacheCon on > Tuesday, December 13, 2005, entitled "Shale: The Next Struts??". Slides from > the talk are available online [ > http://people.apache.org/~craigmcc/apachecon-2005-shale.pdf]. > > For more about Shale, visit the Struts Shale website [ > http://struts.apache.org/struts-shale/]. > > This email originated externally and has been scanned by MessageLabs > > __ > This email has been scanned for all viruses by the MessageLabs SkyScan > service. For more information on a proactive anti-virus service working > around the clock, around the globe, visit http://www.messagelabs.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validation javascripts
>> I'm not sure it matters much which order they're applied in, though, since all have to pass >> anyway. Order does matter... That will decide which *one* of the error messages to display to the user when one of these tests fail. On 12/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Deepa Khetan wrote: > > Is there a way to specify the order of validaions to occur using > > validation.xml?? I have noticed that "mask" take precedence over > "minlength" > > I'm not sure; maybe the order they're listed will affect the order > they're applied? I'm not sure it matters much which order they're > applied in, though, since all have to pass anyway. > > L. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Upload all files of a dir at one go
Hi, I want to upload all the files of a directory at one go. Is there a tag available that I can use. The tag would only let me select a file not a directory. Any help will be much appreciated. Regards, Shivani This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation
Need help about storeException method of ExceptionHandler
Hi, I am trying to use ExceptionHandler to handle the exception and to throw the customized error message using tag but I am not able to display the message. I want help about what actually storeException method do. I tried google search but I didnt get clear Idea about that. Code of ExceptionHandler // create action forward ActionForward forward = new ActionForward(config.getPath()); // Store the ActionError // storeException(request, "your application is dead", new ActionError("Exception", "Exception"), forward, "string 4"); Exception santaException = (Exception) exception; ActionError error = new ActionError (santaException.getMessage ()); // ActionForward forward = mapping.getInputForward (); String property = ActionMessages.GLOBAL_MESSAGE; String scope = config.getScope (); storeException (request, property, error, forward, scope); System.out.println("i am in exception handler"); return forward; //return forward; And I want to display error on jsp page using tag Code of Error.jsp <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> Simple jsp page Place your content here An Error Has Occured Please notify your system administrator with the following message: But I got following output Place your content hereAn Error Has Occured Please notify your system administrator with the following message: Please help me Vishakha
ServletException: duplicate class definition ?!
Hi every body, I get an javax.servlet.ServletException: duplicate class definition: com/amarda/framework/taglib/RowTag on webapp start up only. Upon refreshing the page this error goes away. This exception occurs when using more than one frame (including internal frame). Tks folks.
RE: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF
This might be a dumb question but for those of us not able to make ApacheCon, are there any videos of the presentations online anywhere? Chris -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: 14 December 2005 20:22 To: announcements@struts.apache.org; user@struts.apache.org; dev@struts.apache.org Subject: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF 14 Dec 2005 - To give JavaServer Faces developers a head start on building scalable web applications for the enterprise, Apache Struts now offers the Shale Framework. Like the original "Struts Action Framework", Shale provides developers with a front controller, and several other components, to provide the "invisible underpinnings that hold an application together". "When JavaServer Faces arrived," explains the Struts website, "our development community chose to 'make new friends but keep the old'. Some of us want (or need) to stick with the original request-based framework. Others are ready to switch to an component-based framework that builds on JavaServer Faces. We offer both frameworks because we have volunteers to create and maintain both frameworks." Shale is based on the recently standardized JavaServer Faces APIs, and focuses on adding value, rather than redundantly implementing features that JSF already provides. Shale will run on any compliant JSF implementation, including the one being developed by the Apache MyFaces project. It also includes many features that Struts users appreciate, such as supporting client side validation and the Tiles framework. Struts Shale was discussed by Craig McClanahan in a talk at ApacheCon on Tuesday, December 13, 2005, entitled "Shale: The Next Struts??". Slides from the talk are available online [ http://people.apache.org/~craigmcc/apachecon-2005-shale.pdf]. For more about Shale, visit the Struts Shale website [ http://struts.apache.org/struts-shale/]. This email originated externally and has been scanned by MessageLabs __ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I attach error messages with the field
HI, Is there is any way to attach error messages with the specific field. I mean I have an error messsage "Username required" How can I print that message just down the label of username. thanks sony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Looking for a wizard flow
Hello, I need to create a wizard with struts. I find this project : http://struts.apache.org/struts-flow/ Have you docs or other toolkits to do this ? Thanks. -- Struts 1.1 JBoss 3.x Eclipse 3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]