Multiple File Upload using Struts (number of files dynamic)

2004-07-08 Thread Viral_Thakkar
Hi, We are trying to implement uploading file via struts framework using form bean. According to our requirement we have two scenarios' in which we require uploading of our file. 1) Uploading single file (single html:file control and a single upload button in jsp page) 2) Uploading

Re: Form bean scope question

2004-07-08 Thread Dirk Markert
Hello John, have you tried tiles:insert attribute=formContent flush=true/ *** JM Hi, JM I hope someone can help me get my head around a scoping question here. JM I have a multi-page wizard, used for purchasing. There are five

How to figue out whether a form field is required when redering the JSP output?

2004-07-08 Thread Zsolt Koppany
Hi, I would like to mark (for example with a red star) mandatory (required) input fields somehow that the user sees them? I understand that I can configure which fields are required in validation.xml but that might change to customer to customer (a customer wants for example to configure mobile

RE: some best practices questions

2004-07-08 Thread Michael McGrady
At 12:36 AM 7/8/2004, you wrote: For this particular use case I would either just use the session, or alternatively I would just look up the dropdowns from db each time and accept the performance hit, but its (probably) not worth the development time - including ongoing maintenance - to do

Re: Form tag problem

2004-07-08 Thread Axel Groß
so what is the path under which you would like to access the action? (like you would typ it into the browser) we could give you the right mapping On 2004-07-05 at 19:24:50 -0400, Erik Weber wrote: 1) Typo: I meant that my login page is: http://localhost:8080/Test/login.jsp, not index.jsp.

Re: [Fwd: Faces Struts Tiles]

2004-07-08 Thread Axel Groß
Thanks Craig! Maybe we'll start switching this weekend to faces :) So excited 8) ciao, axel On 2004-07-07 at 21:53:22 -0700, Craig McClanahan wrote: Hubert Rabago wrote: There's an old IBM article illustrating this. http://www-106.ibm.com/developerworks/java/library/j-integrate/ Keep in

why nested:hidden field not supports styleId property but html:hidden supports....

2004-07-08 Thread ganesh gadi
Hi friends Thanq 4ur non-stoping help. i need styleId property in nested:hidden field as it is in html:hidden field. But it doesn't support that . Where as html:hidden supports it. what can i do for that? Is there any equallent property for styleId in nested:hidden Pls let me know u

Application Resources application.properties

2004-07-08 Thread j h
How can I get access to the Application Resources (application.properties) in the java code? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Application Resources application.properties

2004-07-08 Thread Matthias Wessendorf
in Action: getResources(javax.servlet.http.HttpServletRequest request) or getResources(javax.servlet.http.HttpServletRequest request, java.lang.String key) first for default some think like this: message-resources parameter=net.wessendorf.struts.ApplicationResources null=false/

Design Problem

2004-07-08 Thread nikhil walvekar
hi all, I have got one problem in design i.e. i am not getting where should i place this part in my project. I have function to send mails, whom to send depends on some conditions, but my requirement is that message contents are taken from resources. So should it be Model part or

RE: Application Resources application.properties

