RE: automatic periodic execution of code
You could 'roll your own' using the TimerTask class. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: 16 February 2005 05:54 To: Struts Users Mailing List Subject: Re: automatic periodic execution of code I think Quartz has been the general consensus most times this has been debated on the list. Sng Wee Jim wrote: Hi, What would be the recommended way to execute some code periodically on tomcat/appserver? Should I 1.start a thread (not recommended in appserver and tomcat?) and do it in the run method 2.use third party tool like Quartz 3.or is there existing struts plugin to do it? - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== to report this email as spam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[NEED] tutorials about Security in Struts
Hi all, I'm looking for tutorial about security in Struts, plz help me to find them quickly ... thanks for advance Anh Tuan
Re: Dispatch action handler and pop-up window problem
I tried many way, tried to change the method name but whenever i submit i always get the error but o/p is ok Why this is so ? Pls can anybody give me clue ? Any other workaround, i really need it regards manisha Manisha Sathe [EMAIL PROTECTED] wrote: I am having a form with 2 submit buttons. I am using DispatchActionHandler to handle the 2 separate actions. After submit it opens the new window and depending on the button pressed it shows the o/p (one button is for html report and another is for pdf report). I get the reports but just before that i always get error something like handler for 'method' not defined...Also TomCat server gives unhandled exception occurs and then immediately it shows me the report. If i do not make use of new pop up window then everything seems to be ok. How can i solve this? Is there any workaround for this? regards Manisha - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: automatic periodic execution of code
Thanks for the Quartz project, I'll try it. for the moment I've got my own Thread Management system but using standard is for me a better thing. I hope that whan I'll stop tomcat Quatrz will shutdown too in a short time. Thx, Cedric - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 6:54 AM Subject: Re: automatic periodic execution of code I think Quartz has been the general consensus most times this has been debated on the list. Sng Wee Jim wrote: Hi, What would be the recommended way to execute some code periodically on tomcat/appserver? Should I 1. start a thread (not recommended in appserver and tomcat?) and do it in the run method 2. use third party tool like Quartz 3. or is there existing struts plugin to do it? - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - 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: automatic periodic execution of code
Hello, I know it is not the right place but does someone make Quartz works with Websphere??? I'm trying this since two days and I'm unable to make it worksand I haven't find a Quartz mailing list... If somebody has experience and can help me...TIA... Gaet - Original Message - From: Cedric Levieux [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 10:19 AM Subject: Re: automatic periodic execution of code Thanks for the Quartz project, I'll try it. for the moment I've got my own Thread Management system but using standard is for me a better thing. I hope that whan I'll stop tomcat Quatrz will shutdown too in a short time. Thx, Cedric - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 6:54 AM Subject: Re: automatic periodic execution of code I think Quartz has been the general consensus most times this has been debated on the list. Sng Wee Jim wrote: Hi, What would be the recommended way to execute some code periodically on tomcat/appserver? Should I 1. start a thread (not recommended in appserver and tomcat?) and do it in the run method 2. use third party tool like Quartz 3. or is there existing struts plugin to do it? - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - 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]
Retrieving properties from additional struts config file
I have defined the property in a second ApplicationResources.properties file. createTemplateKeywordsStage1Form.name.required = The name for the template keywords is required This file sits under a folder cm_module within the WEB-INF classes folder. This is referenced in my cm-struts-config.xml file as: message-resources key=cm_module parameter=cm_module.ApplicationResources null=false / In my web.xml I have defined my struts config files using servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/ibt-content-struts-config.xml/param-value /init-param etc This is all working great but when I attempt to refer to a property in my cm_module.ApplicationResources file I get: ???en_GB.createTemplateKeywordsStage1Form.name.required??? FYI I add the error message to my request in the validate method using: errors.add(name, new ActionError(createTemplateKeywordsStage1Form.name.required)); Any ideas greatly apprciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javascript validation in struts
The html:javascript tag dynamically generates the function for you - you should find that somewhere on the JSP page. http://struts.apache.org/userGuide/struts-html.html#javascript Niall - Original Message - From: Jonathan M Z [EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 11:55 PM Hi folks, I am trying to understand struts validation from some example code, it has something like this: html:form onsubmit=return validateSigninForm(this) action=signin method=post validateSigninForm is a javascript validation. I looked up in validation.xml and validator-rules, neither this javascript function nor anything contain the word signin is to be found, so how does struts do its magic clientside validation? (the jsp itself obviously does not have this javasription function either. thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
Hai iam doing dbcp in struts and iam getting following error Can anyone tell what the exact error is Bye vijay java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1332) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1181) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibrar yInfoImpl.java:419) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfo Impl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoIm pl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:41 8) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController. java:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.ja va:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext .java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:296) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 95) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:684) at java.lang.Thread.run(Thread.java:595)
bean:message default value
Hello I've been using struts for a while now and more then once came over a inconvenience of the bean:message tag. As documented, the jstl (which I prefer not to use) representation is something like fmt:message key=my.msg.key fmt:param value=replacement text/ /fmt:message I am particularly interested in the replacement text which - if I understand correctly - is displayed if no key my.msg.key is found. Till now I have not found something like this for struts. Can you tell me if something like this exists and if yes, show me in an example? Note that I frequently use bean:message like this (example): bean:message bundle=%=bundleName% key=%=new String( artistdetails.biography. + characteristicName%/ Cheers, Lukas P.S: Did you notice that the list archive (http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=241) returns VelocityServlet: Error processing the template when trying to browse it?
bean:message default value comment
A short comment: bean:message bundle=%=bundleName% key=%=new String(artistdetails.biography. + characteristicName%/ doesnt work, even after adding the ) that I fogot. I always have to save the expression to a seperate String variable before. Do you know why this is an if there is a way to circumvent the external java expression? Lukas
substring.....
Hi, what would be the best way to obtain a substring using taglibs and struts... I now there is the fn taglib in jstl1.1 but we couldn't get it to work on struts-el 1.2.4. any clues? -P -- Peter Maas Application Architect / Streaming Noterik Multimedia BV Prins Hendrikkade 120 1011 AM Amsterdam The Netherlands Tel: +31 (0)205929966 Fax: +31 (0)204688405 Gsm: +31 (0)624687952 Web: www.noterik.nl -- Take a look at our streaming solutions: http://www.streamedit.com/demo.html Get firefox: http://www.mozilla.org/products/firefox/ --- EOF - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: substring.....
On Wed, 16 Feb 2005 13:29:41 +0100, Peter Maas [EMAIL PROTECTED] wrote: what would be the best way to obtain a substring using taglibs and struts... I now there is the fn taglib in jstl1.1 but we couldn't get it to work on struts-el 1.2.4. AFAIK JSTL 1.1 is part of Servlet 2.4 specification, therefore it requires Servlet 2.4 compliant web container (and application). And if you are working on Servlet 2.4 application (it means your web.xml descriptor starts with 2.4 specific stuff), then you don't need struts-el taglib at all - EL expressions will be interpreted anywhere in your pages as well as in any tag attribute supporting real time expressions. If this explanation won't help, you can try String taglib from Jakarta :) Pavel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQL
This may be slightly off-topic but I'm sure others may have ran into this issue. If I have created a CallableStatement object using a SQL string, is there anyway to retreive that SQL string from the CallableStatement object ? ___ Chris Cranford Programmer/Developer SETECH Inc. Companies 6302 Fairview Rd, Suite 201 Charlotte, NC 28210 Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 Email: [EMAIL PROTECTED]
Re: Caching Appliction Level Data?
I agree: caching should be transparent to your code. Using iBATIS, you can make your entire DAO layer behave that way - each SQL statement can be cached independently, or they can be grouped as appropriate. That is the approach I use. I make my action classes always go to my service layer to get data - ALWAYS. No caching in the web tier. In the service layer, I then have two options: 1) Delegate to the DAO layer (where caching can be easily implemented) 2) Get data from the DAO layer (cached or not) and process it for the view In a case where the processing in option 2 is expensive I push it in to a stored procedure. If someone is using a DB w/o stored procedures (like Access or MySQL), they are probably not real serious about optimal application performance. ;-) IMO, whether the data is cached or not is really irrelevant by the time Struts gets involved. Larry On Tue, 15 Feb 2005 11:52:21 -0800, Craig McClanahan [EMAIL PROTECTED] wrote: Caching or not is also a decision that you sometimes want to change after you see your application used in anger for a while. I like to provide a getter method on some application scoped bean that returns things like this, so I can change my decision to implement caching (or not), for any given set of data, without impacting the rest of the application -- it just calls the getter whenever it wants that data. Craig On Tue, 15 Feb 2005 13:58:32 -0500, Soaring Eagle [EMAIL PROTECTED] wrote: Without contesting the good points. I would say memory is cheap. For an application i worked on, we had about 6 different applications sitting on two 4 by 16 machines. The -xmx arguments of all apps put together came up to about 10 gigs RAM and the rest was left open. i dont think serious application owners care about money sunk on hardware. Further, I agree that caching requires an overhead in terms of keeping various clusters in synch or managing updates etc.. but clients can be kept transparent of all this. there may be a period of a few 100 milliseconds to upto a couple of seconds when clients may get dirty reads if the cache design allows it - but that could be a small price to pay over the general speed of cache access. Anyways - sorry for contributing to making this a totally non-struts topic! On Tue, 15 Feb 2005 11:03:01 -0500, Bill Schneider [EMAIL PROTECTED] wrote: how do you manage cross container caches if you are clustered - when you are using static members on classes? How do guarantee sameness on different physical machines? We do have a few caches in our application and are facing issues due to this design or an improperly implemented version of this design. Also, be aware that caching can actually degrade application performance in some cases. Everything you cache takes space in the JVM heap, reducing what's left to process active requests. So it's possible to lose more cycles in GC than you saved by caching in the first place. You can just keep increasing -Xmx, but that can hurt you if the JVM starts using swap space/virtual memory for the Java heap. If you're using a clustered cache, you also have the overhead of keeping the caches on each JVM in sync. That adds network as well as processing overhead for marshalling and unmarshalling cached objects. In summary, J2EE webapp performance involves a lot of tradeoffs. Caching is important but has to be used judiciously to be beneficial. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7253 x1140 f: 301-699-3180 - 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]
Problem using saveMessages method
I am not seeing errors in my jsp when using the following code. When I use the deprecated method saveErrors the error messages are displayed. What am I doing wrong? thanks in advance. Scott In my Action class I have the following code if(!handler.registerProduct(key)){// key not found errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionMessage(PRODUCT_KEY_INVALID,REGISTRANT));saveMessages(request, errors); forward = mapping.findForward(BACK); } in my jsp I have %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" % %@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" % html:form action="" logic:messagesPresent font color="#BF" h2Please correct the following errors before proceeding:/h2 /font ul html:messages id="error" libean:write name="error" //li /html:messages /ul brbr /logic:messagesPresent
Re: Problem using saveMessages method
BlankYou've switched to the wrong method. saveErrors(HttpServletRequest, ActionErrors) is deprecated in favour of saveErrors(HttpServletRequest, ActionMessages) - NOT saveMessages() - sveMessages stores messages under a different key to errors. Niall - Original Message - From: Burns, Scott To: user@struts.apache.org Sent: Wednesday, February 16, 2005 1:18 PM Subject: Problem using saveMessages method I am not seeing errors in my jsp when using the following code. When I use the deprecated method saveErrors the error messages are displayed. What am I doing wrong? thanks in advance. Scott In my Action class I have the following code if(!handler.registerProduct(key)){ // key not found errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionMessage(PRODUCT_KEY_INVALID,REGISTRANT)); saveMessages(request, errors); forward = mapping.findForward(BACK); } in my jsp I have %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % html:form action=register logic:messagesPresent font color=#BF h2Please correct the following errors before proceeding:/h2 /font ul html:messages id=error libean:write name=error //li /html:messages /ul brbr /logic:messagesPresent
Re: SQL
Which DAO are you using? .V CRANFORD, CHRIS wrote: This may be slightly off-topic but I'm sure others may have ran into this issue. If I have created a CallableStatement object using a SQL string, is there anyway to retreive that SQL string from the CallableStatement object ? ___ Chris Cranford Programmer/Developer SETECH Inc. Companies 6302 Fairview Rd, Suite 201 Charlotte, NC 28210 Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 Email: [EMAIL PROTECTED] -- Forums, Boards, Blogs and News in RiA http://www.boardVU.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: SQL
I don't know if there is an easier or more driver-independent way, but some JDBC drivers have a debug mode that can be enabled. Sorry, I don't have any specifics for you. Erik CRANFORD, CHRIS wrote: This may be slightly off-topic but I'm sure others may have ran into this issue. If I have created a CallableStatement object using a SQL string, is there anyway to retreive that SQL string from the CallableStatement object ? ___ Chris Cranford Programmer/Developer SETECH Inc. Companies 6302 Fairview Rd, Suite 201 Charlotte, NC 28210 Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Calling a datasource
In my server config file I have a data resource jdbc/MyData and in my data layer i call it like this. DataSource zDataSource = (javax.sql.DataSource)zContext.lookup(jdbc/MyData); This works, but I dont want to hardcode the jdbc name in the data class. How and where do I put this when I am not importing anything into the data class besides data specific classes? Thanks -B
Re: [OT] Re: SQL
I concur with Erik.. The only thing I can add is to Trap the SQL Statement and store in session variable or bean property before you do the CallableStatement.execute..that way you can reference the string later on. HTH, Martin- - Original Message - From: Erik Weber [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 9:12 AM Subject: [OT] Re: SQL I don't know if there is an easier or more driver-independent way, but some JDBC drivers have a debug mode that can be enabled. Sorry, I don't have any specifics for you. Erik CRANFORD, CHRIS wrote: This may be slightly off-topic but I'm sure others may have ran into this issue. If I have created a CallableStatement object using a SQL string, is there anyway to retreive that SQL string from the CallableStatement object ? ___ Chris Cranford Programmer/Developer SETECH Inc. Companies 6302 Fairview Rd, Suite 201 Charlotte, NC 28210 Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 Email: [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: Validator, Indexed Properties and error messages.
Check out http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html - Original Message - From: Cruz, Edward J. [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Subject: Validator, Indexed Properties and error messages. Date: Tue, 15 Feb 2005 11:03:26 -0500 Hello all, In review various documentation and several google search's I have found how to use the validator framework to validate indexed properties. In looking at the javadocs for the validator framework I see that the field class has an attribute called 'property' which (I think) tells the validator what property to associate any error message encountered during validation. My question is how do we associate the indexed properties error messages with different properties in the errors queue? For instance, if I have an indexed property that represents a list of items is there anyway to associate any error message for item 1 in the list using the property field. I want something like itemX as the property when the ActionMessage is placed into the queue as the property where the X represents the index of the item that the error happened on? Thanks for any Help Jamie Cruz Software Engineering - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Antony Joseph Available for consulting http://www.logicden.com -- ___ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling a datasource
There is a standard way to do this Brian, but this is not a Struts question. This is a Struts only list. -Original Message- From: Brian McGovern [EMAIL PROTECTED] Sent: Feb 16, 2005 9:23 AM To: Struts Users Mailing List user@struts.apache.org Subject: Calling a datasource In my server config file I have a data resource jdbc/MyData and in my data layer i call it like this. DataSource zDataSource = (javax.sql.DataSource)zContext.lookup(jdbc/MyData); This works, but I dont want to hardcode the jdbc name in the data class. How and where do I put this when I am not importing anything into the data class besides data specific classes? Thanks -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SQL
Depending on WHY you need the string, p6spy might solve your problem: http://www.p6spy.com Dennis CRANFORD, CHRIS [EMAIL PROTECTED] 02/16/2005 07:47 AM Please respond to Struts Users Mailing List user@struts.apache.org To user@struts.apache.org cc Subject SQL This may be slightly off-topic but I'm sure others may have ran into this issue. If I have created a CallableStatement object using a SQL string, is there anyway to retreive that SQL string from the CallableStatement object ? ___ Chris Cranford Programmer/Developer SETECH Inc. Companies 6302 Fairview Rd, Suite 201 Charlotte, NC 28210 Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 Email: [EMAIL PROTECTED]
Re: FW: error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei Not sure if this is anything you don't already know but your application is having problems finding the class file that should be located at: org.apache.struts.taglib.html.MessagesTei FYI: That file can be found in the struts.jar file - ensure this file is present in your /WEB-INF/lib/ folder. Tim On Wed, 16 Feb 2005 15:54:05 +0530, Vijay Kumar [EMAIL PROTECTED] wrote: -Original Message- From: Vijay Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 3:51 PM To: user@struts.apache.org Subject: error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei Hai iam doing dbcp in struts and iam getting following error Can anyone tell what the exact error is Bye vijay java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1332) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1181) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibrar yInfoImpl.java:419) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfo Impl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoIm pl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:41 8) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController. java:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.ja va:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext .java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:296) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 95) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:684) at java.lang.Thread.run(Thread.java:595) - 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: Calling a datasource
The resource-ref element in your web.xml file decouples the web app from the actual resource name (it gets mapped to whatever is specified in your server-specific JNDI configuration). As far as I know, you'll still need to hard-wire your app to whatever is in web.xml, but at least this way you are not hard-wiring it to a specific JNDI server's resource name. Erik Brian McGovern wrote: In my server config file I have a data resource jdbc/MyData and in my data layer i call it like this. DataSource zDataSource = (javax.sql.DataSource)zContext.lookup(jdbc/MyData); This works, but I dont want to hardcode the jdbc name in the data class. How and where do I put this when I am not importing anything into the data class besides data specific classes? Thanks -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [NEED] tutorials about Security in Struts
I'm looking for tutorial about security in Struts... One of the problems / strengths I noticed with Struts is that there are so many different ways to implement various things like security that it can sometimes be difficult to discover which is most suited to your needs. I'm still relatively new to Struts though from what I can tell using Container security with filters seems to be a good way to go, though I still haven't managed to get filters working correctly yet... So if anyone wants to offer me some help, please feel free ;-) If you try looking through the following links hopefully some of them may prove to be useful to you: http://www.manning-source.com/books/franciscus/franciscus_chp7.pdf http://www.atmo.arizona.edu:8080/doc/JDBCRealm-howto.html http://cymulacrum.net/writings/secfil/t1.html Tim Christopher On Wed, 16 Feb 2005 16:00:59 +0700, Pham Anh Tuan [EMAIL PROTECTED] wrote: Hi all, I'm looking for tutorial about security in Struts, plz help me to find them quickly ... thanks for advance Anh Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Calling a datasource
Thanks for the reply. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 10:34 AM To: Struts Users Mailing List Subject: Re: Calling a datasource The resource-ref element in your web.xml file decouples the web app from the actual resource name (it gets mapped to whatever is specified in your server-specific JNDI configuration). As far as I know, you'll still need to hard-wire your app to whatever is in web.xml, but at least this way you are not hard-wiring it to a specific JNDI server's resource name. Erik Brian McGovern wrote: In my server config file I have a data resource jdbc/MyData and in my data layer i call it like this. DataSource zDataSource = (javax.sql.DataSource)zContext.lookup(jdbc/MyData); This works, but I dont want to hardcode the jdbc name in the data class. How and where do I put this when I am not importing anything into the data class besides data specific classes? Thanks -B - 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: FW: error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
...and nowhere else. On Wed, 16 Feb 2005 15:25:02 +, Tim Christopher [EMAIL PROTECTED] wrote: FYI: That file can be found in the struts.jar file - ensure this file is present in your /WEB-INF/lib/ folder. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Temp file being written to / with Font
I am getting .tmp files written to a /temp directory in my webapp. The names are like +~JF38289.tmp. The size of these is pretty big, e.g. 35-65 kilobytes, and contains content relating to true type font files. I don't know if this is Struts related, but the Tomcat people have not claimed this problem as theirs, so I am trying Struts. If anyone has anything helpful, that would be appreciated. I am using Tomcat 5.0 and Struts 1.2.6. I am getting a temp file seemingly related to my fonts whenever I dynamically create new images with writing on the fly. My code to create the Font objects, reading from .ttf files, is as follows: public synchronized static Font getFont(String fontLogicalName, Map attributes) { Filefile = null; Fontfont = null; FileInputStream fontStream = null; String physicalName = null; String familyName = null; physicalName = (String)fonts.get(fontLogicalName + FONT); familyName = (String)fonts.get(fontLogicalName + FAMILY); attributes.put(TextAttribute.FONT,fontLogicalName); attributes.put(TextAttribute.FAMILY,familyName); if(physicalName == null) { try { font = new Font(attributes); } catch (Exception e) { // ERROR HANDLING } } try { file = new File(MY_CLASSPATH_TO_FONT_FILE); fontStream = new FileInputStream(file); font = Font.createFont(Font.TRUETYPE_FONT,fontStream); font = font.deriveFont(attributes); fontStream.close(); } catch (FileNotFoundException fnfe) { // ERROR HANDLING } catch (IOException ioe) { // ERROR HANDLING } catch (FontFormatException ffe) { // ERROR HANDLING } return font; } Does anyone see why I am getting these files? Is this Struts related? Any help? -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: automatic periodic execution of code
Are you trying to configure Quartz in web.xml as a servlet or in struts-config.xml as a struts plug-in? We're using Tomcat, not WebSphere, but it seems like we ran into a few issues trying to run it as a servlet. I don't remember what the issues were, sorry. We ended up running it as a struts plug-in. Here's some sample code: --snippet from struts-config.xml-- plug-in className=com.scholar.plugin.QuartzPlugin/ --QuartzPlugin class-- public class QuartzPlugin implements PlugIn { private final static Log log = LogFactory.getLog(QuartzPlugin.class.getName()); private String SCHOLAR_GROUP = ScholarGroup; Scheduler sched; public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException { log.info(Quartz starting); try { sched = StdSchedulerFactory.getDefaultScheduler(); sched.start(); // Register job listeners with the scheduler sched.addJobListener(new Stethoscope()); // Get the JobDetail object for our HeartBeatJob JobDetail jobDetail = sched.getJobDetail(HeartBeatJob, ScholarJobGroup); // Assign the Stethoscope to listen to the heart beat. jobDetail.addJobListener(Stethoscope.LISTENER_NAME); } catch (Exception e) { log.info(Quartz Scheduler failed to initialize: + e.toString()); throw new ServletException(e); } log.debug(Quartz started); } public void destroy() { log.info(Quartz stopping); try { sched.shutdown(); } catch (SchedulerException ex) { ex.printStackTrace(); } sched = null; } -Original Message- From: Gaet [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 2:47 AM To: Struts Users Mailing List Subject: Re: automatic periodic execution of code Hello, I know it is not the right place but does someone make Quartz works with Websphere??? I'm trying this since two days and I'm unable to make it worksand I haven't find a Quartz mailing list... If somebody has experience and can help me...TIA... Gaet - Original Message - From: Cedric Levieux [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 10:19 AM Subject: Re: automatic periodic execution of code Thanks for the Quartz project, I'll try it. for the moment I've got my own Thread Management system but using standard is for me a better thing. I hope that whan I'll stop tomcat Quatrz will shutdown too in a short time. Thx, Cedric - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 6:54 AM Subject: Re: automatic periodic execution of code I think Quartz has been the general consensus most times this has been debated on the list. Sng Wee Jim wrote: Hi, What would be the recommended way to execute some code periodically on tomcat/appserver? Should I 1. start a thread (not recommended in appserver and tomcat?) and do it in the run method 2. use third party tool like Quartz 3. or is there existing struts plugin to do it? - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - 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: Temp file being written to / with Font
Oh dear. I heard about something similar to this first time the other day. JDK 1.4 has a bug that does no release resources even when you release any Font objects. My company has had converstaion with Sun but what they ultimately recommend is upgrade to 1.5 Sorry, I cant provide more than this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation error and a value getting reset...?
I have a strange error with the Validator I think... I have a business and home phone on 1 page that I have the validation below on. Each number is 3 fields (area code, phone3, phone4). When there is _NO_ business phone at all, or a partial business phone, and I entered a fully qualified home phone, the homePhone3 is removed, and I get an error. I entered the homePhone3 again, and I am now in a loop. When I enter the business and home phone properly and post to the same page, my method gets called, and everything is ok. (I have a log.print in the method I am using as the 1st line of the method) In my logs, it does not seem like any of my methods are getting called, so I assume the Validator is intercepting this and causing this issue. !-- Require all Phone segments on App level, or if any segments are non-blank on page level -- field property=businessPhone_areaCode depends=requiredif,mask msg name=requiredif key=requiredif.phoneRequired/ msg name=mask key=mask.phoneRequired/ arg position=0 key=form.businessPhone_areaCode/ arg position=1 key=text.businessPhone/ var var-namefield[0]/var-name var-valueconcludeMode/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuetrue/var-value /var var var-namefield[1]/var-name var-valuebusinessPhone_3/var-value /var var var-namefieldTest[1]/var-name var-valueNOTNULL/var-value /var var var-namefield[2]/var-name var-valuebusinessPhone_4/var-value /var var var-namefieldTest[2]/var-name var-valueNOTNULL/var-value /var var var-namefieldJoin/var-name var-valueOR/var-value /var var var-namemask/var-name var-value^\d{3}$/var-value /var /field field property=businessPhone_3 depends=requiredif,mask msg name=requiredif key=mask.phoneRequired/ msg name=mask key=mask.phoneRequired/ arg position=0 key=form.businessPhone_3/ arg position=1 key=text.businessPhone/ var var-namefield[0]/var-name var-valuebusinessPhone_areaCode/var-value /var var var-namefieldTest[0]/var-name var-valueNOTNULL/var-value /var var var-namefield[1]/var-name var-valuebusinessPhone_4/var-value /var var var-namefieldTest[1]/var-name var-valueNOTNULL/var-value /var var var-namefieldJoin/var-name var-valueOR/var-value /var var var-namemask/var-name var-value^\d{3}$/var-value /var /field field property=businessPhone_4 depends=requiredif,mask msg name=requiredif key=mask.phoneRequired/
Re: [OT] RE: automatic periodic execution of code
Thanks for the answer brian ...I will have a look at your sample carrefully... Yes, I'm trying to configure Quartz with Websphere using a Servletbut I'm not sure of my Quartz.properties file to begin...:( The documentation is very poor and not much support...maybe I will have to use it another way (like your plugin suggestion).. Anyone have managed configure Quartz with Websphere? TIA Gaet - Original Message - From: Barnett, Brian W. [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Wednesday, February 16, 2005 5:34 PM Subject: [OT] RE: automatic periodic execution of code Are you trying to configure Quartz in web.xml as a servlet or in struts-config.xml as a struts plug-in? We're using Tomcat, not WebSphere, but it seems like we ran into a few issues trying to run it as a servlet. I don't remember what the issues were, sorry. We ended up running it as a struts plug-in. Here's some sample code: --snippet from struts-config.xml-- plug-in className=com.scholar.plugin.QuartzPlugin/ --QuartzPlugin class-- public class QuartzPlugin implements PlugIn { private final static Log log = LogFactory.getLog(QuartzPlugin.class.getName()); private String SCHOLAR_GROUP = ScholarGroup; Scheduler sched; public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException { log.info(Quartz starting); try { sched = StdSchedulerFactory.getDefaultScheduler(); sched.start(); // Register job listeners with the scheduler sched.addJobListener(new Stethoscope()); // Get the JobDetail object for our HeartBeatJob JobDetail jobDetail = sched.getJobDetail(HeartBeatJob, ScholarJobGroup); // Assign the Stethoscope to listen to the heart beat. jobDetail.addJobListener(Stethoscope.LISTENER_NAME); } catch (Exception e) { log.info(Quartz Scheduler failed to initialize: + e.toString()); throw new ServletException(e); } log.debug(Quartz started); } public void destroy() { log.info(Quartz stopping); try { sched.shutdown(); } catch (SchedulerException ex) { ex.printStackTrace(); } sched = null; } -Original Message- From: Gaet [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 2:47 AM To: Struts Users Mailing List Subject: Re: automatic periodic execution of code Hello, I know it is not the right place but does someone make Quartz works with Websphere??? I'm trying this since two days and I'm unable to make it worksand I haven't find a Quartz mailing list... If somebody has experience and can help me...TIA... Gaet - Original Message - From: Cedric Levieux [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 10:19 AM Subject: Re: automatic periodic execution of code Thanks for the Quartz project, I'll try it. for the moment I've got my own Thread Management system but using standard is for me a better thing. I hope that whan I'll stop tomcat Quatrz will shutdown too in a short time. Thx, Cedric - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 16, 2005 6:54 AM Subject: Re: automatic periodic execution of code I think Quartz has been the general consensus most times this has been debated on the list. Sng Wee Jim wrote: Hi, What would be the recommended way to execute some code periodically on tomcat/appserver? Should I 1. start a thread (not recommended in appserver and tomcat?) and do it in the run method 2. use third party tool like Quartz 3. or is there existing struts plugin to do it? - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - 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
Re: Temp file being written to / with Font
Thanks, Mark On Wed, 16 Feb 2005 17:07:36 +, Mark Benussi [EMAIL PROTECTED] wrote: Oh dear. I heard about something similar to this first time the other day. JDK 1.4 has a bug that does no release resources even when you release any Font objects. My company has had converstaion with Sun but what they ultimately recommend is upgrade to 1.5 Sorry, I cant provide more than this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to receive emails related to my questions only?
hi folks, I am new to the list, I did some search on my question but no luck. Is there a way that I only receive emails related to my post? thank you __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
String from the Resource Bundle into HTML:SUBMIT value atttibute???
Hi, I'm new to the servlets/jsp/struts world so I have a question which might seem trivial for most of you. I want to set the value attribute of the HTML:SUBMIT/ and HTML:RESET/ tags by taking the string from the resource bundle. I'm developing an English/Greek web site with 2 .properties files so in sake of elegancy and uniformity (?) I want to continue getting ALL the content from these 2 files. Although I found altKey and titleKey attributes, I don't seem to find any valueKey which would do the work. I forged some code that works but it seems a bit jackleg-ish (?) Here is a simplyfied fragment of it (omitted all null checkings): ... %@ page import=org.apache.struts.util.PropertyMessageResources % ... html:form action=/search.do table ... % PropertyMessageResources pmr = (PropertyMessageResources) application.getAttribute(org.apache.struts.action.MESSAGE); String resetTag = pmr.getMessage(request.getLocale() ,button.search.resettag); String submitTag = pmr.getMessage(request.getLocale() ,button.search.submittag); % tr tdhtml:reset value=%= resetTag %//td tdhtml:submit value=%= submitTag %//td /tr /table /html:form ... I guess I can tidy up a bit and have something like: html:reset value=%= ButtonTags.getMessage(button.search.resettag) %/ or maybe (not tested yet): bean:define id=resetButtomTag bean:message key=button.search.resettag/ /bean:define html:reset value=%= resetButtomTag % / but before I do that I would like to ask if there's something already available. Thnx, Kostas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to receive emails related to my questions only?
try using gmail... organizes your email pretty well. On Wed, 16 Feb 2005 10:06:02 -0800 (PST), Jonathan M Z [EMAIL PROTECTED] wrote: hi folks, I am new to the list, I did some search on my question but no luck. Is there a way that I only receive emails related to my post? thank you __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - 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: how to receive emails related to my questions only?
there's no server side configuration from the mailing list that i can tweak? thanks --- Soaring Eagle [EMAIL PROTECTED] wrote: try using gmail... organizes your email pretty well. On Wed, 16 Feb 2005 10:06:02 -0800 (PST), Jonathan M Z [EMAIL PROTECTED] wrote: hi folks, I am new to the list, I did some search on my question but no luck. Is there a way that I only receive emails related to my post? thank you __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - 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] __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
weird problem generating javascript validation from xml
hi folks, I am having some problem with javascript validation code generation. I have the following code in my jsp(only showing the relevant ones): html:form onsubmit=return validateLogonForm(this) action=/logon method=post script language=javascript html:javascript formName=logonForm/html:javascript /script I have the following in validation.xml form-validation !-- == Default Language Form Definitions = -- formset form name=logonForm field property=userName depends=minlength,maxlength arg0 key=prompt.username/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ var var-namemaxlength/var-name var-value16/var-value /var var var-nameminlength/var-name var-value3/var-value /var /field ... I have the following in my struts configuration file: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in form-beans form-bean name=logonForm type=com.xxx.software.xxx.security.LogonForm/ /form-beans action-mappings action path=/logon name =logonForm type=com.xxx.software.xxx.security.LogonAction /action /action-mappings The problem is that the default javascription functions from validation-rule.xml are generated(eg. validateByte, validateFloat) but not validateLogonForm(). what's wrong here? __ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to receive emails related to my questions only?
there's no server side configuration from the mailing list that i can tweak? Definitely not. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to receive emails related to my questions only?
On Wed, 16 Feb 2005 10:06:02 -0800 (PST), Jonathan M Z [EMAIL PROTECTED] wrote: hi folks, I am new to the list, I did some search on my question but no luck. Is there a way that I only receive emails related to my post? thank you You might try using the list via the GMane archives, which provide a threaded interface in a web browser; should be a reasonable way to key in on your topics and ignore others. If you have a USENET client, you can use it with GMane in an even more sophisticated manner, such as killing topics you don't want to see, etc. http://news.gmane.org/gmane.comp.jakarta.struts.user Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Narrow minds are weapons made for mass destruction -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to receive emails related to my questions only?
What if you know the answer to someone's question? .V Jonathan M Z wrote: hi folks, I am new to the list, I did some search on my question but no luck. Is there a way that I only receive emails related to my post? thank you __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 -- Forums, Boards, Blogs and News in RiA http://www.boardVU.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JavaScript Integer Validation - Leading zeros
Has anyone else noticed the JavaScript function for Integer validation does goofy things when you have a leading zero? Try passing these number into an Integer field: 045 075 078 085 The first 2 will pass, the second 2 will fail. After looking at the source I found out that the JavaScript function assumes that a value that has leading zeros is an octal number and will fail anything that isn't 0-7. What I don't understand is why it does this. Why does the JS validation differ from the Java validation? Once I commented out that section of the JS code, it worked fine. Shouldn't they validate the same? NOTE: There is also code looking for hex values if I recall correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaScript Integer Validation - Leading zeros
What I don't understand is why it does this. Why does the JS validation differ from the Java validation? JavaScript is NOT Java!! They have confusingly similar names, but they are totally different. There's no reason to expect that the performance of one should be similar to the performance of the other in any respect. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaScript Integer Validation - Leading zeros
I think I remember reading somewhere that the Validator plugin enforces these validations as a rule, which means the behavior should be consistent between their JS as well as Java validation codes. They do this to match what the Java compiler accepts, which IMO is strange since the validation should target the way the webapp is expected to be used, as opposed to the language used to write it. Anyway, this is why I ended up using mask validation instead, whenever I needed validation that should allow leading zeroes. Hubert ps. IIRC, Validator accepts valid hex integers in the form of 0xCAFE, again same as the compiler. On Wed, 16 Feb 2005 13:14:35 -0600, snekse [EMAIL PROTECTED] wrote: Has anyone else noticed the JavaScript function for Integer validation does goofy things when you have a leading zero? Try passing these number into an Integer field: 045 075 078 085 The first 2 will pass, the second 2 will fail. After looking at the source I found out that the JavaScript function assumes that a value that has leading zeros is an octal number and will fail anything that isn't 0-7. What I don't understand is why it does this. Why does the JS validation differ from the Java validation? Once I commented out that section of the JS code, it worked fine. Shouldn't they validate the same? NOTE: There is also code looking for hex values if I recall correctly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
STRUTS popup action jsp not finding path as normal
I have several jsp's in the same folder. They all have... script language=JavaScript src=../includes/calendar.js/script at the top. but when one is used in a popup via window.open action it does not find the .js. I tried other paths and none work. Where is struts going in this situation as far as a home path? -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: String from the Resource Bundle into HTML:SUBMIT value atttibute???
html:submit property=savebean:message key=global.button.save //html:submit Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] 2/16/2005 11:23:51 AM Hi, I'm new to the servlets/jsp/struts world so I have a question which might seem trivial for most of you. I want to set the value attribute of the HTML:SUBMIT/ and HTML:RESET/ tags by taking the string from the resource bundle. I'm developing an English/Greek web site with 2 .properties files so in sake of elegancy and uniformity (?) I want to continue getting ALL the content from these 2 files. Although I found altKey and titleKey attributes, I don't seem to find any valueKey which would do the work. I forged some code that works but it seems a bit jackleg-ish (?) Here is a simplyfied fragment of it (omitted all null checkings): ... %@ page import=org.apache.struts.util.PropertyMessageResources % ... html:form action=/search.do table ... % PropertyMessageResources pmr = (PropertyMessageResources) application.getAttribute(org.apache.struts.action.MESSAGE); String resetTag = pmr.getMessage(request.getLocale() ,button.search.resettag); String submitTag = pmr.getMessage(request.getLocale() ,button.search.submittag); % tr tdhtml:reset value=%= resetTag %//td tdhtml:submit value=%= submitTag %//td /tr /table /html:form ... I guess I can tidy up a bit and have something like: html:reset value=%= ButtonTags.getMessage(button.search.resettag) %/ or maybe (not tested yet): bean:define id=resetButtomTag bean:message key=button.search.resettag/ /bean:define html:reset value=%= resetButtomTag % / but before I do that I would like to ask if there's something already available. Thnx, Kostas - 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: error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
We had a possible related problem where we had two JSP pages in separate frames that both were trying to include a common JSP include file. It seems the compiler (Jasper since we use Tomcat), was conflicted when trying to handle two pages simultaneously that had a common include. Our solution was to just copy the contents of the common include into each JSP. Another solution might be to precompile the pages. But again, I may be explaining a solution to a different problem than you are seeing. Here is a partial stack trace of our problem for comparison. 2005-02-04 09:18:20 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /admin/en/html/home/search.jsp(2,0) Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :357) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :81) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:33 9) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) -Original Message- From: Vijay Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 2:21 AM To: user@struts.apache.org Subject: error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei Hai iam doing dbcp in struts and iam getting following error Can anyone tell what the exact error is Bye vijay java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1332) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1181) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibrar yInfoImpl.java:419) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfo Impl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoIm pl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:41 8) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController. java:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.ja va:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext .java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:296) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 95) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:684) at java.lang.Thread.run(Thread.java:595) - To
Re: STRUTS popup action jsp not finding path as normal
Hi Eric... please see Ted Husted's Struts-Tips #9 #10 (http://husted.com/struts/tips/009.html / http://husted.com/struts/tips/010.htm) I think they might give you a hint... ;^) Good luck! Carlos - Original Message - From: Eric Lemle [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, February 16, 2005 1:29 PM Subject: STRUTS popup action jsp not finding path as normal I have several jsp's in the same folder. They all have... script language=JavaScript src=../includes/calendar.js/script at the top. but when one is used in a popup via window.open action it does not find the .js. I tried other paths and none work. Where is struts going in this situation as far as a home path? -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- 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: [HELP] Using scriptlet to to generate a property
You probably have to remove the initial double-quote: html:link href='%= / + name + /index.jsp %' -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 8:46 PM To: Struts Users Mailing List Subject: [HELP] Using scriptlet to to generate a property html:link href='%= / + name + /index.jsp %' I don't know how the line above is correct ? Anyone can help me where can I get instructions how to make a complete expression. thanks for advance Anh Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html-el oddities
I suggest you set this up so you can step through this in your debugger. My theory is that somehow the association with the BeanInfo class is not happening. That would cause the symptom you're seeing, but I don't know how it could get into that state. -Original Message- From: Trevor Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 8:11 AM To: Struts Users Mailing List Subject: RE: html-el oddities Thanks -- your option (2) seems to be working fairly well for me now. I still have to see if struts will accept the faked up input tag and stick the data into the form bean, but I don't see any reason why that shouldn't work. I wonder why (1) wouldn't work for me though -- it gave me the same result as the JSTL tag did. (It iterated fine but would just print out ${cur.prdNumber} rather than the actual vaule) It seems odd that the EL tag does everything except actually do the EL-evaulation. --Trevor -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 10:31 AM To: Struts Users Mailing List Subject: RE: html-el oddities i can think of 2 things you can try: 1) use logic:iterate instead of c:forEach i have found that jstl-scoped objects do not always work well with struts tags 2) simply don't use the html-el:text tag you can achieve the same result with: input type=text name=quantity(c:out value='${cur.PrdNumber}'/) maxlength=5 size=3 value= hth, woodchuck --- Trevor Hill [EMAIL PROTECTED] wrote: To try and attack this question from another angle, is there any reason that this wouldn't work (or would work differently) in Struts(-el) 1.1 as opposed to 1.2.x? I'm limited to using 1.1 only, but cannot find any old 1.1 documentation to work from. Thanks, --Trevor -Original Message- From: Trevor Hill Sent: February 14, 2005 8:33 AM To: Struts Users Mailing List Subject: RE: html-el oddities As I said in my original question, I had tried 'cur.prdNumber' and had the same result, and so had tried shoving the value of cur.prdNumber into a page-scoped variable named 'curPrdNumber', with the exact same less-than-spectacular results. So I guess I'm still stuck, but thanks. -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: February 11, 2005 4:54 PM To: Struts Users Mailing List Subject: Re: html-el oddities I think you are missing a dot :) cur.PrdNumber not curPrdNumber Try: input type=text name=quantity(${cur.PrdNumber}) maxlength=5 size=3 value=/td Trevor Hill wrote: I'm having an interesting issue. I have a form in which the only input is a bunch of text boxes which correspond to quantities of products. The associated form thus consists of just a HashMap. My JSP page is as follows: ... header stuff ... tr thProduct/th thProduct Number/th thPrice/th thQuantity to add/th /tr c:forEach items=${priceList} var=cur c:set scope=page var=curPrdNumber value=${cur.prdNumber}/ tr tdc:out value=${cur.itemName}//td tdc:out value=${cur.prdNumber}//td tdfmt:formatNumber type=currency currencyCode=${cur.currencyCode} value=${cur.price}//td td style=text-align:righthtml-el:text property=quantity(${curPrdNumber}) size=3 maxlength=5 //td /tr ... submit button, close form, etc However, the output of the last TD is: input type=text name=quantity(${curPrdNumber}) maxlength=5 size=3 value=/td which is correct except for that whole not interpreting the EL expression bit. I've tried using a page-scoped temporary variable (as above), I've tried directly referencing ${cur.prdNumber} in the html-el:text tag, I've checked all my TLDs and the struts-el.jar files to ensure they're in the correct place and checked the web.xml file to make sure all the TLDs are mentioned. There are no error messages in my application's log or my application server's log that would suggest some class or configuration file being out of whack. All my other taglibs (normal struts tags and jstl tags) are working just fine, and the html-el tag /seems/ to work fine from a Struts standpoint in that it makes an input type=text just like it should, but no el-evaluation. This problem doesn't appear to be specific to the mapped property quantity, as I can try other html-el tags that directly refer to either ${curPrdNumber} or {$cur.prdNumber}, and I get the same result -- no evaluation. Am I missing something glaringly obvious? Thanks, --Trevor - This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable
Re: Validator, Indexed Properties and error messages.
Thank you for your help. Antony Joseph ajosephmi at lycos.com writes: Check out http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validator, Indexed Properties and error messages.
Just my 2 cents here, but isn't this an awfully awkward way of extending validations? Tiles does it nicely by putting an extend attribute on the tile definition, which allows sub-definitions to do overriding. I would expect that when Struts 1.3+ allows extending on all configuration elements, it mimics what Tiles has achieved. Thanks, Paul -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Edward Cruz Sent: Wednesday, February 16, 2005 1:55 PM To: user@struts.apache.org Subject: Re: Validator, Indexed Properties and error messages. Thank you for your help. Antony Joseph ajosephmi at lycos.com writes: Check out http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: weird problem generating javascript validation from xml
try html:javascript formName=logonForm dynamicJavascript=true On Wed, 16 Feb 2005 10:39:11 -0800 (PST), Jonathan M Z [EMAIL PROTECTED] wrote: hi folks, I am having some problem with javascript validation code generation. I have the following code in my jsp(only showing the relevant ones): html:form onsubmit=return validateLogonForm(this) action=/logon method=post script language=javascript html:javascript formName=logonForm/html:javascript /script I have the following in validation.xml form-validation !-- == Default Language Form Definitions = -- formset form name=logonForm field property=userName depends=minlength,maxlength arg0 key=prompt.username/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ var var-namemaxlength/var-name var-value16/var-value /var var var-nameminlength/var-name var-value3/var-value /var /field ... I have the following in my struts configuration file: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in form-beans form-bean name=logonForm type=com.xxx.software.xxx.security.LogonForm/ /form-beans action-mappings action path=/logon name =logonForm type=com.xxx.software.xxx.security.LogonAction /action /action-mappings The problem is that the default javascription functions from validation-rule.xml are generated(eg. validateByte, validateFloat) but not validateLogonForm(). what's wrong here? __ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com - 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: String from the Resource Bundle into HTML:SUBMIT value atttibute???
Try in your action... MessageResources mr=(MessageResources)request.getAttribute(org.apache.struts.action.MESSAGE); request.setAttribute(submitTag , mr.getMessage(submitTag ) ); //put it in the request or session or in your form bean the in the JSP... (maybe) bean:define id=submitTag name=myFormBean property=submitTag / //bean version html:submit property='%= +submitTag %' submit/html:submit -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] 2/16/2005 11:23:51 AM Hi, I'm new to the servlets/jsp/struts world so I have a question which might seem trivial for most of you. I want to set the value attribute of the HTML:SUBMIT/ and HTML:RESET/ tags by taking the string from the resource bundle. I'm developing an English/Greek web site with 2 .properties files so in sake of elegancy and uniformity (?) I want to continue getting ALL the content from these 2 files. Although I found altKey and titleKey attributes, I don't seem to find any valueKey which would do the work. I forged some code that works but it seems a bit jackleg-ish (?) Here is a simplyfied fragment of it (omitted all null checkings): ... %@ page import=org.apache.struts.util.PropertyMessageResources % ... html:form action=/search.do table ... % PropertyMessageResources pmr = (PropertyMessageResources) application.getAttribute(org.apache.struts.action.MESSAGE); String resetTag = pmr.getMessage(request.getLocale() ,button.search.resettag); String submitTag = pmr.getMessage(request.getLocale() ,button.search.submittag); % tr tdhtml:reset value=%= resetTag %//td tdhtml:submit value=%= submitTag %//td /tr /table /html:form ... I guess I can tidy up a bit and have something like: html:reset value=%= ButtonTags.getMessage(button.search.resettag) %/ or maybe (not tested yet): bean:define id=resetButtomTag bean:message key=button.search.resettag/ /bean:define html:reset value=%= resetButtomTag % / but before I do that I would like to ask if there's something already available. Thnx, Kostas - 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: JavaScript Integer Validation - Leading zeros
On Wed, 16 Feb 2005 14:19:15 -0500, Slattery, Tim - BLS [EMAIL PROTECTED] wrote: What I don't understand is why it does this. Why does the JS validation differ from the Java validation? JavaScript is NOT Java!! They have confusingly similar names, but they are totally different. There's no reason to expect that the performance of one should be similar to the performance of the other in any respect. Although JavaScript is not Java, the language designers adopted the same syntax for integer literals that is found in Java (and C/C++/C#) ... integer literals with a leading 0 are interpreted to be octal literals, unless they start with 0x or 0X to indicate hexadecimal literals. Tim Slattery Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to integrate struts project with hibernate?
We are using struts framework in our J2EE web application. In struts there is a LabelValueBean class, is it a good practice to use LabelValueBean in our application? For example, DAO returns a list of LabelValueBean for html drop down? There was an argument saying that it is not good to use LabelValueBean since some time later if we are not using the struts framework, we need to take the labelValueBean out. Thanks. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: Temp file being written to / with Font
I was too fast in responding. I switched to Tiger (jre 5.0) but still have the same behavior when I create an image using a Font object. Did the change to 5.0 solve your companies' problem? On Wed, 16 Feb 2005 17:07:36 +, Mark Benussi [EMAIL PROTECTED] wrote: Oh dear. I heard about something similar to this first time the other day. JDK 1.4 has a bug that does no release resources even when you release any Font objects. My company has had converstaion with Sun but what they ultimately recommend is upgrade to 1.5 Sorry, I cant provide more than this. -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
? with invalid session
If the session expires and then they click on something it runs the action and then the action tries to get some info from the session which causes a null pointer exception. Is there anyway to have a pre-filter rather than a post-filter to send them to the page that says, says ex.- 'your session has expired, please login again' -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ? with invalid session
Eric Lemle wrote the following on 2/16/2005 4:22 PM: If the session expires and then they click on something it runs the action and then the action tries to get some info from the session which causes a null pointer exception. Is there anyway to have a pre-filter rather than a post-filter to send them to the page that says, says ex.- 'your session has expired, please login again' Sure just set up a servlet filter that looks for a valid session and if there isn't one you forward them to that page. Define your filter in your web.xml. I think the tomcat docs show an example... but for my app I have something like... filter filter-nameNdaFilter/filter-name filter-classcom.nielsenmedia.nda.ui.filter.NdaFilter/filter-class /filter filter-mapping filter-nameNdaFilter/filter-name url-pattern*.do/url-pattern /filter-mapping filter-mapping filter-nameNdaFilter/filter-name url-pattern*.jsp/url-pattern /filter-mapping In your custom Filter class which extends javax.servlet.Filter, you'll have a doFilter method in it where you'd add something like... HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)res; String contextPath = request.getContextPath(); HttpSession session = request.getSession(false); if (session == null) { log.debug(The session no longer exists); response.sendRedirect(contextPath+/sessionTimeOut.jsp); return; } else { filterChain.doFilter(req, res); } (Could be much better ways to accomplish the above, but the above should work) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to integrate struts project with hibernate?
IMO, it is not wise to have your DAO return a list of LabelValueBean objects. I would be more likely to use a Map or a simple bean to do that instead of marrying your DAO layer to Struts. Larry On Wed, 16 Feb 2005 13:17:12 -0800 (PST), Carl Smith [EMAIL PROTECTED] wrote: We are using struts framework in our J2EE web application. In struts there is a LabelValueBean class, is it a good practice to use LabelValueBean in our application? For example, DAO returns a list of LabelValueBean for html drop down? There was an argument saying that it is not good to use LabelValueBean since some time later if we are not using the struts framework, we need to take the labelValueBean out. Thanks. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j struts
I want to use log4j with my struts app. Can I use the struts-config.xml to specify log4j as an init parameter and point it to its external properties file? Or do i have to make my own front controller servlet for that? thanks
RE: log4j struts
yes, you can. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: 2005/02/16 4:48 PM To: Struts Users Mailing List Subject: log4j struts I want to use log4j with my struts app. Can I use the struts-config.xml to specify log4j as an init parameter and point it to its external properties file? Or do i have to make my own front controller servlet for that? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Menu
Hi, I am developing a software for a company using struts. What is the best way to create the menus to navigate in the system? JSF? Simple HTML with javascript? Tag libraries? Thanks in advance, Marcelo Epstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Menu
Take a look at this site: http://struts-menu.sourceforge.net/ -Original Message- From: Marcelo Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 5:49 PM To: Struts Users Mailing List Subject: Menu Hi, I am developing a software for a company using struts. What is the best way to create the menus to navigate in the system? JSF? Simple HTML with javascript? Tag libraries? Thanks in advance, Marcelo Epstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to integrate struts project with hibernate?
I would say,... the LabelValueBean is just a data structure that could be in java.util, so you could just put that class in your ejb layer if you want. Marrying is relative, aren't we all married to java.util anyway. If you always have web clients it will be helpful and if not I don't think it will hurt or require other struts classes. You could use the LabelValueBean in Swing also. Most Bean utils may fall into this category too. I did a j2ee app a few years back and had to basically write my own LabelValueBean, now I would just steal the struts one! Am I wrong? Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] 2/16/2005 2:45:25 PM IMO, it is not wise to have your DAO return a list of LabelValueBean objects. I would be more likely to use a Map or a simple bean to do that instead of marrying your DAO layer to Struts. Larry On Wed, 16 Feb 2005 13:17:12 -0800 (PST), Carl Smith [EMAIL PROTECTED] wrote: We are using struts framework in our J2EE web application. In struts there is a LabelValueBean class, is it a good practice to use LabelValueBean in our application? For example, DAO returns a list of LabelValueBean for html drop down? There was an argument saying that it is not good to use LabelValueBean since some time later if we are not using the struts framework, we need to take the labelValueBean out. Thanks. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' - 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: log4j struts
You can configure Log4J from a Struts plugin, although you will get a configuration warning when Struts starts up before the plugin fires. Here's some init code I've used (roughly... I don't actually use init parameters and I construct a real path from a virtual path, and I do some other hackery of the config file on-the-fly, so this is trimmed down a bit, but I think it's close to what you want)... String lConfigFile = servlet.getInitParameter(pathToLog4JConfigFile); FileReader fr = new FileReader(lConfigFile); BufferedReader br = new BufferedReader(fr); StringBuffer sbXML = new StringBuffer(); String line = ; while ((line = br.readLine()) != null) { sbXML.append(line); } br.close(); String xml = sbXML.toString(); InputStream isXML = new ByteArrayInputStream(xml.getBytes()); new DOMConfigurator().doConfigure(isXML, LogManager.getLoggerRepository()); Category cat = Category.getInstance(getClass().getName()); cat.info(Log4J initialized); Might not be the prettiest, but it works. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ye, Young wrote: yes, you can. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: 2005/02/16 4:48 PM To: Struts Users Mailing List Subject: log4j struts I want to use log4j with my struts app. Can I use the struts-config.xml to specify log4j as an init parameter and point it to its external properties file? Or do i have to make my own front controller servlet for that? 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]
Re: log4j struts
If you do this in a ServletContextListener's contextInitialized() method you won't get the warnings, because this fires before ActionServlet starts up. Craig On Wed, 16 Feb 2005 17:27:14 -0500, Frank W. Zammetti [EMAIL PROTECTED] wrote: You can configure Log4J from a Struts plugin, although you will get a configuration warning when Struts starts up before the plugin fires. Here's some init code I've used (roughly... I don't actually use init parameters and I construct a real path from a virtual path, and I do some other hackery of the config file on-the-fly, so this is trimmed down a bit, but I think it's close to what you want)... String lConfigFile = servlet.getInitParameter(pathToLog4JConfigFile); FileReader fr = new FileReader(lConfigFile); BufferedReader br = new BufferedReader(fr); StringBuffer sbXML = new StringBuffer(); String line = ; while ((line = br.readLine()) != null) { sbXML.append(line); } br.close(); String xml = sbXML.toString(); InputStream isXML = new ByteArrayInputStream(xml.getBytes()); new DOMConfigurator().doConfigure(isXML, LogManager.getLoggerRepository()); Category cat = Category.getInstance(getClass().getName()); cat.info(Log4J initialized); Might not be the prettiest, but it works. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ye, Young wrote: yes, you can. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: 2005/02/16 4:48 PM To: Struts Users Mailing List Subject: log4j struts I want to use log4j with my struts app. Can I use the struts-config.xml to specify log4j as an init parameter and point it to its external properties file? Or do i have to make my own front controller servlet for that? 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]
Strategies for Large Struts Application (LONG)
I inherited a rather large Struts application a couple of months ago. It was rather badly organized and almost no test code exists for either the business code or Actions. One of the many problems I have working with this code is that all the Action classes (200+) exist in one flat package with no consistent naming structure. The JSPs (200+) also all sat in one flat folder with no consistent naming structure either. Recently, I have begun the frustrating (but worth-it-in-the-long-run-...I hope) process of splitting the application into more manageable parts. I created an extensive use-case list and seperated them into about eight clusters. I created a folder for each cluster and put the JSPs into their respective folder. It took a lot of work to get that together and fix the struts-config. All the links from one JSP to another work if you go through an Action first, but if you go directly to the JSP, a lot of links fail. My structure is sort of like this: webapp\jsps\similarActions1 webapp\jsps\similarActions2 webapp\jsps\similarActions3 webapp\images webapp\css webapp\js What is the best solution? Put a base href= tag on every page, or insert the context path before every link, image source, frame source. OR I have an idea of using JavaScript to just parse through all the links, image sources, and prepend the context path. Anyone who has had trouble with relative links and links breaking when you move stuff around, I'd be happy to heard your thoughts on this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j struts
Cool! That warning has always bugged me a bit, but not enough to spend any time thinking about the cause and solution. Thanks for the heads-up Craig! Frank Craig McClanahan wrote: If you do this in a ServletContextListener's contextInitialized() method you won't get the warnings, because this fires before ActionServlet starts up. Craig On Wed, 16 Feb 2005 17:27:14 -0500, Frank W. Zammetti [EMAIL PROTECTED] wrote: You can configure Log4J from a Struts plugin, although you will get a configuration warning when Struts starts up before the plugin fires. Here's some init code I've used (roughly... I don't actually use init parameters and I construct a real path from a virtual path, and I do some other hackery of the config file on-the-fly, so this is trimmed down a bit, but I think it's close to what you want)... String lConfigFile = servlet.getInitParameter(pathToLog4JConfigFile); FileReader fr = new FileReader(lConfigFile); BufferedReader br = new BufferedReader(fr); StringBuffer sbXML = new StringBuffer(); String line = ; while ((line = br.readLine()) != null) { sbXML.append(line); } br.close(); String xml = sbXML.toString(); InputStream isXML = new ByteArrayInputStream(xml.getBytes()); new DOMConfigurator().doConfigure(isXML, LogManager.getLoggerRepository()); Category cat = Category.getInstance(getClass().getName()); cat.info(Log4J initialized); Might not be the prettiest, but it works. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ye, Young wrote: yes, you can. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: 2005/02/16 4:48 PM To: Struts Users Mailing List Subject: log4j struts I want to use log4j with my struts app. Can I use the struts-config.xml to specify log4j as an init parameter and point it to its external properties file? Or do i have to make my own front controller servlet for that? 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] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to integrate struts project with hibernate?
Not wrong, just a bit contradictory. ;-) LabelValueBean is just a data structure I agree that LabelValueBean is a simple little data structure. Marrying is relative, aren't we all married to java.util anyway. Major difference - java.util is core Java, Struts is not. If you always have web clients it will be helpful and if not I don't think it will hurt or require other struts classes. Huh? I think it would be nonsensical to include struts with a Swing app for the sake of LabelValueBean. Sure, disk is cheap, but c'mon. :-D I would just steal the struts one! Exactly, it is so darn simple, why is it even in struts (if not for us to steal)? Steal the struts one, and call it your own - if only because you get the benefit of not having a dependency from your DAO into struts. Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
common information in every view
Hello, I am building an application that will store menu options in a database. These menu options will display on every page in the application. I am interested in finding the most efficient way of doing this. My options as I see them are: 1. provide a base action for the entire site (similar to struts-mailreader) that will provide me with a method to load the menu information and store it in the request. This option is heavy on database traffic. 2. still use the base action but store the information in the session when the user first visits the site. This option is an awkward type of cache that might behave strangely with high volume to the site. 3. load the menu options one time from the database and place in the application scope. While this is the best memory option (and probably the most efficient for speed), I'm not sure how I would reload this after a change was made to the underlying database (or even detect that a change was made). I suppose that there is a final option which would be to use a chaching layer between for database transactions and go with option 1. Is a base action the best approach? thanks in advance for your comments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
showing data
Hi guys. I'm developing a web site using struts. I want to know if there is a tool that help me showing data, i mean, i have a database where there is a table user. I have a query with a set of records about this table and i want to show in a table. But I want to know if there is a tool like STRUTS-MENU. This tool help me in menu but what about showing a set of records?. Is there a tool like that?. I want to solve my pagination problem, because i'd like to show my data 10 by 10, like google results. thanks for ur help -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: showing data
Have a look at DisplayTag http://sourceforge.net/projects/displaytag/ /robert Rafael Taboada wrote: Hi guys. I'm developing a web site using struts. I want to know if there is a tool that help me showing data, i mean, i have a database where there is a table user. I have a query with a set of records about this table and i want to show in a table. But I want to know if there is a tool like STRUTS-MENU. This tool help me in menu but what about showing a set of records?. Is there a tool like that?. I want to solve my pagination problem, because i'd like to show my data 10 by 10, like google results. thanks for ur help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator, Indexed Properties and error messages.
Its not down to Struts, since Validator is a separate project and form ineritance (using extends) has already been put into the development version of Validator (i.e. Validator 1.2) - so its arrival is purely dependant on a release of that version of Validator. http://jakarta.apache.org/commons/validator/changes-report.html I agree with you, it is awkward and has limitations http://www.mail-archive.com/user@struts.apache.org/msg21389.html but its available to use now until better versions are released. Niall - Original Message - From: Benedict, Paul C [EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 8:39 PM Just my 2 cents here, but isn't this an awfully awkward way of extending validations? Tiles does it nicely by putting an extend attribute on the tile definition, which allows sub-definitions to do overriding. I would expect that when Struts 1.3+ allows extending on all configuration elements, it mimics what Tiles has achieved. Thanks, Paul -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Edward Cruz Sent: Wednesday, February 16, 2005 1:55 PM Thank you for your help. Antony Joseph ajosephmi at lycos.com writes: Check out http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP] Using scriptlet to to generate a property
Thanks Karr :)! - Original Message - From: Karr, David [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, February 17, 2005 3:13 AM Subject: RE: [HELP] Using scriptlet to to generate a property You probably have to remove the initial double-quote: html:link href='%= / + name + /index.jsp %' -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 8:46 PM To: Struts Users Mailing List Subject: [HELP] Using scriptlet to to generate a property html:link href='%= / + name + /index.jsp %' I don't know how the line above is correct ? Anyone can help me where can I get instructions how to make a complete expression. thanks for advance Anh Tuan - 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]
problem with securityfilter
Hi all, first i'd like to say sorry if someone already asked this question before, i'm develop web app with struts and tomcat as web server + securityfilter(securityfilter.sourceforge.net) , my problem is if someone already login , and that user open new window browser securityfilter can't blocked this request (i mean user does not have to face login page again ) as far as i know this problem occure because user have same session , and my question is how can i fix it ? (i want every user have to face login page before using app ) thank you for you answer
Re: problem with securityfilter
Hari, I'm not sure exactly what the concern is? The nature of sessions requires that one of two options be used. 1) I can re-write all URLs to contain a special session key. This key in the URL is then used by the servlet container to locate and unserialize the session object corresponding to that key. If the client browser has cookies enabled then another option is available 2) the key is placed in a cookie that exists until the browser is closed, at which point it is deleted. On each request the servlet container uses the key stored in the cookie to locate and unserialize the session object. With this in mind, the only time that someone could bypass security filter is if they have logged in, NEVER closed the browser, and open a new window from within the original window. Once the browser has been closed the session key is destroyed. The biggest risk is if your users are at a public terminal and just walk away without closing the browser. If you provide the user with a logout option then you can destroy the session regardless of whether the browser has been closed or not. I'm not sure if this applies to SecurityFilter in general, since I have never used it and as I understand it, SecurityFilter simply wraps the container's security management. Good Luck... DW On Thu, 17 Feb 2005 10:53:49 +0700, Hari Saptoadi [EMAIL PROTECTED] wrote: Hi all, first i'd like to say sorry if someone already asked this question before, i'm develop web app with struts and tomcat as web server + securityfilter(securityfilter.sourceforge.net) , my problem is if someone already login , and that user open new window browser securityfilter can't blocked this request (i mean user does not have to face login page again ) as far as i know this problem occure because user have same session , and my question is how can i fix it ? (i want every user have to face login page before using app ) thank you for you answer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles scope headache assistance needed.
I have the following problem with scope and tiles. The whole point of this is to be able to put a holder around items presented in a list on the page to give better delineation. Here is what I am attempting to do. logic:iterate id=quote property=quoteValues table tr td bean:write name=quote property=size/ /td /tr /table /logic:iterate I would like to define the following tile definition: definition extends=.table.holder name=.quote put name=content value=/quote.jsp/ /definition And have quote.jsp as follows: table tr td bean:write name=quote property=size/ /td /tr /table And then switch the page to the following: logic:iterate id=quote property=quoteValues tiles:insert definition=.quote flush=false/ /logic:iterate I always get Cannot find bean quote in any scope no matter what I do. I have tried many variations of tiles:useAttribute/ and tiles:mportAttribute/. I do not want to want to simply pass a string to the tile. I need to be able to make any bean availble to other tiles inserted into a page. I would greatly appreciate any advice on how to make this available to my subtiles. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles scope headache assistance needed.
I have the following problem with scope and tiles. The whole point of this is to be able to put a holder around items presented in a list on the page to give better delineation. Here is what I am attempting to do. logic:iterate id=quote property=quoteValues table tr td bean:write name=quote property=size/ /td /tr /table /logic:iterate I would like to define the following tile definition: definition extends=.table.holder name=.quote put name=content value=/quote.jsp/ /definition And have quote.jsp as follows: table tr td bean:write name=quote property=size/ /td /tr /table And then switch the page to the following: logic:iterate id=quote property=quoteValues tiles:insert definition=.quote flush=false/ /logic:iterate I always get Cannot find bean quote in any scope no matter what I do. I have tried many variations of tiles:useAttribute/ and tiles:mportAttribute/. I do not want to want to simply pass a string to the tile. I need to be able to make any bean availble to other tiles inserted into a page. I would greatly appreciate any advice on how to make this available to my subtiles. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with securityfilter
Thank for you reply DW :) , what make me concern about this situation is, owner of this project doesn't want someone could bypass security by open new window from within the original window , so he pushed me to make it happen - Original Message - From: Mr Maillist [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, February 17, 2005 11:34 AM Subject: Re: problem with securityfilter Hari, I'm not sure exactly what the concern is? The nature of sessions requires that one of two options be used. 1) I can re-write all URLs to contain a special session key. This key in the URL is then used by the servlet container to locate and unserialize the session object corresponding to that key. If the client browser has cookies enabled then another option is available 2) the key is placed in a cookie that exists until the browser is closed, at which point it is deleted. On each request the servlet container uses the key stored in the cookie to locate and unserialize the session object. With this in mind, the only time that someone could bypass security filter is if they have logged in, NEVER closed the browser, and open a new window from within the original window. Once the browser has been closed the session key is destroyed. The biggest risk is if your users are at a public terminal and just walk away without closing the browser. If you provide the user with a logout option then you can destroy the session regardless of whether the browser has been closed or not. I'm not sure if this applies to SecurityFilter in general, since I have never used it and as I understand it, SecurityFilter simply wraps the container's security management. Good Luck... DW On Thu, 17 Feb 2005 10:53:49 +0700, Hari Saptoadi [EMAIL PROTECTED] wrote: Hi all, first i'd like to say sorry if someone already asked this question before, i'm develop web app with struts and tomcat as web server + securityfilter(securityfilter.sourceforge.net) , my problem is if someone already login , and that user open new window browser securityfilter can't blocked this request (i mean user does not have to face login page again ) as far as i know this problem occure because user have same session , and my question is how can i fix it ? (i want every user have to face login page before using app ) thank you for you answer - 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]
You must specify exactly one of forward, href, or page
Hai I am new to struts I am using html:link to call a java script and html:img src ./for displaying the images But it's giving an error javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURL Exception: You must specify exactly one of forward, href, or page Can any one have the solution for this Bye vijay
[OT] For those who love fur, please take a look
** Be prepared, rate R ** http://hk.geocities.com/blood1213/fur.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]