Re: [OS-webwork] JavaOne meetings +
Gerry Seidman wrote: I am evaluating Velocity for a mission critical application (300+ heavy internal users + web presence for another 25,000 moderate users and 250,000 occasioinal users). Does anyone have experience with this type of deployment? We've built our entire CMS product on WebWork+Velocity, and the performance is awesome. Try surfing www.konj.se for example, which is running on our CMS on a 1Ghz Linux box along with 15 other customers (including our own homepage). We've also found Velocity templates to be easy to build and maintain, and we can even let our customers do their own customizations without much trouble. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Tag lib not generating html
Hello, I'm getting closer to having everything running. I'm testing a .jsp where I use the ui:textarea/ tag. In my WW only installation, it works great. In the installation where WW exists alongside my company's convoluted Tomcat-based mutant, I am getting html with blank spaces where the ui tag is supposed to be. The log says this: Using template:/template/xhtml/textarea.jsp and the submit button which fires the form's action triggers the breakpoint in my action code, so that is not the problem. Any suggestions on what I might do to debug? Thanks! I'll include the complete log and the ui/ tag from the jsp below. -Robert Douglass ### ui tag form method=POST action=com.webs4.WWEditor.action ui:textarea label='Hi!' name='html' value=html rows=20 cols=80/ input type=submit name=Submit value=Submit/ /form ## processes to form method=POST action=com.webs4.WWEditor.action input type=submit name=Submit value=Submit/ /form ##log 2003-06-08 11:58:23,160 INFO webwork.dispatcher.ServletDispatcher [Hype initializer thread] - Action dispatcher initialized 2003-06-08 11:58:24,151 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=80 {[id=null type=12 values=80]} 2003-06-08 11:58:24,151 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=20 {[id=null type=12 values=20]} 2003-06-08 11:58:24,151 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='Hi!' {[id=Hi! type=0 values=]} 2003-06-08 11:58:24,161 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='html' {[id=html type=0 values=]} 2003-06-08 11:58:24,161 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] - valueAttr:html 2003-06-08 11:58:24,161 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=html {[id=html type=8 values=]} 2003-06-08 11:58:24,171 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] - Setting value to:null 2003-06-08 11:58:24,171 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=html {[id=html type=8 values=]} 2003-06-08 11:58:24,171 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='center' {[id=center type=0 values=]} 2003-06-08 11:58:24,181 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] - Using template:/template/xhtml/textarea.jsp 2003-06-08 12:12:15,527 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=80 {[id=null type=12 values=80]} 2003-06-08 12:12:15,527 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=20 {[id=null type=12 values=20]} 2003-06-08 12:12:15,537 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='Hi!' {[id=Hi! type=0 values=]} 2003-06-08 12:12:15,537 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='html' {[id=html type=0 values=]} 2003-06-08 12:12:15,537 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] - valueAttr:html 2003-06-08 12:12:15,547 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=html {[id=html type=8 values=]} 2003-06-08 12:12:15,547 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] - Setting value to:null 2003-06-08 12:12:15,547 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=html {[id=html type=8 values=]} 2003-06-08 12:12:15,557 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='center' {[id=center type=0 values=]} 2003-06-08 12:12:15,557 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] - Using template:/template/xhtml/textarea.jsp 2003-06-08 12:12:17,900 DEBUG webwork.action.factory.AliasingActionFactoryProxy [HttpProcessor[80][1]] - Aliasing only:false 2003-06-08 12:12:18,411 DEBUG webwork.action.ActionSupport [HttpProcessor[80][1]] - Action executing.. 2003-06-08 12:12:34,003 DEBUG webwork.action.ActionSupport [HttpProcessor[80][1]] - Action execution done 2003-06-08 12:12:34,064 DEBUG webwork.action.ActionSupport [HttpProcessor[80][1]] - Action executed in 15643 ms 2003-06-08 12:12:34,084 DEBUG webwork.dispatcher.ServletDispatcher [HttpProcessor[80][1]] - Result:editor.jsp 2003-06-08 12:12:34,084 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=80 {[id=null type=12 values=80]} 2003-06-08 12:12:34,094 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query=20 {[id=null type=12 values=20]} 2003-06-08 12:12:34,094 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='Hi!' {[id=Hi! type=0 values=]} 2003-06-08 12:12:34,104 DEBUG webwork.util.ServletValueStack [HttpProcessor[80][1]] - findValue() for: query='html' {[id=html type=0 values=]} 2003-06-08 12:12:34,104 DEBUG webwork.view.taglib.ui.ComponentTag [HttpProcessor[80][1]] -
Re: [OS-webwork] WW2 - accessing request parameters
ok, getting there slowly by slowly. i cannot access request parameters unless i feed control directly through an action, which defeats the purpose of using the 'action' tag by itself to 'pull' the action. i am trying to create a form to edit a db item - i am pulling the content in from the db when the page loads and populate the form. running through an action is OK, i guess, but why is this the case? ... i am sure that in the old webwork one could access request parameters through tags without having to explicity call an action. or i am making this up? could be the case ... its 2am on the queen's bday holiday and i should have better things to do :). Toby Hede wrote: how does one access request parameters in the new WW2 expression language? i am trying to pass a reuest parameter to an action using the action tag. i have the following where id is a query string parameter and db.read is an action that reads the database using the id. ww:action name=db.read id=reader ww:param name=id value=@/#/$/?id/ /ww:action --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] not finding taglib
Look inside web.xml. There should be a uri reference there. --- Robert Douglass [EMAIL PROTECTED] wrote: Hi, could someone explain to me how WW locates its jsp tag library? Or, alternatively, what do I check when WW doesn't find the taglib. thanks, Robert Douglass PS I've done Cocoon and Turbine before this, and I REALLY like WW so far. Great work. = Cuong Q. Tran [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] not finding taglib
Thanks Cuong, How can I tell if it is not finding the jar or if it is another problem? The web.xml file has the following: taglib taglib-uriwebwork/taglib-uri taglib-location/classes/webwork.jar/taglib-location /taglib and the path is correct. I also tried it with out the first forward slash (classes/webwork.jar). Furthermore, the console output tells me Using template:/template/xhtml/textarea.jsp which seems to indicate that WW knows where to look for the templaes. When I look into the generated servlet code from my jsp, it is identical to the code that was generated in the version that worked; I'm integrating WW with another existing (and extensive) framework and I'm starting with an example that worked with WW alone. In particular, this is the part of the code that should be responsible for the missing HTML: private boolean _jspx_meth_ui_textarea_0(javax.servlet.jsp.PageContext pageContext) throws Throwable { JspWriter out = pageContext.getOut(); /* ui:textarea */ webwork.view.taglib.ui.TextAreaTag _jspx_th_ui_textarea_0 = (webwork.view.taglib.ui.TextAreaTag) _jspx_tagPool_ui_textarea_value_rows_name_label_cols.get(webwork.view.taglib .ui.TextAreaTag.class); _jspx_th_ui_textarea_0.setPageContext(pageContext); _jspx_th_ui_textarea_0.setParent(null); _jspx_th_ui_textarea_0.setLabel('Hi!'); _jspx_th_ui_textarea_0.setName('html'); _jspx_th_ui_textarea_0.setValue(html); _jspx_th_ui_textarea_0.setRows(20); _jspx_th_ui_textarea_0.setCols(80); int _jspx_eval_ui_textarea_0 = _jspx_th_ui_textarea_0.doStartTag(); if (_jspx_th_ui_textarea_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return true; _jspx_tagPool_ui_textarea_value_rows_name_label_cols.reuse(_jspx_th_ui_texta rea_0); return false; } However, this code generates no output. Since there is HTML output before and after this code block, and it is being generated, I know that the JSP is getting parsed, that webwork.jar is being found, and that the entire servlet is being called without any errors. Am I right in all of these assumptions? Thanks for any help or suggestions, Robert Douglass --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] not finding taglib
Wow, these mail lists are great! The mere act of writing the last message brought me to the idea that I should see if textarea_jsp.class and .java were being generated... they are not. So the question really is, how do I let WW know where it's templates are? And why would it say Using template:/template/xhtml/textarea.jsp unless it had already found this file? -Robert Douglass --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] WW2 - accessing request parameters
This sounds like it's an issue of not having an ActionContext. I'm not sure yet what the best solution is, though ;-) -Original Message- From: Toby Hede [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2 - accessing request parameters ok, getting there slowly by slowly. i cannot access request parameters unless i feed control directly through an action, which defeats the purpose of using the 'action' tag by itself to 'pull' the action. i am trying to create a form to edit a db item - i am pulling the content in from the db when the page loads and populate the form. running through an action is OK, i guess, but why is this the case? ... i am sure that in the old webwork one could access request parameters through tags without having to explicity call an action. or i am making this up? could be the case ... its 2am on the queen's bday holiday and i should have better things to do :). Toby Hede wrote: how does one access request parameters in the new WW2 expression language? i am trying to pass a reuest parameter to an action using the action tag. i have the following where id is a query string parameter and db.read is an action that reads the database using the id. ww:action name=db.read id=reader ww:param name=id value=@/#/$/?id/ /ww:action --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] NameSpaces
In thinking further about the namespaces concept, I think that you could take it a step further by applying it to components. Right now, you can scope components (components.xml) as app, session, or request. You could extend this to be app, session, or request per namespace. In other words declare a component as one that spans namespaces or is per namespace. Spanning namespaces is what it is doing now. However adding the per namespace would allow me to have different instances of a component for each namespace. Programmatically, this would just require a simple naming convention like namespace.component in the session. This way, instead of having a session Counter for all parts of my application, each sub application(namespace) can have it's own little instance. I suppose you can add a third declaration, as well, where you declare that the component is just for a certain namespace(s). Thoughts? LES www.mindmeld.ws [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 4:12 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] NameSpaces Disclaimer:: OK, I've looked through the list to see if this has been discussed before and don't see it. So, if this is a repeat feel free to direct me to the previous response. :) I really like the namespace concept in the configuration. However, I have three questions. - Should the ww:url tag not automatically default the current namespace along with the servlet context? In other words, right now if I pull up a jsp page in the testNameSpace and that page has ww:url value=another.jsp/ in it. Should it not fill the url withhttp://www.mysite.com/servletcontext/testNameSpace/another.jsp? - As an extension to the last question, would it not complete the inheritence model that you have established in packages if the ww:url tag would first look to see if another.jsp exists in thecurrent context and then if not iterate up the inheritence tree until it finds an ancestor namespace that does contain it? This would allow you to share pages and actions across namespaces and override others for some namespaces. I would think this would be a very nice feature. I would think that other tags like action would also have to support this. - Would it be possible to extend the package tag to include a fileref attribute? This fileref would point to another configuration file that defines the actions, interceptors, etc for that package. It would use the same inheritence approach mentioned previously to search for the file (checking for the file in the different namespaces or class paths. This would improve the modularization of the application, turning packages into web sub-components (or sup apps). Just some thoughts I had will I was working with ww2. BTW, did I mention how much I like it? :) LES www.mindmeld.ws [EMAIL PROTECTED] --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] WW2 - accessing request parameters
OK, i guessed something like that. There is probably a way to have '*.jsp' run through an interceptor and do it that way, but then I guess when you do have an action redirect to SUCCESS you will have parameters set twice? Jason Carreira wrote: This sounds like it's an issue of not having an ActionContext. I'm not sure yet what the best solution is, though ;-) -Original Message- From: Toby Hede [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2 - accessing request parameters ok, getting there slowly by slowly. i cannot access request parameters unless i feed control directly through an action, which defeats the purpose of using the 'action' tag by itself to 'pull' the action. --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] WW2 - accessing request parameters
May be a servlet filter can be use to ensure the ActionContext is always available for the execution of jsp. --- Toby Hede [EMAIL PROTECTED] wrote: OK, i guessed something like that. There is probably a way to have '*.jsp' run through an interceptor and do it that way, but then I guess when you do have an action redirect to SUCCESS you will have parameters set twice? Jason Carreira wrote: This sounds like it's an issue of not having an ActionContext. I'm not sure yet what the best solution is, though ;-) -Original Message- From: Toby Hede [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2 - accessing request parameters ok, getting there slowly by slowly. i cannot access request parameters unless i feed control directly through an action, which defeats the purpose of using the 'action' tag by itself to 'pull' the action. --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] validating string length
hi there again, i am attempting to validate string length using XWork validation. i solved the problem using a custom validator, which i have attached in case anyone finds it useful ... feel free to roll it into xwork. then i suddenly realised that i could possibly use the expression validator to test string length without having a custom class. so i wrote the following, but it doesn't parse because of the '' character (this possibly means that the example on the wiki is also broken). wrapping in a CDATA element gives an error stating 'Got result of null when trying to get boolean'. validator type=expression param name=expressiontitle.length 10/param messageTitle must be less than 10 characters long./message /validator CDATA: ![CDATA[title.length 10]] is using the expression validation not possible when validating string length? --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] WW2 - accessing request parameters
better yet. what does the RequestLifecycleFilter do? i though perhaps that was involved .. Heng Sin Low wrote: May be a servlet filter can be use to ensure the ActionContext is always available for the execution of jsp. --- Toby Hede [EMAIL PROTECTED] wrote: OK, i guessed something like that. There is probably a way to have '*.jsp' run through an interceptor and do it that way, but then I guess when you do have an action redirect to SUCCESS you will have parameters set twice? Jason Carreira wrote: This sounds like it's an issue of not having an ActionContext. I'm not sure yet what the best solution is, though ;-) -Original Message- From: Toby Hede [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2 - accessing request parameters ok, getting there slowly by slowly. i cannot access request parameters unless i feed control directly through an action, which defeats the purpose of using the 'action' tag by itself to 'pull' the action. --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Problem chaining
Ive run into a problem when trying to chain from one action to another. Whenever I try to load the following configuration, I get a NullPointerException in the FilterDispatcher(195). However, when I run the same configuration via unit tests (using ActionProxy) it works fine chaining the actions correctly. The stack trace is below the xwork.xml. Can any body help?? !-- == xwork.xml =-- !DOCTYPE xwork PUBLIC -//OpenSymphony Group//XWork 1.0//EN http://www.opensymphony.com/xwork/xwork-1.0.dtd xwork package name=default result-types result-type name=dispatcher class=com.opensymphony.webwork.dispatcher.ServletDispatcherResult/ result-type name=redirect class=com.opensymphony.webwork.dispatcher.ServletRedirectResult/ result-type name=velocity class=com.opensymphony.webwork.dispatcher.VelocityResult/ result-type name=chain class=com.opensymphony.xwork.ActionChainResult/ /result-types interceptors interceptor name=timer class=com.opensymphony.xwork.interceptor.TimerInterceptor/ interceptor name=logger class=com.opensymphony.xwork.interceptor.LoggingInterceptor/ interceptor name=chain class=com.opensymphony.xwork.interceptor.ChainingInterceptor/ interceptor name=static-params class=com.opensymphony.xwork.interceptor.StaticParametersInterceptor/ interceptor name=params class=com.opensymphony.xwork.interceptor.ParametersInterceptor/ interceptor name=validator class=com.opensymphony.xwork.validator.ValidationInterceptor/ interceptor name=component class=com.opensymphony.xwork.interceptor.component.ComponentInterceptor/ interceptor name=token class=com.opensymphony.webwork.interceptor.TokenInterceptor/ interceptor name=token-session class=com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor/ interceptor-stack name=defaultStack interceptor-ref name=timer/ interceptor-ref name=logger/ interceptor-ref name=component/ !-- interceptor-ref name=static-params/-- interceptor-ref name=params/ interceptor-ref name=validator/ /interceptor-stack /interceptors action name=ListAllPeople class=com.les.mydirector.actions.teammanagement.ListAllPeopleAction result name=success type=dispatcher param name=locationteammanagement/listAllPeople.jsp/param /result interceptor-ref name=defaultStack/ /action action name=AddPerson class=com.les.mydirector.actions.teammanagement.AddPersonAction result name=success type=chain param name=actionNameListAllPeople/param /result interceptor-ref name=defaultStack/ /action /package /xwork !-- Stack Trace -- 2003-06-08 22:10:28 StandardContext[/myapp]: Exception starting filter webwork java.lang.NullPointerException at com.opensymphony.webwork.dispatcher.FilterDispatcher.getActionResultConfig(FilterDispatcher.java:195) at com.opensymphony.webwork.dispatcher.FilterDispatcher.init(FilterDispatcher.java:132) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:327) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3158) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3602) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.servlets.ManagerServlet.deploy(ManagerServlet.java:564) at org.apache.catalina.servlets.ManagerServlet.doPut(ManagerServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
Re: [OS-webwork] validating string length
i tried escaping the , but still get no validation on length - am i accessing the method correctly? Mike Cannon-Brookes wrote: Toby, Because it's XML, you need to escape the - ie lt; Cheers, Mike On 9/6/03 12:03 PM, Toby Hede ([EMAIL PROTECTED]) penned the words: hi there again, i am attempting to validate string length using XWork validation. i solved the problem using a custom validator, which i have attached in case anyone finds it useful ... feel free to roll it into xwork. then i suddenly realised that i could possibly use the expression validator to test string length without having a custom class. so i wrote the following, but it doesn't parse because of the '' character (this possibly means that the example on the wiki is also broken). wrapping in a CDATA element gives an error stating 'Got result of null when trying to get boolean'. validator type=expression param name=expressiontitle.length 10/param messageTitle must be less than 10 characters long./message /validator CDATA: ![CDATA[title.length 10]] is using the expression validation not possible when validating string length? --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] XWork: FieldValidator
Hi all, Just grabed latest cvs code, running it against my last week's app., the Field Validator now fails to validate text string entered (I use 'requiresstring' field validator). It's running ok 3 days ago, swapping to older jars work just fine. - Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key User ID must not be null or empty string. Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key User Id nbsp; Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key You must enter a valid password. Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key Password - I have a jsp which contains two control for a login page, 'id' for user id and 'pwd' for password. The password fails to validate, though the user id is ok. Where do I go wrong? thanks, /bernard --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] XWork: FieldValidator
Can you send an example which breaks on the new code and works with the old? Thanks, Jason -Original Message- From: Bernardinus [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:41 AM To: [EMAIL PROTECTED] Subject: [OS-webwork] XWork: FieldValidator Hi all, Just grabed latest cvs code, running it against my last week's app., the Field Validator now fails to validate text string entered (I use 'requiresstring' field validator). It's running ok 3 days ago, swapping to older jars work just fine. - Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key User ID must not be null or empty string. Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key User Id nbsp; Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key You must enter a valid password. Jun 9, 2003 11:32:26 AM com.opensymphony.xwork.util.LocalizedTextUtil findText WARNING: Unable to find text for key Password - I have a jsp which contains two control for a login page, 'id' for user id and 'pwd' for password. The password fails to validate, though the user id is ok. Where do I go wrong? thanks, /bernard --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] RE: Problem chaining
OK, well I figured it out and apparently I have been staring at this screen a little too long. J I turned on jpda in tomcat and debugged through FilterDispatcher and discovered that the code in there would almost always disregard all of my results (except input) if the class was not ServletDispatcher (BTW, this is the part that confuses me since these errors happen at deploy time, not when I execute the action). This struck me as a little odd. So, I traced it a little further and found that, in this case, if you did not have an input result that you would always get a NullPointerEx. In FilterDispatcher, around line 130, the success result is ignored and the input result is queried. If there is no input result then line 195 will give a NPE. Now, I havent spent the time to determine why I should have never gotten in this section of the code (though I would love to know the function of FilterDispatcher if someone can explain it in less time than it would take me to read J). So, I stuck an input result in my action and the problem was solved. Now, I will likely need this result at some point. However, Im not sure its presence should be a requirement. Anyway, someone may want to look at this section and at least trap this NPE and provide a slightly more meaningful message (like please include an input result J ) or whether they should check for null of the resultConfig. Thanx, LES www.mindmeld.ws [EMAIL PROTECTED] -Original Message- From: Les Stroud [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 10:37 PM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: Problem chaining Ive run into a problem when trying to chain from one action to another. Whenever I try to load the following configuration, I get a NullPointerException in the FilterDispatcher(195). However, when I run the same configuration via unit tests (using ActionProxy) it works fine chaining the actions correctly. The stack trace is below the xwork.xml. Can any body help?? !-- == xwork.xml =-- !DOCTYPE xwork PUBLIC -//OpenSymphony Group//XWork 1.0//EN http://www.opensymphony.com/xwork/xwork-1.0.dtd xwork package name=default result-types result-type name=dispatcher class=com.opensymphony.webwork.dispatcher.ServletDispatcherResult/ result-type name=redirect class=com.opensymphony.webwork.dispatcher.ServletRedirectResult/ result-type name=velocity class=com.opensymphony.webwork.dispatcher.VelocityResult/ result-type name=chain class=com.opensymphony.xwork.ActionChainResult/ /result-types interceptors interceptor name=timer class=com.opensymphony.xwork.interceptor.TimerInterceptor/ interceptor name=logger class=com.opensymphony.xwork.interceptor.LoggingInterceptor/ interceptor name=chain class=com.opensymphony.xwork.interceptor.ChainingInterceptor/ interceptor name=static-params class=com.opensymphony.xwork.interceptor.StaticParametersInterceptor/ interceptor name=params class=com.opensymphony.xwork.interceptor.ParametersInterceptor/ interceptor name=validator class=com.opensymphony.xwork.validator.ValidationInterceptor/ interceptor name=component class=com.opensymphony.xwork.interceptor.component.ComponentInterceptor/ interceptor name=token class=com.opensymphony.webwork.interceptor.TokenInterceptor/ interceptor name=token-session class=com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor/ interceptor-stack name=defaultStack interceptor-ref name=timer/ interceptor-ref name=logger/ interceptor-ref name=component/ !-- interceptor-ref name=static-params/-- interceptor-ref name=params/ interceptor-ref name=validator/ /interceptor-stack /interceptors action name=ListAllPeople class=com.les.mydirector.actions.teammanagement.ListAllPeopleAction result name=success type=dispatcher param name=locationteammanagement/listAllPeople.jsp/param /result interceptor-ref name=defaultStack/ /action action name=AddPerson class=com.les.mydirector.actions.teammanagement.AddPersonAction result name=success type=chain param name=actionNameListAllPeople/param /result interceptor-ref name=defaultStack/ /action /package /xwork !-- Stack Trace -- 2003-06-08 22:10:28 StandardContext[/myapp]: Exception starting filter webwork java.lang.NullPointerException at com.opensymphony.webwork.dispatcher.FilterDispatcher.getActionResultConfig(FilterDispatcher.java:195) at com.opensymphony.webwork.dispatcher.FilterDispatcher.init(FilterDispatcher.java:132) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:327) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120) at