2004-07-08 Thread Girish M.
hi, U can do as follows : Properties defaultProps = new Properties(); defaultProps.load(new FileInputStream(ApplicationResources.properties)); regards, GIRISH M -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of j h Sent: Thursday, July 08, 2004 3:30 PM To: [EMAIL

Re: Design Problem

2004-07-08 Thread Navjot Singh
nikhil walvekar wrote: hi all, I have got one problem in design i.e. i am not getting where should i place this part in my project. I have function to send mails, whom to send depends on some conditions, but my requirement is that message contents are taken from resources. So should it be

why nested:hidden field not supports styleId property but html:hidden supports....

2004-07-08 Thread ganesh gadi
Hi friends Thanq 4ur non-stoping help. i need styleId property in nested:hidden field as it is in html:hidden field. But it doesn't support that . Where as html:hidden supports it. what can i do for that? Is there any equallent property for styleId in nested:hidden Pls let me know u

Re: why nested:hidden field not supports styleId property but html:hidden supports....

2004-07-08 Thread Niall Pemberton
Generally struts tags only allow attributes which are part of the HTML 4.01 Specification - I'm not sure whether id is or isn't for input type=hidden, but I guess the logic goes that why would you need it for something which isn't visible. Anyway, you could modify the struts-html.tld to add this

Re: Design Problem

2004-07-08 Thread nikhil walvekar
Hi, Now my problem is that how to generate contents from Application resources in model , i am using two resources, one with default key and other with abc as bundle name. Messages are there in resource with abc as resource key. Nikhil Navjot Singh [EMAIL PROTECTED] wrote: nikhil

Lock Problem with Database

2004-07-08 Thread Shailender Jain
Hi, If i try to update a table(emp) in my database from a temp table(temp_emp) and at the same time some other transaction try to read or update the same table(emp) then i get the SQLException. I am assuming that this problem may be related to some locks created on the table. Is there any way by

[Fwd: Lock Problem with Database]

2004-07-08 Thread Shailender Jain
The database i am using is Informix 9.2 Shailender Jain wrote: Hi, If i try to update a table(emp) in my database from a temp table(temp_emp) and at the same time some other transaction try to read or update the same table(emp) then i get the SQLException. I am assuming that this

duplicate submission

2004-07-08 Thread Jignesh Patel
We have specific requirement for generating token in JSP instead of action class to avoid duplicate submission. Can anybody tell us how to do that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Lock Problem with Database

2004-07-08 Thread McCormack, Chris
Look at using 'select for update' which will allow the row to be selectable by other users. Chris McCormack -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 12:10 To: [EMAIL PROTECTED] Subject: Lock Problem with Database Hi, If i try to update a

application configuration

2004-07-08 Thread j h
If there are specific properties that need to be configured on deployment, where should these be put? you could put these in the application.properties file and read these in from an Action class every time they are needed: MessageResources mr = getResources(request); String config =

RE: [Fwd: Lock Problem with Database]

2004-07-08 Thread McCormack, Chris
In that case : http://archives.java.sun.com/cgi-bin/wa?A2=ind9811L=jserv-interestF=S=P=18647 Chris McCormack -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 12:11 To: [EMAIL PROTECTED] Subject: [Fwd: Lock Problem with Database] The database i am

form focus and validation

2004-07-08 Thread j h
If form validation fails and the user is returned to the original form, how can you focus on the elements that failed validation? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: application configuration

2004-07-08 Thread Andrew Hill
I tend to put such things in XML files rather than properties files nowadays. When the app starts up I have a plugin read the files and create configuration objects (using Digester), and put these objects into the servlet context (application scope) where my code can get at them easily.

RE: Design Problem

2004-07-08 Thread Viral_Thakkar
What your putting in Application resources file..??? If u r displaying error messages then use html:errors bundle=abc/ in model. -Original Message- From: nikhil walvekar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 4:29 PM To: Struts Users Mailing List Subject: Re: Design

Taglib to convert text into HTML

2004-07-08 Thread Henrique VIECILI
Hi all, is there any struts or non-struts taglib wich converts normal text into HTML? I want to add after each new line one br to present correctly some text typed in a textarea in previous page. Thanks, Henrique Viecili

Re: application configuration

2004-07-08 Thread j h
Please can you give some example code for this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: using Constants from JSTL .....

2004-07-08 Thread Bryan Hunt
Hmmm, that gives me no error but no result either I put in the following code to test it and just got blank screen. snip= jsp:useBean id=Constants class=ie.jestate.web.Constants/ c:set var=emailNotifications value=${scope[${Constants.EMAIL_NOTIFICATIONS}]}/c:set c:out

Re: Taglib to convert text into HTML

2004-07-08 Thread Niall Pemberton
Haven't used them but Taglibs has a replace and split tags that might work: http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html Niall - Original Message - From: Henrique VIECILI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July

Re: OT: RE: Spring or Tapestry Framework

2004-07-08 Thread Bryan Hunt
The predecessor is such a cool book that it's probably a collectors item. --b Joe Germuska wrote: At 4:19 PM -0400 7/7/04, [EMAIL PROTECTED] wrote: Also, I'm sure Rod's new book includes solutions that leverage Spring:

Re: 1.2.0 release plan?

2004-07-08 Thread Niall Pemberton
Ted just posted this on the developers list: I'm now testing, tagging, and rolling Struts 1.2.1. Please stand by :) - Original Message - From: Emmanouil Batsis [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 08, 2004 8:48 AM Subject: Re: 1.2.0

RE: application configuration

2004-07-08 Thread Viral_Thakkar
I have a java file which read few properties file and put the key and values read from these properties into HashMap object of singleton class.. I am doing this to read all Fixed Values which I need to display in my jsp pages. Now I want this class to run as soon as server starts... how to

Re: some best practices questions

2004-07-08 Thread Bryan Hunt
The main arguments that people have against session storage is the following a) Excessive memory consumption limits scallability. True, just don't go crazy storing whole db's and stuff in there. b) Sessions can not be shared by webservers in clustered environment. Clustered webservers with shared

