Need for a sample with indexed properties
Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly Programming Jakarta Book says that, when a property like PrpertyElement[] is defined, the following methods should be present : getPropertyName(int a) and setPropertyName(int a, ProperyElement b - the JSP reading this indexed property - an action populating the indexed property before forwarding to the JSP. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple modules
Hi, do you have to have a default module called '' or with multiple modules can they all be defined with a name? init-param param-nameconfig/equipment/param-name param-value/WEB-INF/struts-equipment-config.xml/param-value /init-param init-param param-nameconfig/logistics/param-name param-value/WEB-INF/struts-logistics-config.xml/param-value /init-param I'm getting errors with deployment when I don't have: init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param Even though theres no mention of a struts-config.xml within my web.xml I'm seeing these errors on the console. DEBUG - Initializing module path '' configuration from '/WEB-INF/struts-config.xml' 2003-10-03 16:05:05,600 DEBUG [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] action.ActionServlet (ActionSer vlet.java:916) - Initializing module path '' configuration from '/WEB-INF/struts-config.xml' 03-Oct-2003 16:05:05 o'clock CST Error HTTP BEA-101017 [ServletContext(id=13453463,name=opweb,context-path=/opw eb)] Root cause of ServletException. java.lang.NullPointerException at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1003) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: workflow extension question
Hi, I think what you are saying (The scenarios you have described )is not possible with the current workflow implementation. Because when a user leaves a workflow(Like you said, he is bored and clicks on a menu link.), then there is a workflow violation and the workFLow for whicch this violation occured is cleared or flushed.SO there si no chance that the user can come back to this workflow again. COrrect me if i got this wrong.But as you said, I will also be interested in getting a few more features to this extension(Like the ability to rollback workflo state in case of exception in actions execution).Right now I am trying to get some features(with some help from Matthias :-))) working for our project.Hope that the current implementation solves our needs. regards, Shirish -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:49 AM To: Struts Users Mailing List Subject: workflow extension question Matthias: Now to take you up on your offer.is something missing? What thoughts do you have on a end all previous workflows property? The thought is this: - my user is working through a process, and gets bored or distracted - rather than using the provided cancel button, they use a nav link to go elsewhere (ie, a terms and conditions or what's new page) - my thought is to let them do this, perhaps they'll jump back (browser back) to the step they were on and continue their path - but, if they don't ever come back, and end up starting another workflow process, they'll be dumped right back to their first workflow. - being thrown back to a place you wanted to leave would be confusing So, the answer to this is an initialization page for each process that basically says cancel out all existing workflows and states, and start this workflow instead. Yes, ideally, the user should use the opt-out mechanism provided to them, but you can't expect that to happen. And, I'm not keen on designing for a modal experience unless absolutely necessary. One could go through every possible action and add a noWorkflowChecks everywhere, but that still doesn't resolve the issue of them starting a new process w/o explicitly terminating an existing one. To illustrate what I'm seeing: !-- the landing page for initializing this process -- action path=/content/startNewTask forward=/content/displayTaskStartScreen.do set-property property=authClass value=com.foo.workflow.authentication.LoggedInAuthentication / set-property property=endAllExistingWorkflows value=true new property set-property property=primaryWorkflow value=wkfAddNewTraitStart/ set-property property=newState value=initialized/ !-- not logged in authentication exception -- forward name=authenticationException path=/login.jsp / /action Any thoughts? -- adam - Original Message - From: Matthias Bauer [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 15, 2003 1:59 AM Subject: Re: workflow - Re: integration with other app Fortunately I am far enough away to avoid your kiss ;-) Please let me know, if you believe something is missing. I am sure I can give you some more hints on how to solve a specific task. The Struts Workflow Extension is a very powerful, yet low-level framework. Thus, it offers very much flexibility but sometimes the right way to achieve a solution is not as apparent as desired. Just in case you are interested: We are also offering commercial support for this extension and Struts itself. --- Matthias Adam Levine wrote: Matthias: I could kiss you! I've been struggling with this issue and have been going bald over the last week doing a lot of my own engine work. I can't wait to try this out and see if it doesn't work for me as cleanly as it looks. From: Matthias Bauer [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: workflow - Re: integration with other app Date: Fri, 12 Sep 2003 08:35:36 +0200 Martin, the Struts Workflow Extension http://www.livinglogic.de/Struts/ addresses some of the issues you raise. Especially the thing about a workflow scope. But it is also easily possible to build reusable action sequences: Consider for instance a confirmation dialog that demands the user to press a Yes and No button. You will need this multiple times within an application, but you normally want to code the necessary actions only once and reuse them in different contexts (i. e. with a customized question and return action). Please let me know, when you have any questions related to the Struts Workflow Extension. --- Matthias Martin Naskovski wrote: One thing I find particularly cumbersome in Struts is web page workflow. Currently, if I want to push Cancel for instance, or Submit on a certain
Simple validator question
Hi all, Is it possible to supply the msg element with the value the user entered in the form as the content of the arg element? My key errors.login.email.invalid is: {0} is an invalid email address So when a user enters 'foo' as an email adres I want an error message saying: 'foo is an invalid email address' Is this possible? Here is the code: form name=MailPasswordForm field property=email depends=required,email msg name=required key=errors.login.email.required/ msg name=email key=errors.login.email.invalid/ arg0 name=email key=email/ /field /form Thanks and regards, Jeroen -- X-Hive Corporation e-mail: [EMAIL PROTECTED] phone: +31 10 2818080 http://www.x-hive.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator exception when not configured
Hi, Is the validator initialization supposed to fail and print a stack trace in my log when I have not enabled it in my struts-config.xml? Running struts 1.1. Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml' Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validation.xml' Oct 3, 2003 11:03:48 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 67 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) TIA, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Still an issue: Quartz plugin shutdown problem
Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 199) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 176) at com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97) at com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java: 1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle t.java:23) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j ava:436) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic ationHandler.java:150) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext. java:442) at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j ava:85) at org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext. java:89) at org.jboss.jetty.Jetty.deploy(Jetty.java:331) at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy3.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne r.java:435) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner. java:561) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan( AbstractDeploymentScanner.java:217) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab stractDeploymentScanner.java:230) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs tractDeploymentScanner.java:207) --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- -
Re: Validator exception when not configured
Hi, Is the validator initialization supposed to fail and print a stack trace in my log when I have not enabled it in my struts-config.xml? Running struts 1.1. Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml' Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validation.xml' Oct 3, 2003 11:03:48 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 67 column 11: The content of element type web-app must match web-app is in web.xml and has nothing to do with Validator ;-), see line 67 of your web.xml to fix the error Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file not found
Is your webapp actually deployed (as opposed to simply uploading the files) on that server? It seems like Struts is not running or your web.xml is messed up if the server is not forwarding *.do requests to the Struts ActionServlet. -Max - Original Message - From: ajay brar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 7:19 PM Subject: file not found hi! i am a new struts user. i am having the following problem when i click on a link that is supposed to perform an action and either return an error or success, it says fileTransfer.do not found here is my link html:link page=/fileTransfer.do?action=getStatistics/html:link my struts-config.xml is ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config !-- == Global Forward Definitions == -- global-forwards forward name=success path=/fileTransfer.jsp/ forward name=error path=/fileTransfer.jsp/ /global-forwards !-- == Action Mapping Definitions == -- action-mappings !-- Process a fileTransfer -- actionpath=/fileTransfer type=FileTransferAction scope=request input=fileTransfer/ /action-mappings controller !-- The input parameter on action elements is the name of a local or global forward rather than a module-relative path -- set-property property=inputForward value=true/ /controller !-- == Message Resources Definitions === -- message-resources parameter=ApplicationResources/ /struts-config FileTransferAction is in WEB-INF/classes the program works fine at home where i'm using tomcat 5.0 (the one that comes with java web services developer's pack) however when i upload it to my hosting service provider, www,eroute.net (which uses Tomcat 4.1.24), i get the File Not Found Error the file can be seen at www.ajaybrar.net/projectv2 thanks a lot ajay _ Chat via SMS. Simply send 'CHAT' to 1889918. More info at http://ninemsn.com.au/mobilemania/MoChat.asp?blipid=6800 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator exception when not configured
INFO: Loading validation rules file from '/WEB-INF/validation.xml' Oct 3, 2003 11:03:48 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 67 column 11: The content of element type web-app must match web-app is in web.xml and has nothing to do with Validator ;-), see line 67 of your web.xml to fix the error Yann Urgh, I had placed my resource-ref's before the taglib and due to my newbieness of Struts, I figured that it was a Struts issue. Thanks for the pointer! BR, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help drasticaly needed ; indexed properties
I recently asked for some help on indexed properties and I still some assistance. However, I made some progress in the understanding of the issue. I traced the Struts source code to understand a little better why I'm loosing collection date in between Struts actions. I have a very simple JSP (not using struts-layout here since I wanted to test the most simple example possible). It uses a 'signals' property of a my form names 'strategyForm'. See below. When I hit the validate button, I have lost the 'signals' property. I debugged Strsts source files and I realized that the request does not have the 'signals' parameter (RequestUtils.populate() which calls BeanUtils.populate() ). == QUESTIONS - How do I make sure that an indexed property will be populated in the form of a Struts action - How to I make sure in the JSP file that the 'signals' property in the HTML form ? Should I add a hidden field ? But how ? Any response will be appreciated. Below, you will find the entire JSP file and the relevant part of my strategy form source code. Thanks in advance for your help. Fred html head titleTest Indexed property/title /head body html:form action=/DisplayStrategy.do?reqCode=display html:text property=code / html:text property=label / html:hidden property=itemCount / table width=650 border=0 cellspacing=0 cellpadding=0 tr align=left thOrder/th thCode/th /tr logic:iterate id=orderedSignal name=strategyForm property=signals tr align=left td bean:write name=orderedSignal property=order/ /td td bean:write name=orderedSignal property=signal.code/ /td /tr /logic:iterate html:submitValidate/html:submit /table /html:form /body /html import com.rubis.web.system.OrderedSignalBean; public class StrategyForm extends ValidatorActionForm implements java.io.Serializable { public OrderedSignalBean getSignals(int index) { return signals[index]; } public OrderedSignalBean[] getSignals() { return signals; } public void setSignals(int index, OrderedSignalBean signal) { signals[index] = signal; } public void setSignals(OrderedSignalBean[] array) { this.signals = array; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getLabel() { return this.label; } public void setLabel(String label) { this.label = label; } public void reset(ActionMapping mapping, HttpServletRequest request) { this.code = null; this.label = null; this.signals= null; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FRIDAY] Hip-Hop Hits Bahgdad
http://atomfilms.shockwave.com/af/content/real_hussein?mid=9693882 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple validator question
Here's roughly what you want to do to get 'Foo is an invalid email address': Make sure you've added this to you ApplicationResources.properties file as the 'email' rule expects a message named 'errors.email' - check the code for it and you will see. errors.email={0} is an invalid e-mail address. below is a snippet from my JSP where the e-mail entry field is declared: td width=24% align=rightbean:message key=validateForm.emailField.displayname//td td width=76% align=left html:text property=emailField / html:errors property=emailField / /td and the associated entry in the validation.xml file... field property=emailField depends=email arg0 key=validateForm.emailField.errorname/ /field other pertinent entries (for the code above) in the ApplicationResources.properties file: validateForm.emailField.displayname=span class=formLabelAn email:/span validateForm.emailField.errorname=Foo works great - makes its own sauce... -jeff On Friday, October 3, 2003, at 03:25 AM, Jeroen Breedveld wrote: Hi all, Is it possible to supply the msg element with the value the user entered in the form as the content of the arg element? My key errors.login.email.invalid is: {0} is an invalid email address So when a user enters 'foo' as an email adres I want an error message saying: 'foo is an invalid email address' Is this possible? Here is the code: form name=MailPasswordForm field property=email depends=required,email msg name=required key=errors.login.email.required/ msg name=email key=errors.login.email.invalid/ arg0 name=email key=email/ /field /form Thanks and regards, Jeroen -- X-Hive Corporation e-mail: [EMAIL PROTECTED] phone: +31 10 2818080 http://www.x-hive.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple validator question
Hi Jeff, || -Original Message- || From: Jeff Kyser [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 14:24 || To: Struts Users Mailing List || Subject: Re: Simple validator question || ... || field property=emailField depends=email || arg0 key=validateForm.emailField.errorname/ || /field || || other pertinent entries (for the code above) in the || ApplicationResources.properties file: || || validateForm.emailField.errorname=Foo Thanks for your help but this is not what I meant. I've probably not been clear enough. I do not want the string 'foo' to come from a resource file but it has to be what the user entered in the html:text input box and which was invalidated by the validator framework. So if a user enters '[EMAIL PROTECTED]' as emailaddress the error message should read '[EMAIL PROTECTED] is an invalid email address' When a user enters '[EMAIL PROTECTED]' the error message should read '[EMAIL PROTECTED] is an invalid email address' Thanks and regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help drasticaly needed ; indexed properties
Hi, The problem seems to be that when you are using bean:write, the data you write is not included in the request when the page is displayed.So if you want to resedn the same data as part of request, use html:hidden along with bean:write. I did not go in much detail of your code.But I think what you are looking for is indexed and nested property. You have to understand how struts prepolutaion tries to call properties on form from param name. 1.IF porperty is signal.code, when prepopulating, it will resolve to youForrm.getSignal.setCode(String aa) 2.IF porperty is signal[i].code, when prepopulating, it will resolve to youForrm.getSignal(i).setCode(String aa). Hope this helps. Regards, Shirish -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 12:15 PM To: struts-layout; struts-user Subject: Help drasticaly needed ; indexed properties I recently asked for some help on indexed properties and I still some assistance. However, I made some progress in the understanding of the issue. I traced the Struts source code to understand a little better why I'm loosing collection date in between Struts actions. I have a very simple JSP (not using struts-layout here since I wanted to test the most simple example possible). It uses a 'signals' property of a my form names 'strategyForm'. See below. When I hit the validate button, I have lost the 'signals' property. I debugged Strsts source files and I realized that the request does not have the 'signals' parameter (RequestUtils.populate() which calls BeanUtils.populate() ). == QUESTIONS - How do I make sure that an indexed property will be populated in the form of a Struts action - How to I make sure in the JSP file that the 'signals' property in the HTML form ? Should I add a hidden field ? But how ? Any response will be appreciated. Below, you will find the entire JSP file and the relevant part of my strategy form source code. Thanks in advance for your help. Fred html head titleTest Indexed property/title /head body html:form action=/DisplayStrategy.do?reqCode=display html:text property=code / html:text property=label / html:hidden property=itemCount / table width=650 border=0 cellspacing=0 cellpadding=0 tr align=left thOrder/th thCode/th /tr logic:iterate id=orderedSignal name=strategyForm property=signals tr align=left td bean:write name=orderedSignal property=order/ /td td bean:write name=orderedSignal property=signal.code/ /td /tr /logic:iterate html:submitValidate/html:submit /table /html:form /body /html import com.rubis.web.system.OrderedSignalBean; public class StrategyForm extends ValidatorActionForm implements java.io.Serializable { public OrderedSignalBean getSignals(int index) { return signals[index]; } public OrderedSignalBean[] getSignals() { return signals; } public void setSignals(int index, OrderedSignalBean signal) { signals[index] = signal; } public void setSignals(OrderedSignalBean[] array) { this.signals = array; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getLabel() { return this.label; } public void setLabel(String label) { this.label = label; } public void reset(ActionMapping mapping, HttpServletRequest request) { this.code = null; this.label = null; this.signals= null; } - 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: Deploying web app (.ear = .jar + .war) under Weblogic with Struts
We are using Struts 1.1 in a WL 7.0 SP2 application, deployed as a .ear and everything seems to be working fine. The only difference between our app and your app that I can identify so far is that we are deploying our web app inside the .ear as an expanded directory versus as a .war file. So, for example, our app is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar |--WEB-INF |--lib |--classes and our application.xml is: application display-namewebapp/display-name descriptionwebapp/description module ejbwebapp.jar/ejb /module module web web-uriwebapp/web-uri context-rootwebapp/context-root /web /module It not supposed to make a difference, but perhaps expanding your web app would make a difference? Scott -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:22 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Have you tried prefer-web-inf-classes? The prefer-web-inf-classes element, if set to true, will cause classes located in the WEB-INF directory of a Web application to be loaded in preference to classes loaded in the application or system classloader. The default value is false. A value specified in the console will take precedence over a value set manually. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:00 To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Hello everyone, this looks pretty like the mail posted by Navneet Saraogi a couple of months ago. I am trying to deploy a .ear application under Bea Weblogic 7.0 using Struts 1.1. What happens (funny) is that if I deploy my webapp.war (containing the web module and Struts library) and webapp.jar (containing ejbs) at the same time, everything works properly and the web application integrates happily with ejbs. But if I merge the two files into a .ear, it deploys correctly, but when I launch the application I get the following error message: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm since apparently it isn't able to find the path to the library struts.jar, and of course the application does not work. Our directory structure is apparently the correct one, and that is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar.war inside the .ear I have a META-INF directory with application.xml that looks like this: application display-namewebapp/display-name descriptionwebapp/description module ejbwebapp.jar/ejb /module module web web-uriwebapp.war/web-uri context-rootwebapp/context-root /web /module and the file struts.jar is inside the webapp.war file at the path \WEB-INF\lib, while the other developed classes are at the path \WEB-INF\classes. I also tried inserting Class-Path: webapp.jar inside \META-INF\MANIFEST.MF in the webapp.war file, to make it see the ejbs, but it still does not work. Anyone has any idea of what I am missing ? Thank you, Marco Piana Rome, Italy. - 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: Simple validator question
I haven't tried it, but would something like this work? field property=emailField depends=email arg0 key=${var:emailField} resource=false/ /field -Original Message- From: Jeroen Breedveld [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 08:53 To: 'Struts Users Mailing List' Subject: RE: Simple validator question Hi Jeff, || -Original Message- || From: Jeff Kyser [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 14:24 || To: Struts Users Mailing List || Subject: Re: Simple validator question || ... || field property=emailField depends=email || arg0 key=validateForm.emailField.errorname/ || /field || || other pertinent entries (for the code above) in the || ApplicationResources.properties file: || || validateForm.emailField.errorname=Foo Thanks for your help but this is not what I meant. I've probably not been clear enough. I do not want the string 'foo' to come from a resource file but it has to be what the user entered in the html:text input box and which was invalidated by the validator framework. So if a user enters '[EMAIL PROTECTED]' as emailaddress the error message should read '[EMAIL PROTECTED] is an invalid email address' When a user enters '[EMAIL PROTECTED]' the error message should read '[EMAIL PROTECTED] is an invalid email address' Thanks and regards, Jeroen - 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: newbie: Best Practice Struts/Value-Objects?
To make sure I understand, the options so far are to: 1. Pass the full VO to the view, create the 15 other fields as hidden tags within the form, and then on submit Action create a blank VO and populate with the fields and send to the DB. 2. Pass the full VO to the view, get the 5 fields that are changed from the form, and then on submit Action re-create the original VO and simply change the 5 fields within that newly created original and pass that back to the DB. 3. Create specialized LightVO's that are only the field groupings that will be changed for that submit Action (and send the LightVO's back to the DB as-is with the changes from the form). With #1 I mentioned some concerns with maintanence but some good options came up on how to work around those. #3 seems the best approach for an environment that will be setup and not likely to change and the 'end result' for a good system (aka after there are NO more changes, and we know how often that is). But for my scenario/environment, of the options presented it seems #2 is the best combination for low-maintanence and flexibility to get started on a project and then as things settle down and performance becomes a motivator move to #3 (which is an easy migration path). Does this seem to correctly identify all the options of using Value-Objects with Struts? -D -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 3:31 PM To: 'Struts Users Mailing List' Subject: RE: newbie: Best Practice Struts/Value-Objects? Maybe make what we call a displayBean in our app. It is not a VO as we view VO's to be more domain oriented. It's just for the front end. In your action create the display bean and set it on the form. Then in your action have logic to take values from displayBean and set them in the VO. We don't want our API to get crowded with view oriented objects so the displayBean is kept in the same package as the actions. VO's are more domain oriented and can go into API package. -jm -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 2:20 PM To: Struts Users Mailing List Subject: RE: newbie: Best Practice Struts/Value-Objects? Hi John, Yeah, that is one (messy) solution to my problem. My concern is I would have to do add those 15 fields in every JSP page that sends the VO back, and if I have to make a change to the DB/VO, then go back over every JSP page again to make more changes. I'm trying to get to as low-maintanence as possible initially, even if it means sacrificing some performance by not using light-value-objects in the beginning. Can always make it faster after it is working correctly, right? ;-) I'm still lost as to how to handle Struts with Value Objects though -D -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:16 PM To: 'Struts Users Mailing List' Subject: RE: newbie: Best Practice Struts/Value-Objects? you could use hidden variables on your jsp page to store the VO attributes you are not changing and keep your VO intact only changing the 5 fields -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:05 AM To: 'Struts Users Mailing List' Subject: RE: newbie: Best Practice Struts/Value-Objects? Hi Darren, I was under the impression that it works exactly the way you hope it does. Actually I'm pretty sure it does. Also what might be worth looking at ( I have to look at it myself ), is Light-value-objects where you only populate the initial value object with the 5 fields rather than the whole 20. This is obviously more optimal in terms of db queries. This is all pre-supposing you are using xdoclet and EJBs and xdoclet, which perhaps you are not. HTH, Brian -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 13:41 To: [EMAIL PROTECTED] Subject: newbie: Best Practice Struts/Value-Objects? Hi all! Been working with struts and value-objects, and I am beginning to understand the power of these two in combination. I did however run into a snag that may be either on purpose or just ignorance on my part. If I pass a 20-field value-object to an ActionForm (let's say an EmployeeVO), and I only show the employee's name and address for editing (only 5 or so fields). They make the necessary changes and submit the form. What I understand is the form will populate a NEW EmployeeVO and not make the changes to the original EmployeeVO, thereby creating an EmployeeVO populated only from the 5 fields on the form and nulling the other 15 fields. I was hoping to take an existing Value-Object, only make necessary changes from the submitted form (i.e. 0-5 changed fields and the other 15 stay the way they are), and then re-submit the Value-Object for updating the DB, but that does not seem possible. Am I doing something wrong and/or mis-understanding the best
RE: Need for a sample with indexed properties
class MyForm{ public BankInfoStringBean getBankInfoBean(int index){ //lazy initialization while(index = this.getBankList().size() ){ this.getBankList().add(new BankInfoStringBean()); } return (BankInfoStringBean)this.getBankList().getObject(index); } public void setBankInfoBean(int index,BankInfoStringBean bean){ this.getBankList().add(index,bean); } }//class myForm logic:iterate id=beanName name=myFormName property=participantAllocationDetailSBList indexId=i tr td html:hidden name=myFormName property=%=\bankInfoBean[\+i+\].name\%/ /td /tr /logic:iterate Here myFormName is the name from ActionMapping. HTH. Regards, Shirish -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:59 AM To: struts-layout; struts-user Subject: Need for a sample with indexed properties Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly Programming Jakarta Book says that, when a property like PrpertyElement[] is defined, the following methods should be present : getPropertyName(int a) and setPropertyName(int a, ProperyElement b - the JSP reading this indexed property - an action populating the indexed property before forwarding to the JSP. Thanks in advance. - 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: newbie: Best Practice Struts/Value-Objects?
I *think* the other option is to put your form bean ( it's emebedded VO) in session scope (rather than request which you seems to have at the moment). Doing this means that the unchanged values on your VO will remain unchanged (rather than being nulled). Paul -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: 03 October 2003 14:26 To: Struts Users Mailing List Subject: RE: newbie: Best Practice Struts/Value-Objects? To make sure I understand, the options so far are to: 1. Pass the full VO to the view, create the 15 other fields as hidden tags within the form, and then on submit Action create a blank VO and populate with the fields and send to the DB. 2. Pass the full VO to the view, get the 5 fields that are changed from the form, and then on submit Action re-create the original VO and simply change the 5 fields within that newly created original and pass that back to the DB. 3. Create specialized LightVO's that are only the field groupings that will be changed for that submit Action (and send the LightVO's back to the DB as-is with the changes from the form). With #1 I mentioned some concerns with maintanence but some good options came up on how to work around those. #3 seems the best approach for an environment that will be setup and not likely to change and the 'end result' for a good system (aka after there are NO more changes, and we know how often that is). But for my scenario/environment, of the options presented it seems #2 is the best combination for low-maintanence and flexibility to get started on a project and then as things settle down and performance becomes a motivator move to #3 (which is an easy migration path). Does this seem to correctly identify all the options of using Value-Objects with Struts? -D -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 3:31 PM To: 'Struts Users Mailing List' Subject: RE: newbie: Best Practice Struts/Value-Objects? Maybe make what we call a displayBean in our app. It is not a VO as we view VO's to be more domain oriented. It's just for the front end. In your action create the display bean and set it on the form. Then in your action have logic to take values from displayBean and set them in the VO. We don't want our API to get crowded with view oriented objects so the displayBean is kept in the same package as the actions. VO's are more domain oriented and can go into API package. -jm -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 2:20 PM To: Struts Users Mailing List Subject: RE: newbie: Best Practice Struts/Value-Objects? Hi John, Yeah, that is one (messy) solution to my problem. My concern is I would have to do add those 15 fields in every JSP page that sends the VO back, and if I have to make a change to the DB/VO, then go back over every JSP page again to make more changes. I'm trying to get to as low-maintanence as possible initially, even if it means sacrificing some performance by not using light-value-objects in the beginning. Can always make it faster after it is working correctly, right? ;-) I'm still lost as to how to handle Struts with Value Objects though -D -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:16 PM To: 'Struts Users Mailing List' Subject: RE: newbie: Best Practice Struts/Value-Objects? you could use hidden variables on your jsp page to store the VO attributes you are not changing and keep your VO intact only changing the 5 fields -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:05 AM To: 'Struts Users Mailing List' Subject: RE: newbie: Best Practice Struts/Value-Objects? Hi Darren, I was under the impression that it works exactly the way you hope it does. Actually I'm pretty sure it does. Also what might be worth looking at ( I have to look at it myself ), is Light-value-objects where you only populate the initial value object with the 5 fields rather than the whole 20. This is obviously more optimal in terms of db queries. This is all pre-supposing you are using xdoclet and EJBs and xdoclet, which perhaps you are not. HTH, Brian -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 13:41 To: [EMAIL PROTECTED] Subject: newbie: Best Practice Struts/Value-Objects? Hi all! Been working with struts and value-objects, and I am beginning to understand the power of these two in combination. I did however run into a snag that may be either on purpose or just ignorance on my part. If I pass a 20-field value-object to an ActionForm (let's say an EmployeeVO), and I only show the employee's name and address for editing (only 5 or so fields). They make the necessary changes and submit the form. What I understand is the form will populate a NEW EmployeeVO and not make the changes to the
RE: Need for a sample with indexed properties
I'm working through the same issues myself. here is a good start http://jakarta.apache.org/struts/faqs/indexedprops.html -- it will cover the first 2 of your points. david -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:59 AM To: struts-layout; struts-user Subject: Need for a sample with indexed properties Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly Programming Jakarta Book says that, when a property like PrpertyElement[] is defined, the following methods should be present : getPropertyName(int a) and setPropertyName(int a, ProperyElement b - the JSP reading this indexed property - an action populating the indexed property before forwarding to the JSP. Thanks in advance. - 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: Deploying web app (.ear = .jar + .war) under Weblogic with Struts
Thank you Mark, I tried it too but it still does not work. Maybe the problem is that we had to duplicate some classes bewteen the .jar and the .war (I put them in the WEB-INF/lib directory) because they are the classes that use the ejbs and there apprently was no other way to have the war 'see' the ejbs. And deploying the entire ear as a directory does not work too, and I dont' think the manifest.mf file has any use in all this. Thanks anyway, Marco. Mark, Scott [EMAIL PROTECTED] il 03/10/2003 15.08.57 Per favore, rispondere per Struts Users Mailing List [EMAIL PROTECTED] Per: Struts Users Mailing List [EMAIL PROTECTED] Cc: Oggetto:RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts We are using Struts 1.1 in a WL 7.0 SP2 application, deployed as a .ear and everything seems to be working fine. The only difference between our app and your app that I can identify so far is that we are deploying our web app inside the .ear as an expanded directory versus as a .war file. So, for example, our app is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar |--WEB-INF |--lib |--classes and our application.xml is: application display-namewebapp/display-name descriptionwebapp/description module ejbwebapp.jar/ejb /module module web web-uriwebapp/web-uri context-rootwebapp/context-root /web /module It not supposed to make a difference, but perhaps expanding your web app would make a difference? Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:00 To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Hello everyone, this looks pretty like the mail posted by Navneet Saraogi a couple of months ago. I am trying to deploy a .ear application under Bea Weblogic 7.0 using Struts 1.1. What happens (funny) is that if I deploy my webapp.war (containing the web module and Struts library) and webapp.jar (containing ejbs) at the same time, everything works properly and the web application integrates happily with ejbs. But if I merge the two files into a .ear, it deploys correctly, but when I launch the application I get the following error message: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm since apparently it isn't able to find the path to the library struts.jar, and of course the application does not work. Our directory structure is apparently the correct one, and that is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar.war inside the .ear I have a META-INF directory with application.xml that looks like this: application display-namewebapp/display-name descriptionwebapp/description module ejbwebapp.jar/ejb /module module web web-uriwebapp.war/web-uri context-rootwebapp/context-root /web /module and the file struts.jar is inside the webapp.war file at the path \WEB-INF\lib, while the other developed classes are at the path \WEB-INF\classes. I also tried inserting Class-Path: webapp.jar inside \META-INF\MANIFEST.MF in the webapp.war file, to make it see the ejbs, but it still does not work. Anyone has any idea of what I am missing ? Thank you, Marco Piana Rome, Italy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Still an issue: Quartz plugin shutdown problem
At 19:26 -0700 10/2/03, Mick Knutson wrote: After even more toying, I get a different error about the job not being set: (any thoughts here?) Mick: Have you tried writing a simple test case that runs your XML file through the JGSI Quartz SchedulerBuilder? You might be better off making sure that you can successfully parse the XML outside of your EJB container, instead of throwing it into the container for testing. Also, it would help confirm or reject the possibility that it's something to do with the container -- since other people say they can parse it, that's probably the case, but if you have a test case, you can quickly validate changes you make to the XML external to the more complex deployment environment. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com We want beef in dessert if we can get it there. -- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
any known issues with WAS 4.0?
Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java :198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:123) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:122) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener .java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja va:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) Anyone's help would be really appreciated! Thanks!, James Bender B2E Web Development Group Fifth Third
RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts
Hmmm... that sounds a little strange. J2EE 1.3 classloading changed from 1.2. The EJBs are all loaded in 1 classloader, then each WAR is loaded in its own that is a child of the EJB classloader. So, the classes that use your EJBs shouldn't need any additional jars, like a client JAR w/ homes and remotes. If you have helper/utility JARs that the EJBs and WARs both need to access, then put them in the root of the EAR or myEar.ear/lib and add a Class-Path entry to the manifest file of each EJB JAR and each webapp WAR, not the EAR manifest. Like this: Class-Path: Butler-1.0.90.jar CommonsTypes.jar CommonsUtil.jar DomainFacade.jar i2o_commons.jar log4j.jar tibco.jar tibjms.jar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 09:54 To: Struts Users Mailing List Subject: RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Thank you Mark, I tried it too but it still does not work. Maybe the problem is that we had to duplicate some classes bewteen the .jar and the .war (I put them in the WEB-INF/lib directory) because they are the classes that use the ejbs and there apprently was no other way to have the war 'see' the ejbs. And deploying the entire ear as a directory does not work too, and I dont' think the manifest.mf file has any use in all this. Thanks anyway, Marco. Mark, Scott [EMAIL PROTECTED] il 03/10/2003 15.08.57 Per favore, rispondere per Struts Users Mailing List [EMAIL PROTECTED] Per: Struts Users Mailing List [EMAIL PROTECTED] Cc: Oggetto:RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts We are using Struts 1.1 in a WL 7.0 SP2 application, deployed as a .ear and everything seems to be working fine. The only difference between our app and your app that I can identify so far is that we are deploying our web app inside the .ear as an expanded directory versus as a .war file. So, for example, our app is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar |--WEB-INF |--lib |--classes and our application.xml is: application display-namewebapp/display-name descriptionwebapp/description module ejbwebapp.jar/ejb /module module web web-uriwebapp/web-uri context-rootwebapp/context-root /web /module It not supposed to make a difference, but perhaps expanding your web app would make a difference? Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:00 To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Hello everyone, this looks pretty like the mail posted by Navneet Saraogi a couple of months ago. I am trying to deploy a .ear application under Bea Weblogic 7.0 using Struts 1.1. What happens (funny) is that if I deploy my webapp.war (containing the web module and Struts library) and webapp.jar (containing ejbs) at the same time, everything works properly and the web application integrates happily with ejbs. But if I merge the two files into a .ear, it deploys correctly, but when I launch the application I get the following error message: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm since apparently it isn't able to find the path to the library struts.jar, and of course the application does not work. Our directory structure is apparently the correct one, and that is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar.war inside the .ear I have a META-INF directory with application.xml that looks like this: application display-namewebapp/display-name descriptionwebapp/description module ejbwebapp.jar/ejb /module module web web-uriwebapp.war/web-uri context-rootwebapp/context-root /web /module and the file struts.jar is inside the webapp.war file at the path \WEB-INF\lib, while the other developed classes are at the path \WEB-INF\classes. I also tried inserting Class-Path: webapp.jar inside \META-INF\MANIFEST.MF in the webapp.war file, to make it see the ejbs, but it still does not work. Anyone has any idea of what I am missing ? Thank you, Marco Piana Rome, Italy. - 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: any known issues with WAS 4.0?
I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java :198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:123) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:122) at
RE: any known issues with WAS 4.0?
I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java :198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at
RE: any known issues with WAS 4.0?
Do you have struts-1.1.jar in your /WEB-INF/lib directory? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java :198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at
RE: any known issues with WAS 4.0?
hmmm... this might be it. I have a file struts.jar in the lib directory. I noticed it contains dtds for struts 1.0 AND struts 1.1 in it. Do you think I installed the wrong release maybe? I'll hunt down the right jar file and see if that fixes it... -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:27 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Do you have struts-1.1.jar in your /WEB-INF/lib directory? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java :198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
RE: any known issues with WAS 4.0?
Maybe, in your /WEB-INF/web.xml there is a servlet called action correct? Something like this... servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-valueWEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:30 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? hmmm... this might be it. I have a file struts.jar in the lib directory. I noticed it contains dtds for struts 1.0 AND struts 1.1 in it. Do you think I installed the wrong release maybe? I'll hunt down the right jar file and see if that fixes it... -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:27 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Do you have struts-1.1.jar in your /WEB-INF/lib directory? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) at
Master Detail: Problem committing Master while link to Detail
Dear all, I am using one form html:form... which contains the master information of 1 record. Within that form I show the details of linked records. Something like order and orderdetails records. The master records can be edited and there are two buttons: Save and Cancel. The details records are listed only and i am using a href ... to link to the screen with the information of the details record. I am using Struts Validator and currently have no separate validate method in my Formbean In th actionmapping I set validate=true I don't use Javascript to do a prevalidation. Schematic example: Order : ___ Save Cancel List of orderitems 1. Item1and then with hrefs: Show / Delete 2. Item 2Show / Delete. I have two problems. 1. The cancel-button still validates. The isCancelled() method does not seem to work. I call it in the method executeAction of this screen. How can I pre-empt the validation? 2. When I modify information in the master part adn I what to a detail-screen, then I want the master part to be commited first, before I go to this detailscreen. The links to these items are set up using the format: href=./orderitem.do?id=num where num is the actual unique code in the database of this item.. Of course leaving the page using href, will not commit the master part. My question is: How can I make it happen? (commit the master first and then go the detail). Hope you can help, Kind regards, Robert Lamping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: any known issues with WAS 4.0?
I have this in web.xml -- I think WAS modified it a little bit: servlet id=Servlet_1 servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param id=InitParam_1 param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param id=InitParam_2 param-namedebug/param-name param-value2/param-value /init-param init-param id=InitParam_3 param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet I edited param-value/WEB-INF/struts-config.xml/param-value to be param-valueWEB-INF/struts-config.xml/param-value and restarted the example but I got the same error: Error 500: Failed to load target servlet [action] -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:33 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Maybe, in your /WEB-INF/web.xml there is a servlet called action correct? Something like this... servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-valueWEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:30 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? hmmm... this might be it. I have a file struts.jar in the lib directory. I noticed it contains dtds for struts 1.0 AND struts 1.1 in it. Do you think I installed the wrong release maybe? I'll hunt down the right jar file and see if that fixes it... -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:27 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Do you have struts-1.1.jar in your /WEB-INF/lib directory? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages
Re: [POLL] ActionFrom vs DynaActionForm
Mainguy, Mike wrote: #1 ActionForm #2 DynaActionForm I use DyanActionForms, as they are less work. Less work, less time, less money, etc. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: any known issues with WAS 4.0?
In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE to indicate !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd instead of the whole URL for the DTD it will likely be much happier. On WAS 5.0, you need to give it a URL that it can always access. David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTa g.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet .java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService( ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service( StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictL ifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(S trictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletM anager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispa tch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatc h(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWe bAppDispatch(W ebAppRequestDispatcher.java:499) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch (WebAppRequest Dispatcher.java:278) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward( WebAppRequestD ispatcher.java:105) at com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFi leServlet.java :198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
Re: [POLL] ActionFrom vs DynaActionForm
Brandon Goodin wrote: -Dynas massive struts configs are annoying and the runtime errors bite. This is one of my biggest irritations with using DynaActionForm - it has a number of bugs where exceptions are caught and then lost. -DynaForm time saving is insignificant (how long does it take for your ide to generate getters/setters?). The reason I don't like ActionForm beans is that they are too flexible - you can put any code you like in there, and that's exactly what I _don't_ want. I want a data structure that cannot be misused by people making their onw custom mods, which must then be propagated to all the ActionForms. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: any known issues with WAS 4.0?
I am behind a firewall -- didn't even think of that! I tried removing the dtds from the jar and placing them in WEB-INF and changing struts-config.xml to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd and also to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN /WEB-INF/struts-config_1_1.dtd but no luck:[ Also, Struts1.1 jar is the same as my struts.jar -- both 313 files and 1,181kb I still get Error 500: Failed to load target servlet [action] -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:39 AM To: 'Bender, James'; 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE to indicate !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd instead of the whole URL for the DTD it will likely be much happier. On WAS 5.0, you need to give it a URL that it can always access. David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTa g.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet .java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService( ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service( StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictL ifecycleServle t.java:286) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(S trictLifecycle Servlet.java:106) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletM anager.java:47 2) at
RE: any known issues with WAS 4.0?
Do you get any other errors in the websphere console? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: any known issues with WAS 4.0? I am behind a firewall -- didn't even think of that! I tried removing the dtds from the jar and placing them in WEB-INF and changing struts-config.xml to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd and also to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN /WEB-INF/struts-config_1_1.dtd but no luck:[ Also, Struts1.1 jar is the same as my struts.jar -- both 313 files and 1,181kb I still get Error 500: Failed to load target servlet [action] -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:39 AM To: 'Bender, James'; 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE to indicate !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd instead of the whole URL for the DTD it will likely be much happier. On WAS 5.0, you need to give it a URL that it can always access. David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it). -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:19 AM To: '[EMAIL PROTECTED]' Subject: any known issues with WAS 4.0? Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ The activity log reports: IBM WebSphere AEs 4.0.1 a0131.07 #com.ibm.servlet.engine.srt.WebGroup 327cd30d 3072 2kws100900202/Default Server Servlet Error: {0}: {1} %com.ibm.ejs.resources.seriousMessages java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396) at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTa g.java:294) at index_jsp_4._jspService(index_jsp_4.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.ja va:286) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet .java:415) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService( ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service( StrictLifecycl eServlet.java:159) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictL
Re: any known issues with WAS 4.0?
Hibbs, David wrote: In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE to indicate While that could be it, we've yet to have that particular problem with struts-config. We've had it with validation.xml and validator-rules.xml, but not with struts-config.xml. FWIW. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Still an issue: Quartz plugin shutdown problem
I have never run a testcase with XML, how would I do that? --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 6:55 AM Subject: Re: Still an issue: Quartz plugin shutdown problem At 19:26 -0700 10/2/03, Mick Knutson wrote: After even more toying, I get a different error about the job not being set: (any thoughts here?) Mick: Have you tried writing a simple test case that runs your XML file through the JGSI Quartz SchedulerBuilder? You might be better off making sure that you can successfully parse the XML outside of your EJB container, instead of throwing it into the container for testing. Also, it would help confirm or reject the possibility that it's something to do with the container -- since other people say they can parse it, that's probably the case, but if you have a test case, you can quickly validate changes you make to the XML external to the more complex deployment environment. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com We want beef in dessert if we can get it there. -- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association - 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: Still an issue: Quartz plugin shutdown problem
?xml version=1.0 encoding=ISO-8859-1 ? quartz-config trigger-group name=AlertSenderTriggerGroup trigger name=AlertSenderTrigger className=org.quartz.SimpleTrigger set-property property=repeatCount value=5/ set-property property=repeatInterval value=100/ set-property property=startTime value=04/04/1999 14:00:00/ set-property property=endTime value=04/04/2999 15:00:00/ /trigger /trigger-group job-group name=AlertSenderJobGroup job name=AlertSenderJob className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2 description=Alert sending Job durability=true volatility=true requestsRecovery=true / /job-group schedule jobGroup=AlertSenderJobGroup triggerGroup=AlertSenderTriggerGroup job=AlertSenderJob trigger=AlertSenderTrigger/ /quartz-config --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:27 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 199) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 176) at com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97) at com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java: 1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle t.java:23) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j ava:436) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic ationHandler.java:150) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext. java:442) at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j ava:85) at org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext. java:89) at org.jboss.jetty.Jetty.deploy(Jetty.java:331) at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591) at
Re: any known issues with WAS 4.0?
Bender, James wrote: Hi, I am new to Struts and installed Struts-example, Struts-blank etc from the stable 1.1 release at jakarta.apache.org/struts. None of these work on my WAS 4.0. I get all sorts of errors and I dug through news groups applying patches that never worked all of yesterday trying to get one of them to work. Then, I installed the struts-stub (struts 1.0) example from the tutorials on the site and that one deployed perfectly. Does Struts 1.1 just not work on WAS 4.0? On struts-blank I get Error 500: through the web -- no error context provided on the line index.jsp::logic:redirect forward=welcome/ There are several jar files you need. struts.jar is one of them, but there are many commons- jars as well. Also, for Struts 1.1 apps to work, you need some Xerces jars. Namely, xmlParserAPIs.jar and xercesImpl.jar. We're using them from the latest Xerces (2.5) on WAS 5.0, but any recent Xerces should work. It definitely seems that whatever XML parser WAS has installed isn't sufficient for Struts 1.1. In WAS 5.0, it does seem sufficient for Struts 1.0, though, so that could explain what you're seeing. Finally, you should be able to restart your web-app or app server and watch the stdout logs for Struts' startup messages. With your detail and debug parameters set the way your web.xml shows, you should get plenty of logging messages to give you some ideas what is failing on startup. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FileUpload and filePath
Hi all, I am uploading files using FormFile in my ActionForm. When the uploaded is completed I would like to show them the complete path of the files that they have uploaded. For example, C:\mydocs\doc1.txt instead of just doc1.txt. The FormFile.getFileName() retrieves the file name but I couldn't find anything that retrieves the file path. Any ideas/suggestions? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Displaytag does not work with Tiles
You're better off asking this question on the displaytag-user list. http://displaytag.sourceforge.net/mail-lists.html Matt -Original Message- From: Navneet Karnani [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 5:56 PM To: [EMAIL PROTECTED] Subject: Displaytag does not work with Tiles Hello, I was trying to get the display:* tags to help me build a sortable table but I noticed that since I was using a tiles based setup, the generated link from the sort link on the table header did not match the action that needed to be invoked. Is this a known problem ? Is there a known/published workaround ? - Navneet Karnani Umber Business Solutions Pvt. Ltd. http://www.umber.biz - 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: Simple validator question
|| -Original Message- || From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 15:19 || To: Struts Users Mailing List || Subject: RE: Simple validator question || || || I haven't tried it, but would something like this work? || || field property=emailField depends=email || arg0 key=${var:emailField} resource=false/ || /field No, unfortunately not. Now the error message reads '${var:email} is an invalid email address' (I use a property called 'email') Thanks and regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Still an issue: Quartz plugin shutdown problem
At 8:14 -0700 10/3/03, Mick Knutson wrote: I have never run a testcase with XML, how would I do that? The same way you'd run any other test case. Write java that does just as much of the process you're trying to test as necessary, without doing anything that might mess up your test. In this case, I'd write a method that uses the API of ScheduleBuilder to parse the XML file. Even if I were using JUnit, I might not bother asserting anything about it -- sometimes it's enough to know that it didn't choke. Then again, if the Quartz interface for a Schedule is reasonably open, it might not be hard to assert that the Schedule which was built has the right tasks, they have the right properties, etc. Remember that i know next to nothing about Quartz; that stuff was written by one of my colleagues who doesn't monitor the lists as carefully as I do. I'll give you a hint: there's a test case in the jgs-quartz distribution that does essentially what you want. Get the source code and copy from it until you have what you need. Joe --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 6:55 AM Subject: Re: Still an issue: Quartz plugin shutdown problem At 19:26 -0700 10/2/03, Mick Knutson wrote: After even more toying, I get a different error about the job not being set: (any thoughts here?) Mick: Have you tried writing a simple test case that runs your XML file through the JGSI Quartz SchedulerBuilder? You might be better off making sure that you can successfully parse the XML outside of your EJB container, instead of throwing it into the container for testing. Also, it would help confirm or reject the possibility that it's something to do with the container -- since other people say they can parse it, that's probably the case, but if you have a test case, you can quickly validate changes you make to the XML external to the more complex deployment environment. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com We want beef in dessert if we can get it there. -- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association - 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] -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com We want beef in dessert if we can get it there. -- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Still an issue: Quartz plugin shutdown problem
Mick Sorry - loads fine - even added a class just to make sure it would trigger a job and it all works just fine. I would hack the config file to the absolute minimum attributes and try to get it working - also make sure all the xml parser jars are compatible - and not in the classpath twice. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 11:16 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem ?xml version=1.0 encoding=ISO-8859-1 ? quartz-config trigger-group name=AlertSenderTriggerGroup trigger name=AlertSenderTrigger className=org.quartz.SimpleTrigger set-property property=repeatCount value=5/ set-property property=repeatInterval value=100/ set-property property=startTime value=04/04/1999 14:00:00/ set-property property=endTime value=04/04/2999 15:00:00/ /trigger /trigger-group job-group name=AlertSenderJobGroup job name=AlertSenderJob className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2 description=Alert sending Job durability=true volatility=true requestsRecovery=true / /job-group schedule jobGroup=AlertSenderJobGroup triggerGroup=AlertSenderTriggerGroup job=AlertSenderJob trigger=AlertSenderTrigger/ /quartz-config --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:27 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 199) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 176) at com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97) at com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java: 1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle t.java:23) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j ava:436) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic ationHandler.java:150) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext. java:442) at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j ava:85) at org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
Re: Still an issue: Quartz plugin shutdown problem
What app server do you use? --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:41 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Sorry - loads fine - even added a class just to make sure it would trigger a job and it all works just fine. I would hack the config file to the absolute minimum attributes and try to get it working - also make sure all the xml parser jars are compatible - and not in the classpath twice. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 11:16 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem ?xml version=1.0 encoding=ISO-8859-1 ? quartz-config trigger-group name=AlertSenderTriggerGroup trigger name=AlertSenderTrigger className=org.quartz.SimpleTrigger set-property property=repeatCount value=5/ set-property property=repeatInterval value=100/ set-property property=startTime value=04/04/1999 14:00:00/ set-property property=endTime value=04/04/2999 15:00:00/ /trigger /trigger-group job-group name=AlertSenderJobGroup job name=AlertSenderJob className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2 description=Alert sending Job durability=true volatility=true requestsRecovery=true / /job-group schedule jobGroup=AlertSenderJobGroup triggerGroup=AlertSenderTriggerGroup job=AlertSenderJob trigger=AlertSenderTrigger/ /quartz-config --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:27 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 199) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 176) at com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97) at com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java: 1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle t.java:23) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
RE: tiles and parameters
Solution number 2, propagate the value down: headerContentFooter.jsp: tiles:useAttribute name=nav_key / pnav_key = %=nav_key%p tiles:insert attribute=content tiles:put name=nav_keytiles:getAsString name=menuMain//tiles:put /tiles:insert -Original Message- From: Manish Singla [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 4:15 PM To: Struts Users Mailing List Subject: Re: tiles and parameters You are getting error because nav_key is in page context. thus you cannot retrieve value in included page... YOu may use tiles:useAttribute name=nav_key scope=request / in headercontentfooter.jsp Frank Maritato wrote: Hi all, I'm having a problem passing a parameter down from a tiles definition to a jsp. I can access the value easily in the layout definition, but I can't get access to it in a file (or action) I'm inserting into the layout. Here is an example of what I'm doing (cut down a bit) tiles.xml: definition name=mp.main path=/tiles/layout/headerContentFooter.jsp put name=nav_keyvalue=mp type=string/ put name=contentvalue=/showcontent.do / /definition headerContentFooter.jsp: tiles:useAttribute name=nav_key / pnav_key = %=nav_key%p tiles:insert attribute=content / samplecontent.jsp: bean:define id=nav_key name=nav_key / bnav_key::: %=nav_key%/b So I'm getting an error in samplecontent.jsp that there is no such variable in any scope. How can I get it? I can print out the value fine in the headerContentFooter layout. I also tried adding a tiles:useAttribute in samplecontent.jsp to try and get access to the variable but that didn't work either. Any help would be appreciated. Thanks! -- Thanks Manish Singla x73166 - 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: Still an issue: Quartz plugin shutdown problem
Let me get this right, there is only this needed: 1 quartz.properties. 1. quartz-config.xml 1. AlertSenderJob class for the job --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:41 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Sorry - loads fine - even added a class just to make sure it would trigger a job and it all works just fine. I would hack the config file to the absolute minimum attributes and try to get it working - also make sure all the xml parser jars are compatible - and not in the classpath twice. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 11:16 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem ?xml version=1.0 encoding=ISO-8859-1 ? quartz-config trigger-group name=AlertSenderTriggerGroup trigger name=AlertSenderTrigger className=org.quartz.SimpleTrigger set-property property=repeatCount value=5/ set-property property=repeatInterval value=100/ set-property property=startTime value=04/04/1999 14:00:00/ set-property property=endTime value=04/04/2999 15:00:00/ /trigger /trigger-group job-group name=AlertSenderJobGroup job name=AlertSenderJob className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2 description=Alert sending Job durability=true volatility=true requestsRecovery=true / /job-group schedule jobGroup=AlertSenderJobGroup triggerGroup=AlertSenderTriggerGroup job=AlertSenderJob trigger=AlertSenderTrigger/ /quartz-config --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:27 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 199) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 176) at com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97) at com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java: 1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle t.java:23) at
Re: Still an issue: Quartz plugin shutdown problem
Tomcat 5.0.12 Cal -Original Message- From: Mick Knutson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Fri Oct 03 12:56:44 2003 Subject: Re: Still an issue: Quartz plugin shutdown problem What app server do you use? --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:41 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Sorry - loads fine - even added a class just to make sure it would trigger a job and it all works just fine. I would hack the config file to the absolute minimum attributes and try to get it working - also make sure all the xml parser jars are compatible - and not in the classpath twice. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 11:16 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem ?xml version=1.0 encoding=ISO-8859-1 ? quartz-config trigger-group name=AlertSenderTriggerGroup trigger name=AlertSenderTrigger className=org.quartz.SimpleTrigger set-property property=repeatCount value=5/ set-property property=repeatInterval value=100/ set-property property=startTime value=04/04/1999 14:00:00/ set-property property=endTime value=04/04/2999 15:00:00/ /trigger /trigger-group job-group name=AlertSenderJobGroup job name=AlertSenderJob className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2 description=Alert sending Job durability=true volatility=true requestsRecovery=true / /job-group schedule jobGroup=AlertSenderJobGroup triggerGroup=AlertSenderTriggerGroup job=AlertSenderJob trigger=AlertSenderTrigger/ /quartz-config --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:27 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 199) at com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java: 176) at com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97) at com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java: 1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at
RE: tiles and parameters
Even easier - stuff it in the request: tiles:useAttribute name=nav_key scope=request / Better yet, make all attributes available to all tiles in your baseLayout.jsp: tiles:importAttribute scope=request/ HTH, Matt -Original Message- From: Yann Lebreton [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:58 AM To: Struts Users Mailing List Subject: RE: tiles and parameters Solution number 2, propagate the value down: headerContentFooter.jsp: tiles:useAttribute name=nav_key / pnav_key = %=nav_key%p tiles:insert attribute=content tiles:put name=nav_keytiles:getAsString name=menuMain//tiles:put /tiles:insert -Original Message- From: Manish Singla [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 4:15 PM To: Struts Users Mailing List Subject: Re: tiles and parameters You are getting error because nav_key is in page context. thus you cannot retrieve value in included page... YOu may use tiles:useAttribute name=nav_key scope=request / in headercontentfooter.jsp Frank Maritato wrote: Hi all, I'm having a problem passing a parameter down from a tiles definition to a jsp. I can access the value easily in the layout definition, but I can't get access to it in a file (or action) I'm inserting into the layout. Here is an example of what I'm doing (cut down a bit) tiles.xml: definition name=mp.main path=/tiles/layout/headerContentFooter.jsp put name=nav_keyvalue=mp type=string/ put name=contentvalue=/showcontent.do / /definition headerContentFooter.jsp: tiles:useAttribute name=nav_key / pnav_key = %=nav_key%p tiles:insert attribute=content / samplecontent.jsp: bean:define id=nav_key name=nav_key / bnav_key::: %=nav_key%/b So I'm getting an error in samplecontent.jsp that there is no such variable in any scope. How can I get it? I can print out the value fine in the headerContentFooter layout. I also tried adding a tiles:useAttribute in samplecontent.jsp to try and get access to the variable but that didn't work either. Any help would be appreciated. Thanks! -- Thanks Manish Singla x73166 - 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: FileUpload and filePath
I don't think that's possible, not if everything is built to do the right thing. If I understand correctly, you want to tell they people that they have uploaded C:\mydocs\doc1.txt (client's path to the file) on their computer (client's). Well, browsers are not supposed to send the whole path to the server. Even though I think the latest IE is doing that, which is illegal I believe. So all you do get is just the filename. If you trying to find out the path that the uploaded file got on your server, then think you can use getFilePath() function if you are using DiskFile class. If have not used this functionality in struts, So I don't know how to do it exactly. HTH, Pritpal Dhaliwal -Original Message- From: Kumar M [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 8:20 AM To: Struts Users Mailing List Subject: FileUpload and filePath Hi all, I am uploading files using FormFile in my ActionForm. When the uploaded is completed I would like to show them the complete path of the files that they have uploaded. For example, C:\mydocs\doc1.txt instead of just doc1.txt. The FormFile.getFileName() retrieves the file name but I couldn't find anything that retrieves the file path. Any ideas/suggestions? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I get parameter using bean tag?
I have the following fowarding jsp's myjsp.jsp?type=type1 myjsp.jsp?type=type2 I'm not sure if this is valid but I would like to use a tag(bean tag?) in my jsp to identify if type = type1 or type = type 2. I wanted to use this information to set radio button default values. One default when type=type1 and the other default value when type = type2 (calling the same jsp, myjsp.jsp). Can a bean tag grab a name/value pair like above? Any suggestions? Thanks, Barry
RE: any known issues with WAS 4.0?
Right question, then. Look for something like a SAXParseException, ConnectException, or something similar in the standard error log. If it's still having problems locating the DTD, try using a URL like http://localhost/Context_Root/DTD/struts-config_1_1.dtd and setting the action servlet to not load on startup. --David -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:05 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Do you get any other errors in the websphere console? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: any known issues with WAS 4.0? I am behind a firewall -- didn't even think of that! I tried removing the dtds from the jar and placing them in WEB-INF and changing struts-config.xml to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd and also to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN /WEB-INF/struts-config_1_1.dtd but no luck:[ Also, Struts1.1 jar is the same as my struts.jar -- both 313 files and 1,181kb I still get Error 500: Failed to load target servlet [action] -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:39 AM To: 'Bender, James'; 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE to indicate !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd instead of the whole URL for the DTD it will likely be much happier. On WAS 5.0, you need to give it a URL that it can always access. David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: any known issues with WAS 4.0?
Hi, Thanks for your help today! I'm looking into the SAXParser issue, trying to make sure I have the right Xerxes.jar installed, etc. The SAXParser issue is at least one thing I have to fix -- there may be other things after that!:] But I'll post the SAXParser solution to the list if I can work it out. Thanks!, Jim -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:40 PM To: 'Mainguy, Mike'; 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Right question, then. Look for something like a SAXParseException, ConnectException, or something similar in the standard error log. If it's still having problems locating the DTD, try using a URL like http://localhost/Context_Root/DTD/struts-config_1_1.dtd and setting the action servlet to not load on startup. --David -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:05 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? Do you get any other errors in the websphere console? -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: any known issues with WAS 4.0? I am behind a firewall -- didn't even think of that! I tried removing the dtds from the jar and placing them in WEB-INF and changing struts-config.xml to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd and also to !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN /WEB-INF/struts-config_1_1.dtd but no luck:[ Also, Struts1.1 jar is the same as my struts.jar -- both 313 files and 1,181kb I still get Error 500: Failed to load target servlet [action] -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:39 AM To: 'Bender, James'; 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE to indicate !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN struts-config_1_1.dtd instead of the whole URL for the DTD it will likely be much happier. On WAS 5.0, you need to give it a URL that it can always access. David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Bender, James [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:26 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've tried jumping straight to welcome.do. at my URL: http://localhost:9080/struts-blank/welcome.do I get the error: Error 500: Failed to load target servlet [action] I am totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I get parameter using bean tag?
Yep. See the bean:parameter tag at http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 1:11 PM To: Struts Users Mailing List Subject: Can I get parameter using bean tag? I have the following fowarding jsp's myjsp.jsp?type=type1 myjsp.jsp?type=type2 I'm not sure if this is valid but I would like to use a tag(bean tag?) in my jsp to identify if type = type1 or type = type 2. I wanted to use this information to set radio button default values. One default when type=type1 and the other default value when type = type2 (calling the same jsp, myjsp.jsp). Can a bean tag grab a name/value pair like above? Any suggestions? Thanks, Barry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Master Detail: Problem committing Master while link to Detail
Robert Lamping wrote: 1. The cancel-button still validates. The isCancelled() method does not seem to work. I call it in the method executeAction of this screen. How can I pre-empt the validation? Are you using the html tag to create the cancel button. The button needs to be set to a magic value to work, which the tags spits out for you. 2. When I modify information in the master part adn I what to a detail-screen, then I want the master part to be commited first, before I go to this detailscreen. The links to these items are set up using the format: href=./orderitem.do?id=num where num is the actual unique code in the database of this item.. Of course leaving the page using href, will not commit the master part. My question is: How can I make it happen? (commit the master first and then go the detail). I try very hard to avoid this page design myself, for the reason stated. Typically, I will show the master and child in a view format, and then let them edit the master or a child. Whenever possible, I avoid putting any link tags on the same screen as an edit dialog, since it encourages people to link off without submitting their change. :( If you must display the form this way, the only recourse is to change the links so that they also submit the form, either through JavaScript or by making the links buttons. The Action can then save any changes to the form, and then forward on to the other detail page. HTH, Ted. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB's vs. Hibernate vs. Torque vs. custom DTO's
I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forwarded page is empty
Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. I attached the directory I used. The steps I proceeded are below: put struct-blank directory in application directory: 1. write a first.jsp 2. write TestForm.java and TestAction.java 3. configure struts-config.xml(add form-bean and action) 4. change action using ActionComponentSevlet in web.xml 5 configure a definition in tile-defs.xml 6. start the server and http://localhost:7001/struct-blank2/first.jsp 7 click the submit button 8. I got an empty page in stead of a word success. On weblogic configuration, I put struts.jar in the server/lib. I also try the same files in tomcat 5.0 and get the same result. Thanks in advance for your help. Katelyn __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com first.zip Description: first.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
Sasha Borodin wrote: Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Norman Kleins talk Data Persistence Frameworks: An Introduction to Hibernate begins with a short, but excellent summary of existing persistence frameworks and their pros and cons (and is of course pro-hibernate, but with that in mind...): http://www.baychi.org/calendar/files/hibernate-talk/hibernate-talk.pdf http://www.baychi.org/bof/struts/20030903/ The new interview with Hibernates Gavin King on TheServerSide is also extremely informative. Great to hear such articulate and pragmatic thoughts on this conflict filled subject: http://www.theserverside.com/events/index.jsp /Erik -- http://erik.tjernlund.net/webblogg/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can not get bean property, help!!
The actionformbean has not been specified anywhere in this code snippet. Try adding nested:nest property=foo before the nested:write where foo is the instance of the actionformbean you have instantiated. m --- Karr, David [EMAIL PROTECTED] wrote: That's a different error. You always have to quote attribute values. Start with that, and focus on the other problem. Try restating your problem, showing exactly what you have and what error you're getting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] thank you, David, actually i tried single quote ' ...' before, however it doesnt work, always gave me Cannot retrieve mapping for action /' error -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I have an attribute called actionName in my actionformbean and I set it properly in my action class before forward to my jsp in the jsp I try to retrieve it like this: form action=nested:write property=actionName/ ... ... /form it always gives me Attribute value must be quoted error message in action.jsp anything wrong ? Well, I don't know how much clearer that error message could be. You need to change this: form action=nested:write property=actionName/ To: form action='nested:write property=actionName/' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
In case your interested object relational bridge is covered in this book. http://www.amazon.com/exec/obidos/tg/detail/-/1861007817/102-1389031-0729721?vi=advice - Original Message - From: Sasha Borodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 12:09 PM Subject: EJB's vs. Hibernate vs. Torque vs. custom DTO's I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - 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: EJB's vs. Hibernate vs. Torque vs. custom DTO's
This book comes out in December... http://www.amazon.com/exec/obidos/search-handle-form/102-1389031-0729721 - Original Message - From: Sasha Borodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 12:09 PM Subject: EJB's vs. Hibernate vs. Torque vs. custom DTO's I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - 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: EJB's vs. Hibernate vs. Torque vs. custom DTO's
This week I've embarked on using OJB as a persistence framework in my second major project, and I'm very enthusiastic about it. When I first started learning OJB, Hibernate hadn't yet shot to the prominence it has now, and sometimes I wonder whether I should switch midstream... but I haven't found any real reasons not to use OJB, and I know it at least a little better than Hibernate. My co-developer reviewed the debates between the two out there and concluded that it's basically a religious issue. Torque requires autogeneration of persistence code, which seems like an outdated strategy. I think there are some neat things in the Torque libraries, but I doubt that a new project would choose it over either Hibernate, OJB, or some JDO implementation which does all of that at run-time. I'm still generally an EJB skeptic. I have a feeling that unless one really wants to be ready for a clustered deployment, they are overkill for most purposes. No matter which one of these you use, you're best off defining some kind of persistence interface so that you can switch to the next flavor-of-the-month when your needs change. With this, the biggest obstacle is how to discover your implementation interface, but I've been pretty happy with Commons Discovery for that; I've written a DiscoverySupport class for internal use here that encapsulates the most common use pattern into something that is really trivial to use. I'm interested in the rapidly developing microkernel field (HiveMind, Keel, PicoContainer, Spring...) but haven't made the time to choose one of them. To bring this back to being slightly on-topic, I wonder if Struts should formally adopt one of these microkernel tools (or build/adapt one) in the future? Or is that best left up to each application developer? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com We want beef in dessert if we can get it there. -- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
This book comes on Object Relational Bridge comes out in December: http://www.amazon.com/exec/obidos/tg/detail/-/1590592557/qid=1065209603/sr=1-2/ref=sr_1_2/102-1389031-0729721?v=glances=books - Original Message - From: Sasha Borodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 12:09 PM Subject: EJB's vs. Hibernate vs. Torque vs. custom DTO's I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - 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: Handling Exceptions in ActionForm
At your own risk, manipulate the ActionErrors and ActionMessages collections any way you like. They're in the request scope and named according to Globals.ERROR_KEY and Globals.MESSAGE_KEY. m --- Shane Mingins [EMAIL PROTECTED] wrote: Hi I have a Swing app where the SwingView implements the view interface and has a method duplicateException(String s). In the SwingView it is implemented as public void duplicateException(String duplicateName) { JOptionPane.showMessageDialog(this, That would result in a duplicate Channel, Duplicate Channel, JOptionPane.ERROR_MESSAGE); } So if the business layer finds a duplicate it can inform the presentation layer. I am wondering how this would map on Struts? Using Struts, if I have an ActionForm implement the view interface, how would it create an ActionError or ActionMessage? It seems that from an ActionForm the validate() method can do it, and an Action can do it but is it possible to create an ActionError and save it from my duplicateException() method? Could I perhaps have my duplicateException() method add to collection variable in the ActionForm and then have the validate() method check that collection and generate the required ActionErrors? Any thoughts? Shane Shane Mingins Analyst Programmer Assure NZ Ltd Ph 644 494 2522 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
I've done a good bit of research on this, and here's the general impression I get from various different sources: * EJBs are good when you need very advanced enterprise features like advanced transaction support and a distributed architecture. However, you need to be careful that your EJBs are designed correctly or they can have serious performance problems. * Hibernate is the most popular object-to-relational tool on the market right now. (I plan to use it in my next project.) The one downside is that it uses the LGPL license, which can be a problem on some projects. * Lots of people like OJB, but I heard once it was tricky to set up. If you can't use Hibernate because of the license, this would probably be your second-best choice. (see Joe's email for additional comments). * Torque is a Jakarta DB project that I am currently using. It makes me nervous because it depends on a few nightly builds and other components in the sandbox. * In the future it looks like JDO will be a good choice. It is a persistence mechanism for Java objects. Strictly speaking, it is not an object-to-relational mapping tool *yet* but I heard it will be when JDO 2.0 comes out. Matt - Original Message - From: Sasha Borodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:09 PM Subject: EJB's vs. Hibernate vs. Torque vs. custom DTO's I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - 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: EJB's vs. Hibernate vs. Torque vs. custom DTO's
Joe Germuska wrote: I'm interested in the rapidly developing microkernel field (HiveMind, Keel, PicoContainer, Spring...) but haven't made the time to choose one of them. My own wild guess would be that HiveMind will be the next Maven ... You will be assimilated :) -Ted. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
In the end, this is a team decision and which decision is right is going to depend on who else is on the team. Each of the technologies has their own merits and demerits (which is why we keep creating them). But, if you are used to writing your own DTOs, and all other things remaining equal, you should take a good look at iBATIS Database Layer. http://www.ibatis.com/ It is not an Object Relational Mapping framework, but does a truly excellent job of separating data persistence from the rest of your application. Clinton posted a very fine comparison of SQL Mapping and ORM here: http://sourceforge.net/forum/forum.php?thread_id=914883forum_id=206693 A real plus for a Struts developer is that there is a realistic, best-practices, soup-to-nuts example Struts/iBATIS application available: http://www.ibatis.com/jpetstore/jpetstore.html Regardless of whatever choice you make, I would strongly recommend taking a close look at the DAO framework that ships with iBATIS. It is not dependant on the iBATIS SqlMaps and can be used with Hibernate, OJB, or whatever else. Or nothing else. I also use the iBATIS DAO framework to switch to a mock database for testing. (This is the sort of thing Joe meant by persistence interface.) -Ted. Sasha Borodin wrote: I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I get parameter using bean tag?
I wanted to use this information to set radio button default values. One default when type=type1 and the other default value when type = type2 (calling the same jsp, myjsp.jsp). Make your decisions in the Action code, set the appropriate property of the ActionForm to the correct value, then forward to the JSP. Struts will take care of pre-selecting the value based on what you put in the ActionForm. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Struts Questions
Hello, I've got Java HTTP servlets running under Tomcat. Now I want to convert them to run under Struts. 1) Does Struts work with Tomcat Standalone or must I use Tomcat/Apache with a connector? I would prefer to use just Tomcat and Struts. Must I connect to Apache to get Struts to work? I hope not. 2) If I deploy a struts app, a new struts app directory is created under Tomcat/webapps/ e.g. Tomcat/webapps/mystrutsapp. Must I edit Tomcat's server.xml and add a new context tag for this new directory Tomcat/webapps/mystrutsapp ? Or will Tomcat/Struts work it all out for me without me having to add a new context? Any help very much appreciated ! Thank you, Rey. -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I get parameter using bean tag?
Try bean:parameter .../ Regards, Rich -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:11 PM To: Struts Users Mailing List Subject: Can I get parameter using bean tag? I have the following fowarding jsp's myjsp.jsp?type=type1 myjsp.jsp?type=type2 I'm not sure if this is valid but I would like to use a tag(bean tag?) in my jsp to identify if type = type1 or type = type 2. I wanted to use this information to set radio button default values. One default when type=type1 and the other default value when type = type2 (calling the same jsp, myjsp.jsp). Can a bean tag grab a name/value pair like above? Any suggestions? Thanks, Barry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Struts Questions
These really aren't Struts questions, but questions about web applications in general. To learn more about web applications, a good starting point is the Java Web Services Tutorial http://java.sun.com/webservices/docs/1.0/tutorial/index.html (which they had this when I was a newbie!) Meanwhile, the answer to you questions are: You don't need to use Apache too (if you don't want) and, by default, web applications autodeploy under Tomcat, including Struts web applications. HTH, Ted. Reynardine wrote: Hello, I've got Java HTTP servlets running under Tomcat. Now I want to convert them to run under Struts. 1) Does Struts work with Tomcat Standalone or must I use Tomcat/Apache with a connector? I would prefer to use just Tomcat and Struts. Must I connect to Apache to get Struts to work? I hope not. 2) If I deploy a struts app, a new struts app directory is created under Tomcat/webapps/ e.g. Tomcat/webapps/mystrutsapp. Must I edit Tomcat's server.xml and add a new context tag for this new directory Tomcat/webapps/mystrutsapp ? Or will Tomcat/Struts work it all out for me without me having to add a new context? Any help very much appreciated ! Thank you, Rey. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Taking only the first value in a list?
I have bean in struts that returns a list of names how can I only take the first name out of the list? Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Still an issue: Quartz plugin shutdown problem
Yep Quartz.properties in the classpath - for Quartz Quartz-config.xml in WEB-INF location dictated by struts-config.xml in jgs plugin element. Classes for quartz to schedule in classpath I do not see anything wrong with your set up - it looks like you have an extra quartz.properties (one in the EAR and one in the WAR) but that shouldn't hurt. I am playing with cocoon that requires the latest parser - so I have xalan-2.5.1.jar, xercesImpl-2.5.0.jar, and xml-apis.jar in my Tomcat lib/endorsed directory for parsing. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 13:04 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem Importance: High Let me get this right, there is only this needed: 1 quartz.properties. 1. quartz-config.xml 1. AlertSenderJob class for the job --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:41 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Sorry - loads fine - even added a class just to make sure it would trigger a job and it all works just fine. I would hack the config file to the absolute minimum attributes and try to get it working - also make sure all the xml parser jars are compatible - and not in the classpath twice. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 11:16 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem ?xml version=1.0 encoding=ISO-8859-1 ? quartz-config trigger-group name=AlertSenderTriggerGroup trigger name=AlertSenderTrigger className=org.quartz.SimpleTrigger set-property property=repeatCount value=5/ set-property property=repeatInterval value=100/ set-property property=startTime value=04/04/1999 14:00:00/ set-property property=endTime value=04/04/2999 15:00:00/ /trigger /trigger-group job-group name=AlertSenderJobGroup job name=AlertSenderJob className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2 description=Alert sending Job durability=true volatility=true requestsRecovery=true / /job-group schedule jobGroup=AlertSenderJobGroup triggerGroup=AlertSenderTriggerGroup job=AlertSenderJob trigger=AlertSenderTrigger/ /quartz-config --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - Original Message - From: Holman, Cal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:27 AM Subject: RE: Still an issue: Quartz plugin shutdown problem Mick Send me the contents of your quartz-config.xml and I will try to execute again. In this email looks like the job element is commented out. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 22:26 To: Struts Users Mailing List Subject: Re: Still an issue: Quartz plugin shutdown problem After even more toying, I get a different error about the job not being set: (any thoughts here?) 19:24:18,843 ERROR [Digester] Begin event threw exception java.lang.IllegalStateException: Job Class is not yet set. at org.quartz.JobDetail.isStateful(JobDetail.java:331) at org.quartz.JobDetail.toString(JobDetail.java:381) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2 59) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.content(Parser2.java:1824) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534) at org.apache.crimson.parser.Parser2.parse(Parser2.java:318) at
Re: Taking only the first value in a list?
Try bean:write name=bean property=list[0]/ m --- Smith, Johnathan M. [EMAIL PROTECTED] wrote: I have bean in struts that returns a list of names how can I only take the first name out of the list? Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Taking only the first value in a list?
Does not work! -Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:20 PM To: Struts Users Mailing List Subject: Re: Taking only the first value in a list? Try bean:write name=bean property=list[0]/ m --- Smith, Johnathan M. [EMAIL PROTECTED] wrote: I have bean in struts that returns a list of names how can I only take the first name out of the list? Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
Be careful -- I don't think you want to lump Hibernate with iBatis; they sound pretty different. As for your questions: - lazy loading / selective saving? OJB definitely supports lazy loading, and it has some support for dynamic proxying -- from the docs, it appears that you don't have to write your own proxy classes for collections, and it has support for Java 1.3 and later dynamic proxying, and you can just write your own proxy class. I haven't gotten too deep with this... - what if an object is spread over several tables in a legacy database? I don't have a legacy database; I'm making mine up right now -- but one of the things I'm most impressed with is the way that 1:n and m:n relationships seem to just work. For example, I need a query that returns orders which have line items that match certain criteria -- the query is totally intuitive (which is good, because documentation is one place where OJB is sometimes lacking, although this has been improving a lot lately...) One very cool feature which is relatively new is support for anonymous references -- you don't always have to go adding identifier properties to your objects in cases where they can be implicitly identified. (This is hard to summarize in a nutshell, but there's a whole How To on the OJB site about it...) I suspect that Hibernate does most of these things too, or people wouldn't be so enthusiastic about it. Hibernate recently joined JBoss, which means it's likely to keep developing. But if you are concerned about licenses, the Apache license (OJB) is less restrictive than the LGPL (Hibernate). Joe At 15:19 -0500 10/3/03, Sasha Borodin wrote: Hibernate/iBATIS the bad: - not a standard spec (IF that's bad anyway) the good (awesome): - I love the non-intrusive nature of adding the persistence functionality; you don't have to modify your beans questions: - lazy loading / selective saving? - what if an object is spread over several tables in a legacy database? If anyone's got anything to add, please do. I think this is a topic that itches the brains of many newbies watching the struts-user list. Thanks again. -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com We want beef in dessert if we can get it there. -- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Taking only the first value in a list?
Perhaps if you posted some code someone could provide more specific help. m --- Smith, Johnathan M. [EMAIL PROTECTED] wrote: Does not work! -Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:20 PM To: Struts Users Mailing List Subject: Re: Taking only the first value in a list? Try bean:write name=bean property=list[0]/ m --- Smith, Johnathan M. [EMAIL PROTECTED] wrote: I have bean in struts that returns a list of names how can I only take the first name out of the list? Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can not get forward page in an action
Not sure my subject is confused everyone. I just resend this message. Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. This problem happen even when I forward my action to a simple 'hello world' jsp page. I attached the directory I used. The steps I proceeded are below: put struct-blank directory in application directory: 1. write a first.jsp 2. write TestForm.java and TestAction.java 3. configure struts-config.xml(add form-bean and action) 4. change action using ActionComponentSevlet in web.xml 5 configure a definition in tile-defs.xml 6. start the server and http://localhost:7001/struct-blank2/first.jsp 7 click the submit button 8. I got an empty page in stead of a word success. On weblogic configuration, I put struts.jar in the server/lib. I also try the same files in tomcat 5.0 and get the same result. Thanks in advance for your help. Katelyn __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com first.zip Description: first.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Taking only the first value in a list?
How about a bit more info on your jsp and class? - Original Message - From: Smith, Johnathan M. [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:30 PM Subject: RE: Taking only the first value in a list? Does not work! -Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:20 PM To: Struts Users Mailing List Subject: Re: Taking only the first value in a list? Try bean:write name=bean property=list[0]/ m --- Smith, Johnathan M. [EMAIL PROTECTED] wrote: I have bean in struts that returns a list of names how can I only take the first name out of the list? Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - 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: can not get forward page in an action
Are you checking all your error logs? I sometimes get a blank page if there was an error while compiling the jsp (if I look at the source of the page only the html tags up to the struts tags are displayed). Denis - Original Message - From: Xiuyu Zhang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:39 PM Subject: can not get forward page in an action Not sure my subject is confused everyone. I just resend this message. Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. This problem happen even when I forward my action to a simple 'hello world' jsp page. I attached the directory I used. The steps I proceeded are below: put struct-blank directory in application directory: 1. write a first.jsp 2. write TestForm.java and TestAction.java 3. configure struts-config.xml(add form-bean and action) 4. change action using ActionComponentSevlet in web.xml 5 configure a definition in tile-defs.xml 6. start the server and http://localhost:7001/struct-blank2/first.jsp 7 click the submit button 8. I got an empty page in stead of a word success. On weblogic configuration, I put struts.jar in the server/lib. I also try the same files in tomcat 5.0 and get the same result. Thanks in advance for your help. Katelyn __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Struts Questions
Hi Rey 1) Struts works with Tomcat standalone. 2) When I deployed my webapp I had to edit the server.xml. I simply added one line: Context path= docBase=mystrutsapp debug=0 reloadable=true/Context Then I could access the webapp by: http://localhost:8080/ or http://localhost:8080/mystrutsapp Cheers Koni Reynardine wrote: Hello, I've got Java HTTP servlets running under Tomcat. Now I want to convert them to run under Struts. 1) Does Struts work with Tomcat Standalone or must I use Tomcat/Apache with a connector? I would prefer to use just Tomcat and Struts. Must I connect to Apache to get Struts to work? I hope not. 2) If I deploy a struts app, a new struts app directory is created under Tomcat/webapps/ e.g. Tomcat/webapps/mystrutsapp. Must I edit Tomcat's server.xml and add a new context tag for this new directory Tomcat/webapps/mystrutsapp ? Or will Tomcat/Struts work it all out for me without me having to add a new context? Any help very much appreciated ! Thank you, Rey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Still an issue: Quartz plugin shutdown problem
I am running the testcase via ant as this is the only way I can run the test. The Job itself fires twice in the test, but I still get this failure: (current thread not owner) [junit] Running com.baselogic.yoursos.scheduler.SchedulerBuilderTest [junit] (impl.StdSchedulerFactory702 ) Quartz scheduler 'TestScheduler' initialized from default file in current working dir: 'quartz.properties' [junit] (impl.StdSchedulerFactory708 ) Quartz scheduler version: 1.2.3 [junit] java.lang.IllegalMonitorStateException: current thread not owner [junit] Start time for AlertSenderTrigger: Sun Apr 04 14:00:00 PDT 1999 [junit] at java.lang.Object.wait(Native Method) [junit] (jobs.AlertSenderJob 31 ) initialize AlertSenderJob [junit] (core.QuartzScheduler327 ) Scheduler TestScheduler_$_one started. [junit] at com.baselogic.yoursos.scheduler.SchedulerBuilderTest.testBuilder(SchedulerBu ilderTest.java:84) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] (jobs.AlertSenderJob 43 ) Executing AlertSenderJob. This is the only operation this job performs. [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:154) [junit] at junit.framework.TestCase.runBare(TestCase.java:127) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.937 sec [junit] Testsuite: com.baselogic.yoursos.scheduler.SchedulerBuilderTest [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.937 sec [junit] - Standard Output --- [junit] at junit.framework.TestCase.run(TestCase.java:118) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) [junit] at junit.framework.TestSuite.run(TestSuite.java:203) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu nner.java:325) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR unner.java:536) [junit] (impl.StdSchedulerFactory702 ) Quartz scheduler 'TestScheduler' initialized from default file in current working dir: 'quartz.properties' [junit] (impl.StdSchedulerFactory708 ) Quartz scheduler version: 1.2.3 [junit] Start time for AlertSenderTrigger: Sun Apr 04 14:00:00 PDT 1999 [junit] (jobs.AlertSenderJob 31 ) initialize AlertSenderJob [junit] (core.QuartzScheduler327 ) Scheduler TestScheduler_$_one started. [junit] (jobs.AlertSenderJob 43 ) Executing AlertSenderJob. This is the only operation this job performs. [junit] - --- [junit] - Standard Error - [junit] java.lang.IllegalMonitorStateException: current thread not owner [junit] at java.lang.Object.wait(Native Method) [junit] at com.baselogic.yoursos.scheduler.SchedulerBuilderTest.testBuilder(SchedulerBu ilderTest.java:84) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:154) [junit] at junit.framework.TestCase.runBare(TestCase.java:127) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:118) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) [junit] at junit.framework.TestSuite.run(TestSuite.java:203) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu nner.java:325) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR unner.java:536) [junit] - --- [junit] Testcase: testBuilder(com.baselogic.yoursos.scheduler.SchedulerBuilderTest): FAILED [junit] current thread not owner [junit] junit.framework.AssertionFailedError: current thread not owner [junit] at com.baselogic.yoursos.scheduler.SchedulerBuilderTest.testBuilder(SchedulerBu ilderTest.java:88) [junit]
Re: can not get forward page in an action
Thanks for answering this question. This is my first time joining any public mailing list. I check the log already, I did not see any errors there when action forwarding. Not sure you can see my attached files. but when I try to access sucesstilepage.jsp by itself, I did get such an error: java.lang.NullPointerException at org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:486) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:444) at jsp_servlet.__sucesstilepage._jspService(__sucesstilepage.java:161) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) Katelyn --- [EMAIL PROTECTED] wrote: Are you checking all your error logs? I sometimes get a blank page if there was an error while compiling the jsp (if I look at the source of the page only the html tags up to the struts tags are displayed). Denis - Original Message - From: Xiuyu Zhang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:39 PM Subject: can not get forward page in an action Not sure my subject is confused everyone. I just resend this message. Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. This problem happen even when I forward my action to a simple 'hello world' jsp page. I attached the directory I used. The steps I proceeded are below: put struct-blank directory in application directory: 1. write a first.jsp 2. write TestForm.java and TestAction.java 3. configure struts-config.xml(add form-bean and action) 4. change action using ActionComponentSevlet in web.xml 5 configure a definition in tile-defs.xml 6. start the server and http://localhost:7001/struct-blank2/first.jsp 7 click the submit button 8. I got an empty page in stead of a word success. On weblogic configuration, I put struts.jar in the server/lib. I also try the same files in tomcat 5.0 and get the same result. Thanks in advance for your help. Katelyn __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Initializing Form bean values in jsp
Hi, I am trying to avoid duplicating the same form for the sake of two radio buttons. I call (no actions) the following: mypage.jsp?type=1; or mypage.jsp?type=2; I can determine which parameter value is passed using: bean:parameter id=idType name=type value=type not found/ bean:write name=idType/ The 1 or 2 is printed depending which jsp (above) is called. You can view 1 as representing form 1 and 2 representing form 2. Next I want to set the appropriate radio button based on this value. I am using DynaValidatorForm in this case (initializing in the struts-config won't work). I can get the Formbean in my jsp using: bean:struts id=myForm formBean=myDynaForm/ NOW WHAT I DON'T KNOW HOW TO DO IS INITIALIZE THE my radio so it is displayed as selected. html-el:radio property=myradio value=state1/ html-el:radio property=myradio value=state2/ AGAIN I AM NOT CALLING THE JSP FROM AN ACTION SO INITIALIZING THE DYNAFORM BEAN IN STRUTS-CONFIG WILL NOT WORK. IS THIS POSSILBE DO I HAVE THE HOOKS ABOVE TO DO THIS? thanks, Barry
[OT] Struts Developer(s) wanted
Are there any Struts users looking for a job? Do you want to move/commute to a city voted best place to live in the United States (Madison, WI)? Experience with IBM related tools (Eclipse || WSAD) is in high demand. If you are interested, please send me a summary of your experience. Thanks, Benjamin Simpson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's
+1 (bP uses iBatis, one of the first to do so) .V Ted Husted wrote: In the end, this is a team decision and which decision is right is going to depend on who else is on the team. Each of the technologies has their own merits and demerits (which is why we keep creating them). But, if you are used to writing your own DTOs, and all other things remaining equal, you should take a good look at iBATIS Database Layer. http://www.ibatis.com/ It is not an Object Relational Mapping framework, but does a truly excellent job of separating data persistence from the rest of your application. Clinton posted a very fine comparison of SQL Mapping and ORM here: http://sourceforge.net/forum/forum.php?thread_id=914883forum_id=206693 A real plus for a Struts developer is that there is a realistic, best-practices, soup-to-nuts example Struts/iBATIS application available: http://www.ibatis.com/jpetstore/jpetstore.html Regardless of whatever choice you make, I would strongly recommend taking a close look at the DAO framework that ships with iBATIS. It is not dependant on the iBATIS SqlMaps and can be used with Hibernate, OJB, or whatever else. Or nothing else. I also use the iBATIS DAO framework to switch to a mock database for testing. (This is the sort of thing Joe meant by persistence interface.) -Ted. Sasha Borodin wrote: I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - 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: EJB's vs. Hibernate vs. Torque vs. custom DTO's
Joe Germuska wrote: I'm interested in the rapidly developing microkernel field (HiveMind, Keel, PicoContainer, Spring...) but haven't made the time to choose one of them. A vote for Pico from me. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forwarded page is empty
Most of the time (for me), these errors are caused by a mis-spelling of the forward name in the mapping.findFoward(...) call. For example you do: return mapping.findForward(succes); // missing the last 's' and the forward is 'success'. The findFoward call returns null, which tells struts that your execute method wrote the response itself. Regards, Rich -Original Message- From: Xiuyu Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:15 PM To: [EMAIL PROTECTED] Subject: Forwarded page is empty Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. I attached the directory I used. The steps I proceeded are below: put struct-blank directory in application directory: 1. write a first.jsp 2. write TestForm.java and TestAction.java 3. configure struts-config.xml(add form-bean and action) 4. change action using ActionComponentSevlet in web.xml 5 configure a definition in tile-defs.xml 6. start the server and http://localhost:7001/struct-blank2/first.jsp 7 click the submit button 8. I got an empty page in stead of a word success. On weblogic configuration, I put struts.jar in the server/lib. I also try the same files in tomcat 5.0 and get the same result. Thanks in advance for your help. Katelyn __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EJB's vs. Hibernate vs. Torque vs. custom DTO's
I might as well chime in here. I've used Hibernate and iBatis on my last two projects. Using them made it super simple to implement the data tier. In fact, in both projects, it took under a week to do all the CRUD stuff needed for our applications. I also developed a 23 table / 21 page JSP application in 70 hours using my AppFuse project (which uses Hibernate, XDoclet and Struts). I think they're both great, but I prefer Hibernate b/c of it's integration with XDoclet. But that's just me, and I'm probably biased because I took the time to learn Hibernate and how it works with XDoclet and Struts. iBatis was much easier to learn in my experience. Matt -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 1:53 PM To: Struts Users Mailing List Subject: Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's In the end, this is a team decision and which decision is right is going to depend on who else is on the team. Each of the technologies has their own merits and demerits (which is why we keep creating them). But, if you are used to writing your own DTOs, and all other things remaining equal, you should take a good look at iBATIS Database Layer. http://www.ibatis.com/ It is not an Object Relational Mapping framework, but does a truly excellent job of separating data persistence from the rest of your application. Clinton posted a very fine comparison of SQL Mapping and ORM here: http://sourceforge.net/forum/forum.php?thread_id=914883forum_id=206693 A real plus for a Struts developer is that there is a realistic, best-practices, soup-to-nuts example Struts/iBATIS application available: http://www.ibatis.com/jpetstore/jpetstore.html Regardless of whatever choice you make, I would strongly recommend taking a close look at the DAO framework that ships with iBATIS. It is not dependant on the iBATIS SqlMaps and can be used with Hibernate, OJB, or whatever else. Or nothing else. I also use the iBATIS DAO framework to switch to a mock database for testing. (This is the sort of thing Joe meant by persistence interface.) -Ted. Sasha Borodin wrote: I hope I'm not comparing apples and oranges; if I am, please excuse the ignorance, and slap me upside the head... The subject line says it all - I'm investigating the appropriate uses of the above technologies to move data between databases and objects. Thus far in my development career, I've relied on my own DTO's - homegrown primitive lazy loading, caching, etc. As I'm starting projects for other companies, I'm realizing that no one wants home-grown solutions where standards and proven products have already filled the niche. Thus, I'd like to get some opinions as to the level of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SCAFFOLD] ProcessAction - Merging properties from a session obje ct
Hi, Looking at the ProcessAction code, it turns out that in order to get a session object to the execute() method of a ProcessBean, the following conditions must be met: 1) A form is submitted 2) That form is an instance of BaseForm (and not DynaActionForm or other type for that matter) 3) The bean is exposed in session under the name userProfile Otherwise, that session object will not be available to the ProcessBean. Is there another build in method to pass a session object into the ProcessBean (other than subclassing ProcessAction :-( ? Thanks, Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can not get forward page in an action
You are seem to be trying to access Struts actions and tiles in a few incorrect ways. You are using a few struts tags incorrectly. When you use the html tags, you normally need to go through an action first so it can setup the ActionForm automatically. Otherwise, you'll probably have a null pointer exception because the ActionForm (unless you put it in the session scope during a previous request) won't exist. When you use tiles in a JSP, unless you add the definition (or import it) into the JSP, you can only use the JSP from within the Struts as it requires the TilesRequestProcessor. Your taglib import lines in your JSP's are nonstandard. Usually, the web.xml section taglib-uri is used as the uri=... line at the top of your JSPs, not the section you have used which appears to be the section taglib-location. That should get you over the hump, assuming you put the files in the appropriate places: 1) / 2) /WEB-INF 3) /WEB-INF/classes I can't use the files you gave me to find any other errors because I don't have your com.ipedo.* classes to use or re-Byte-Compile your java classes. Lastly, I can't see what Richard is talking about because the Zip file you included shows you spelled 'String target = success the same way you put it in your action's forward. Regards, David Friedman -Original Message- From: Xiuyu Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:57 PM To: Struts Users Mailing List Subject: Re: can not get forward page in an action Thanks for answering this question. This is my first time joining any public mailing list. I check the log already, I did not see any errors there when action forwarding. Not sure you can see my attached files. but when I try to access sucesstilepage.jsp by itself, I did get such an error: java.lang.NullPointerException at org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:486 ) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:444) at jsp_servlet.__sucesstilepage._jspService(__sucesstilepage.java:161) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle tStubImpl.java:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :387) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :431) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W ebAppServletContext.java:6310) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec t.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo ntext.java:3622) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java :2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) Katelyn --- [EMAIL PROTECTED] wrote: Are you checking all your error logs? I sometimes get a blank page if there was an error while compiling the jsp (if I look at the source of the page only the html tags up to the struts tags are displayed). Denis - Original Message - From: Xiuyu Zhang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:39 PM Subject: can not get forward page in an action Not sure my subject is confused everyone. I just resend this message. Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. This problem happen even when I forward my action to a simple 'hello world' jsp page. I attached the directory I used. The steps I proceeded are below: put struct-blank directory in application directory: 1. write a first.jsp 2. write TestForm.java and TestAction.java 3. configure struts-config.xml(add form-bean and action) 4. change action using ActionComponentSevlet in web.xml 5 configure a definition in tile-defs.xml 6. start the server and http://localhost:7001/struct-blank2/first.jsp 7 click the submit button 8. I got an empty page in stead of a word success. On weblogic configuration, I put struts.jar in the server/lib. I also try the same files in tomcat 5.0 and get the same result. Thanks in advance for your help. Katelyn __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
[SCAFFOLD] Future of Scaffold - alternative DAO
Hi, Does anyone know of an alternative but similar DAO package to Scaffold which fits in with Struts as smoothly (i.e. can be configured into the ActionMapping very intuitively)? Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Initializing Form bean values in jsp
Hi, I am trying to avoid duplicating the same form for the sake of two radio buttons. I call (no actions) the following: mypage.jsp?type=1; or mypage.jsp?type=2; I can determine which parameter value is passed using: bean:parameter id=idType name=type value=type not found/ bean:write name=idType/ The 1 or 2 is printed depending which jsp (above) is called. You can view 1 as representing form 1 and 2 representing form 2. Next I want to set the appropriate radio button based on this value. I am using DynaValidatorForm in this case (initializing in the struts-config won't work). I can get the Formbean in my jsp using: bean:struts id=myForm formBean=myDynaForm/ NOW WHAT I DON'T KNOW HOW TO DO IS INITIALIZE THE my radio so it is displayed as selected. html-el:radio property=myradio value=state1/ html-el:radio property=myradio value=state2/ AGAIN I AM NOT CALLING THE JSP FROM AN ACTION SO INITIALIZING THE DYNAFORM BEAN IN STRUTS-CONFIG WILL NOT WORK. IS THIS POSSILBE DO I HAVE THE HOOKS ABOVE TO DO THIS? thanks, Barry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SCAFFOLD] ProcessAction - Merging properties from a session obje ct
There's nothing wrong with subclassing ProcessAction. That whole heirarchy is designed to be subclassed. In fact, there's nothing wrong with slicing and dicing all the Scaffold stuff until it meets your needs. One of the lessons of Scaffold is how far you can take your own design and still have it based in Struts. Don't think of it as a blackbox, think of it as a starting point for your own library, that might do less, or might do more, as your needs dictate. -Ted. [EMAIL PROTECTED] wrote: Hi, Looking at the ProcessAction code, it turns out that in order to get a session object to the execute() method of a ProcessBean, the following conditions must be met: 1) A form is submitted 2) That form is an instance of BaseForm (and not DynaActionForm or other type for that matter) 3) The bean is exposed in session under the name userProfile Otherwise, that session object will not be available to the ProcessBean. Is there another build in method to pass a session object into the ProcessBean (other than subclassing ProcessAction :-( ? Thanks, Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SCAFFOLD] Future of Scaffold - alternative DAO
For the SQL stuff, iBATIS www.ibatis.com is such a perfect fit, it's spooky. I'm actually getting ready to migrate it. For the interface between the Action and the business tier, Commons Chain is the next step. -Ted. [EMAIL PROTECTED] wrote: Hi, Does anyone know of an alternative but similar DAO package to Scaffold which fits in with Struts as smoothly (i.e. can be configured into the ActionMapping very intuitively)? Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can not get forward page in an action
Thanks, David. I did put my file in the appropriate place. I aggree with you in lots of points. I actually did not retieve the form after the forward action, I just want a button there to click an forward an action to a jsp pages just contain a word 'successful'. I make some changes according to your advice: change the taglib by using 'uri=...', import the attributes in the jsp file. I got the same thing. The com.ipedo import is not useful for this class. sorry about that. You can delete that. I wrote a longer action class, but it doesn't work for me. I delete most of the part of action class but forgot the import part. I attached a new zip for you to try. Thanks a lot. Katelyn --- David G Friedman [EMAIL PROTECTED] wrote: You are seem to be trying to access Struts actions and tiles in a few incorrect ways. You are using a few struts tags incorrectly. When you use the html tags, you normally need to go through an action first so it can setup the ActionForm automatically. Otherwise, you'll probably have a null pointer exception because the ActionForm (unless you put it in the session scope during a previous request) won't exist. When you use tiles in a JSP, unless you add the definition (or import it) into the JSP, you can only use the JSP from within the Struts as it requires the TilesRequestProcessor. Your taglib import lines in your JSP's are nonstandard. Usually, the web.xml section taglib-uri is used as the uri=... line at the top of your JSPs, not the section you have used which appears to be the section taglib-location. That should get you over the hump, assuming you put the files in the appropriate places: 1) / 2) /WEB-INF 3) /WEB-INF/classes I can't use the files you gave me to find any other errors because I don't have your com.ipedo.* classes to use or re-Byte-Compile your java classes. Lastly, I can't see what Richard is talking about because the Zip file you included shows you spelled 'String target = success the same way you put it in your action's forward. Regards, David Friedman -Original Message- From: Xiuyu Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:57 PM To: Struts Users Mailing List Subject: Re: can not get forward page in an action Thanks for answering this question. This is my first time joining any public mailing list. I check the log already, I did not see any errors there when action forwarding. Not sure you can see my attached files. but when I try to access sucesstilepage.jsp by itself, I did get such an error: java.lang.NullPointerException at org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:486 ) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:444) at jsp_servlet.__sucesstilepage._jspService(__sucesstilepage.java:161) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle tStubImpl.java:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :387) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :431) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W ebAppServletContext.java:6310) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec t.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo ntext.java:3622) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java :2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) Katelyn --- [EMAIL PROTECTED] wrote: Are you checking all your error logs? I sometimes get a blank page if there was an error while compiling the jsp (if I look at the source of the page only the html tags up to the struts tags are displayed). Denis - Original Message - From: Xiuyu Zhang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:39 PM Subject: can not get forward page in an action Not sure my subject is confused everyone. I just resend this message. Hi all, I am writing a simple application to learn how to use tiles in struts 1.1 with weblogic 8.1. but after the action forward to another jsp, it's an empty page. This problem happen even when I forward my action to a simple 'hello world' jsp page. I attached the directory I used. The steps I proceeded are below:
RE: [SCAFFOLD] Future of Scaffold - alternative DAO
Ted, Thanks. In fact, following you advice, I am using iBATIS SqlMaps, which is very very neat indeed. I started building my app based on the Scaffold package after reading Struts in Action (which was actually almost 10 months ago) and I like it a lot. Looking forward to the Commons Chain. Noam -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 11:49 PM To: Struts Users Mailing List Subject: Re: [SCAFFOLD] Future of Scaffold - alternative DAO For the SQL stuff, iBATIS www.ibatis.com is such a perfect fit, it's spooky. I'm actually getting ready to migrate it. For the interface between the Action and the business tier, Commons Chain is the next step. -Ted. [EMAIL PROTECTED] wrote: Hi, Does anyone know of an alternative but similar DAO package to Scaffold which fits in with Struts as smoothly (i.e. can be configured into the ActionMapping very intuitively)? Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Master Detail: Problem committing Master while link to Detail
Dear Ted, Thanks for your answer. 1. I am using the html:cancel construction and referenced the parameter named method. As I don't have the source here at home, I have to improvise: html:cancel name=method bean:message key=system.button.cancel /html:cancel It is the code as mentioned in your book Struts in Action. I use the reverse lookup of the resources as displayed in the LookupDisplayAction. And I have set the parameter in the action mapping to method. I don't use JavaScript as I don't want the client-side validation yet. What do you mean with the magic value to work. Do you mean the bCancel=true thing? Does it need the other Javascript stuff to set something to another value, so that Struts Validator at the server side won't validate in cancel of the cancel-button? 2. A clear answer! We have some work to do. Thanks. Kind regards, Robert Lamping -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 8:55 PM To: Struts Users Mailing List Subject: Re: Master Detail: Problem committing Master while link to Detail Robert Lamping wrote: 1. The cancel-button still validates. The isCancelled() method does not seem to work. I call it in the method executeAction of this screen. How can I pre-empt the validation? Are you using the html tag to create the cancel button. The button needs to be set to a magic value to work, which the tags spits out for you. 2. When I modify information in the master part adn I what to a detail-screen, then I want the master part to be commited first, before I go to this detailscreen. The links to these items are set up using the format: href=./orderitem.do?id=num where num is the actual unique code in the database of this item.. Of course leaving the page using href, will not commit the master part. My question is: How can I make it happen? (commit the master first and then go the detail). I try very hard to avoid this page design myself, for the reason stated. Typically, I will show the master and child in a view format, and then let them edit the master or a child. Whenever possible, I avoid putting any link tags on the same screen as an edit dialog, since it encourages people to link off without submitting their change. :( If you must display the form this way, the only recourse is to change the links so that they also submit the form, either through JavaScript or by making the links buttons. The Action can then save any changes to the form, and then forward on to the other detail page. HTH, Ted. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - 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]
Compiling jsps/Tiles with ant?
I am wondering if anyone has any examples of using ant to build their jsp's? I am using Tiles extensively, and keep getting NPE on jspc. Also, jspc keeps wanting me to add /WEB-INF/web.xml to my root build path. Currently it is not there, it is in ./src/web/WEB-INF/web.xml --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our Personal Emergency Alert Contact System can help you Play Smart. +00 1 (877) SoS-9119 +00 1 (708) 570-2772 Fax --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]