question
I have a JSP file,and I use in this page,but it raise error,my code is follows: <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="html" %> and my Form is follows: .. public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if(abc!=null && abc.length()>0){ errors.add("abc",new ActionError("error.abc.required")); } return errors; } When I run it,it raise following error: org.apache.jasper.JasperException: /index.jsp(8,15) Attribute property invalid for tag errors according to TLD org.apache.jasper.servlet.JspServletWrapper.handleJspException( JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java :2149) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I have looked up API,I find it have property attribute: property Name of the property for which error messages should be displayed. If not specified, all error messages (regardless of property) are displayed. (RT EXPR) Why raise above error? How to do with it? Thanks in advance!
RE: debuging in eclipse
These are the lines in run.bat here %JAVA_OPTS% indicates the need information that needs to be set. Should I still remove rem rem Setup JBoss specific properties set JAVA_OPTIONS=-Xdebug-Xnoagent -Djava.compiler=none -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% set JBOSS_HOME=%DIRNAME%\.. rem Sun JVM memory allocation pool parameters. Modify as appropriate. set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% Shasi -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 10:18 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: debuging in eclipse Quick question -- The JAVA_OPTS line you have below starts with "rem" which indicates a remark in batch files. That would indicate that the line isn't getting executed. If you remove the "rem," does that help? Chris -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 11:37 PM To: [EMAIL PROTECTED] Cc: 'Struts Users Mailing List' Subject: RE: debuging in eclipse You can use whatever port you want, just make sure the port number in the script that starts JBoss matches the port that you have in your Eclipse debug configuration. I suppose the "default" port for JBoss is whatever it is set to in the comment in the run script (8787?). The default in the maven-jboss-plugin is something different (4142). But again, it really does not matter as long as you have the same port specified in the script and in Eclipse. -Max On Thu, 2006-02-23 at 09:38 +0530, Shasirekha Engala wrote: > Hi Chandra > > I am using Jboss with Eclipse and the operating system I am using is > windows XP. In jboss/bin/run.bat file the java options are specified > as > > rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y > %JAVA_OPTS% > > but still I get the same problem > > here for address there are different values. In some places I see > 8787, in some 8000 . Can I get some information about what should > it actually be? > > Thanks and Regards > Shasi. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 8:44 PM > To: user@struts.apache.org; [EMAIL PROTECTED] > Subject: RE: debuging in eclipse > > > > Is your server(i.e tomcat or Jboss or whatever) running and listening > for debugging connections? > > here is how I use Tomcat, JBoss and Eclipse to build and debug > applications. > > Which ever platform you are using (tomcat or JBoss) you need to start > them with the JPDA debugging enabled. For tomcat this is very easy. In > the $CATALINA_HOME/bin directory there is a script catalina.sh. If you > provide the arguments 'jpda start' tomcat will startup and listen on > port 8000 for a debugger connection. > > With JBoss its only slightly more complicated. Basically you need to > specify the JAVA_OPTS to have java start up listening for debugger > connections. I typically copy the $JBOSS_HOME/bin/run.sh to > $JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the > JAVA_OPTS environment variable and use the run.sh script. > > The value of JAVA_OPTS needs have -Xdebug > -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified. > > > here is the official info on the connection arguments: > http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html > Once you have JBoss or Tomcat running and listening for debugging > connections you are good to go for connectin with Eclipse. Ofcourse > you need have mention the same listen port in your 'debug launch > configuration' of eclipse. > > Hope this will help. > > Chandra > > -Original Message- > From: Shasirekha Engala [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 5:37 PM > To: user@struts.apache.org > Subject: Reg: debuging in eclipse > > Hi > > I have some problem related to eclipse. When I am trying to debug my > struts application I am getting the error as "Failed to connect to > remote VM". > Can I get solution to this problem. > > > Regards > Shasi > > > > - > 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: debuging in eclipse
Quick question -- The JAVA_OPTS line you have below starts with "rem" which indicates a remark in batch files. That would indicate that the line isn't getting executed. If you remove the "rem," does that help? Chris -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 11:37 PM To: [EMAIL PROTECTED] Cc: 'Struts Users Mailing List' Subject: RE: debuging in eclipse You can use whatever port you want, just make sure the port number in the script that starts JBoss matches the port that you have in your Eclipse debug configuration. I suppose the "default" port for JBoss is whatever it is set to in the comment in the run script (8787?). The default in the maven-jboss-plugin is something different (4142). But again, it really does not matter as long as you have the same port specified in the script and in Eclipse. -Max On Thu, 2006-02-23 at 09:38 +0530, Shasirekha Engala wrote: > Hi Chandra > > I am using Jboss with Eclipse and the operating system I am using is > windows XP. In jboss/bin/run.bat file the java options are specified > as > > rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y > %JAVA_OPTS% > > but still I get the same problem > > here for address there are different values. In some places I see > 8787, in some 8000 . Can I get some information about what should > it actually be? > > Thanks and Regards > Shasi. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 8:44 PM > To: user@struts.apache.org; [EMAIL PROTECTED] > Subject: RE: debuging in eclipse > > > > Is your server(i.e tomcat or Jboss or whatever) running and listening > for debugging connections? > > here is how I use Tomcat, JBoss and Eclipse to build and debug > applications. > > Which ever platform you are using (tomcat or JBoss) you need to start > them with the JPDA debugging enabled. For tomcat this is very easy. In > the $CATALINA_HOME/bin directory there is a script catalina.sh. If you > provide the arguments 'jpda start' tomcat will startup and listen on > port 8000 for a debugger connection. > > With JBoss its only slightly more complicated. Basically you need to > specify the JAVA_OPTS to have java start up listening for debugger > connections. I typically copy the $JBOSS_HOME/bin/run.sh to > $JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the > JAVA_OPTS environment variable and use the run.sh script. > > The value of JAVA_OPTS needs have -Xdebug > -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified. > > > here is the official info on the connection arguments: > http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html > Once you have JBoss or Tomcat running and listening for debugging > connections you are good to go for connectin with Eclipse. Ofcourse > you need have mention the same listen port in your 'debug launch > configuration' of eclipse. > > Hope this will help. > > Chandra > > -Original Message- > From: Shasirekha Engala [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 5:37 PM > To: user@struts.apache.org > Subject: Reg: debuging in eclipse > > Hi > > I have some problem related to eclipse. When I am trying to debug my > struts application I am getting the error as "Failed to connect to > remote VM". > Can I get solution to this problem. > > > Regards > Shasi > > > > - > 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] ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: debuging in eclipse
You can use whatever port you want, just make sure the port number in the script that starts JBoss matches the port that you have in your Eclipse debug configuration. I suppose the "default" port for JBoss is whatever it is set to in the comment in the run script (8787?). The default in the maven-jboss-plugin is something different (4142). But again, it really does not matter as long as you have the same port specified in the script and in Eclipse. -Max On Thu, 2006-02-23 at 09:38 +0530, Shasirekha Engala wrote: > Hi Chandra > > I am using Jboss with Eclipse and the operating system I am using is > windows XP. In jboss/bin/run.bat file the java options are specified as > > rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% > > but still I get the same problem > > here for address there are different values. In some places I see 8787, in > some 8000 . Can I get some information about what should it actually > be? > > Thanks and Regards > Shasi. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 8:44 PM > To: user@struts.apache.org; [EMAIL PROTECTED] > Subject: RE: debuging in eclipse > > > > Is your server(i.e tomcat or Jboss or whatever) running and listening > for debugging connections? > > here is how I use Tomcat, JBoss and Eclipse to build and debug > applications. > > Which ever platform you are using (tomcat or JBoss) you need to start > them with the JPDA debugging enabled. For tomcat this is very easy. In > the $CATALINA_HOME/bin directory there is a script catalina.sh. If you > provide the arguments 'jpda start' tomcat will startup and listen on > port 8000 for a debugger connection. > > With JBoss its only slightly more complicated. Basically you need to > specify the JAVA_OPTS to have java start up listening for debugger > connections. I typically copy the $JBOSS_HOME/bin/run.sh to > $JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the > JAVA_OPTS environment variable and use the run.sh script. > > The value of JAVA_OPTS needs have -Xdebug > -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified. > > > here is the official info on the connection arguments: > http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html > Once you have JBoss or Tomcat running and listening for debugging > connections you are good to go for connectin with Eclipse. Ofcourse you > need have mention the same listen port in your 'debug launch > configuration' of eclipse. > > Hope this will help. > > Chandra > > -Original Message- > From: Shasirekha Engala [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 5:37 PM > To: user@struts.apache.org > Subject: Reg: debuging in eclipse > > Hi > > I have some problem related to eclipse. When I am trying to debug my > struts application I am getting the error as "Failed to connect to > remote VM". > Can I get solution to this problem. > > > Regards > Shasi > > > > - > 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: debuging in eclipse
Hi Chandra I am using Jboss with Eclipse and the operating system I am using is windows XP. In jboss/bin/run.bat file the java options are specified as rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% but still I get the same problem here for address there are different values. In some places I see 8787, in some 8000 . Can I get some information about what should it actually be? Thanks and Regards Shasi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 8:44 PM To: user@struts.apache.org; [EMAIL PROTECTED] Subject: RE: debuging in eclipse Is your server(i.e tomcat or Jboss or whatever) running and listening for debugging connections? here is how I use Tomcat, JBoss and Eclipse to build and debug applications. Which ever platform you are using (tomcat or JBoss) you need to start them with the JPDA debugging enabled. For tomcat this is very easy. In the $CATALINA_HOME/bin directory there is a script catalina.sh. If you provide the arguments 'jpda start' tomcat will startup and listen on port 8000 for a debugger connection. With JBoss its only slightly more complicated. Basically you need to specify the JAVA_OPTS to have java start up listening for debugger connections. I typically copy the $JBOSS_HOME/bin/run.sh to $JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the JAVA_OPTS environment variable and use the run.sh script. The value of JAVA_OPTS needs have -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified. here is the official info on the connection arguments: http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html Once you have JBoss or Tomcat running and listening for debugging connections you are good to go for connectin with Eclipse. Ofcourse you need have mention the same listen port in your 'debug launch configuration' of eclipse. Hope this will help. Chandra -Original Message- From: Shasirekha Engala [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 5:37 PM To: user@struts.apache.org Subject: Reg: debuging in eclipse Hi I have some problem related to eclipse. When I am trying to debug my struts application I am getting the error as "Failed to connect to remote VM". Can I get solution to this problem. Regards Shasi - 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: Sorting & paging search results with delete button for each row?
you can add delete functionality with display tag by assigning an actionmapping to delete a particular record based on parameters passed. though i tried using it on extremecomponents. though same concept applies with display tag. On 2/23/06, Lixin Chu <[EMAIL PROTECTED]> wrote: > > why displaytag does not meet your requirements ? > > On 2/22/06, Narayanan, Shiva <[EMAIL PROTECTED]> wrote: > > > > Hello All, > > > > What is the best way to sort and page search results, (with delete > button > > for each row) using Struts? Are there are any open source tag libraries > to > > achieve this? > > > > > > > > Looked at displaytag. I want to retrieve data from the database using > > hibernate. > > > > > > > > Many Thanks!! > > > > > > > >
Re: Sorting & paging search results with delete button for each row?
why displaytag does not meet your requirements ? On 2/22/06, Narayanan, Shiva <[EMAIL PROTECTED]> wrote: > > Hello All, > > What is the best way to sort and page search results, (with delete button > for each row) using Struts? Are there are any open source tag libraries to > achieve this? > > > > Looked at displaytag. I want to retrieve data from the database using > hibernate. > > > > Many Thanks!! > > >
Off Topic Expression Language question
Hi All, Appologies for the off topic posting. Does anyone Know how I can access a bean property that takes a parameter using EL. For example if in a bean I have define a name property with public String getName(){return name;} I can access this with EL ${mybean.name} But suppose in my bean the method signature is: public String getName(String someParam){return name;} How would I access this in EL and pass a value in for the parameter? Any ideas would be appreciated. Thanks Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [SHALE] Using the Test Framework
OK, thanks. I'll look at that. - Brendan -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 4:55 PM To: Struts Users Mailing List Subject: RE: Re: [SHALE] Using the Test Framework >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > If you are using the shale test framework with simple junit tests, the > test framework doesn't digest your faces-confg.xml anyway. You have to > do that kind of setup in the test cases. > > The isolated code you want to test in the managed beans would just use a > indirect reference (the managed bean name of the delegate). > > Gary > > -- > > Hmm. I see what you're saying. I'll have to explore that a little > further. > Take a peek at one of the Shale usecase test case examples (http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/use-cases/src/test /org/apache/shale/usecases/rolodex/RolodexTestCase.java?view=markup). It's not as complex as the scenario you have described but still a reference. The setUp() method registers a managed bean "rolodexDao". There are several ways to do this in the test framework but the point is that you have to do this manually. Gary > - Brendan > > - > 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: Re: [SHALE] Using the Test Framework
>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > If you are using the shale test framework with simple junit tests, the > test framework doesn't digest your faces-confg.xml anyway. You have to > do that kind of setup in the test cases. > > The isolated code you want to test in the managed beans would just use a > indirect reference (the managed bean name of the delegate). > > Gary > > -- > > Hmm. I see what you're saying. I'll have to explore that a little > further. > Take a peek at one of the Shale usecase test case examples (http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/use-cases/src/test/org/apache/shale/usecases/rolodex/RolodexTestCase.java?view=markup). It's not as complex as the scenario you have described but still a reference. The setUp() method registers a managed bean rolodexDao. There are several ways to do this in the test framework but the point is that you have to do this manually. Gary > - Brendan > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: AW: Disabling Back Button in IE
Disabling keys in the browser is a bad idea for regular users, a disabling idea for the vision-impaired, and for many organisations technically against the law since you're deliberately doing something out of the norm which makes it inaccesible to disabled people. -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] >>> [EMAIL PROTECTED] 23/02/2006 2:09:28 am >>> Just add document.onkeydown = function(e) { if (document.all) { if (event.srcElement.type=="text" || event.srcElement.type=="textarea") return true; else return false; } else { if (e.target.type=="text" || e.target.type=="textarea") return true; else return false; } } document.onkeypress = function(e) { if (document.all) { if (event.srcElement.type=="text" || event.srcElement.type=="textarea") return true; else return false; } else { if (e.target.type=="text" || e.target.type=="textarea") return true; else return false; } } to your page and all keys pressing has no effect, except for text and textarea fields. So the only way still to get back ist pressing ALT-Leftarrow within a text or text area. You might catch this as well but exactly catching a specific key is more complicated especially as firefox and ie behaviour differs in that case. Bjoern > -Ursprüngliche Nachricht- > Von: Josh McDonald [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 22. Februar 2006 06:42 > An: user@struts.apache.org > Betreff: Re: Disabling Back Button in IE > > Can't (and shouldn't) be done. The closest you're likely to > get it open your app in a popup window with no menu, though > the user can still hit backspace. A better idea is to fix the > (assumed) re-post issues in your application. > > -Josh > > -- > > "His comrades fought beside him, Van Owen and the rest... >But of all the thompson gunners- Roland was the best." > > Josh McDonald > Analyst Programmer > Information Technology > Ph: 61 7 3006 6460 > Email: [EMAIL PROTECTED] > > > >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>> > > > > Hi > Anyone can tell how to disable the "Back" button in IE > through our Code. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > ** > * > Messages included in this e-mail and any of its attachments > are those of the author unless specifically stated to > represent WorkCover Queensland. The contents of this message > are to be used for the intended purpose only and are to be > kept confidential at all times. > This message may contain privileged information directed only > to the intended addressee/s. Accidental receipt of this > information should be deleted promptly and the sender notified. > This e-mail has been scanned by Sophos for known viruses. > However, no warranty nor liability is implied in this respect. > ** > ** > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail bzw. Inhalte hieraus ist nicht gestattet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [shale] clay description elements
>From: "Ryan Wynn" <[EMAIL PROTECTED]> > > I think it may be beneficial to extend the clay dtd to add extra > elements for documentation. Just like the component element in the > faces-config.xml has a description sub-element. I say this only > because I am trying to document all of my clay config definitions and > it would really be nice if I could write a maven plugin to just rip > through all my config files and generate the html documentation. That > way I can keep everything in one place. > > I was thinking corresponding descriptions for the component, symbols, > and attributes. > > The clay parser would ignore the descriptions for memory sake, but a > maven plugin could generate from them. > > What do you think? Sure. Sounds like a good idea. That would be a good place to add some information on things like "clayForEach" besides custom configs. Please create a bugzilla ticket on this one. Gary
RE: Re: [SHALE] Using the Test Framework
If you are using the shale test framework with simple junit tests, the test framework doesn't digest your faces-confg.xml anyway. You have to do that kind of setup in the test cases. The isolated code you want to test in the managed beans would just use a indirect reference (the managed bean name of the delegate). Gary -- Hmm. I see what you're saying. I'll have to explore that a little further. - Brendan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[shale] clay description elements
I think it may be beneficial to extend the clay dtd to add extra elements for documentation. Just like the component element in the faces-config.xml has a description sub-element. I say this only because I am trying to document all of my clay config definitions and it would really be nice if I could write a maven plugin to just rip through all my config files and generate the html documentation. That way I can keep everything in one place. I was thinking corresponding descriptions for the component, symbols, and attributes. The clay parser would ignore the descriptions for memory sake, but a maven plugin could generate from them. What do you think?
RE: Re: [SHALE] Using the Test Framework
>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > Well, the thing that's nice about my approach is that all the > configuration and testing changes take place completely outside of the > application. Our application code (including the faces-config.xml and > web.xml files) are under source control, and we don't want to modify any > of that just to test the application code. We don't even want to do a > separate test build with different configurations, because then we're > testing something different than what will be in production. > If you are using the shale test framework with simple junit tests, the test framework doesn't digest your faces-confg.xml anyway. You have to do that kind of setup in the test cases. The isolated code you want to test in the managed beans would just use a indirect reference (the managed bean name of the delegate). But, I hear what you are saying about making the deployable unit not build dependent. It is ideal when you can take the same ear that was tested in a QA environment and push that same ear to production without rebuilding or repackaging. We are able to do this in WAS with JNDI environment namespace bindings. The application config parameters are managed at the cell, node or server versus a application artifact. > I was following the same pattern that the Shale Test Framework itself > follows, namely, to create mock objects that, because they're declared > under the same package and class names, end up being loaded by the > classloader in place of the objects that usually get loaded. > Sounds like a decoupling all the same - just a lower level. Gary > - Brendan > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 3:37 PM > To: Struts Users Mailing List > Subject: RE: Re: [SHALE] Using the Test Framework > > > >From: "CONNER, BRENDAN (SBCSI)" > > > > Are you saying I should register my delegates as JSF managed beans? > > > > Sure, why not? The faces IoC container is not spring but you could > still have some of the same benefits. In fact, you could snap in Spring > down the road using the Shale Spring integration > (http://struts.apache.org/struts-shale/features-spring-integration.html) > . > > Gary > > > > - Brendan > > > > -Original Message- > > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 22, 2006 2:49 PM > > To: Struts Users Mailing List > > Subject: RE: Re: [SHALE] Using the Test Framework > > > > > > >From: "CONNER, BRENDAN (SBCSI)" > > > > > > In case anyone else was in the same boat I was in trying to run the > > Shale Test > > > Framework "in isolation" on the Web Tier of a 3-tier application, I > > did come up > > > with a technique that doesn't depend upon Spring. This is in the > > context of > > > using IBM's RSA IDE, but I imagine a similar technique would work in > > > other > > > development environments. > > > > > > 1. I defined a simple Java project to contain the Shale Test > framework > > code (and > > > JAR files) > > > 2. I set up a dependency between that Java project and the Web > > (application) > > > project > > > 3. I copied the delegate classes from the application to my new test > > > project, > > > keeping the package names the same > > > 4. I modified the new "mock" delegate classes to be stubs so they > did > > not try to > > > invoke the EJB tier > > > > > > Then when I ran JUnit on the test project, it invoked the > application > > method, > > > which proceeded to invoke the delegate, but the classloader loaded > the > > "mock" > > > delegate class ahead of the application's delegate class, so the > test > > proceeded > > > without invoking the EJB tier. > > > > > > > If you registered your delegate's as managed beans, you wouldn't have > to > > make your mock delegates live in the same packages with the same names > > > (#3). Rather, you would have to register them with the Shale mock JSF > > test framework in your test cases (design with more spring :-). > > > > Gary > > > > - > > 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: Re: [SHALE] Using the Test Framework
Sorry, ignore that last paragraph. ;-) - Brendan -Original Message- From: CONNER, BRENDAN (SBCSI) Sent: Wednesday, February 22, 2006 3:47 PM To: Struts Users Mailing List Subject: RE: Re: [SHALE] Using the Test Framework Well, the thing that's nice about my approach is that all the configuration and testing changes take place completely outside of the application. Our application code (including the faces-config.xml and web.xml files) are under source control, and we don't want to modify any of that just to test the application code. We don't even want to do a separate test build with different configurations, because then we're testing something different than what will be in production. I was following the same pattern that the Shale Test Framework itself follows, namely, to create mock objects that, because they're declared under the same package and class names, end up being loaded by the classloader in place of the objects that usually get loaded. - Brendan -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 3:37 PM To: Struts Users Mailing List Subject: RE: Re: [SHALE] Using the Test Framework >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > Are you saying I should register my delegates as JSF managed beans? > Sure, why not? The faces IoC container is not spring but you could still have some of the same benefits. In fact, you could snap in Spring down the road using the Shale Spring integration (http://struts.apache.org/struts-shale/features-spring-integration.html) . Gary > - Brendan > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 2:49 PM > To: Struts Users Mailing List > Subject: RE: Re: [SHALE] Using the Test Framework > > > >From: "CONNER, BRENDAN (SBCSI)" > > > > In case anyone else was in the same boat I was in trying to run the > Shale Test > > Framework "in isolation" on the Web Tier of a 3-tier application, I > did come up > > with a technique that doesn't depend upon Spring. This is in the > context of > > using IBM's RSA IDE, but I imagine a similar technique would work in > other > > development environments. > > > > 1. I defined a simple Java project to contain the Shale Test framework > code (and > > JAR files) > > 2. I set up a dependency between that Java project and the Web > (application) > > project > > 3. I copied the delegate classes from the application to my new test > project, > > keeping the package names the same > > 4. I modified the new "mock" delegate classes to be stubs so they did > not try to > > invoke the EJB tier > > > > Then when I ran JUnit on the test project, it invoked the application > method, > > which proceeded to invoke the delegate, but the classloader loaded the > "mock" > > delegate class ahead of the application's delegate class, so the test > proceeded > > without invoking the EJB tier. > > > > If you registered your delegate's as managed beans, you wouldn't have to > make your mock delegates live in the same packages with the same names > (#3). Rather, you would have to register them with the Shale mock JSF > test framework in your test cases (design with more spring :-). > > Gary > > - > 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: Re: [SHALE] Using the Test Framework
Well, the thing that's nice about my approach is that all the configuration and testing changes take place completely outside of the application. Our application code (including the faces-config.xml and web.xml files) are under source control, and we don't want to modify any of that just to test the application code. We don't even want to do a separate test build with different configurations, because then we're testing something different than what will be in production. I was following the same pattern that the Shale Test Framework itself follows, namely, to create mock objects that, because they're declared under the same package and class names, end up being loaded by the classloader in place of the objects that usually get loaded. - Brendan -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 3:37 PM To: Struts Users Mailing List Subject: RE: Re: [SHALE] Using the Test Framework >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > Are you saying I should register my delegates as JSF managed beans? > Sure, why not? The faces IoC container is not spring but you could still have some of the same benefits. In fact, you could snap in Spring down the road using the Shale Spring integration (http://struts.apache.org/struts-shale/features-spring-integration.html) . Gary > - Brendan > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 2:49 PM > To: Struts Users Mailing List > Subject: RE: Re: [SHALE] Using the Test Framework > > > >From: "CONNER, BRENDAN (SBCSI)" > > > > In case anyone else was in the same boat I was in trying to run the > Shale Test > > Framework "in isolation" on the Web Tier of a 3-tier application, I > did come up > > with a technique that doesn't depend upon Spring. This is in the > context of > > using IBM's RSA IDE, but I imagine a similar technique would work in > other > > development environments. > > > > 1. I defined a simple Java project to contain the Shale Test framework > code (and > > JAR files) > > 2. I set up a dependency between that Java project and the Web > (application) > > project > > 3. I copied the delegate classes from the application to my new test > project, > > keeping the package names the same > > 4. I modified the new "mock" delegate classes to be stubs so they did > not try to > > invoke the EJB tier > > > > Then when I ran JUnit on the test project, it invoked the application > method, > > which proceeded to invoke the delegate, but the classloader loaded the > "mock" > > delegate class ahead of the application's delegate class, so the test > proceeded > > without invoking the EJB tier. > > > > If you registered your delegate's as managed beans, you wouldn't have to > make your mock delegates live in the same packages with the same names > (#3). Rather, you would have to register them with the Shale mock JSF > test framework in your test cases (design with more spring :-). > > Gary > > - > 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: Re: [SHALE] Using the Test Framework
>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > Are you saying I should register my delegates as JSF managed beans? > Sure, why not? The faces IoC container is not spring but you could still have some of the same benefits. In fact, you could snap in Spring down the road using the Shale Spring integration (http://struts.apache.org/struts-shale/features-spring-integration.html). Gary > - Brendan > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 2:49 PM > To: Struts Users Mailing List > Subject: RE: Re: [SHALE] Using the Test Framework > > > >From: "CONNER, BRENDAN (SBCSI)" > > > > In case anyone else was in the same boat I was in trying to run the > Shale Test > > Framework "in isolation" on the Web Tier of a 3-tier application, I > did come up > > with a technique that doesn't depend upon Spring. This is in the > context of > > using IBM's RSA IDE, but I imagine a similar technique would work in > other > > development environments. > > > > 1. I defined a simple Java project to contain the Shale Test framework > code (and > > JAR files) > > 2. I set up a dependency between that Java project and the Web > (application) > > project > > 3. I copied the delegate classes from the application to my new test > project, > > keeping the package names the same > > 4. I modified the new "mock" delegate classes to be stubs so they did > not try to > > invoke the EJB tier > > > > Then when I ran JUnit on the test project, it invoked the application > method, > > which proceeded to invoke the delegate, but the classloader loaded the > "mock" > > delegate class ahead of the application's delegate class, so the test > proceeded > > without invoking the EJB tier. > > > > If you registered your delegate's as managed beans, you wouldn't have to > make your mock delegates live in the same packages with the same names > (#3). Rather, you would have to register them with the Shale mock JSF > test framework in your test cases (design with more spring :-). > > Gary > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Should we add MIME type in hosting package to make it execute .do files?
Thank you for reading my post. My struts application works in my own PC but it does not works on Host that i purchased. it return 404 error. should i add a new MIME type for .do ? if so , What kind of MIME it should be ? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [SHALE] Using the Test Framework
Are you saying I should register my delegates as JSF managed beans? - Brendan -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 2:49 PM To: Struts Users Mailing List Subject: RE: Re: [SHALE] Using the Test Framework >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > In case anyone else was in the same boat I was in trying to run the Shale Test > Framework "in isolation" on the Web Tier of a 3-tier application, I did come up > with a technique that doesn't depend upon Spring. This is in the context of > using IBM's RSA IDE, but I imagine a similar technique would work in other > development environments. > > 1. I defined a simple Java project to contain the Shale Test framework code (and > JAR files) > 2. I set up a dependency between that Java project and the Web (application) > project > 3. I copied the delegate classes from the application to my new test project, > keeping the package names the same > 4. I modified the new "mock" delegate classes to be stubs so they did not try to > invoke the EJB tier > > Then when I ran JUnit on the test project, it invoked the application method, > which proceeded to invoke the delegate, but the classloader loaded the "mock" > delegate class ahead of the application's delegate class, so the test proceeded > without invoking the EJB tier. > If you registered your delegate's as managed beans, you wouldn't have to make your mock delegates live in the same packages with the same names (#3). Rather, you would have to register them with the Shale mock JSF test framework in your test cases (design with more spring :-). Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [SHALE] Using the Test Framework
>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > In case anyone else was in the same boat I was in trying to run the Shale > Test > Framework "in isolation" on the Web Tier of a 3-tier application, I did come > up > with a technique that doesn't depend upon Spring. This is in the context of > using IBM's RSA IDE, but I imagine a similar technique would work in other > development environments. > > 1. I defined a simple Java project to contain the Shale Test framework code > (and > JAR files) > 2. I set up a dependency between that Java project and the Web (application) > project > 3. I copied the delegate classes from the application to my new test project, > keeping the package names the same > 4. I modified the new "mock" delegate classes to be stubs so they did not try > to > invoke the EJB tier > > Then when I ran JUnit on the test project, it invoked the application method, > which proceeded to invoke the delegate, but the classloader loaded the "mock" > delegate class ahead of the application's delegate class, so the test > proceeded > without invoking the EJB tier. > If you registered your delegate's as managed beans, you wouldn't have to make your mock delegates live in the same packages with the same names (#3). Rather, you would have to register them with the Shale mock JSF test framework in your test cases (design with more spring :-). Gary > - Brendan > > -Original Message- > From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 3:22 PM > To: 'Struts Users Mailing List' > Subject: SV: Re: [SHALE] Using the Test Framework > > > Hi > > Easy: Spring. It's all done with configuration. In a no "EJB container > available" setting, you configure spring to return a different service than > when you have EJB container available. > > > Hermod > > -Opprinnelig melding- > Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] > Sendt: 16. februar 2006 22:08 > Til: Struts Users Mailing List > Emne: RE: Re: [SHALE] Using the Test Framework > > Sounds good. So how do you isolate your Web Layer from the EJB layer during > testing and then re-establish the linkage during deployment in your > environment? > > - Brendan > > -Original Message- > From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 2:59 PM > To: 'Struts Users Mailing List' > Subject: SV: Re: [SHALE] Using the Test Framework > > > Hi > > I totally agree with Craig. There is a huge difference between Unit testing > and Integration testing. We do both, using different tooling for the > different test types. > > Hermod > > > -Opprinnelig melding- > Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Craig > McClanahan > Sendt: 16. februar 2006 20:18 > Til: Struts Users Mailing List > Emne: Re: Re: [SHALE] Using the Test Framework > > On 2/16/06, Gary VanMatre wrote: > > > > > > >From: "CONNER, BRENDAN (SBCSI)" > > > > > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > > > Framework being used by people now? Is it being used mostly for > > > non-3-tier applications? What is the extent of the problem space in > > > which it is useful? (Obviously, it's not meant for stand-alone Java > > > J2SE applications, because then there would be no need for JSF support.) > > > > > > > > > I would say that there is a percentage of folks that build applications > > that don't use EJB but still use good design patterns and are able to > > load-balance across several web containers without the complexity of > > EJB. For that cult, the Shale test framework would snap right in. > > > Another way to look at this is to think about what is the scope of a "unit > test". Conceptually, I would think of two *different* unit tests being > needed in this environment: > > * A unit test for the backing bean (Shale view controller or whatever). To > test this bean, > you would need to mock out the session bean itself. (And, the test > framework > should provide JNDI lookup mocking, which the Shale test frameworkd > doesn't > have yet). > > * A unit test for the session bean itself. For this, you'd want a framework > that mocks the EJB environment, and would have nothing to do with JSF > or web tier APIs. > > It's possible that you also want a more end-to-end test -- but to me that's > a "system integration" test, rather than unit tests. > > Craig > > > - > 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 additi
Re: validate indexed properties
Yes. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 22, 2006, at 3:16 PM, Juergen Schmailzl wrote: Hi, is it possible to validate indexeded properties with Struts validator (struts 1.2.7) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validate indexed properties
Hi, is it possible to validate indexeded properties with Struts validator (struts 1.2.7)
Re: How to get the value of combo box of previous page?
The first thing that jumps out is that you have the html:select and the html:options tags bound to the same form bean property (eng_name). That's almost certainly not what you want to do, although I don't think it explains the problem you're asking about. What's the 'action' attribute set to for the form in the first page? Is it set up to submit to the /setupAssignUserSystem action? And what does the SetupAssignUserSystemAction class look like? It would help if you posted all the relevant code and configuration so we can see all the pieces in context. L. PC Leung wrote: The above line returns blank. Where goes wrong? In previous page as below, the combo box has values. struts-config.xml is public final class SetupSelectUserAction extends Action { private Log log = LogFactory.getFactory().getInstance(this.getClass().getName()); public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { UserProfileService service = new UserProfileService(); Collection userList = service.getUserProfileList(null); HttpSession session = request.getSession(); session.setAttribute( "userList", userList ); UserForm userForm = (UserForm)form; userForm.setMethod("create"); log.info("SetupSelectUserAction:" + userForm.getMethod()); return mapping.findForward("success"); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reg: DynaActionforms and ActionForms
Shasirekha Engala wrote: Hi, I want some information regarding the difference between DynaActionforms and ActionForms and advantages of DynaActionforms over ActionForms. I need the code of subclassing the dynaforms and using it. For example, I am having a BaseForm with the variables pageno( page number), action (action to be performed like save, update, delete, create). This form I have declared in struts-config.xml. Now all the other forms I am creating should extend my BaseForm. How can I do this using DynaActionForms in struts-config.xml? Kindly reply to this mail as soon as possible as it is bit urgent. The main point of DynaActionForm and friends is so that you can configure form beans in your struts-config.xml without having to write any supporting code. Unfortunately, in 1.2.x, there's no mechanism to achieve what you want. The good news is that this feature is one of the things that 1.3.x adds. You can do something like this: ... properties ... ... more properties ... There isn't yet a release of Struts Action 1.3, though it's getting close. In the meantime, you'd need to use a nightly build. If that's not acceptable for your project, you have at least a couple of other options. One is simply to copy-paste the common properties into each form-bean declaration, which isn't great but may be OK if you only have a few common properties. Another, which is really just a refinement of the first option, is to use a bit of XML trickery. Basically, you'd add an internal DTD subset declaring an entity with your common form-bean properties: ... "]> Then, in your form-bean declarations, you include the entity: &common-props; ... more properties ... Obviously, the Struts Action 1.3 'extends' feature is by far the cleaner way to go if you can justify using a pre-release version. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page design question
Try looking at your web servers custom error pages. Once the container is unavailable the web server is the only one that can process a request. Once the server goes down you will need to go with Laurie's said (good advice for any shop) Bryan LaPlante -- Original Message --- From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wed, 22 Feb 2006 14:41:42 -0500 Subject: Re: error-page design question > Jay Burgess wrote: > > Our app currently throws a custom UnavailableException from a couple of > > places > > inside our Action handlers when the app is "offline" doing end-of-day > > processing. We thought we had this situation covered from the UI perspective, as > > we'd configured the following mapping in our web.xml: > > > > > > UnavailableException > > /unavailable.jsp > > > > > > However, our end-of-day processing now shuts down our web server, which > > causes > > the webapp to unload, and the unavailable.jsp to become inaccessible. The > > problem I've got is that if the user tries to access the webapp between the time > > it has started unloading and the time the web server goes down, instead of > > our > > unavailable.jsp, the user sees an ugly HTTP 500 error and a stack trace. > > > > What I'd like to do, as it affects the smallest amount of code, is something > > like the following: > > > > > > UnavailableException > > 503 > > > > > > That is, if the container catches the UnavailableException, generate a standard > > HTTP 503 error back to the browser. > > > > Is something like this possible to do in web.xml? (I don't see it in the > > DTD.) > > Or is my only option to catch the exception myself and do something like > > HttpServletResponse.sendError(SC_SERVICE_UNAVAILABLE) in the code? > > I think you're going to be out of luck there. The first thing the > container does when asked to undeploy a web application is to stop > forwarding requests to it... In other words, for the requests you're > interested in, there is nowhere you can place a 'catch'. > > You really need to either a) avoid shutting down the container, or b) > use some type of load-balancing or other HA techniques to switch request > processing to some temporary HTTP server before shutting down the > container, so you can guarantee that all requests are served by a > container that's in a consistent, live state. > > L. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --- End of Original Message --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page design question
Jay Burgess wrote: Our app currently throws a custom UnavailableException from a couple of places inside our Action handlers when the app is "offline" doing end-of-day processing. We thought we had this situation covered from the UI perspective, as we'd configured the following mapping in our web.xml: UnavailableException /unavailable.jsp However, our end-of-day processing now shuts down our web server, which causes the webapp to unload, and the unavailable.jsp to become inaccessible. The problem I've got is that if the user tries to access the webapp between the time it has started unloading and the time the web server goes down, instead of our unavailable.jsp, the user sees an ugly HTTP 500 error and a stack trace. What I'd like to do, as it affects the smallest amount of code, is something like the following: UnavailableException 503 That is, if the container catches the UnavailableException, generate a standard HTTP 503 error back to the browser. Is something like this possible to do in web.xml? (I don't see it in the DTD.) Or is my only option to catch the exception myself and do something like HttpServletResponse.sendError(SC_SERVICE_UNAVAILABLE) in the code? I think you're going to be out of luck there. The first thing the container does when asked to undeploy a web application is to stop forwarding requests to it... In other words, for the requests you're interested in, there is nowhere you can place a 'catch'. You really need to either a) avoid shutting down the container, or b) use some type of load-balancing or other HA techniques to switch request processing to some temporary HTTP server before shutting down the container, so you can guarantee that all requests are served by a container that's in a consistent, live state. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using tiles and setting a cookie
Well it looks like I've found the cause of the problem. The ServletResponse object passed into my Controller's execute is wrapped inside of ServletResponseWrapperInclude, which wraps an instance of org.apache.catalina.core.ApplicationHttpResponse. In that class, the addCookie() method is overidden and ignores any attempt to change a header - in my case, a cookie. Does anybody have any experience with this? Should I just move the cookie setting into an action? Is this a problem I will only see in Tomcat (since ApplicationHttpResponse is in a catalina package)? Is there some kind of workaround? Thanks again for all your help. On 2/21/06, brian papa <[EMAIL PROTECTED]> wrote: > Oops, meant to question the presence of the Response there. > > On 2/21/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > brian papa wrote: > > > I'm starting to think now that perhaps I'm doing this in the wrong > > > place. After all the purpose of a controller should simply be to > > > prepare data for rendering in a JSP tile. I'm wondering though if this > > > is the case what the purpose is of having the HttpServletRequest as a > > > parameter to a Controller? > > > > > So you can put the data you just prepared into the request for rendering > > in a JSP tile? > > > > ;) > > > > Dave > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting various control like checkbox and drop down as column in HTML table.
[EMAIL PROTECTED] wrote: Hi: I am trying to put in editable checkbox inside HTML table, but it doesn't seem to work. any ideas where am going wrong ? Thanks in adv. Digant varStatus="status2"> value="${instrument.imntDescr}"/> value="${instrument.bucketName}"/> value="${instrument.sectorName}"/> property="{instrument.lockedFlag}">{instrument.lockedFlag} Well for one thing, half you JSTL expression aren't prefixed with a '$' sign. If that's not the problem, try describing how, exactly, things are failing. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts "seems" to be picking wrong translations creating a language mix in my web application.
Dear Colleagues, I use struts 1.2.8 I have an application with two message resource bundles: ApplicationResources.properties and ApplicationResources_es.properties. ApplicationResources.properties is written for the English language, and my intention is to use the english as the default lenguage for my application. This problem occurs when I do the following things: * I initially use a Browser configured for es (Spanish); it works perfectly, and I see my application in spanish. * I pick a different browser, configured for english. I would expect to see my whole application in english. However, I notice that the corresponging places in may application for the tags that I have already seen in first run of the application with an spanish configured browser(first step), are now showing up in spanish, whether the ones that I did not went through in the, so it generates a mix of lenguages in my application. I have tried to find a problem like this in the web, but I�ve been unable to find any. Manuals does not seem to say anyyhing about it. I have also setting the spanish as the default language (by putting my resources in spanish in ApplicationResources.properties, and putting my resources in emglish in a file called ApplicationResources_en.properties), in case it had to do with the defalut locale in my virtual machine (which is es_ES), but is producnig the same effect. I am not playing with the Locale in my session or request in my code. Actually, when I browse the application with the english configured browser, my request and session locales are both "en_US", and when I browse it with the spanish configured browser, my request and session locales are both "es_ES". I am running my application in a JBoss 4.0 server. Everything runs in the same PC (Server, and browsers) This is the first time that I post a message to this forum. I hope that I made my question properly. Thanks in advance. Fali. Th Thanks in advance. Rafa Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com *Your* clubs, no sign up to read, ad supported; try broadband internet.
Re: Buttons and DispatchActions
On 2/22/06, Fali <[EMAIL PROTECTED]> wrote: > Moosbauer, I use MappingDispatchActions and they work fine for me. I enter > the name of the method in the actual Action definition in the > struts-config.xml using the attribute called "parameter" ... ... Once in the > mapped method, I know what button of the form that was clicked by the user > because I have added an entry in my DynaForm to collect it. Why do you need an entry in the form if you are already in the proper method? data property... date property I have set up my buttons in this shape: Later, in my function, I know what button was pressed because the pressed one will return a non null value when I get it from the form String submitReturnValue = form.get("_submitform") String revertReturnValue = form.get("_revertform") This might be a different approach than the one that originally you are taking, but I hope that it will work for you. Fali What is this for, if you already has been taken to a proper method? MappingDispatchAction allows to specify only one method in "parameter" attribute, therefore you need as many mappings in struts-config.xml file as many methods you want to map. I don't see this as a benefit. ParameterListActionDispatcher that I referred to in my previous email is better because it allows to define a whole bunch of methods in a single mapping. Also, your action class does not need to extend a specific dispatch action to use dispatch services. I use ParameterListActionDispatcher and it rules! Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:Buttons and DispatchActions
Moosbauer, I use MappingDispatchActions and they work fine for me. I enter the name of the method in the actual Action definition in the struts-config.xml using the attribute called "parameter" ... ... Once in the mapped method, I know what button of the form that was clicked by the user because I have added an entry in my DynaForm to collect it. data property... date property I have set up my buttons in this shape: Later, in my function, I know what button was pressed because the pressed one will return a non null value when I get it from the form String submitReturnValue = form.get("_submitform") String revertReturnValue = form.get("_revertform") This might be a different approach than the one that originally you are taking, but I hope that it will work for you. Fali Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com *Your* clubs, no sign up to read, ad supported; try broadband internet.
Re: AW: Disabling Back Button in IE
I knew something was weird... I have basically the exact same code in one app on every page in response to onLoad: onLoad="document.onkeydown=function(e){if(event.srcElement.type=='text'||event.srcElement.type=='textarea'){return true;}else{return false;}};" Now, at least in IE, that seems to block ALL back functionality... I can't click the mouse wheel like usual and backspace doesn't work (including Alt-BS, Shift-BS and Ctrl-BS). Never noticed that it seems to block everything before. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, February 22, 2006 11:43 am, Frank W. Zammetti said: > Doesn't stop me from clicking my mouse wheel, which is mapped to Back :) > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > On Wed, February 22, 2006 11:09 am, Eickvonder Bjoern said: >> Just add >> >> document.onkeydown = function(e) { >> if (document.all) { >> if (event.srcElement.type=="text" || >> event.srcElement.type=="textarea") >> return true; >> else return false; >> } >> else { >> if (e.target.type=="text" || e.target.type=="textarea") return >> true; >> else return false; >> } >> } >> document.onkeypress = function(e) { >> if (document.all) { >> if (event.srcElement.type=="text" || >> event.srcElement.type=="textarea") >> return true; >> else return false; >> } >> else { >> if (e.target.type=="text" || e.target.type=="textarea") return >> true; >> else return false; >> } >> } >> >> to your page and all keys pressing has no effect, except for text and >> textarea fields. So the only way >> still to get back ist pressing ALT-Leftarrow within a text or text area. >> You might catch this as well >> but exactly catching a specific key is more complicated especially as >> firefox and ie behaviour differs in >> that case. >> >> Bjoern >> >>> -Ursprüngliche Nachricht- >>> Von: Josh McDonald [mailto:[EMAIL PROTECTED] >>> Gesendet: Mittwoch, 22. Februar 2006 06:42 >>> An: user@struts.apache.org >>> Betreff: Re: Disabling Back Button in IE >>> >>> Can't (and shouldn't) be done. The closest you're likely to >>> get it open your app in a popup window with no menu, though >>> the user can still hit backspace. A better idea is to fix the >>> (assumed) re-post issues in your application. >>> >>> -Josh >>> >>> -- >>> >>> "His comrades fought beside him, Van Owen and the rest... >>>But of all the thompson gunners- Roland was the best." >>> >>> Josh McDonald >>> Analyst Programmer >>> Information Technology >>> Ph: 61 7 3006 6460 >>> Email: [EMAIL PROTECTED] >>> >>> >>> >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>> >>> >>> >>> >>> Hi >>> Anyone can tell how to disable the "Back" button in IE >>> through our Code. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> >>> >>> >>> ** >>> * >>> Messages included in this e-mail and any of its attachments >>> are those of the author unless specifically stated to >>> represent WorkCover Queensland. The contents of this message >>> are to be used for the intended purpose only and are to be >>> kept confidential at all times. >>> This message may contain privileged information directed only >>> to the intended addressee/s. Accidental receipt of this >>> information should be deleted promptly and the sender notified. >>> This e-mail has been scanned by Sophos for known viruses. >>> However, no warranty nor liability is implied in this respect. >>> ** >>> ** >>> >>> >> >> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte >> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese >> E-Mail >> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und >> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte >> Weitergabe dieser Mail bzw. Inhalte hieraus ist nicht gestattet. >> >> >> >> - >> 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: getting various control like checkbox and drop down as column in HTML table.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise http://www.catb.org/~esr/faqs/smart-questions.html#volume On 2/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi: > I am trying to put in editable checkbox inside HTML table, but it > doesn't seem to work. > any ideas where am going wrong ? > Thanks in adv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting various control like checkbox and drop down as column in HTML table.
Hi: I am trying to put in editable checkbox inside HTML table, but it doesn't seem to work. any ideas where am going wrong ? Thanks in adv. Digant {instrument.lockedFlag} This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.
RE: Re: [SHALE] Using the Test Framework
In case anyone else was in the same boat I was in trying to run the Shale Test Framework "in isolation" on the Web Tier of a 3-tier application, I did come up with a technique that doesn't depend upon Spring. This is in the context of using IBM's RSA IDE, but I imagine a similar technique would work in other development environments. 1. I defined a simple Java project to contain the Shale Test framework code (and JAR files) 2. I set up a dependency between that Java project and the Web (application) project 3. I copied the delegate classes from the application to my new test project, keeping the package names the same 4. I modified the new "mock" delegate classes to be stubs so they did not try to invoke the EJB tier Then when I ran JUnit on the test project, it invoked the application method, which proceeded to invoke the delegate, but the classloader loaded the "mock" delegate class ahead of the application's delegate class, so the test proceeded without invoking the EJB tier. - Brendan -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 3:22 PM To: 'Struts Users Mailing List' Subject: SV: Re: [SHALE] Using the Test Framework Hi Easy: Spring. It's all done with configuration. In a no "EJB container available" setting, you configure spring to return a different service than when you have EJB container available. Hermod -Opprinnelig melding- Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sendt: 16. februar 2006 22:08 Til: Struts Users Mailing List Emne: RE: Re: [SHALE] Using the Test Framework Sounds good. So how do you isolate your Web Layer from the EJB layer during testing and then re-establish the linkage during deployment in your environment? - Brendan -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 2:59 PM To: 'Struts Users Mailing List' Subject: SV: Re: [SHALE] Using the Test Framework Hi I totally agree with Craig. There is a huge difference between Unit testing and Integration testing. We do both, using different tooling for the different test types. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Craig McClanahan Sendt: 16. februar 2006 20:18 Til: Struts Users Mailing List Emne: Re: Re: [SHALE] Using the Test Framework On 2/16/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > > Framework being used by people now? Is it being used mostly for > > non-3-tier applications? What is the extent of the problem space in > > which it is useful? (Obviously, it's not meant for stand-alone Java > > J2SE applications, because then there would be no need for JSF support.) > > > > > I would say that there is a percentage of folks that build applications > that don't use EJB but still use good design patterns and are able to > load-balance across several web containers without the complexity of > EJB. For that cult, the Shale test framework would snap right in. Another way to look at this is to think about what is the scope of a "unit test". Conceptually, I would think of two *different* unit tests being needed in this environment: * A unit test for the backing bean (Shale view controller or whatever). To test this bean, you would need to mock out the session bean itself. (And, the test framework should provide JNDI lookup mocking, which the Shale test frameworkd doesn't have yet). * A unit test for the session bean itself. For this, you'd want a framework that mocks the EJB environment, and would have nothing to do with JSF or web tier APIs. It's possible that you also want a more end-to-end test -- but to me that's a "system integration" test, rather than unit tests. Craig - 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: Action Oriented Framework Rendering Mode
see intermixed > -Original Message- > From: Ian Roughley [mailto:[EMAIL PROTECTED] ==== > > > The ww:action is not used for AJAX interactions with the > server. There Ok that is cool to know. > are several UI widgets that can be AJAX enabled - the one you > would be > looking for is the remote DIV. But, this would be most helpful in a > webwork application to make it portlet-like, not sure how it > would help > when deployed into another porlet container. > Yep you are right. The AJAX request has to asynchronously make it through the portlet container/server to the target web application. Oh, I suppose we could make the portlet a read-only one for the initial phase. In other words we could come that decision when and if we ever get there. > /Ian > > -- > From Down & Around, Inc. > Innovative IT Solutions > Software Architecture * Design * Development > ~ > web: www.fdar.com > email [EMAIL PROTECTED] > phone:617.821.5430 > ~ > > > > Pilgrim, Peter wrote: > > >See intermixed > > > > > > > >>-Original Message- > >>From: Michael Jouravlev [mailto:[EMAIL PROTECTED] > >>Sent: Tuesday, February 21, 2006 7:02 PM > >>To: Struts Users Mailing List > >>Subject: Re: Action Oriented Framework Rendering Mode > >> > >> > >>On 2/21/06, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > >> > >> > >I have a requirement to possibly build a new web application to > >support portlets and also be displayable in a standard Java EE > >webapp server in the future. > > > > > >>Do you mean any portlets or JSR-168 portlets? > >> > >> > >> > >Actually I am unsure of the portlet world. > >I believe the target server is going to be a Weblogic Portal server. > >So I am assuming it will be JSR 168 portlets. > >Does this make a huge difference? > > > > > > > >Basically it looks like the web application has to > >support two view styles. > > > >One style is the classical Tiles and regionalisation of the > >JSP view. For instance you would have a corporate header, > >footer, a navigation menu and a content area. This is something > >that every web developer like myself has done over the > >last five years. > > > > > >The other style is to chuck all the extra tiles stuff away like > >the header, portal and menu system. For the portlet view > >just render the content region. The content > >view is the same as it would with the Tiles regions. > > > > > >I have called this a ``style'', but now I come to think > >of it ought to be called a ``mode'' as in mode of (render) > >employment. > > > >Thoughts are most welcome, even from the > > > > > >>Component-oriented people. > >> > >> > >>>Any more ideas more than welcomed. > >>> > >>> > >>How about this as food for thought: http://jspcontrols.sourceforge.net >> >> >> > >>From the book WebWork in Action, I believe Webwork can implement >some aspect of a page controller methodolody, by using the > tag inside a JSP. In this way a WW action can >render a portion of the view. What I dont know is if you can >use the tag to render AJAX components i.e. >AJAX styled box out or dependency list drop downs. > >BTW: The JSP Control live examples look nice. > >Thanks > -- Peter Pilgrim :: J2EE Software Development & Architecture Operations/IT - Credit Suisse Group - "One Bank", Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 peter dot pilgrim at credit-suisse.com == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: Disabling Back Button in IE
This problem is as old as the web browsers are, at the beginning browsers and http were just there to display static pages, not for building applications with it, so the back button was not a problem. But you get serious problems with that when building applications. But as Frank and Josh pointed, now matter what you do there is always a posibility that you go back to the last page. So my recommendation is also that you do a check on the server side, so e.g. when you press the "sumbmit order", delete the shopping cart in the session, when the back button is prssed you realize the session shoping cart is empty and issue a message "Your shooping cart is gone". A pain, but no real way around it! Bernhard > -Ursprüngliche Nachricht- > Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 22. Februar 2006 17:43 > An: Struts Users Mailing List > Cc: user@struts.apache.org > Betreff: Re: AW: Disabling Back Button in IE > > > Doesn't stop me from clicking my mouse wheel, which is mapped > to Back :) > > Betreff: Re: Disabling Back Button in IE > >> > >> Can't (and shouldn't) be done. The closest you're likely to > >> get it open your app in a popup window with no menu, though > >> the user can still hit backspace. A better idea is to fix the > >> (assumed) re-post issues in your application. > >> > >> -Josh > >> >> Hi >> Anyone can tell how to disable the "Back" button in IE >> through our Code. >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need some files..
hemant kumar ha scritto: hi ahmed i need struts 1.1.zip file. if u hv it then send it. Seriously :-P , you can download Struts 1.1 files from the archive site: http://archive.apache.org/dist/struts/struts-1.1/ Ciao P.S.: Please do not ask anyone to send you through e-mail things you can find easily on the web, or you will receive nice answers like RTFM, STFW, WTFAYLF (... are you looking for) ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling Back Button in IE
What if Javascript is turned off? BTW, I use Alt+Left all the time on websites with disabled navigation buttons. On 2/22/06, Eickvonder Bjoern <[EMAIL PROTECTED]> wrote: > Just add > > document.onkeydown = function(e) { > if (document.all) { > if (event.srcElement.type=="text" || > event.srcElement.type=="textarea") return true; > else return false; > } > else { > if (e.target.type=="text" || e.target.type=="textarea") > return true; > else return false; > } > } > document.onkeypress= function(e) { > if (document.all) { > if (event.srcElement.type=="text" || > event.srcElement.type=="textarea") return true; > else return false; > } > else { > if (e.target.type=="text" || e.target.type=="textarea") > return true; > else return false; > } > } > > to your page and all keys pressing has no effect, except for text and > textarea fields. So the only way > still to get back ist pressing ALT-Leftarrow within a text or text area. You > might catch this as well > but exactly catching a specific key is more complicated especially as firefox > and ie behaviour differs in > that case. > > Bjoern > > > -Ursprüngliche Nachricht- > > Von: Josh McDonald [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 22. Februar 2006 06:42 > > An: user@struts.apache.org > > Betreff: Re: Disabling Back Button in IE > > > > Can't (and shouldn't) be done. The closest you're likely to > > get it open your app in a popup window with no menu, though > > the user can still hit backspace. A better idea is to fix the > > (assumed) re-post issues in your application. > > > > -Josh > > > > -- > > > > "His comrades fought beside him, Van Owen and the rest... > >But of all the thompson gunners- Roland was the best." > > > > Josh McDonald > > Analyst Programmer > > Information Technology > > Ph: 61 7 3006 6460 > > Email: [EMAIL PROTECTED] > > > > > > >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>> > > > > > > > > Hi > > Anyone can tell how to disable the "Back" button in IE > > through our Code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Disabling Back Button in IE
Doesn't stop me from clicking my mouse wheel, which is mapped to Back :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, February 22, 2006 11:09 am, Eickvonder Bjoern said: > Just add > > document.onkeydown = function(e) { > if (document.all) { > if (event.srcElement.type=="text" || > event.srcElement.type=="textarea") > return true; > else return false; > } > else { > if (e.target.type=="text" || e.target.type=="textarea") return > true; > else return false; > } > } > document.onkeypress = function(e) { > if (document.all) { > if (event.srcElement.type=="text" || > event.srcElement.type=="textarea") > return true; > else return false; > } > else { > if (e.target.type=="text" || e.target.type=="textarea") return > true; > else return false; > } > } > > to your page and all keys pressing has no effect, except for text and > textarea fields. So the only way > still to get back ist pressing ALT-Leftarrow within a text or text area. > You might catch this as well > but exactly catching a specific key is more complicated especially as > firefox and ie behaviour differs in > that case. > > Bjoern > >> -Ursprüngliche Nachricht- >> Von: Josh McDonald [mailto:[EMAIL PROTECTED] >> Gesendet: Mittwoch, 22. Februar 2006 06:42 >> An: user@struts.apache.org >> Betreff: Re: Disabling Back Button in IE >> >> Can't (and shouldn't) be done. The closest you're likely to >> get it open your app in a popup window with no menu, though >> the user can still hit backspace. A better idea is to fix the >> (assumed) re-post issues in your application. >> >> -Josh >> >> -- >> >> "His comrades fought beside him, Van Owen and the rest... >>But of all the thompson gunners- Roland was the best." >> >> Josh McDonald >> Analyst Programmer >> Information Technology >> Ph: 61 7 3006 6460 >> Email: [EMAIL PROTECTED] >> >> >> >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>> >> >> >> >> Hi >> Anyone can tell how to disable the "Back" button in IE >> through our Code. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> >> ** >> * >> Messages included in this e-mail and any of its attachments >> are those of the author unless specifically stated to >> represent WorkCover Queensland. The contents of this message >> are to be used for the intended purpose only and are to be >> kept confidential at all times. >> This message may contain privileged information directed only >> to the intended addressee/s. Accidental receipt of this >> information should be deleted promptly and the sender notified. >> This e-mail has been scanned by Sophos for known viruses. >> However, no warranty nor liability is implied in this respect. >> ** >> ** >> >> > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > Weitergabe dieser Mail bzw. Inhalte hieraus ist nicht gestattet. > > > > - > 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]
[OT] Re: need some files..
Is it Friday already? -Dennis hemant kumar <[EMAIL PROTECTED]> 02/22/2006 11:19 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject need some files.. hi frnds..i m very much new to struts programing...so i need some help.. i need 13 .jar files..to place them in my lib folder..plus the .tld files.. plz it would be very helpful if nebody send them to... [EMAIL PROTECTED] . thnks in advance.. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Re: [OT] Re: need some files..
Antonio Petrelli wrote: > hemant kumar ha scritto: >> hi frnds..i m very much new to struts programing...so i need some help.. >> i need 13 .jar files..to place them in my lib folder..plus the .tld >> files.. >> plz it would be very helpful if nebody send them to... >> [EMAIL PROTECTED] . thnks in advance.. >> >> > > And a cup of coffee for me, espresso of course ;-) I'd like one of those Dell 30" monitors. I will send you 13 JAR files if you send me the monitor. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need some files..
hi ahmed i need struts 1.1.zip file. if u hv it then send it. Ahmed Hashim <[EMAIL PROTECTED]> wrote: What do you mean by 13 .jar file? Do you mean the struts lib's and tag lib's? You can easily download them from the website. On 2/22/06, hemant kumar wrote: > > > > hi frnds..i m very much new to struts programing...so i need some help.. > i need 13 .jar files..to place them in my lib folder..plus the .tld > files.. > plz it would be very helpful if nebody send them to... > [EMAIL PROTECTED] . > > thnks in advance.. > > > - > Jiyo cricket on Yahoo! India cricket > Yahoo! Messenger Mobile Stay in touch with your buddies all the time. > -- - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[OT] Re: need some files..
hemant kumar ha scritto: hi frnds..i m very much new to struts programing...so i need some help.. i need 13 .jar files..to place them in my lib folder..plus the .tld files.. plz it would be very helpful if nebody send them to... [EMAIL PROTECTED] . thnks in advance.. And a cup of coffee for me, espresso of course ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need some files..
RTFM ? 2006/2/22, hemant kumar <[EMAIL PROTECTED]>: > > > > hi frnds..i m very much new to struts programing...so i need some help.. > i need 13 .jar files..to place them in my lib folder..plus the .tld > files.. > plz it would be very helpful if nebody send them to... > [EMAIL PROTECTED] . > > thnks in advance.. > > > - > Jiyo cricket on Yahoo! India cricket > Yahoo! Messenger Mobile Stay in touch with your buddies all the time. >
Re: need some files..
What do you mean by 13 .jar file? Do you mean the struts lib's and tag lib's? You can easily download them from the website. On 2/22/06, hemant kumar <[EMAIL PROTECTED]> wrote: > > > > hi frnds..i m very much new to struts programing...so i need some help.. > i need 13 .jar files..to place them in my lib folder..plus the .tld > files.. > plz it would be very helpful if nebody send them to... > [EMAIL PROTECTED] . > > thnks in advance.. > > > - > Jiyo cricket on Yahoo! India cricket > Yahoo! Messenger Mobile Stay in touch with your buddies all the time. > --
need some files..
hi frnds..i m very much new to struts programing...so i need some help.. i need 13 .jar files..to place them in my lib folder..plus the .tld files.. plz it would be very helpful if nebody send them to... [EMAIL PROTECTED] . thnks in advance.. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
AW: Disabling Back Button in IE
Just add document.onkeydown = function(e) { if (document.all) { if (event.srcElement.type=="text" || event.srcElement.type=="textarea") return true; else return false; } else { if (e.target.type=="text" || e.target.type=="textarea") return true; else return false; } } document.onkeypress= function(e) { if (document.all) { if (event.srcElement.type=="text" || event.srcElement.type=="textarea") return true; else return false; } else { if (e.target.type=="text" || e.target.type=="textarea") return true; else return false; } } to your page and all keys pressing has no effect, except for text and textarea fields. So the only way still to get back ist pressing ALT-Leftarrow within a text or text area. You might catch this as well but exactly catching a specific key is more complicated especially as firefox and ie behaviour differs in that case. Bjoern > -Ursprüngliche Nachricht- > Von: Josh McDonald [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 22. Februar 2006 06:42 > An: user@struts.apache.org > Betreff: Re: Disabling Back Button in IE > > Can't (and shouldn't) be done. The closest you're likely to > get it open your app in a popup window with no menu, though > the user can still hit backspace. A better idea is to fix the > (assumed) re-post issues in your application. > > -Josh > > -- > > "His comrades fought beside him, Van Owen and the rest... >But of all the thompson gunners- Roland was the best." > > Josh McDonald > Analyst Programmer > Information Technology > Ph: 61 7 3006 6460 > Email: [EMAIL PROTECTED] > > > >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>> > > > > Hi > Anyone can tell how to disable the "Back" button in IE > through our Code. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > ** > * > Messages included in this e-mail and any of its attachments > are those of the author unless specifically stated to > represent WorkCover Queensland. The contents of this message > are to be used for the intended purpose only and are to be > kept confidential at all times. > This message may contain privileged information directed only > to the intended addressee/s. Accidental receipt of this > information should be deleted promptly and the sender notified. > This e-mail has been scanned by Sophos for known viruses. > However, no warranty nor liability is implied in this respect. > ** > ** > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail bzw. Inhalte hieraus ist nicht gestattet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting Access to Application Properties from plain classes
Hi, normally we are getting the properties them in the normal Struts-way with the help of the request or bean:message , but for the purpose of some test classes it would be useful to access them within a main class or a plain java class. I tried this but I didn't find a solution. Is there any possibility? Thanks a lot! Nice greetings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get the value of combo box of previous page?
Try this first: http://wiki.apache.org/struts/StrutsWidgets On 2/22/06, PC Leung <[EMAIL PROTECTED]> wrote: > > > The above line returns blank. Where goes wrong? > > In previous page as below, the combo box has values. > > > > property="eng_name"/> > > > > struts-config.xml is > > input="user.selectUser" > name="userForm" > scope="session" > validate="false" > type="com.user.struts.action.SetupSelectUserAction"> > > > > input="user.assignUserSystem" > name="userSystemForm" > scope="session" > validate="false" > > type="com.user.struts.action.SetupAssignUserSystemAction"> > /> > > > > public final class SetupSelectUserAction extends Action { > private Log log = > LogFactory.getFactory().getInstance(this.getClass().getName()); > public ActionForward execute (ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws Exception { > UserProfileService service = new UserProfileService(); > Collection userList = service.getUserProfileList(null); > HttpSession session = request.getSession(); > session.setAttribute( "userList", userList ); > UserForm userForm = (UserForm)form; > userForm.setMethod("create"); > log.info("SetupSelectUserAction:" + userForm.getMethod()); > return mapping.findForward("success"); > } > > - > 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: RequestProcessor processPopulate heavily increases memory usage
Hi, Thanks for your pointers. It turns out that on *all* forms the enctype="multipart/form-data" was set even though no file upload was taking place. This caused the commons multipart request handler to allocate huge amounts of memory (256K for each field on the form) for each form which never get released. I 'fixed' it by setting memFileSize to a low value (2K) Apparently the enctype was added to all forms to circumvent problems when chaining Struts actions. Yes I know, I just started here one month ago and ugly skeletons keep falling out of the closet every day. Thanks for your time, Willem "Michael Jouravlev" <[EMAIL PROTECTED]> 21/02/2006 20:08 Por favor, responda a "Struts Users Mailing List" Para: "Struts Users Mailing List" cc: Asunto: Re: RequestProcessor processPopulate heavily increases memory usage Session-scoped form can affect memory footprint on the first load and barely on update. He gets +30M on each load. I doubt that reasonably designed session-scoped form can be at fault here. It would sit there, but it would not grow that fast. There should be something else that he allocates. BTW, his log shows request-scoped form. Willem, try to create an empty action/form pair and test it. I suppose this is something that you create. Michael. On 2/21/06, Joe Germuska <[EMAIL PROTECTED]> wrote: > Do you have a session scoped form with one or more FormFile > properties? Consider switching the scope to request, or > alternatively, using the element to reduce the size of > the in-memory file representation before the data is written to disk > (see the memFileSize attribute described at > http://struts.apache.org/struts-action/userGuide/configuration.html#controller_config > ) > > Joe > > At 6:12 PM +0100 2/21/06, [EMAIL PROTECTED] wrote: > >Hi, > > > >Last week we migrated our Struts 1.0 application to 1.2.8. As far as we > >can tell, we correctly followed the migration steps inbetween. > >Since the migration we have noticed the following weird behaviour: > >upon submitting a form from a jsp to as struts form/action, the method > >processPopulate of RequestProcessor will increase memory usage on our > >windows box by some 30M for each call. Unfortunately, this extra memory is > >not freed, not even after waiting more than say one hour. After a few such > >requests, needless to say, this produces OutOfMemoryErrors. > >I pinpointed the memory usage to this method by setting > >log4j.logger.org.apache.struts=DEBUG in my log4j.properties. In the log, > >after form submission, the following info appears: > > > >DEBUG: RequestUtils.createActionForm.300 -> --> > >[EMAIL PROTECTED] (21 feb 2006 17:59:31,156) > >DEBUG: RequestProcessor.processActionForm.327 -> Storing ActionForm bean > >instance in scope 'request' under attribute key 'incidentForm' (21 feb > >2006 17:59:31,156) > >DEBUG: RequestProcessor.processPopulate.793 -> Populating bean properties > >from this request (21 feb 2006 17:59:35,616) > >DEBUG: CommonsMultipartRequestHandler.getRepositoryPath.388 -> File upload > >temp dir: > >C:\dev\workspace-reconstruct-hibernate\Attend\work\org\apache\jsp (21 feb > >2006 17:59:35,772) > > > >What could be the cause of this excessive memory increase? > > > >Could it be that the entire Struts config is accidentally reloaded because > >of a problem in our configuration? > > > >Thanks, > >Willem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: debuging in eclipse
I am using eclipse/MyEclipse for my application development. I never did such complex setting for debugging. For me it always works fine with tomcat 4, tomcat 5 and Weblogic 8.1. Do these setting really needs to debug the application. Nitin M. Mandolkar. On 2/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Is your server(i.e tomcat or Jboss or whatever) running and listening > for debugging connections? > > here is how I use Tomcat, JBoss and Eclipse to build and debug > applications. > > Which ever platform you are using (tomcat or JBoss) you need to start > them with the JPDA debugging enabled. For tomcat this is very easy. In > the $CATALINA_HOME/bin directory there is a script catalina.sh. If you > provide the arguments 'jpda start' tomcat will startup and listen on > port 8000 for a debugger connection. > > With JBoss its only slightly more complicated. Basically you need to > specify the JAVA_OPTS to have java start up listening for debugger > connections. I typically copy the $JBOSS_HOME/bin/run.sh to > $JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the > JAVA_OPTS environment variable and use the run.sh script. > > The value of JAVA_OPTS needs have -Xdebug > -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified. > > > here is the official info on the connection arguments: > http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html > Once you have JBoss or Tomcat running and listening for debugging > connections you are good to go for connectin with Eclipse. Ofcourse you > need have mention the same listen port in your 'debug launch > configuration' of eclipse. > > Hope this will help. > > Chandra > > -Original Message- > From: Shasirekha Engala [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 5:37 PM > To: user@struts.apache.org > Subject: Reg: debuging in eclipse > > Hi > > I have some problem related to eclipse. When I am trying to debug my > struts application I am getting the error as "Failed to connect to > remote VM". > Can I get solution to this problem. > > > Regards > Shasi > > > > - > 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: debuging in eclipse
Is your server(i.e tomcat or Jboss or whatever) running and listening for debugging connections? here is how I use Tomcat, JBoss and Eclipse to build and debug applications. Which ever platform you are using (tomcat or JBoss) you need to start them with the JPDA debugging enabled. For tomcat this is very easy. In the $CATALINA_HOME/bin directory there is a script catalina.sh. If you provide the arguments 'jpda start' tomcat will startup and listen on port 8000 for a debugger connection. With JBoss its only slightly more complicated. Basically you need to specify the JAVA_OPTS to have java start up listening for debugger connections. I typically copy the $JBOSS_HOME/bin/run.sh to $JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the JAVA_OPTS environment variable and use the run.sh script. The value of JAVA_OPTS needs have -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified. here is the official info on the connection arguments: http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html Once you have JBoss or Tomcat running and listening for debugging connections you are good to go for connectin with Eclipse. Ofcourse you need have mention the same listen port in your 'debug launch configuration' of eclipse. Hope this will help. Chandra -Original Message- From: Shasirekha Engala [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 5:37 PM To: user@struts.apache.org Subject: Reg: debuging in eclipse Hi I have some problem related to eclipse. When I am trying to debug my struts application I am getting the error as "Failed to connect to remote VM". Can I get solution to this problem. Regards Shasi - 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]
How to get the value of combo box of previous page?
The above line returns blank. Where goes wrong? In previous page as below, the combo box has values. struts-config.xml is public final class SetupSelectUserAction extends Action { private Log log = LogFactory.getFactory().getInstance(this.getClass().getName()); public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { UserProfileService service = new UserProfileService(); Collection userList = service.getUserProfileList(null); HttpSession session = request.getSession(); session.setAttribute( "userList", userList ); UserForm userForm = (UserForm)form; userForm.setMethod("create"); log.info("SetupSelectUserAction:" + userForm.getMethod()); return mapping.findForward("success"); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reg: debuging in eclipse
Can you please check eclipse log file at same. You will get more details. Nitin M. Mandolkar. On 2/22/06, Shasirekha Engala <[EMAIL PROTECTED]> wrote: > > Hi > > I have some problem related to eclipse. When I am trying to debug my > struts > application I am getting the error as "Failed to connect to remote VM". > Can I get solution to this problem. > > > Regards > Shasi > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: application resources on iplanet
Thanks Jim, that information is valuable for me, i have no access to the iplanet machine, and i can´t change any configuration. The same war is working on Sun One 6.1 and tomcat, i tried changing the configuration from struts-config to web.xml, and same results. I'll try to get a copy of the same server and deploy it local. Thanks... Jim Reynolds escribió: I checked with my Admin who managers our IPLanet, and he says there is no additional classpath configuration. That IPlanet creates the classpath from /WEB-INF/classes automatically. Scott On 2/21/06, Scott Purcell <[EMAIL PROTECTED]> wrote: Yes, I believe you are correct. If the classes are found so should the resources. . We use IPlanet and I have never seen that issue. I will seek information from our system admin, and will email back. -Original Message- From: Raúl Eduardo Plata [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 2:26 PM To: Struts Users Mailing List Subject: Re: application resources on iplanet But the properties is on WEB-INF/classes/resources/portal.properties, is this path on the classpath by default, isn´t? It´s a war file and the classes within WEB-INF/classes are found. Thanks, Raúl Scott Purcell escribió: Since you are not using a package for the "resources.portal" bundle, are you sure that the resource.portal is in IPlanets classpath? If not, it will not find it. -Original Message- From: Raúl Eduardo Plata [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 2:01 PM To: Struts Users Mailing List Subject: application resources on iplanet Hi i am deploying on tomcat, but now i need to move to my production environment iPlanetTM Web Server, Enterprise Edition 6.0, and i having problems with the application resource properties, the same war works fine on tomcat and sun one app server 6.1 SP4, but with this server (iplanet 6.0) it seems like the properties is not found. I have this on my struts-config.xml and i am getting the key as result on iplanet (on tomcat is ok) like ???es.registro.formularioRegistro.nombreEmpresa.nombreVacio??? thanks for your help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Action Oriented Framework Rendering Mode
The ww:action is not used for AJAX interactions with the server. There are several UI widgets that can be AJAX enabled - the one you would be looking for is the remote DIV. But, this would be most helpful in a webwork application to make it portlet-like, not sure how it would help when deployed into another porlet container. /Ian -- From Down & Around, Inc. Innovative IT Solutions Software Architecture * Design * Development ~ web: www.fdar.com email [EMAIL PROTECTED] phone:617.821.5430 ~ Pilgrim, Peter wrote: See intermixed -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 7:02 PM To: Struts Users Mailing List Subject: Re: Action Oriented Framework Rendering Mode On 2/21/06, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: I have a requirement to possibly build a new web application to support portlets and also be displayable in a standard Java EE webapp server in the future. Do you mean any portlets or JSR-168 portlets? Actually I am unsure of the portlet world. I believe the target server is going to be a Weblogic Portal server. So I am assuming it will be JSR 168 portlets. Does this make a huge difference? Basically it looks like the web application has to support two view styles. One style is the classical Tiles and regionalisation of the JSP view. For instance you would have a corporate header, footer, a navigation menu and a content area. This is something that every web developer like myself has done over the last five years. The other style is to chuck all the extra tiles stuff away like the header, portal and menu system. For the portlet view just render the content region. The content view is the same as it would with the Tiles regions. I have called this a ``style'', but now I come to think of it ought to be called a ``mode'' as in mode of (render) employment. Thoughts are most welcome, even from the Component-oriented people. Any more ideas more than welcomed. How about this as food for thought: http://jspcontrols.sourceforge.net From the book WebWork in Action, I believe Webwork can implement some aspect of a page controller methodolody, by using the tag inside a JSP. In this way a WW action can render a portion of the view. What I dont know is if you can use the tag to render AJAX components i.e. AJAX styled box out or dependency list drop downs. BTW: The JSP Control live examples look nice. Thanks -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse Group - "One Bank", Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 peter dot pilgrim at credit-suisse.com == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action Oriented Framework Rendering Mode
See intermixed > -Original Message- > From: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 21, 2006 7:02 PM > To: Struts Users Mailing List > Subject: Re: Action Oriented Framework Rendering Mode > > > On 2/21/06, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > > > >I have a requirement to possibly build a new web application to > > > >support portlets and also be displayable in a standard Java EE > > > >webapp server in the future. > > Do you mean any portlets or JSR-168 portlets? > Actually I am unsure of the portlet world. I believe the target server is going to be a Weblogic Portal server. So I am assuming it will be JSR 168 portlets. Does this make a huge difference? > > > >Basically it looks like the web application has to > > > >support two view styles. > > > > > > > >One style is the classical Tiles and regionalisation of the > > > >JSP view. For instance you would have a corporate header, > > > >footer, a navigation menu and a content area. This is something > > > >that every web developer like myself has done over the > > > >last five years. > > > > >The other style is to chuck all the extra tiles stuff away like > > > >the header, portal and menu system. For the portlet view > > > >just render the content region. The content > > > >view is the same as it would with the Tiles regions. > > > > >I have called this a ``style'', but now I come to think > > > >of it ought to be called a ``mode'' as in mode of (render) > > > >employment. > > > > > > > >Thoughts are most welcome, even from the > Component-oriented people. > > > > > > > > Any more ideas more than welcomed. > > How about this as food for thought: http://jspcontrols.sourceforge.net > >From the book WebWork in Action, I believe Webwork can implement some aspect of a page controller methodolody, by using the tag inside a JSP. In this way a WW action can render a portion of the view. What I dont know is if you can use the tag to render AJAX components i.e. AJAX styled box out or dependency list drop downs. BTW: The JSP Control live examples look nice. Thanks -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse Group - "One Bank", Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 peter dot pilgrim at credit-suisse.com == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reg: debuging in eclipse
Hi I have some problem related to eclipse. When I am trying to debug my struts application I am getting the error as "Failed to connect to remote VM". Can I get solution to this problem. Regards Shasi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts iterate tag
Hello group, i have a problem with the logic:iterate tag ... i want to show a list of objects (which habe attributes with values of 0 or 1 or 2) I want to show them in a list of radio-elements OBJECT 1 0 1 20 1 20 1 2 OBJECT 20 1 20 1 20 1 2 ... where 0,1,2 is a radio-element (one of 0 or 1 or 2 can be choosen). public class AuthRightForm extends ActionForm { private Right[] rightlist_ary; get / set ... // after loading rightlist_ary = new Right[10]; // filling rightlist_ary from DB ... ... , Index = The displaying of the values is working, so if Object 1, property 1 has a value of 2, the 3rd radio-element is selected - this works fine. But, after submitting the form, I do not see the changed values (if I change the radio-buttons). The value of rightlist_ary is always null - so I do not see any objects in the list any more. The request-object has values like that: right[3].val_owner -> 1 right[2].val_owner -> 2 right[1].val_owner -> 1 ... Does anyone has a solution for that? Thanks a lot HP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles on Tomcat 5.0.30
[EMAIL PROTECTED] ha scritto: Hi All I have used tiles in while this week and when I look at Tiles user guide, it says "If you are using Struts 1.2.x you will need to also make sure you are using the |org.apache.struts.tiles.TilesRequestProcessor| or a |RequestProcessor| class that extends it." My application is working fine without it. Can you please explain the reasons for this? It is useful only if you want to forward to a Tiles definition inside your actions, e.g.: return mapping.findForward("name.of.the.definition"); Withou TilesRequestProcessor, you cannot use this feature. Ciao Antonio Petrelli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]