Re: using Constants from JSTL .....

2004-07-08 Thread Bryan Hunt
Uh oh, I just realised that is the exact same as mine just implimented differently. c:out value=${CONSTANTS.WHATEVER)/ Will output the string value but will not be able to be used to resolve the bean by that name. I'm giving up on JSTL constants. Nice idea ... but too expensive on my

RE: application configuration

2004-07-08 Thread Andrew Hill
Thats one approach. The other is to use a struts plugin. I guess its a matter of taste. My personal preference is for plugins but either way also can. Just implement the org.apache.struts.PlugIn interface and declare the plugin in your struts-config.xml file. The ActionServlet will call the

Re: [Fwd: Lock Problem with Database]

2004-07-08 Thread Shailender Jain
Hi, Thanks for the response. Is there any way by which i can fire some queries at the database level and the problem is solved. cheers shailender jain McCormack, Chris wrote: In that case : http://archives.java.sun.com/cgi-bin/wa?A2=ind9811L=jserv-interestF=S=P=18647 Chris McCormack

ActionForward with runtime parameter?

2004-07-08 Thread Twan Kogels
Hello people, I've started my first project with struts. It's working fine, clean and quick. But i have a question regarding actionforwards and parameters to the path. I have a form; when the user submits the form i forward the user to another page. This page requires one parameter (?id=x) to

RE: ActionForward with runtime parameter?

2004-07-08 Thread Andrew Hill
Yep. Pretty much so. Its what we all do. :-) Those who do it often tend to bang up some utility code to reduce the typing but the end result is pretty much the same. You may wish to use the other constructor for ActionForward and preserve the redirect flag. ie: ActionForward fwd =

RE: ActionForward with runtime parameter?

2004-07-08 Thread Kailash Vasani
Hi, Set id and it's value in request object and just forward to mapping.findForward(success). In ur target page (where u r forwarding), get the value for parameter (id) from request object. that should do the trick Kailash -Original Message- From: Twan Kogels [mailto:[EMAIL PROTECTED]

RE: ActionForward with runtime parameter?

