Re: Input names in Multi Language in a single form like name in English & Japan
nagesh.kumar wrote: Hi All, I need to take input from same form ->like user name in English & Japan , How can I support this by using Struts 1.2x. I don't understand the question... Do you mean you need to have two input fields, one for the English name and one for the Japanese name? Or one input that should be able to accept either English or Japanese? Or are you talking about using one form in two (or more) language contexts? You'll need to describe your requirements in more detail for anyone to offer meaningful advice. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Struts 2.0.x tag question. "/>
Kenton wrote: I have a .jspx file in my Struts 2.0.x app. This doesn't work: I get this error (both editor and at runtime): The value of attribute "src" associated with an element type "null" must not contain the '<' character. (The above should regular non-escaped HTML, in case the formatting of this message isn't correct) This works, but seems like a very ugly workaround: <img src="images/"/> (The above should show "&" entity notation in case the formatting of this message isn't correct) This: Gets this error: java.io.IOException: Stream closed This: Gets this error: PWC6317: The attributes for a standard action or an uninterpreted tag cannot be deferred expressions What is the best way to do this? If it's a .jspx file, it needs to be well-formed XML. You might find it easier to use vanilla .jsp files if you're not comfortable with authoring XML. If you need to stick with .jspx, though, one of these might work: L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lazy-loading s:tree
Grr. This is a mailing list, not an IRC channel. If you don't get a response to a query it's probably because either (a) nobody who can help has checked the mailing list yet or (b) you haven't provided enough information. Reposting every few hours with "I haven't had a reply yet" isn't going to help. L. Session A Mwamufiya wrote: I'm sorry to be clogging your mailboxes with this, but I still have not received any responses. Probably those who worked on/with s:tree are not yet online, but if you are, please respond with an example of how to perform lazy loading on an s:tree treeViewer, or if you know of any technology out there that allows for lazy loading of a tree. There's Dojo that seemed like a good alternative, but everything there is in javascript, and there are no callbacks to java class methods that would load the data from a database. Any guidance would be greatly appreciated. Thanks, Session Please, can someone refer me to the struts developers who've worked on s:tree. I've been trying to get some answers all day about this matter and have not received a single reply. TreeViewer people, and Dojo fans, please chime in your comments. I wanted to switch from struts with s:tree to Dojo, but I can't find any online examples where Dojo obtains the tree data from a java class. Do you have any examples I could look at? Thanks, Session Hi, Has anyone been able to find a way to lazy-load the s:tree tag. I'm having some performance issues with a really big tree. Please send me an example. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Input names in Multi Language in a single form like name in English & Japan
Hi All, I need to take input from same form ->like user name in English & Japan , How can I support this by using Struts 1.2x. Thanks & Regards Nagesh Kumar Reddy. + CONFIDENTIALITY NOTICE & DISCLAIMER The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender by replying to this message. The recipient should check this email and any attachments for the presence of viruses. InterGlobe accepts no liability for any damage caused by any virus transmitted by this email. + - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using JSTL Expression Language with Struts 2 tags
That just sounds ridiculous. Because of the possibility of end users injecting malicious OGNL we won't be able to use JSP expression language. Pardon me for being blunt but isn't the obvious solution to fix the underlying vulnerability in OGNL rather than crippling JSP and Freemarker use in struts2. This basically forces us to use OGNL, which I think is plain wrong. Z. > You can up until Struts 2.0.9. There is a security flaw related to this though > and you will no longer be able to do it in Struts 2.0.10. > > See the following JIRA ticket for more info: > > https://issues.apache.org/struts/browse/WW-2107 > > James > > > On Wed Sep 5 11:31 , Néstor Boscán <[EMAIL PROTECTED]> sent: > >> Hi >> >> >> >> Is there a way to use the JSTL Expression Language with Struts 2 tags >> >> instead of OGNL? >> >> >> >> Regards, >> >> >> >> Néstor Boscán >> > > > > - > 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: Date validation (month and day)
My problem now is how to validate the entered date so that it will check if the EndDate is higher than the StartDate.. -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514017 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date validation (month and day)
I already solved it, in my form I added another field (maxDay1 and maxDay2) that will return OK and NG, i used this field in my validation.xml using validwhen, when the field is equal to OK, then it is valid, if it is NG, it is invalid.. This is my code, it also checks number of days in february when it is leap year or not. // validate number of days for month (ViewStartDate) public String getMaxDay1(){ Calendar cal = new GregorianCalendar(); cal.set(Calendar.MONTH, Integer.parseInt(cal1_Month)-1); cal.set(Calendar.YEAR, Integer.parseInt(cal1_Year)); maxDay1 = "OK"; //初期値 int maxDayInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); if (Integer.parseInt(cal1_Day) > maxDayInMonth) maxDay1 = "NG"; return maxDay1; } public void setMaxDay1(String maxDay1){ this.maxDay1 = maxDay1; } // validate number of days for month (ViewEndDate) public String getMaxDay2(){ Calendar cal = new GregorianCalendar(); cal.set(Calendar.MONTH, Integer.parseInt(cal2_Month)-1); cal.set(Calendar.YEAR, Integer.parseInt(cal2_Year)); maxDay2 = "OK"; //初期値 int maxDayInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); if (Integer.parseInt(cal2_Day) > maxDayInMonth) maxDay2 = "NG"; return maxDay2; } public void setMaxDay2(String maxDay2){ this.maxDay2 = maxDay2; } -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514004 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??
Tim, I've always wanted to post information about upgrading from 1.1. to 1.3. If you have time, please email us the instructions you went through. It sounds like it's good to share with other people. Paul On 9/5/07, Mark McLaren <[EMAIL PROTECTED]> wrote: > > I recently upgraded an application Struts 1.2 to 1.3. The actual > changes needed to upgrade are quite easy to implement if you have a > decent search and replace tool (these changes being detailed on the > previously mentioned wiki page). > > In addition, if your project makes use of numerous Jar libraries (like > Struts, Spring, Hibernate etc.) I would recommend using Maven for > assembling the necessary Jar files for your upgraded application. > > If you've not used Maven before it is worth investing a little time to > learn it (it doesn't take long). Essentially you create a Maven XML > project file (POM) detailing the Struts version and any other major > Jar libraries that you are using (you can cut and paste some of the > configuration details from http://www.mvnrepository.com/). > > Maven can then be used to download the appropriate Struts Jar file, > the libraries that Struts depends on, any other libraries and the > libraries on which they depend. It will also resolve library version > conflicts that might arise. > > Even if you are not using Maven as your build tool, you can still make > use of it inside Ant builds in order to do dependency management > (which incidentally is only one aspect of what Maven can offer). > > http://maven.apache.org/ant-tasks.html > > For applications of this nature Maven will make future Jar upgrades > easier. > > HTH > > Mark > > On 9/5/07, Mark Shifman <[EMAIL PROTECTED]> wrote: > > Not particularly. There is a nice discussion on the struts wiki page: > > http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 > > > > Ed snooper wrote: > > > Hello, > > > > > > In general is it hard to migrate an existing application from struts > 1.2.x to 1.3.x? > > > > > > Ed > > > > > > -- > > Mark Shifman MD. Ph.D. > > Yale Center for Medical Informatics > > Phone (203)737-5219 > > [EMAIL PROTECTED] > > > -- > "Paradoxically, the more time saving abstractions you are using the > more you actually have to know." - Simon Willison > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: More 1.3.8 / xhtml problems
For a list of issues resolved in Struts 1.3.9: https://issues.apache.org/struts/secure/ReleaseNote.jspa?version=21800&styleName=Html&projectId=10121&Create=Create For a list of issues resolved in Struts 1.3.10-SNAPSHOT: https://issues.apache.org/struts/secure/ReleaseNote.jspa?version=21840&styleName=Html&projectId=10121&Create=Create Paul On 9/5/07, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > > More serious is that when I use EL in the > > tag it blows up! The stack trace for that begins with: > > > > java.lang.NullPointerException > > This problem disappears in Struts 1.3.9. > > -- > Tim Slattery > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: XHTML compliance
And also: https://issues.apache.org/struts/browse/STR-2598
Re: lazy-loading s:tree
I'm sorry to be clogging your mailboxes with this, but I still have not received any responses. Probably those who worked on/with s:tree are not yet online, but if you are, please respond with an example of how to perform lazy loading on an s:tree treeViewer, or if you know of any technology out there that allows for lazy loading of a tree. There's Dojo that seemed like a good alternative, but everything there is in javascript, and there are no callbacks to java class methods that would load the data from a database. Any guidance would be greatly appreciated. Thanks, Session > Please, can someone refer me to the struts developers who've worked on > s:tree. I've been trying to get some answers all day about this matter > and have not received a single reply. > >> TreeViewer people, and Dojo fans, please chime in your comments. I >> wanted to switch from struts with s:tree to Dojo, but I can't find any >> online examples where Dojo obtains the tree data from a java class. Do >> you have any examples I could look at? >> >> Thanks, Session >> >> >>> Hi, >>> >>> Has anyone been able to find a way to lazy-load the s:tree tag. I'm >>> having some performance issues with a really big tree. Please send >>> me an example. >>> >>> Thanks, Session >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] For >>> additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] For >> additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > - To > unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XHTML compliance
Tim, Please see https://issues.apache.org/struts/browse/STR-1665 Is this what you're looking for? On 9/5/07, James Holmes <[EMAIL PROTECTED]> wrote: > > https://issues.apache.org/struts/browse/STR > > > On Wed Sep 5 14:05 , 'Slattery, Tim - BLS' <[EMAIL PROTECTED]> sent: > > >> Please check the ticket list for Struts 1.4. If you find this > >> very issue there (I think it is) and you need it in 1.3, I > >> can back port it for 1.3.10 > > > >I don't know how to do that. I see no link on the Struts page to a > >ticket list or to Struts 1.4. > > > >-- > >Tim Slattery > >[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: Date validation (month and day)
You may be able to do it with a very complex validwhen validation. However, in these instances, it's best to write your own validator. Paul On 9/5/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Hiroyuki Suzuki wrote: > > ello guys! > > > > How would I check my date input so that it will validate > > the maximum days per month. > > For example: > > Jan, Mar, May, Aug, Oct, Dec (31 days) > > April, June,Sept, Nov (30 days)... > > > > Please share me your ideas.. > > > > Addtional: Separate field name for month and day. > > There's no built-in validation rule that will do that in either Struts1 > or Struts2. It would probably be easiest to handle in your validate() > method, but if you want to do it declaratively (in XML) you'll have to > use conditional validation and some futzing around. > > Which version of Struts are you using? > > L. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [S2] Where to put hibernate's SessionFactory?
Thank you. I've implemented the non IoC version of it, which I found to be almost the same as in http://struts.apache.org/2.0.9/docs/non-ioc-version-of-opensessioninviewinterceptor.html http://struts.apache.org/2.0.9/docs/non-ioc-version-of-opensessioninviewinterceptor.html Antonio Petrelli-3 wrote: > > 2007/8/31, wild_oscar <[EMAIL PROTECTED]>: >> >> I am making my first web app and I found out today I was doing something >> wrong: >> >> I was building a SessionFactory on my HibernateEntityManager: >> >> _sessionFactory = configuration.buildSessionFactory(); >> >> This EntityManager is called on the action so, basically, I was creating >> a >> SessionFactory on each request. >> >> Searching the web, I panicked! Most people talk about using Spring in >> addition to Struts2 + Hibernate. >> >> Having just started on Struts2, and not having even completed my first >> web >> app, I feel I will lose another week just to understand the basics of >> Spring >> to understand what is needed. >> >> My question is: what is the most appropriate way of binding the >> SessionFactory to the web application? Can someone pinpoint the basics >> and/or a tutorial where I can learn this? And how/when is the >> sessionfactory >> closed in the web application? > > The "Open session in view" pattern can help you: > http://www.hibernate.org/43.html > If you are using Spring, there is a ready-made filter: > http://www.springframework.org/docs/api/org/springframework/orm/hibernate/support/OpenSessionInViewFilter.html > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Where-to-put-hibernate%27s-SessionFactory--tf4361648.html#a12512623 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to Repopulate the select control once the validation failed
vamsi wrote: Hi, I am using struts validation frame work. if the validation fails I am returning to the same jsp page. Here in this page there is some date is which was populated when the jsp page initially loaded. when saving the data I am performing the validation if it fails I am doing ing something like this \XXX.jsp \XXX.jsp if I redirect the input action the data is getting populated but the error messages are not getting displayed Why it is heppening like is there anything to conifure im my application Validation error messages are stored in request scope, so they're lost if you redirect. If you really need a redirect in this situation, the Message Store interceptor [1] may help, though I've reports of problems using it in this situation. L. [1] http://struts.apache.org/2.x/docs/message-store-interceptor.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date validation (month and day)
Hiroyuki Suzuki wrote: ello guys! How would I check my date input so that it will validate the maximum days per month. For example: Jan, Mar, May, Aug, Oct, Dec (31 days) April, June,Sept, Nov (30 days)... Please share me your ideas.. Addtional: Separate field name for month and day. There's no built-in validation rule that will do that in either Struts1 or Struts2. It would probably be easiest to handle in your validate() method, but if you want to do it declaratively (in XML) you'll have to use conditional validation and some futzing around. Which version of Struts are you using? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkboxlist - bind to List
Moacir Cardoso wrote: Hello!, I´m trying to bind some checkbox values to one parameterized List. Lets say List. Is it possible? in Jsp: list="#{'1':'Car1','2':'Car2','3':'Car3'}"> in Action: private List myList; ... gets and sets. If you already have a list in your action, you don't need/want to hardcode one in the tag. Try something like: See the tag docs for more options: http://struts.apache.org/2.x/docs/checkboxlist.html L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Formating dates and numbers
All of those should have worked. Are you sure your properties files are getting deployed? They should exist under WEB-INF/classes/... next to the .class files, not just in your source tree. Try using to confirm that the property is actually visible; once that works, the formulation should work too. L. Marcos Mendonça wrote: Well, yes. I tried putting format.baseValue in a package.properties file in the same folder as my action class, a MyAction.properties in the same folder, and a put the format.baseValue in the ApplicationResources.properties as well, and none of these worked. I get a {0} where the formatted value should appear. Thanks again On 9/4/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: Hi, Do you have a .properties file as same name as your action class and in the same package? Thanks, Nuwan Marcos Mendonça wrote: I tried that but all I get is a {0} where a formatted value should appear. Here's my jsp code: My ApplicationResources.properties file: format.baseValue = {0,number,R$##0.00} baseValue is of type BigDecimal. Is there anything wrong? Thanks in advance. On 9/4/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: http://www.roseindia.net/struts/struts2/struts-2-format.shtml Marcos Mendonça wrote: Hello How do I format dates and numbers with Struts2? I tried following this tutorial found on documentation but it didn't work. Could anyone point me to a working example or tell me how to do it. I did not want to have to create methods to format dates and numbers in my action. http://struts.apache.org/2.x/docs/how-to-format-dates-and-numbers.html Thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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 using validation.xml issue
When the validator framework encounters an error, it forwards the request to the resource you identify with your 'input' attribute on the action mapping. I was suggesting making that point to an action, and using *that* action to load the lists. L. Ashish Kulkarni wrote: Hi The error is thrown by validator frame work, and hence it never reaches action class where i can load those list again, I am not very sure how validtor framework works Ashish On 8/31/07, Laurie Harper <[EMAIL PROTECTED]> wrote: Ashish Kulkarni wrote: Hi I have a defined following bean in struts-config.xml In my action class i set datereqList and pass it along to the jsp, the jsp displays it as drop down box, in my validtion.xml i am checking to make sure that color is not blank, So when validation finds that color is blank it send response to the jsp page, but now datereqList is not in request, since it is lost. What is the best way to solve it, should i put datereqList in session? It sounds like you have your action's 'input' property pointing directly at the JSP. Your best bet is to have two action mappings, one for displaying the form and one for processing it on submission. Then set the second mapping's 'input' to point to the first mapping. Now, whenever the form is displayed -- either initially, or following validation errors -- the form-display action will be called, giving you a place to load the list into the form. L. - 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: filling arrays in Struts
Sergio Stateri Jr wrote: Hi all, I?m trying to receive a filled array of objects. In struts-config: In HTML file: When I try to submit a form with these configurations, the following expection is thrown: java.lang.ArrayIndexOutOfBoundsException at java.lang.reflect.Array.get(Native Method) at org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:250) at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:386) .. .. .. How can I fill an indexed java object using Struts ? You need to make sure the myAttribute array is initialized with enough entries before the form data is put into it, or allocate additional entries as needed during population. You'll need to create a form class (you can extend DyanaActionForm) and either (a) create the empty array at the appropriate length in the reset() method: myAttribute = new MyClass[SIZE]; or, if you don't know what SIZE will be before receiving the form data, you can (b) create a setter for myAttribute that automatically 'grows' the array as needed. Search the archives for examples of the latter technique; there are a few approaches that work well. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Where to put hibernate's SessionFactory?
wild_oscar wrote: I've created an Interceptor that takes care of creating a SessionFactory and putting it in the Application Context map. I have a question, though, about the application context. Does this mean the Session Factory is shared among every session of the application, regardless of the internet user that is accessing it? What would happen if I wanted Yes, by definition, since application scope is shared accross all requests and sessions. For a Hibernate session factory that's probably what you want in most cases. more than one connection to databases (e.g: one for authorization and authentication, another for an e-shop)? The presumably you'd have a session factory configured for each connection; I'm not sure. How to handle connections to multiple databases is a Hibernate usage issue. Browse the Hibernate documentation and/or ask on their forums. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] custom ExceptionMappingInterceptor log
Try replacing the first two lines with log4j.rootLogger=DEBUG,R log4j.category.cus.util = DEBUG That's the way I do it, anyway. If that doesn't do the trick, you probably should follow up on the Log4J lists, since this isn't a Struts-specific issue. L. johana pin wrote: Thank you for replay. log4j.properties: log4j.rootLogger=DEBUG log4j.logger.cus.util = DEBUG ,R # define the log file name log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/IBM/WebSphere/AppServer/profiles/default/logs/server1/CUS.log # Maximum log file size: 1000kb log4j.appender.R.MaxFileSize=1000KB # Keep 5 backup files log4j.appender.R.MaxBackupIndex=5 # The pattern used for trace log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern= %d{dd MMM HH:mm:ss} [%t] %-5p %c %M - %m%n INTERCEPTOR: package cus.util; import java.io.IOException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.ExceptionHolder; import com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor; public class CustomExceptionInterceptor extends ExceptionMappingInterceptor { /** Logging object. */ private Log log = LogFactory.getLog(getClass()); protected void publishException(ActionInvocation ai, ExceptionHolder eh) { log.debug("System exception occured."); super.publishException(ai, eh); log.debug("Exception added to stack !"); } } This is what I've done.. What could be wrong ? Thank you. - Original Message From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Friday, August 31, 2007 10:55:20 PM Subject: Re: [s2] custom ExceptionMappingInterceptor log johana pin wrote: Hi, I extended 'ExceptionMappingInterceptor' to add the logging functionality. I want to log to my own file. The problem is that the logging is done in SystemOut file. I used log4j in the custom interceptor: private org.apache.commons.logging.Log log = LogFactory.getLog(getClass()); The log4j.properties file works for all the other classes in the application, but only for this one does not (logging is done in SystemOut). I did not see any custom parameter related to a log file in struts.xml. The interceptor usage: true DEBUG How this could be done ? Thank you Sounds like a mis-configuration in log4j.properties, or perhaps a mis-use of the logging API. It's hard to tell without more details. What do your logging statements look like? What's in log4j.properties? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reg : Client side Validation on Indexed Collection
kukreja sanjeev wrote: Hi , I am trying to put validations on indexed collection. Is there any way I can have that in validation-.xml file. It would be great if you can pls.throw some light on it. Which version of Struts are you using? Struts 1 lets you specify multiple validation files in the configuration, but wont automatically search for per-action validation files. Struts 2 can find validation rules in various places automatically, including per-action files. See 'Defining Validation Rules' in the validation documentation [1] for details. L. [1] http://struts.apache.org/2.x/docs/validation.html ObWhine: please don't post unrelated questions to an existing thread. Be sure to start a new thread (with an appropriate subject) by sending a fresh message to the list, rather than using Reply To. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Struts 2.0.x tag question. "/>
I have a .jspx file in my Struts 2.0.x app. This doesn't work: I get this error (both editor and at runtime): The value of attribute "src" associated with an element type "null" must not contain the '<' character. (The above should regular non-escaped HTML, in case the formatting of this message isn't correct) This works, but seems like a very ugly workaround: <img src="images/"/> (The above should show "&" entity notation in case the formatting of this message isn't correct) This: Gets this error: java.io.IOException: Stream closed This: Gets this error: PWC6317: The attributes for a standard action or an uninterpreted tag cannot be deferred expressions What is the best way to do this? -- View this message in context: http://www.nabble.com/Simple-Struts-2.0.x-tag-question.-%3Cimg-src%3D%22%3Cs%3Aproperty-value%3Ditem.imageURL%22-%3E%22-%3E-tf4388166.html#a12511140 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml problem
Old thread... However, I believe I'm doing exactly what you are saying: Struts 2.0.x + XHTML + .jspx file with a embedded inside a element. This is working perfectly. No errors in my editor (NetBeans 5.5.1) or in the runtime (Glassfish v2). Here is a simple example: http://java.sun.com/JSP/Page"; version="2.1" xmlns:s="/struts-tags" xmlns="http://www.w3.org/1999/xhtml";> http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"; /> http://www.w3.org/1999/xhtml";> Some Page // <![CDATA[ // // ]]> This is a test page Message: Found Not Found Ray Clough wrote: > > I produce all my jsp pages is xml format - ie. as 'jspx' jsp-documents. I > find a serious drawback to the struts tags, and I'm wondering if anyone > has a suggestion. The xhtml does not allow element content within other > elements; for example the tag cannot contain a tag. Lots of > examples in the struts documentation use this, which is not a problem for > regular html, but is a big show stopper in xml. The tags do allow jsp-el, > but not other elements. > > Any suggestions? > - Ray Clough > -- View this message in context: http://www.nabble.com/xhtml-problem-tf3848996.html#a12510895 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??
I recently upgraded an application Struts 1.2 to 1.3. The actual changes needed to upgrade are quite easy to implement if you have a decent search and replace tool (these changes being detailed on the previously mentioned wiki page). In addition, if your project makes use of numerous Jar libraries (like Struts, Spring, Hibernate etc.) I would recommend using Maven for assembling the necessary Jar files for your upgraded application. If you've not used Maven before it is worth investing a little time to learn it (it doesn't take long). Essentially you create a Maven XML project file (POM) detailing the Struts version and any other major Jar libraries that you are using (you can cut and paste some of the configuration details from http://www.mvnrepository.com/). Maven can then be used to download the appropriate Struts Jar file, the libraries that Struts depends on, any other libraries and the libraries on which they depend. It will also resolve library version conflicts that might arise. Even if you are not using Maven as your build tool, you can still make use of it inside Ant builds in order to do dependency management (which incidentally is only one aspect of what Maven can offer). http://maven.apache.org/ant-tasks.html For applications of this nature Maven will make future Jar upgrades easier. HTH Mark On 9/5/07, Mark Shifman <[EMAIL PROTECTED]> wrote: > Not particularly. There is a nice discussion on the struts wiki page: > http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 > > Ed snooper wrote: > > Hello, > > > > In general is it hard to migrate an existing application from struts 1.2.x > > to 1.3.x? > > > > Ed > > > -- > Mark Shifman MD. Ph.D. > Yale Center for Medical Informatics > Phone (203)737-5219 > [EMAIL PROTECTED] -- "Paradoxically, the more time saving abstractions you are using the more you actually have to know." - Simon Willison - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: YUI plug in display issue
Hi Musachy, I just found out why my calendar is that wide. In the style sheet for my application, I have the following lines table { border:1px solid #66; font-size:10px; margin:2px 0pt !important; width:98%; } The calendar picked up the table width from there. I can not change the default css. It is given to us to be shared by all teams. Is there a way to overwrite it with tag parameter or in calendar.css? Thanks a lot for your help, Jane -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Tue 9/4/2007 4:45 PM To: Struts Users Mailing List Subject: Re: YUI plug in display issue Are you applying any styles to it? musachy On 9/4/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use YUI calendar plug in. It works fine except that the > pop up calendar is as wide as the screen. It opened at the right > position, but extended past the visible area of the screen. > > Is there anything I can do to make it look right? > > Thanks, > > Jane > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - 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: lazy-loading s:tree
Please, can someone refer me to the struts developers who've worked on s:tree. I've been trying to get some answers all day about this matter and have not received a single reply. > TreeViewer people, and Dojo fans, please chime in your comments. I > wanted to switch from struts with s:tree to Dojo, but I can't find any > online examples where Dojo obtains the tree data from a java class. Do > you have any examples I could look at? > > Thanks, Session > > >> Hi, >> >> Has anyone been able to find a way to lazy-load the s:tree tag. I'm >> having some performance issues with a really big tree. Please send me >> an example. >> >> Thanks, Session >> >> >> - >> 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]
[NOTICE] Security alerts as to Struts 2.x MAY NOT apply to Struts 1.x
I just wanted to clarify that security alerts raised as to Struts 2.x MAY NOT apply to Struts 1.x. The versions use entirely different codebases. When we say to immediately upgrade to Struts 2.0.9, we don't mean people should upgrade from Struts 1.3.8 just to address the security alert. If there were a serious problem with Struts 1.x, we would issue a new release of Struts 1.x. The Struts 1.x codebase is very much alive, and a Struts 1.4 series is expected. Of course, sometimes, there are security issues that affect any web applications, that might affect both Struts 1 and Struts 2, as well as other frameworks. In the case of the recent alert posted on the web site, the issue is Struts 2 specific. I'll update the project home page to clarify -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is it hard to migrate from struts 1.2.x to 1.3.x ??
> In general is it hard to migrate an existing application from > struts 1.2.x to 1.3.x? I had very little trouble going from 1.1.x directly to 1.3.x, without stopping at 1.2. The biggest thing in that move was getting rid of the "application" parameter of the "action" servlet declaration in web.xml, and putting the tag in struts-config.xml to replace it. I don't know whether that happened in 1.2.x or 1.3.x. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: More 1.3.8 / xhtml problems
> More serious is that when I use EL in the > tag it blows up! The stack trace for that begins with: > > java.lang.NullPointerException This problem disappears in Struts 1.3.9. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XHTML compliance
https://issues.apache.org/struts/browse/STR On Wed Sep 5 14:05 , 'Slattery, Tim - BLS' <[EMAIL PROTECTED]> sent: >> Please check the ticket list for Struts 1.4. If you find this >> very issue there (I think it is) and you need it in 1.3, I >> can back port it for 1.3.10 > >I don't know how to do that. I see no link on the Struts page to a >ticket list or to Struts 1.4. > >-- >Tim Slattery >[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: XHTML compliance
> Please check the ticket list for Struts 1.4. If you find this > very issue there (I think it is) and you need it in 1.3, I > can back port it for 1.3.10 I don't know how to do that. I see no link on the Struts page to a ticket list or to Struts 1.4. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??
Not particularly. There is a nice discussion on the struts wiki page: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 Ed snooper wrote: Hello, In general is it hard to migrate an existing application from struts 1.2.x to 1.3.x? Ed - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] XSL Result: passing XSLT parameters and XSLT 2.0 questions
I'm new to Struts 2 so please forgive me if I am asking something stupid. Is it possible to pass XSLT stylesheet parameters from the action prior to rendering the XSLT result? Is it possible to make of use of something like Saxon rather than Xalan to enable XSLT 2.0 stylesheets? If not, would it be easy to develop an XSLTResult that used Saxon (or similar)? Thanks, Mark -- "Paradoxically, the more time saving abstractions you are using the more you actually have to know." - Simon Willison - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it hard to migrate from struts 1.2.x to 1.3.x ??
Hello, In general is it hard to migrate an existing application from struts 1.2.x to 1.3.x? Ed - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
More 1.3.8 / xhtml problems
Struts 1.3.8 (and 1.3.5, for that matter) puts the name of the form bean in the "id" attribute of the tag, instead of the "name" attribute, like it used to. Since "name" doesn't exist for in xhtml, this makes the output valid xhtml. If I use the styleId attribute in the struts tag, it blows up. I get an exception that shows this message: javax.servlet.ServletException: Cannot specify "styleId" when in XHTML mode as the HTML "id" attribute is already used to store the bean name Well, maybe. IMHO I should be able to specify styleId and have it override the default. It seems to me that the form bean name there is only documentation anyway. More serious is that when I use EL in the tag it blows up! The stack trace for that begins with: java.lang.NullPointerException at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:314) at org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:996) I've used EL with , so it's not a general problem, it's peculiar to the tag. -- Tim Slattery [EMAIL PROTECTED]
Re: XHTML compliance
Please check the ticket list for Struts 1.4. If you find this very issue there (I think it is) and you need it in 1.3, I can back port it for 1.3.10 Paul
Re: Dynamic Tree Example
Hi Manu, You seem to have had lots of experience with s:tree; would you please help me answer the following questions (with example code if you have them): - how do you go about expanding the tree to the node level it was at before a refresh? - can you add icons (not changing the plus/minus ones) to the tree nodes individually, to differentiate between the types? - are there examples of lazy-loading data in a tree? Thanks, Session > Thanks Manu. I'm new with the tree, and am attempting to implement one > for a project I'm working on. > > I'm having a number of difficulties: - I can't manage to reload at the > node level I want, it always reloads with root showing - it takes a long > time to load > > and I have a couple of feature questions: - can images be added depending > on the type of the node object (category, question, answer, ...) - is > there a functionality to move nodes around and do a check to ensure that > they are allowed to be inserted in the new location or not. > > I would be interesting to have a fully functional tree example in the > showcase, as it would help answer a number of these questions. > > Thanks for the effort, Session > > >> I have worked with the tree extensively but that was about two months >> ago with 2.0.6. I faced a lot of problems when I first encountered this >> and so I'll try and fix the showcase examples in the coming weekend and >> submit a patch next week . I hope not much would have changed between >> then and in the current version. >> >> Manu >> >> Ted Husted wrote: >>> We do try to tag the examples that are broken, in the hope that >>> someone will someday fix them. I just didn't realize that this one >>> wasn't working the way it should. The Showcase could use a lot of >>> work, especially in terms of explaining exactly what the example >>> should do. If you can fix the example, please submit a patch. >>> Otherwise, feel free to open a JIRA ticket suggesting that the example >>> be tagged as broken for the next release. >>> >>> -Ted. >>> >>> On 8/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> Do you think leaving known broken code on the "Showcase" is a good idea realizing developers are flocking to this resource to figure out how to do things? If it is known not to work, maybe it should say this or be removed from the Showcase! On 8/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Yes the example had several problems on 2.0.x, some of them were > fixed, others are still there. > > musachy > > On 8/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> I'm studying the dynamic tree example in the showcase, and >> there are a couple problems. First, when you view sources, the >> configuration for >> > the > >> dynamicTreeSelectAction is not visible. Also, as I inspect >> this action, >> > I'm > >> discovering that its dynamicTreeSelect.jsp never displays the >> node selected! Is this example not finished? >> >> -- Scott [EMAIL PROTECTED] >> >> > -- "Hey you! Would you help me to carry the stone?" Pink Floyd > > - > -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Scott [EMAIL PROTECTED] >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] For >>> additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] For >> additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > - To > unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading a tree at a certain level of expension
Anyone knows whether this feature has been added in yet? > Session A Mwamufiya wrote: >> I'm relaunching this thread in case an s:tree expert may have missed it >> the first time around :). >> >>> Is there a way that when a s:tree is reloaded, it expends to a >>> particular level of expansion? I presume that I will save that >>> expansion level in my session object, but I'm not sure how to get it >>> or set the tree to it, or if it's even possible. > > > Looking into TreeSelector API I found a selectedNode parameter - will it > do the job? Feel free to ask Struts2 developers to include selectedNode > parameter into s:tree tag if is does what you expect (and if it's not > included there yet - sometimes S2 code changes faster than its > documentation). > > Oleg > > - 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: Tiny error on Struts 2 download page
I had not released this was the draft documentation. This was the first page returned resulting from a Google Search for "Struts 2". Mark On 9/5/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/9/5, Mark McLaren <[EMAIL PROTECTED]>: > > > > I'm not sure where the appropriate place to report this is and I'm not > > a pedant but the link to the Struts 2 "Download Now" says "version > > 2.0.6". > > > > http://struts.apache.org/2.x/ > > > > and links to: > > > > http://struts.apache.org/download.cgi#struts206 > > > > When it should probably say "2.0.9" and link to "#struts209". > > > I suppose it's only a matter of republishing the 2.x draft docs, since the > 2.0.9 version of the website is ok: > http://struts.apache.org/2.0.9/index.html > > Antonio > -- "Paradoxically, the more time saving abstractions you are using the more you actually have to know." - Simon Willison - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lazy-loading s:tree
TreeViewer people, and Dojo fans, please chime in your comments. I wanted to switch from struts with s:tree to Dojo, but I can't find any online examples where Dojo obtains the tree data from a java class. Do you have any examples I could look at? Thanks, Session > Hi, > > Has anyone been able to find a way to lazy-load the s:tree tag. I'm > having some performance issues with a really big tree. Please send me an > example. > > Thanks, Session > > > - 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]
Struts2 and JBoss 5.0.0 Beta2 deployment problem
Has any successfully deployed a Struts2 application to JBoss 5.0.0 Beta 2? When I try to do this I get the following stack trace from JBoss: Exception starting filter struts2 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/jboss/jboss-5.0.0.Beta2/server/default/tmp/deploy/moss-home page6107-exp.war/WEB-INF/lib/struts2-core-2.0.6.jar!/struts-default.xml: 8:69 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regist er(XmlConfigurationProvider.java:209) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Struts XmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultC onfiguration.java:131) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Con figurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa tcher.java:398) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.jav a:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio nFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilte rConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav a:3720) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4367 ) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInt ernal(TomcatDeployment.java:300) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(To mcatDeployment.java:138) at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeploymen t.java:367) at org.jboss.web.deployers.WebModule.startModule(WebModule.java:104) at org.jboss.web.deployers.WebModule.start(WebModule.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav a:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:18 4) at $Proxy0.start(Unknown Source) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(S tartStopLifecycleAction.java:42) at org.jboss.system.microcontainer.ServiceControllerContextAction.install(S erviceControllerContextAction.java:46) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(Ab stractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractC ontrollerContext.java:233) at org.jboss.system.microcontainer.ServiceControllerContext.install(Service ControllerContext.java:238) at org.jboss.dependency.plugins.AbstractController.install(AbstractControll er.java:724) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractC ontroller.java:445) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstract Controller.java:555) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstract Controller.java:489) at org.jboss.dependency.plugins.AbstractController.change(AbstractControlle r.java:335) at org.jboss.dependency.plugins.AbstractController.change(AbstractControlle r.java:205) at org.jboss.system.ServiceController.doChange(ServiceController.java:656) at org.jboss.system.ServiceController.start(ServiceController.java:431) at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:14 2) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:1 03) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:4 6) at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer .deploy(AbstractSimpleRealDeployer.java:56) at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy (AbstractSimpleDeployer.java:52) at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(Deploy erWrapper.java:170) at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(Mai nDeploy
Re: Using JSTL Expression Language with Struts 2 tags
You can up until Struts 2.0.9. There is a security flaw related to this though and you will no longer be able to do it in Struts 2.0.10. See the following JIRA ticket for more info: https://issues.apache.org/struts/browse/WW-2107 James On Wed Sep 5 11:31 , Néstor Boscán <[EMAIL PROTECTED]> sent: >Hi > > > >Is there a way to use the JSTL Expression Language with Struts 2 tags > >instead of OGNL? > > > >Regards, > > > >Néstor Boscán > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using JSTL Expression Language with Struts 2 tags
Hi Is there a way to use the JSTL Expression Language with Struts 2 tags instead of OGNL? Regards, Néstor Boscán
XHTML compliance
OK, I removed the attribute in the struts-html-el.tld in Struts 1.3.8, and it runs. NowI'm trying to use xhtml. I use this: And it generates this: http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US"> The lang="en-US" is in there whether I specify lang="true", lang="false" or omit the lang attribute entirely from the html-el:html statement. The markup validation service at http://validator.w3.org/ says that there is no "lang" attribute in the html tag in xhtml. Is it possible to get Struts to create 100% compliant xhtml? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgraded to 2.0.9 and Tomcat became very cranky starting my app.
My bad. I don't use plexus, don't have the jar, and have removed the plugin. Argh, I hate posting before thinking. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgraded to 2.0.9 and Tomcat became very cranky starting my app.
Help. What else can I send? I have also listed my complete WEB-INF/lib directory below. I know there are some libs I don't need, but I have them all in there for now. Are some doubling up perhaps? INFO: XML validation disabled 05 Sep 2007 10:41:43 INFO com.opensymphony.xwork2.config.providers.XmlConfigurationProvider - Parsing configuration file [struts-default.xml] 05 Sep 2007 10:41:43 INFO com.opensymphony.xwork2.config.providers.XmlConfigurationProvider - Parsing configuration file [struts-plugin.xml] 05 Sep 2007 10:41:44 INFO com.opensymphony.xwork2.config.providers.XmlConfigurationProvider - Parsing configuration file [struts.xml] 05 Sep 2007 10:41:44 WARN org.apache.struts2.config.Settings - Settings: Could not parse struts.locale setting, substituting default VM locale 05 Sep 2007 10:41:44 INFO com.opensymphony.xwork2.config.impl.DefaultConfiguration - Overriding property struts.i18n.reload - old value: false new value: true 05 Sep 2007 10:41:44 INFO com.opensymphony.xwork2.config.impl.DefaultConfiguration - Overriding property struts.configuration.xml.reload - old value: false new value: true 05 Sep 2007 10:41:44 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/IR-STRUTS2] - Exception starting filter struts2 java.lang.NoClassDefFoundError: Lorg/codehaus/plexus/PlexusContainer; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2259) at java.lang.Class.getDeclaredFields(Class.java:1715) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:102) at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:84) at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:82) at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:155) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:81) at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:121) at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.(ContainerImpl.java:329) at com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:299) at com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:298) at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:155) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:81) at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:121) at com.opensymphony.xwork2.inject.ContainerImpl.getConstructor(ContainerImpl.java:562) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:460) at com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:501) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:549) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:499) at com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32) at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:134) at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49) at com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:431) at com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:446) at com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:48) at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:288) at com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:117) at com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:115) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542) at com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:114) at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221) at org.apache.catalina.core.Application
RE: New pdf version of Tutorial is accessible
Ok, let us know when you have the new .pss version :-) Best regards, Hayrol Reyes -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 05 de Septiembre de 2007 01:18 a.m. Para: user@struts.apache.org Asunto: New pdf version of Tutorial is accessible Hi, thanks Hyrol for your attention. The pdf version of my Tutorial is accessible via this link: http://khorshid.ut.ac.ir/~m.s.alavi/Tutorial_pdf.zip This version does not contain any animation because I couldn't make the open office version of that. So, I made the pdf version. --kind regards Mohammad SeyedAlavi - 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: Tiny error on Struts 2 download page
2007/9/5, Mark McLaren <[EMAIL PROTECTED]>: > > I'm not sure where the appropriate place to report this is and I'm not > a pedant but the link to the Struts 2 "Download Now" says "version > 2.0.6". > > http://struts.apache.org/2.x/ > > and links to: > > http://struts.apache.org/download.cgi#struts206 > > When it should probably say "2.0.9" and link to "#struts209". I suppose it's only a matter of republishing the 2.x draft docs, since the 2.0.9 version of the website is ok: http://struts.apache.org/2.0.9/index.html Antonio
RE: Am I doing something dumb, or should this not work?
--- Al Sutton wrote: > Bingo > > Now I must write 100 lines of "Action specific > interceptor declarations overrides the default > interceptor stack and does not add to it". You can crib off mine ;) d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiny error on Struts 2 download page
I'm not sure where the appropriate place to report this is and I'm not a pedant but the link to the Struts 2 "Download Now" says "version 2.0.6". http://struts.apache.org/2.x/ and links to: http://struts.apache.org/download.cgi#struts206 When it should probably say "2.0.9" and link to "#struts209". Cheers, Mark -- "Paradoxically, the more time saving abstractions you are using the more you actually have to know." - Simon Willison - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Am I doing something dumb, or should this not work?
Bingo Now I must write 100 lines of "Action specific interceptor declarations overrides the default interceptor stack and does not add to it". Thanks Dave :) -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 13:29 To: Struts Users Mailing List Subject: Re: Am I doing something dumb, or should this not work? --- Al Sutton <[EMAIL PROTECTED]> wrote: > > > STORE > > [...] Doesn't that mean that you're only using the "store" interceptor now? I thought you had to do it like: myValidationExcludeMethod myWorkflowExcludeMethod (Copied from http://struts.apache.org/2.x/docs/interceptors.html) d. - 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]
s2: Targets depends of the action result - AJAX
Someone knows how to define a target depends of the result of the action, for example when the action SUCCESS so go to some target but when make a ERROR go to another target. Thanks, Manuel
RE: Problems with Struts 1.3.8
> > I'm *not* using the filter attribute! The message is issued and > > processing is halted as soon as the taglib statement is > > encountered, regardless of what's being used from it. You cannot > > use the html-el tags in 1.3.8 at all. > Now I know how useful is the tag library validation report > :-) > http://struts.apache.org/1.3.8/struts-el/taglibvalidation.html#struts-ht ml-el.tld Interesting, thanks for the pointer. That report does show the error in the "filter" attribute of the "option" tag. It doesn't say that the error makes the entire library unusable, but it does. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
adding icons to s:tree nodes
Hi, I haven't kept up with progress made in struts 2.0.9, so I was wondering whether there have been changes made to the s:tree tag that would now allow nodes to have icons. If so, please refer me to an example. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Struts 1.3.8
2007/9/5, Slattery, Tim - BLS <[EMAIL PROTECTED]>: > > > > Anyway that problem is fixed. > > Tim, you may have two options: use 1.3.9 or wait until > > 1.3.10 (or 1.4?) is released. > > Or don't use the "filter" attribute :-) > > I'm *not* using the filter attribute! The message is issued and > processing is halted as soon as the taglib statement is encountered, > regardless of what's being used from it. You cannot use the html-el tags > in 1.3.8 at all. Now I know how useful is the tag library validation report :-) http://struts.apache.org/1.3.8/struts-el/taglibvalidation.html#struts-html-el.tld Antonio
RE: Problems with Struts 1.3.8
> Anyway that problem is fixed. > Tim, you may have two options: use 1.3.9 or wait until > 1.3.10 (or 1.4?) is released. > Or don't use the "filter" attribute :-) I'm *not* using the filter attribute! The message is issued and processing is halted as soon as the taglib statement is encountered, regardless of what's being used from it. You cannot use the html-el tags in 1.3.8 at all. I'll try removing the attribute from the filter attribute in the TLD in struts-el-1.3.8.jar. There's only one attribute in the entire TLD, and it kills the entire taglib. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Struts 1.3.8
The only reason why 1.3.9 is beta was because of a file upload issue using Dyna forms. Otherwise, I think it's okay to use. 1.3.10 should hopefully be GA :) Paul On 9/5/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/9/4, Dave Newton <[EMAIL PROTECTED]>: > > > > --- "Slattery, Tim - BLS" wrote: > > > But isn't 1.3.9 still beta? > > > > Looks that way. > > > > Anyway that problem is fixed. > Tim, you may have two options: use 1.3.9 or wait untile 1.3.10 (or 1.4?) > is > released. > Or don't use the "filter" attribute :-) > > Antonio >
lazy-loading s:tree
Hi, Has anyone been able to find a way to lazy-load the s:tree tag. I'm having some performance issues with a really big tree. Please send me an example. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Am I doing something dumb, or should this not work?
--- Al Sutton <[EMAIL PROTECTED]> wrote: > > > STORE > > [...] Doesn't that mean that you're only using the "store" interceptor now? I thought you had to do it like: myValidationExcludeMethod myWorkflowExcludeMethod (Copied from http://struts.apache.org/2.x/docs/interceptors.html) d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Am I doing something dumb, or should this not work?
Using the default interceptor stack as the base I have the following action defined; STORE EditProcess ${processId} true true I have the following code as the action; public class ProcessStepAction extends ActionSupport { /** * Serial ID. */ private static final long serialVersionUID = -562645196977332471L; private Long processId; private Long stepId; public String execute() { System.out.println("Running for "+processId+","+stepId); return SUCCESS; } public Long getProcessId() { System.out.println(" Req ProceId"+processId); return processId; } public void setProcessId(Long processId) { this.processId = processId; System.out.println(" Set ProceId"+processId); } public Long getStepId() { return stepId; } public void setStepId(Long stepId) { this.stepId = stepId; System.out.println(" Set StepId"+stepId); } } And when I enter the URL; http://.../ProcessStepAdd?processId=1&stepId=2 I get the following output; Running for null,null And the redirect has an empty string for the processId. Does this mean an action can't take parameters from an HTTP GET? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 - FilterDispatcher
Hi, Is it the right way I can specify the web.xml as below for my Struts2 action to be called? I am using Rad6 for development and WAS6 as testing server. I am getting a page cannot be found error: Do I need to specify the struts.xml as config file in my web.xml??? http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> Struts 2 Demo struts org.apache.struts2.dispatcher.FilterDispatcher struts *.action thanks & regards, Bhukar. -- View this message in context: http://www.nabble.com/Struts2---FilterDispatcher-tf4383696.html#a12496801 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 sitemesh probelm finding xwork2
Hello there i'm doing some testes with S2.. i already worked with struts 1 and webwork... i read the documentation and a lot of tutorial about but my problem presists... in my folder WEB-INF/lib i have both struts2-sitemesh-plugin-2.0.9.jar and sitemesh-2.3.jar and i started my project using the struts2-blank-2.0.9 project that comes with the .zip my web.xml look like this: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> Localization Tool struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp sitemesh com.opensymphony.module.sitemesh.filter.PageFilter struts2 org.apache.struts2.dispatcher.FilterDispatcher struts-cleanup /* sitemesh /* struts2 /* index.html my decorators.xml: /styles/* /scripts/* /images/* /index.html /* i have a header.jsp that just has the text HEADER. so i want to make that appear in the top of the example my template look like: <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"; prefix="decorator"%> <%@ taglib uri="http://www.opensymphony.com/sitemesh/page"; prefix="pages"%> <%@ taglib prefix="s" uri="/struts-tags" %> <%@ include file="../includes/header.jsp"%> i also tried using ${head} and ${body} but nothing changed... now the problem: when i run ly index.html the folowing error occurs 5 sept. 2007 13:26:52 org.apache.catalina.core.ApplicationDispatcher invoke GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception java.lang.NoClassDefFoundError: com/opensymphony/xwork/util/OgnlValueStack What is strange is that i'm using the xwork2 and the class exists but it tries to locate an xwork class... any ideas??? what is happening?? Thanks -- View this message in context: http://www.nabble.com/Struts2-sitemesh-probelm-finding-xwork2-tf4383532.html#a12496277 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] [S2] Three new Struts 2 books available for pre-order
Ian Roughley's mini-book, "Starting with Struts 2", available in print and as a free PDF since May, is about to be joined by three new books about Struts 2. Coming in October is "Struts 2 Design and Programming: A Tutorial" by Budi Kurniawan. Budi's Struts 1 book is rated "four stars" based on reader reviews at Amazon. Coming in November is "Practical Apache Struts 2 Web 2.0 Projects" by Ian Roughley, an Apress book. As mentioned, Ian is also the author of "Starting with Struts 2" (available now!). Looking down the road a bit, "Struts 2: The Complete Reference" by James Holmes is scheduled for release in June 2008. James is also the author of "Struts 1: The Complete Refererence", which may be the most up to date Struts 1 book. To order any of these books, please visit the Apache Bookstore site at * http://opensource.atlassian.com/confluence/oss/display/BOOKS/Books+about+Struts All commissions for books ordered through the Apache Bookstore site are donated back to the Apache Software Foundation. If you do plan on ordering any of these books, please consider pre-ordering today. Pre-orders do affect a book's ranking, which will help us get the Struts 2 word out! HTH, Ted. http://husted.com/ted/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 - compatibility between JSTL xml tags and Struts 2
Here's it to you: java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49) at _jsps._Login._jspService(_Login.java:103) at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java :65) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher .java:623) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher .java:370) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler .java:871) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler .java:453) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler .java:221) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor .java:303) at java.lang.Thread.run(Thread.java:595) --- Don Brown <[EMAIL PROTECTED]> ha scritto: > Could you provide the stacktrace? > > Don > > On 9/5/07, Riccardo Mollame <[EMAIL PROTECTED]> > wrote: > > Has anyone ever experienced compatibility issues > > between JSTL xml tags (i.e. and the > like) > > and Struts 2? > > I've isolated, with no ambiguity, a weird case in > a > > web application where the usual combination of > > and to load and access an xml > > file in the WEB-INF directory, when invoked in a > page > > whithout struts taglib, works flawlessly, > retreiving > > and displaying the xml content, when invoked mixed > > with struts taglib, produces an exception > mentioning, > > in the output message, a > org.apache.struts2.views.jsp > > library (a coincidence?). > > Has anyone incurred in something like this? > > > > Ric > > > > > > ___ > > L'email della prossima generazione? Puoi averla > con la nuova Yahoo! Mail: > http://it.docs.yahoo.com/nowyoucan.html > > > > > - > > 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] > > ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 - compatibility between JSTL xml tags and Struts 2
Could you provide the stacktrace? Don On 9/5/07, Riccardo Mollame <[EMAIL PROTECTED]> wrote: > Has anyone ever experienced compatibility issues > between JSTL xml tags (i.e. and the like) > and Struts 2? > I've isolated, with no ambiguity, a weird case in a > web application where the usual combination of > and to load and access an xml > file in the WEB-INF directory, when invoked in a page > whithout struts taglib, works flawlessly, retreiving > and displaying the xml content, when invoked mixed > with struts taglib, produces an exception mentioning, > in the output message, a org.apache.struts2.views.jsp > library (a coincidence?). > Has anyone incurred in something like this? > > Ric > > > ___ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: > http://it.docs.yahoo.com/nowyoucan.html > > - > 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]
Struts 2 - compatibility between JSTL xml tags and Struts 2
Has anyone ever experienced compatibility issues between JSTL xml tags (i.e. and the like) and Struts 2? I've isolated, with no ambiguity, a weird case in a web application where the usual combination of and to load and access an xml file in the WEB-INF directory, when invoked in a page whithout struts taglib, works flawlessly, retreiving and displaying the xml content, when invoked mixed with struts taglib, produces an exception mentioning, in the output message, a org.apache.struts2.views.jsp library (a coincidence?). Has anyone incurred in something like this? Ric ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New pdf version of Tutorial is accessible
Hi, thanks Hyrol for your attention. The pdf version of my Tutorial is accessible via this link: http://khorshid.ut.ac.ir/~m.s.alavi/Tutorial_pdf.zip This version does not contain any animation because I couldn't make the open office version of that. So, I made the pdf version. --kind regards Mohammad SeyedAlavi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request related problem
abhiram wrote: hi!! i dont think this is a struts related question.. but.. is there any way to know when a request dies (apart from our own logical reasoning).. like any method to find out or can we write api such that a request gives out a System.out.println("i'm dying") just before it ends and similar output when a new one is created ? might sound funny but i think it will be very useful. i searched the ServletRequest and HttpServletRequest apis but found none. any suggestions? The servlet API provides context listeners and session listeners, but not request listeners. You didn't explain what you're trying to achieve so the best advice I can offer is to write a servlet filter. That would certainly meet the requirements you've described, anyway. If filters don't allow you to do what you need, re-post with details of what you're trying to accomplish. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]