Re: Theoretical debate

2004-07-08 Thread Craig McClanahan
Mike Duffy wrote: One aspect of JSF which I find troubling is, "With JSF, the component model takes care of all the responsibilities that Struts uses an ActionForm form, so you don't need one any more." Most of the JSF examples I've studied use method (2) from Craig's list below: "You can bind c

RE: struts automation

2004-07-08 Thread Steve Raeburn
Only for those with deep pockets, but WebSphere Studio's struts-config editor will automatically create an Action class from an action-mapping definition at the click of a button. Steve > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED] > Sent: July 8, 2004 3:06 PM > To: S

newbie question on indexed properties

2004-07-08 Thread jthompson
I have a form bean with a string array defined as a property, with a corresponding set/get like this: private String[] answers = { "Answer 1","Answer 2","Answer 3","Answer 4","Answer 5" }; public String[] getAnswers() { return (this.answers); } public void setAnswers(String[] value) { this.an

RE: some best practices questions

2004-07-08 Thread Andrew Hill
My understanding (could be wrong on this of course) was that if you dont have sticky sessions the container has to serialise the session to its brethren as necessary. The serialisation is what scares most people, but what scares me is how it knows when and what to serialise (plus the fact it stops

RE: [OT] how to calculate the size of an object

2004-07-08 Thread simarjit singh
With ByteArrayOutputStream approach, writeObject Method is also serializing the object. Ofcourse serialization doesn't give size as it is more of a meta data for the entire web of objects associated with the serialized object. Rather than writing serialized object on file we are putting it in a b

Re: Theoretical debate

2004-07-08 Thread Mike Duffy
One aspect of JSF which I find troubling is, "With JSF, the component model takes care of all the responsibilities that Struts uses an ActionForm form, so you don't need one any more." Most of the JSF examples I've studied use method (2) from Craig's list below: "You can bind component *value

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-08 Thread Prasad, Kamakshya
HI, Try this one... Put it in your form bean private ArrayList formFiles = new ArrayList(); public void setTestFile(int iIndex, FormFile formFile) { this.formFiles.add(formFiles); } public FormFile getTestFile(int iIndex) { while(this.formFiles.size() <= iIndex) { this.for

Re: Conditional validation/field chaining with Validator plugin

2004-07-08 Thread Erik Weber
Upon further reading (sorry for the lack of rtfm), I discovered requiredif. Erik Erik Weber wrote: Greetings. I am using the Validator plugin with Struts ValidatorForm subclasses. In one form, I have a boolean select (the labels are "Yes" and "No", the values are "true" and "false"). There is a

Conditional validation/field chaining with Validator plugin

2004-07-08 Thread Erik Weber
Greetings. I am using the Validator plugin with Struts ValidatorForm subclasses. In one form, I have a boolean select (the labels are "Yes" and "No", the values are "true" and "false"). There is a companion text area for an explanation -- to be filled in if the boolean select value happens to b

RE: struts automation

2004-07-08 Thread Michael McGrady
I must be sick! LOL I like to think it through each time. That leads in the end with me doing something new and really getting into what seems to be mundane in depth. I am a slow learner, I guess, even though I am, of course, just brilliant. ///;-) Thanks. Michael At 04:22 PM 7/8/2004, you

Re: Tools for JSP

2004-07-08 Thread Craig McClanahan
[EMAIL PROTECTED] wrote: NitoX from M7 looks really nice. I'm saving my allowance to buy it. http://www.m7.com/other_professional.jsp Dennis I went by the Nitrox booth at JavaOne and saw the demo ... it is indeed quite nice, and nicely integrated with Struts. You might also want to take a look

Re: Theoretical debate

2004-07-08 Thread Craig McClanahan
Hookom, Jacob wrote: Look at JSF, do you have actions? No, JSF just updates your POJO beans and calls methods on them. Why have an ActionForm or have to create all of these Actions that are simply getter/setter adapters? Please don't be too quick to retort to my supposed anti-struts mindset, but

RE: struts automation

2004-07-08 Thread Jim Barrows
> -Original Message- > From: Michael McGrath [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 4:10 PM > To: Struts Users Mailing List > Subject: RE: struts automation > > > Okay, you meant source code. I thought you meant class. > What are you > talking about? Compiling?

RE: struts automation

2004-07-08 Thread Michael McGrady
Okay, you meant source code. I thought you meant class. What are you talking about? Compiling? Loading? Admiring? I could learn from you, Barrows. You are a real tool expert, as opposed to a real expert tool. LOL Thanks for the help. Michael At 02:45 PM 7/8/2004, you wrote: > -Ori

RE: Dynamic extension of web apps

2004-07-08 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 3:22 PM > To: Struts Users Mailing List > Subject: RE: Dynamic extension of web apps > > > > HI Jim, > > Yep, that's what I'm thinking - can you expand on what your > indexing app

RE: Dynamic extension of web apps

2004-07-08 Thread dhay
HI Jim, Yep, that's what I'm thinking - can you expand on what your indexing app does? Also, do you know any way to drop in a sub-application and have Struts pick it up dynamically? cheers, David |-+> | | "Jim Barrows"| | |

RE: Dynamic extension of web apps

2004-07-08 Thread Jim Barrows
So, basically, you're thinking of letting them drop in a whole new webapp that will walk them through the configuration of their device? If so.. then that's what I'd do... bundle a war up and drop it in. Then have an indexing application provide access to that war. Maybe even load the war throug

RE: struts automation

2004-07-08 Thread Ted Husted
I think they mean to automatically create a starter class, based on a template, to which you would then add the specific functionality. IDEA does this for classes you reference in your code. If it doesn't exist, it will offer to create the (stub) class for you. A great feature when you are doing

Re: Simplifying struts-config.xml

2004-07-08 Thread Ted Husted
One thing people do is setup the unknown action The ForwardToForwardToAction would example the request to see what path was requested and extract it for use with your ForwardAction. The new wildcard support would also work, but only if all the root paths worked this way. > path='/*' > type=

Re: Simplifying struts-config.xml

2004-07-08 Thread Nick Heudecker
Look into the wildcard plugin. http://www.twdata.org/struts-wildcard/ Michael McGrady wrote: Is there a way to do the following using less real-estate in struts-config.xml? If not, there should be: --

RE: Dynamic extension of web apps

2004-07-08 Thread dhay
Hi Jim, Sorry - don't think I was clear...it's not the client that will change - in fact that will all be HTML - but the inner works of the app itself. Say, for example, we allow users to configure devices through our web app, and we want to now allow them to configure a new device. We want th

RE: Simplifying struts-config.xml

2004-07-08 Thread Jim Barrows
Nope.. and you're probably right. Something like On the other hand I don't really care how much file space it takes up, since I use Xdoclet to generate this file, or WSAD/MyEclipse to view/generate it. > -Original Message- > From: Michael McGrady [mailto:[EMAIL

Dynamic data html generation - revisited

2004-07-08 Thread JoAnn Lemm
Hmmm ... yes, what I need is somewhat more complex as I'm trying not use include scriptlets in the jsp --- only taglib calls. Here's the jist... I have an arraylist of objects in my bean representing a table. Each entry in the arraylist represents a row in the table. The attributes in the object

RE: struts automation

2004-07-08 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 2:42 PM > To: Struts Users Mailing List > Subject: RE: struts automation > > > My question is how can an editor of any kind create a class > when it has no > idea what the internals

Simplifying struts-config.xml

2004-07-08 Thread Michael McGrady
Is there a way to do the following using less real-estate in struts-config.xml? If not, there should be: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: struts automation

2004-07-08 Thread Michael McGrady
My question is how can an editor of any kind create a class when it has no idea what the internals of the class are? I clearly do not see what you guys are talking about because this clearly cannot be done and you seem to be saying that this is just a piece of cake. At 02:10 PM 7/8/2004, you w

RE: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-08 Thread Danilo Gurovich
We're running a fully-functional Enterprise web site, and we've made the decision to go with a Tomcat 5/Apache 2 build. Apache's logging was needed for our data warehouse, so we decided to use it, also there's the modules that allow for stronger security than with Tomcat 5 alone. That said, we've

Re: Extending Request Processor

2004-07-08 Thread Lucas Gonzalez Pearson
I have this in my struts-config.xml file.. it´s strange.. everything seems to be normal.. but another thing I found out was that the problem arises when I hot-deploy the .war file... If I restart the jboss / tomcat , then the error is thrown, but the App st

struts automation

2004-07-08 Thread Tate Austin
Is there a struts tool out there that will create the class files you name in a struts-config file automatically? It seems to me that would be really useful?

RE: struts automation

2004-07-08 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 2:05 PM > To: Struts Users Mailing List > Subject: RE: struts automation > > > At 02:00 PM 7/8/2004, you wrote: > > > Is there a struts tool out there that will create the class > > >

RE: struts automation

2004-07-08 Thread Michael McGrady
Oops, forgot the reference: At 02:04 PM 7/8/2004, you wrote: At 02:00 PM 7/8/2004, you wrote: > Is there a struts tool out there that will create the class > files you name in a struts-config file automatically? It > seems to me that would be really useful? > Yes there is, several of them.. I h

RE: struts automation

2004-07-08 Thread Michael McGrady
At 02:00 PM 7/8/2004, you wrote: > Is there a struts tool out there that will create the class > files you name in a struts-config file automatically? It > seems to me that would be really useful? > Yes there is, several of them.. I have the following class file named in my struts-config.xml file

struts automation

2004-07-08 Thread Tate Austin
Is there a struts tool out there that will create the class files you name in a struts-config file automatically? It seems to me that would be really useful?

RE: Extending Request Processor

2004-07-08 Thread Venkat Maddipati
Try to put include the following in your struts configuratin file (struts-config.xml). Follow the comments to understand the Tiles plugin : I have also extended my RequesteProcessor class from TilesRequestProcessor class. Thanks, Venkat -Original Messa

RE: Dynamic extension of web apps

2004-07-08 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 2:00 PM > To: Struts Users Mailing List > Subject: Dynamic extension of web apps > > > > Hi, > > I need to design a web app that is extensible dynamically. > > For example, if we de

RE: struts automation

2004-07-08 Thread Jim Barrows
> -Original Message- > From: Tate Austin [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 1:52 PM > To: Struts Users Mailing List > Subject: struts automation > > > Is there a struts tool out there that will create the class > files you name in a struts-config file automatical

Dynamic extension of web apps

2004-07-08 Thread dhay
Hi, I need to design a web app that is extensible dynamically. For example, if we decide to support a different device type, we need to be able to drop in info for that device type and have the web app pick it up - these could be files of all different types eg jsp's, html, xml, class files etc.

Re: struts automation

2004-07-08 Thread Wendy Smoak
From: "Tate Austin" <[EMAIL PROTECTED]> > Is there a struts tool out there that will create the class files you name in a struts-config file > automatically? It seems to me that would be really useful? If you mean the form beans, you can either use dynamic forms, which get you out of writing all

HELP FROM THE ADMINISTRATOR re: Brian Husted not available

2004-07-08 Thread Michael McGrady
It seems that we have been getting the messages that Brian Husted is not available forever. Can the administrator please solve this? Everytime I send an email to the list I get this back, and others have made the same complaint: Subject: Undeliverable: Re: html:image vs html:submit To: <[EMAI

Re: struts automation

2004-07-08 Thread Lucas Gonzalez Pearson
Try Camino I believe the company that owns it is called ScioWorks Lucas - Original Message - From: "Tate Austin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 08, 2004 5:52 PM Subject: struts automation Is there a struts tool out there tha

Re: struts automation

2004-07-08 Thread Michael McGrady
Not sure what you mean here. Presumably those class files already exist? At 01:52 PM 7/8/2004, you wrote: Is there a struts tool out there that will create the class files you name in a struts-config file automatically? It seems to me that would be really useful? --

Re: html:image vs html:submit

2004-07-08 Thread Michael McGrady
This tells you where the problem is. If you look at the code there you should be able to tell what is going wrong. At 01:33 PM 7/8/2004, you wrote: org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)

struts automation

2004-07-08 Thread Tate Austin
Is there a struts tool out there that will create the class files you name in a struts-config file automatically? It seems to me that would be really useful?

log4j book out of stock

2004-07-08 Thread Michael McGrady
Is there a place to get the log4j book, and is it worth the rather hefty price? Seems like everywhere I look it is not available. Is the author just trying to sell it on his own? Wazzup? - To unsubscribe, e-mail: [EMAIL PROT

RE: use multiple resource bundles in Validator

2004-07-08 Thread Jim Barrows
> -Original Message- > From: Van [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 1:12 PM > To: Struts Users Mailing List > Subject: Re: use multiple resource bundles in Validator > > > On Thu, 8 Jul 2004 18:18:41 +0800, Hanna <[EMAIL PROTECTED]> wrote: > > How can i use mulitp

html:image vs html:submit

2004-07-08 Thread Darryl Smith
In an attempt to avoid using LookupDispatchAction: I planned on just using form.getAction(), which works with submit buttons, but when I try it with an image button its a different story. Here's my setup public class CartForm extends ActionForm { private final Map values = new HashMap(); pr

Extending Request Processor

2004-07-08 Thread Lucas Gonzalez Pearson
Hi I´ve recently extended the requestProcessor with one of my own and found this error: javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor not compatible with TilesRequestProcessor at org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.ja

Re: use multiple resource bundles in Validator

2004-07-08 Thread Van
On Thu, 8 Jul 2004 18:18:41 +0800, Hanna <[EMAIL PROTECTED]> wrote: > How can i use mulitple message bundles in validator in struts 1.1? > like the way of ? No. -- - Mike "Van" Riper [EMAIL PROTECTED] - To unsubscribe, e-mail

image tag and onmouseover attribute

2004-07-08 Thread Michael McGrady
Anyone have an example on a real, live, actual, JSP page using the onmouseover attribute with the struts tag? If so, I would be very appreciative of a "look see" of what the JSP code looks like. Thanks in advance. QUESTION: Did you hear what Roy Rogers said to Trigger? ANSWER: "Why the long

Re: can someone help me?

2004-07-08 Thread Denis Avdic
What is your action mapping for majprospect action? Since your form is going to be submitted to majprospect.do (you need to add .do in there) your action mapping should basically have a name="prospectForm" in it. Also, to make sure your form is being named correctly: request.setAttribute("prosp

Re: Dynamic data html generation

2004-07-08 Thread DGraham
Use displayTag and leverage the columnDecorators for the formatting:  www.displaytag.org Dennis "JoAnn Lemm" <[EMAIL PROTECTED]> 07/08/2004 03:54 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject

Re: Dynamic data html generation

2004-07-08 Thread Wendy Smoak
From: "JoAnn Lemm" <[EMAIL PROTECTED]> > I have a set of data that needs to be displayed in an html table. Each > column has its own formatting. The data are stored as rows in an > ArrayList in the Form bean. How can I create this HTML table using > struts without resorting to building the table

RE: Dynamic data html generation

2004-07-08 Thread Jim Barrows
> -Original Message- > From: JoAnn Lemm [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 12:55 PM > To: Struts Users Mailing List > Subject: Dynamic data html generation > > > > Hi All, > > I have a set of data that needs to be displayed in an html table. Each > column has its

RE: Dynamic data html generation

2004-07-08 Thread Hookom, Jacob
Google display taglib -Original Message- From: JoAnn Lemm [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 2:55 PM To: Struts Users Mailing List Subject: Dynamic data html generation Hi All, I have a set of data that needs to be displayed in an html table. Each column has its ow

Re: [OT] how to calculate the size of an object

2004-07-08 Thread Kris Schneider
Not too surprising that it's available through a native programming interface (JVMTI) since it's really an implementation-dependent metric: http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#GetObjectSize Quoting Brian Lee <[EMAIL PROTECTED]>: > If you run this from a simple console test

Dynamic data html generation

2004-07-08 Thread JoAnn Lemm
Hi All, I have a set of data that needs to be displayed in an html table. Each column has its own formatting. The data are stored as rows in an ArrayList in the Form bean. How can I create this HTML table using struts without resorting to building the table in the bean. --JoAnn --

Re: can someone help me?

2004-07-08 Thread Wendy Smoak
From: "KEBE Cheikh Silÿffe8ye" <[EMAIL PROTECTED]> > In my editProspectAction.java, i do > public ActionForward execute( > ActionMapping mapping, > ActionForm form, ^ Populate the 'form' that is passed into the method, don't create a new one: > form=new Prospect

RE: can someone help me?

2004-07-08 Thread Jim Barrows
The short answer is read the java documentation better... you don't do a new Form(). That won't work for reasons related to Java and passing variables. In your struts-config.xml you should set the name, and probably validation=false. Then something like: MyForm myForm = (MyForm) form

AW: Using Log4j in Struts 1.1

2004-07-08 Thread Michael Albrecht
Hi! 1. You have to put commons.logging.jar and your favourite implementation, e.g. log4j.jar, in the WEB-INF/lib or the server directory for common libraries (e.g. CATALINA_HOME/commons/lib). 2. The configuration of the logging framework could be done in several ways. The most simple one to do is

use multiple resource bundles in Validator

2004-07-08 Thread Hanna
How can i use mulitple message bundles in validator in struts 1.1? like the way of ?

can someone help me?

2004-07-08 Thread KEBE Cheikh Silÿffffffffffe8ye
hi, i have an action class that calls a business object (prospect). And i want to display the information for a prospect in a form in jsp file (prospect.jsp) Here is my struts-config.xml form-property name="nameP" type="java.lang.String" /> here is my prospect.jsp file

Re: [OT] how to calculate the size of an object

2004-07-08 Thread Brian Lee
If you run this from a simple console test app, the JVM won't allocate any extra objects between 2 and 4. Unfortunatly, this is the most exact way to find out memory usage (serialization size doesn't necessarily mean in memory size). Just wait til those slackers at Sun at a Object.sizeof() meth

Re: html:submit button

2004-07-08 Thread Wendy Smoak
From: "Denis Avdic" <[EMAIL PROTECTED]> > Is there a way to separate those two? I need 10 buttons, all the same > label, but with different values submitted, depending on which button > is pressed. I am not sure how to achieve that with html:submit. > Should I just throw in a regular tag instea

[Frames & HttpSession Scope]

2004-07-08 Thread Pat Quinn
Ive just converted some existing functionailty to use frames (not inline frames). Every thing seemed to be working fine while i used localhost in my url but once i try to access the web server from another machine or using the machine name in the url my main frame is failing to find any objects

Re: Getting the values from Popup window to Parent window if Multiple text fields in parent window

2004-07-08 Thread Henrique VIECILI
If your filefields have all the same id or name you will get an array of them, then you should access them like an array. By example: HTML: File 1: ... File n: JAVASCRIPT var files = document.getElementById("myFile"); for( i = 0; i < files.length; i++) alert(files[i].value); Henrique V

Re: [OT] how to calculate the size of an object

2004-07-08 Thread Erik Weber
Also remember that when you serialize an Object (if I am not mistaken), all the Objects referred to by that Object get serialized too (unless the references are transient). In addition, there is serialization overhead (protocol info that is not actually part of your Object but that is required

Re: [OT] how to calculate the size of an object

2004-07-08 Thread Erik Weber
public static long getSize(LDIFData data) { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(baos); out.writeObject(data); out.close(); return baos.toByteArray().length; } catch (Exception e) { e.printStackTrace(); return -1; } } John M

Re: [Fwd: Faces Struts Tiles]

2004-07-08 Thread Craig McClanahan
Axel Groß wrote: Thanks Craig! Maybe we'll start switching this weekend to faces :) So excited 8) Me too :-). *Please* try it out, and report any bugs you find to our issue tracking system: http://issues.apache.org/bugzilla/ under product "Struts" and component "Struts-Faces Library". The q

Re: [OT] how to calculate the size of an object

2004-07-08 Thread DGraham
Well, you can go the route of serializing the object out as suggested by another. Or, if you just need a approximate calculation (since we don't know WHY you need the size), then add a size() method to both classes that calculates the size of a particular instance of said class.  Basically, LDIFD

RE: [OT] how to calculate the size of an object

2004-07-08 Thread Jim Barrows
> -Original Message- > From: Navjot Singh [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 9:46 AM > To: Struts Users Mailing List > Subject: Re: [OT] how to calculate the size of an object > > > hi, > > Thanks for the link but this is very naive way of doing it. I > am leavi

Re: [OT] how to calculate the size of an object

2004-07-08 Thread Navjot Singh
hi, Thanks for the link but this is very naive way of doing it. I am leaving it to the mercy of gc. What this method is doing 1. run gc() manually (AND hope it wont run automatically again soon.) 2. free memory 3. create and object. 4. free memory and now just wish that JVM wont allocate any memo

RE: [OT] how to calculate the size of an object

2004-07-08 Thread Jim Barrows
Whoops.. that should the problem with the first one on the list.. :) I know Bad code monkey no caffeine. > -Original Message- > From: Jim Barrows > Sent: Thursday, July 08, 2004 9:24 AM > To: Struts Users Mailing List > Subject: RE: [OT] how to calculate the size of an object > > >

RE: [OT] how to calculate the size of an object

2004-07-08 Thread Jim Barrows
Only problem is, that this is the size of the object with a new object, rather then being something that could be done dynamically. Not to mention that if this is done at run time ( which is what the original poster wants I believe) then you can be completely screwed by a GC run, and end up wit

Re: [OT] how to calculate the size of an object

2004-07-08 Thread DGraham
http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=size+java+object The first one looks promising. Dennis Navjot Singh <[EMAIL PROTECTED]> 07/08/2004 11:57 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To Struts Users Mailing List <[EMAIL PROTECTED]> cc

RE: [OT] how to calculate the size of an object

2004-07-08 Thread Jim Barrows
java.io.File has the length() method to return the length of the file. > -Original Message- > From: Navjot Singh [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 8:58 AM > To: Struts Users Mailing List > Subject: [OT] how to calculate the size of an object > > > hi, > > I use S

html:submit button

2004-07-08 Thread Denis Avdic
Hello, >From what I understand, the value attribute on html:submit button is both the value of the label and the value submitted to the property attribute when the button is pressed. Is there a way to separate those two? I need 10 buttons, all the same label, but with different values submitted

Re: [OT] how to calculate the size of an object

2004-07-08 Thread John Moore
Navjot Singh wrote: I use SAX parser to load an LDIF file into memory. Whatsoever data i read, i fill into an object. I need to know *the size of LDIFData object* at runtime. How to do that? Well the class structure is something like this public class LDIFData{ ArrayList cards; // collection of C

[OT] how to calculate the size of an object

2004-07-08 Thread Navjot Singh
hi, I use SAX parser to load an LDIF file into memory. Whatsoever data i read, i fill into an object. I need to know *the size of LDIFData object* at runtime. How to do that? Well the class structure is something like this public class LDIFData{ ArrayList cards; // collection of Card

Re: Setting the action attribute for nested:form

2004-07-08 Thread Rick Reumann
On Thu, 08 Jul 2004 11:02:30 -0400, Vinuta Nagaraddi <[EMAIL PROTECTED]> wrote: I am trying to set the action attribute for the nested:form tag dynamically. I want to achieve this by using a property called 'url' from the form (or maybe someone can suggest a better way). I was unsuccessful usi

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-08 Thread Viral_Thakkar
Thanks KP Could you please elaborate on this.. What I understood is that have an ArrayList of FormFile in the form bean class... now query is how this arraylist will get populated ? If I need to create an ArrayList in JSP then how to get FormFile element? I am not aware of dynamic list control

Re: Setting the action attribute for nested:form

2004-07-08 Thread Bill Siggelkow
Hi Vinuta -- I noticed this is the second time you have posted this question. Usually if you don't get a response from the mailing list it indicates that you need to supply more information about your problem. Speaking for myself, I usually ignore posts that are unclear to me ... its not that I

Re: using Constants from JSTL .....

2004-07-08 Thread Rick Reumann
On Thu, 08 Jul 2004 09:43:11 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: Duh, my bad, as David mentioned the above should be ${applicationScope.. }. Sorry about that. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Setting the action attribute for nested:form

2004-07-08 Thread Vinuta Nagaraddi
Hello, I am trying to set the action attribute for the nested:form tag dynamically. I want to achieve this by using a property called 'url' from the form (or maybe someone can suggest a better way). I was unsuccessful using the nested:write tag. Any help would be appreciated. Thanks, Vinuta

RE: ActionForward with runtime parameter?

2004-07-08 Thread Robert Taylor
You may also want to check out ParameterActionForward: http://www.mail-archive.com/[EMAIL PROTECTED]/msg96372.html robert > -Original Message- > From: Twan Kogels [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 10:21 AM > To: Struts Users Mailing List > Subject: RE: ActionForwar

Re: Using struts-nested tags

2004-07-08 Thread Paride Perazzolo
Hello folks 2 days ago I wrote: > from struts-config.xml the definition of the form follows: > > > type="org.apache.struts.validator.DynaValidatorActionForm"> > > the definition of the associated action is (note the scope parameter): My approach: I extract from session the bean

RE: using Constants from JSTL .....

2004-07-08 Thread Karr, David
> -Original Message- > From: Bryan Hunt [mailto:[EMAIL PROTECTED] > > But for some reason ( my stupidity and the time of the evening ) I > cannot get this to work. > snip= > value="${scope['Constants.EMAIL_NOTIFICATIONS']"> > > =snip > > or like this > > snip= > value="${scope[${Con

RE: some best practices questions

2004-07-08 Thread McCormack, Chris
>users will fail over to another box with nothing in their session. In some applications this is an acceptable risk if you have high uptime servers and very few code releases. If you however want a solid insurable "customer session" then using sticky sessions is not an option unfortunately. Ch

Re: Using Log4j in Struts 1.1

2004-07-08 Thread Selim Hendrickson
Hi, You have to put the log4j.jar into the lib directory. Then you construct the log4j.properties file and put into the classes directory. Here is a sample log4j.properties file: log4j.rootLogger=WARN, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.

Re: duplicate submission

2004-07-08 Thread Bill Siggelkow
Well, it adds a parameter to the query string of the link containing the token. You do need to save the token in the request in the Action prior to the page: public class MyAction { public ActionForward execute(...) { ... saveToken(request); ... } } Jignesh Patel wrote: Does tha

RE: ActionForward with runtime parameter?

2004-07-08 Thread Twan Kogels
Hello, Thanks for the replies! Yes, the parameter should be passed as a real parameter. I tryed the setattribute/getattribute method but that resulted in strange side effects. To remove the side effects more code lines we're needed. I guess i'll stick to my new ActionForward method. Cheers, Twa

Réf. : Re: simply getting plugin properties

2004-07-08 Thread meissa . Sakho
Thank you nicolas. there is something a little bit confusing in the struts documentation that led me in misunderstanding. I found the extract below in the struts documentation. I could never imagine creating a javabean property named "definition-config". _

Re: duplicate submission

2004-07-08 Thread Jignesh Patel
Does that set a same token which will be used to avoid duplicate submission. -Jignesh On Thu, 2004-07-08 at 09:19, Bill Siggelkow wrote: > You can add the token to a link URL (html:link or html:rewrite tag) by > setting 'transaction="true"'. > > Jignesh Patel wrote: > > We have specific requirem

Using Log4j in Struts 1.1

2004-07-08 Thread alok . garg
Hello All, Can anybody send me the steps to config Log4j in struts1.1. Using commons-logging Regards, Alok Garg

RE: some best practices questions

2004-07-08 Thread Paul McCulloch
The solution to this problem is to use a load balancer which knows about sessions. mod_jk2 for Apache does this very well. With sticky sessions enabled the first request in a session goes, as you say, to a low load box. All subsequent requests in that session will be sent to the same box. You do

Re: simply getting plugin properties

2004-07-08 Thread Nicolas De Loof
Simply create a javabean property 'myProperty' in your plugin class : private String myProperty; public void setMyProperty(String str) ... public String getMyProperty() ... Nico. > > I'm using struts 1.1 and need to set some parameters in my plugin > definition. > > here is my plugin defi

Re: using Constants from JSTL .....

2004-07-08 Thread Rick Reumann
On Thu, 08 Jul 2004 13:49:11 +0200, Bryan Hunt <[EMAIL PROTECTED]> wrote: Actually I haven't seen the 'scope' property like that, but have you tried (assuming ApplicationScope)... The above should work assuming you have a Constants class that is in Application scope and Constants is eith

RE: application configuration

2004-07-08 Thread Hibbs, David
I'll give you a good reason... file access inevitably risks IOExceptions, and exceptions don't propogate well from a static block. That is to say, when the ClassLoader invokes the static block, it is not invoked from within your code. The exception gets thrown and propogates throu

simply getting plugin properties

2004-07-08 Thread meissa . Sakho
I'm using struts 1.1 and need to set some parameters in my plugin definition. here is my plugin definition: I would like to read the property in my plugin init method. can someone tell me how to do this. thanks in advance. ___ NATEXIS ASSET MANAGE

Re: using Constants from JSTL .....

2004-07-08 Thread Kris Schneider
It's not so bad, really ;-). For some additional background, here are a few older messages from struts-user and taglibs-user: http://marc.theaimsgroup.com/?l=struts-user&m=103790677413408&w=2 http://marc.theaimsgroup.com/?l=struts-user&m=105777660215673&w=2 http://marc.theaimsgroup.com/?l=taglibs-

Re: some best practices questions

2004-07-08 Thread Ted Husted
Essentially, this is what ASP.NET does by default. The original values for the controls that you want to persist are encoded and serialized and written to the form as a single hidden variable. Then on the server side, it unmarshalls the hidden variable and restores the controls to their original

  1   2   >