Need for a sample with indexed properties

2003-10-03 Thread Frederic Dernbach
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,

multiple modules

2003-10-03 Thread Nathan Coast
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

RE: workflow extension question

2003-10-03 Thread shirishchandra.sakhare
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

Simple validator question

2003-10-03 Thread Jeroen Breedveld
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

Validator exception when not configured

2003-10-03 Thread Morten Primdahl
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

RE: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Holman, Cal
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:

Re: Validator exception when not configured

2003-10-03 Thread Yann Cébron
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

Re: file not found

2003-10-03 Thread Max Cooper
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

Re: Validator exception when not configured

2003-10-03 Thread Morten Primdahl
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

Help drasticaly needed ; indexed properties

2003-10-03 Thread Frederic Dernbach
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

[FRIDAY] Hip-Hop Hits Bahgdad

2003-10-03 Thread Mark Galbreath
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

2003-10-03 Thread Jeff Kyser
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

RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
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 ||

RE: Help drasticaly needed ; indexed properties

2003-10-03 Thread shirishchandra.sakhare
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

RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts

2003-10-03 Thread Mark, Scott
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,

RE: Simple validator question

2003-10-03 Thread Fenderbosch, Eric
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

RE: newbie: Best Practice Struts/Value-Objects?

2003-10-03 Thread Darren Hartford
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

RE: Need for a sample with indexed properties

2003-10-03 Thread shirishchandra.sakhare
class MyForm{ public BankInfoStringBean getBankInfoBean(int index){ //lazy initialization while(index = this.getBankList().size() ){ this.getBankList().add(new BankInfoStringBean()); } return

RE: newbie: Best Practice Struts/Value-Objects?

2003-10-03 Thread Paul McCulloch
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:

RE: Need for a sample with indexed properties

2003-10-03 Thread david.ballard
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:

RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts

2003-10-03 Thread Marco . Piana
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'

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Joe Germuska
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

any known issues with WAS 4.0?

2003-10-03 Thread Bender, James
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

RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts

2003-10-03 Thread Fenderbosch, Eric
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
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).

RE: any known issues with WAS 4.0?

2003-10-03 Thread Bender, James
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Bender, James
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,

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
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

Master Detail: Problem committing Master while link to Detail

2003-10-03 Thread Robert Lamping
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Bender, James
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

Re: [POLL] ActionFrom vs DynaActionForm

2003-10-03 Thread Graham Leggett
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,

RE: any known issues with WAS 4.0?

2003-10-03 Thread Hibbs, David
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

Re: [POLL] ActionFrom vs DynaActionForm

2003-10-03 Thread Graham Leggett
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Bender, James
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
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

Re: any known issues with WAS 4.0?

2003-10-03 Thread Doug
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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
?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/

Re: any known issues with WAS 4.0?

2003-10-03 Thread Doug
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

FileUpload and filePath

2003-10-03 Thread Kumar M
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

RE: Displaytag does not work with Tiles

2003-10-03 Thread Matt Raible
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

RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
|| -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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Joe Germuska
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

RE: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Holman, Cal
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.

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
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

RE: tiles and parameters

2003-10-03 Thread Yann Lebreton
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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Holman, Cal
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

RE: tiles and parameters

2003-10-03 Thread Matt Raible
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:

RE: FileUpload and filePath

2003-10-03 Thread Dhaliwal, Pritpal (HQP)
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

Can I get parameter using bean tag?

2003-10-03 Thread Barry Volpe
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Hibbs, David
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

RE: any known issues with WAS 4.0?

2003-10-03 Thread Bender, James
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

RE: Can I get parameter using bean tag?

2003-10-03 Thread Hibbs, David
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

Re: Master Detail: Problem committing Master while link to Detail

2003-10-03 Thread Ted Husted
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

EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Sasha Borodin
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

Forwarded page is empty

2003-10-03 Thread Xiuyu Zhang
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Erik Tjernlund
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

RE: can not get bean property, help!!

2003-10-03 Thread Michael Ruppin
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Barry Volpe
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,

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Barry Volpe
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Joe Germuska
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Barry Volpe
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

Re: Handling Exceptions in ActionForm

2003-10-03 Thread Michael Ruppin
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Sgarlata Matt
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Ted Husted
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,

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Ted Husted
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,

RE: Can I get parameter using bean tag?

2003-10-03 Thread Wendy Smoak
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

Newbie Struts Questions

2003-10-03 Thread Reynardine
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

RE: Can I get parameter using bean tag?

2003-10-03 Thread Richard J. Duncan
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

Re: Newbie Struts Questions

2003-10-03 Thread Ted Husted
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!)

Taking only the first value in a list?

2003-10-03 Thread Smith, Johnathan M.
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

RE: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Holman, Cal
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

Re: Taking only the first value in a list?

2003-10-03 Thread Michael Ruppin
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

RE: Taking only the first value in a list?

2003-10-03 Thread Smith, Johnathan M.
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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Joe Germuska
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

RE: Taking only the first value in a list?

2003-10-03 Thread Michael Ruppin
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

can not get forward page in an action

2003-10-03 Thread Xiuyu Zhang
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

Re: Taking only the first value in a list?

2003-10-03 Thread denis
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

Re: can not get forward page in an action

2003-10-03 Thread denis
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

Re: Newbie Struts Questions

2003-10-03 Thread Koni Roth
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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
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

Re: can not get forward page in an action

2003-10-03 Thread Xiuyu Zhang
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:

Initializing Form bean values in jsp

2003-10-03 Thread Barry Volpe
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

[OT] Struts Developer(s) wanted

2003-10-03 Thread Benjamin Simpson
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.

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Vic Cekvenich
+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

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Vic Cekvenic
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,

RE: Forwarded page is empty

2003-10-03 Thread Richard J. Duncan
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

RE: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Matt Raible
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

[SCAFFOLD] ProcessAction - Merging properties from a session obje ct

2003-10-03 Thread aies22
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

RE: can not get forward page in an action

2003-10-03 Thread David G Friedman
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

[SCAFFOLD] Future of Scaffold - alternative DAO

2003-10-03 Thread aies22
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

Initializing Form bean values in jsp

2003-10-03 Thread Barry Volpe
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

Re: [SCAFFOLD] ProcessAction - Merging properties from a session obje ct

2003-10-03 Thread Ted Husted
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

Re: [SCAFFOLD] Future of Scaffold - alternative DAO

2003-10-03 Thread Ted Husted
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

RE: can not get forward page in an action

2003-10-03 Thread Xiuyu Zhang
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

RE: [SCAFFOLD] Future of Scaffold - alternative DAO

2003-10-03 Thread aies22
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.

RE: Master Detail: Problem committing Master while link to Detail

2003-10-03 Thread Robert Lamping
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

Compiling jsps/Tiles with ant?

2003-10-03 Thread Mick Knutson
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

  1   2   >