2004-07-08 Thread Geeta Ramani
Just a couple of small notes here though, (added for the Struts beginner): you will be setting and getting a attribute not a parameter. Also you will need to set/get it as an Integer not an int.. Geeta -Original Message- From: Kailash Vasani [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: application configuration

2004-07-08 Thread Geeta Ramani
Viral: Look at Struts Tips by Ted Husted on the struts home page. I am pretty certain he discusses this very issue in detail. (I can't seem to get to that link right now hence cannot verify..) hth, Geeta -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: application configuration

2004-07-08 Thread James Mitchell
As an added bonus. Just after 1.1 was released Joe offered a cool plugin called DigestingPlugin that takes most (if not all) of the hard work out of getting your xml - bean done. The only thing I've used that comes close is JAXB. Check it out:

RE: application configuration

2004-07-08 Thread McCormack, Chris
I have coded something similar to this but rather than pop the properties object in to the context I attached it to ThreadLocal. Chris McCormack -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 12:26 To: Struts Users Mailing List Subject: RE: application

Re: Taglib to convert text into HTML

2004-07-08 Thread Henrique VIECILI
Thanks Niall, I downloaded the Lang2.0 but i couldn´t find any .tld files to download (specially string.tld). Do you know where to download these files? They don´t come with distro. Henrique Viecili - Original Message - From: Niall Pemberton To: Struts Users Mailing List

RE: ActionForward with runtime parameter?

2004-07-08 Thread Andrew Hill
yeh. If you set it as an attribute and try to get it as a parameter your in for some dissapointment ;-) Doing it as an attribute would be ok though so long as its a non-redirecting forward and the place you forward to knows to expect it as an attribute. This does however mean you will also be

RE: application configuration

2004-07-08 Thread Kailash Vasani
Hi Viral Andrew, I dont have more information, but assumption is that Viral has some class whose methods should be invoked in servlet container startup. Plugin approach has some disadvantages, namely, it gets invoked for all the HTTP GET / POST requests, that includes GET issued for things like

RE: application configuration

2004-07-08 Thread Geeta Ramani
Kailash: I don't think this is the case... I believe if you implement the Plugin interface and override the init() method, you will be ok.. Geeta -Original Message- From: Kailash Vasani [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 8:45 AM To: 'Struts Users Mailing List'

RE: application configuration

2004-07-08 Thread Andrew Hill
snip Plugin approach has some disadvantages, namely, it gets invoked for all the HTTP GET / POST requests, that includes GET issued for things like images, CSS files etc. /snip You are confusing PlugIn with something else! (filters?) PlugIns are expressely created for the purpose of doing this

RE: java.util.ConcurrentModificationException

2004-07-08 Thread Andrew Hill
When you iterate the vector in your action are you modifying its contents in any way (ie: using add or remove, etc...)? -Original Message- From: Richard Aukland [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 July 2004 20:46 To: [EMAIL PROTECTED] Subject:

RE: java.util.ConcurrentModificationException

2004-07-08 Thread Richard Aukland
Thankyou Andrew, I am probably being a total java kook as I am fairly new, but here is my code; //need to go through the membershipTypeForm and build array of value objects which we update with data tier Iterator it = membershipTypesForm.getMembershipTypes_().iterator(); MembershipTypeBeanValue

Re: duplicate submission

2004-07-08 Thread Bill Siggelkow
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 requirement for generating token in JSP instead of action class to avoid duplicate submission. Can anybody tell us how to do that.

Re: Taglib to convert text into HTML

2004-07-08 Thread Niall Pemberton
Hmmm, when you say Lang2.0 do you mean that or is it a typo - I was saying the taglibs project rather than Commons Lang - Taglibs can be donloaded from here: http://apache.mirror.positive-internet.com/jakarta/taglibs/ Niall - Original Message - From: Henrique VIECILI [EMAIL

RE: java.util.ConcurrentModificationException

2004-07-08 Thread McCormack, Chris
Without looking deeper in to this could it be a case of : while(it.hasNext()){ MembershipTypeForm form = (MembershipTypeForm)it.next(); value[count] = new MembershipTypeBeanValue(); BeanUtils.copyProperties(value[count],form); count++; // -- this } -Original

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-userm=103790677413408w=2 http://marc.theaimsgroup.com/?l=struts-userm=105777660215673w=2

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: plug-in className=com.bpam.mediatheque.plugins.MediathequePlugin set-property property=myProperty value/WEB-INF/myFile.xml/ /plug-in I would like to read the property in my plugin init

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

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: c:set var=emailNotifications value=${scope[${Constants.EMAIL_NOTIFICATIONS}]}/c:set Actually I haven't seen the 'scope' property like that, but have you tried (assuming ApplicationScope)... c:set var=emailNotifications

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

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 requirement for

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. plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config

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,

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

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= c:set var=emailNotifications value=${scope['Constants.EMAIL_NOTIFICATIONS']/c:set c:out

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: form-bean name=canalizzazioneCLDForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=listaDanneggiati type=java.util.ArrayList/ /form-bean the definition of the

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: ActionForward

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: c:set var=emailNotifications value=${servletContext[Constants.EMAIL_NOTIFICATIONS]}/ Duh, my bad, as David mentioned the above should be ${applicationScope.. }. Sorry about that. -- Rick

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

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

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

[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: [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

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

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 SAX parser

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

2004-07-08 Thread DGraham
http://www.google.com/search?hl=enlr=ie=UTF-8q=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 Subject

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

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 Only

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 leaving it to

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

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

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: 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: input type=file id=myFile / ... File n: input type=file id=myFile / JAVASCRIPT var files = document.getElementById(myFile); for( i = 0; i

[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: 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 input tag instead?

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()

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-bean name=prospectForm type=com.youcompany.struts.form.ProspectForm form-property name=emailDtP

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 bean:message key=... bundle=.../ ?

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

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

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 ProspectForm();

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: [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

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

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 own

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 in the

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 Dynamic data

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:

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 image 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

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 bean:message key=... bundle=.../ ? No. -- - Mike Van Riper [EMAIL PROTECTED]

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

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();

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 mulitple message

  1   2   >