Re: [OT] RE: Stackoverflow after DB inactivity

2003-09-17 Thread Vikram Goyal
Thanks Steve for the suggestions. Regards, Vikram - Original Message - From: Steve Raeburn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:08 PM Subject: [OT] RE: Stackoverflow after DB inactivity Additional info on why MySQL

invalid data type in struts-config dynavalidatorform

2003-09-17 Thread koen boutsen
I'm using the struts validator. I read in the archive that when I use a html:select in my form, I have to use java.lang.String[] as type form my formproperty in the struts-config. But I get the error : form-property: Invalid data for attribute type Can anybody help, because I'm really stuck.

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Thomas Cornet
I'm doing the same thing on my current webapp. You can define as many ressources as you want in your struts-config.xml. Let's define two ressources in your struts-config.xml kile this (the bundle attribute allows to identify ressources) message-resources

Display arbitrary number of replacement values

2003-09-17 Thread hsw
Hi, i am trying to display a ActionError object with replacement values as a object[]. can anybody tell me what do i need to put in my message resource file for displaying this array. also, do i need to do something special in the jsp or a simple html:errors/ would suffice for e,g for a

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread [EMAIL PROTECTED]
I asked virtually the same question yesterday and got a similar answer. Unfortunately this seems to imply that the jsp has to know about how you arrange your message files which is disappointing. - Original Message - From: Thomas Cornet [EMAIL PROTECTED] Newsgroups: Struts Sent:

Multiple validation, one form

2003-09-17 Thread Ruben Carvalho
Sorry for sending this message again but I got no answer with the first one and I'm really getting crazy with it. I'm getting a bit confused with the XML validation system. I have one form (DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3 fields: name, address

Re: Multipage JDBC result

2003-09-17 Thread Andrew Kuzmin
IMHO, this is an excellent article on TheServerSide.com Data List Handler: A Pattern for Large Search Result Sets http://www.theserverside.com/resources/article.jsp?l=DataListHandler -- Andrew Kuzmin http://www.java201.com - Original Message - From: Michael Muller [EMAIL PROTECTED]

How to refresh a page in an action

2003-09-17 Thread Mehdi EL AKARI
Hello, I nedd to create an action that positions a cookie and refreshes the page (with all its parameters) this is the code of my action and it causes a nullPointerException public class ChangeTabAction extends Action { public static final String TabCookieName = tabCookie; public

Sample code for Pagination.

2003-09-17 Thread deepaksawdekar
Where can i get the sample taglib for pagination tag. Thanks and Regards Deepak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to refresh a page in an action

2003-09-17 Thread Andrew Hill
Have you specified an input attribute in your action mapping in struts-config.xml? -Original Message- From: Mehdi EL AKARI [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 16:18 To: struts Subject: How to refresh a page in an action Hello, I nedd to create an action that

Re: on validation fail

2003-09-17 Thread Daniel Wang
I can't imagine why you would need to use validation when there's no user input involved, but... - you can put all the values of your bean in html:hidden so they get resubmitted or - you can put the bean in the session daniel - Original Message - From: Darius Ghanipour [EMAIL

Re: Sample code for Pagination.

2003-09-17 Thread Andrew Kuzmin
Where can i get the sample taglib for pagination tag. http://edhill.its.uiowa.edu/display/ http://jsptags.com/tags/navigation/pager/ -- Andrew Kuzmin http://www.java201.com Thanks and Regards Deepak - To unsubscribe,

Re: derrive the form action name from the action mapping that called the JSP

2003-09-17 Thread Daniel Wang
I don't believe you can... What I end up doing is make the form submit to a common dispatch action that then forwards to either action1 or action2... daniel - Original Message - From: Mick Knutson [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:22 PM

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread manglu
Thomas, You didn't get the question. I understand that multiple bundles can be used in bean:write or other tags that understand i18n. Question is: Application identifies two errors- errors.invalid (found in bundle1) invalid.amount (found in bundle2) When i create these errors and add it to

nested tag problem in weblogic

2003-09-17 Thread Coolyogs
Hi All, I have used nested tags in my jsp pages (nested nest) It is working fine in JRun4 but it is giving problem in weblogic7. Its giving servlet exception in that page. Actually I am nesting a bean that contains a vector that again contains beans. but it is giving null in weblogic7 pls

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Thomas Cornet
Oh, excuse me. Looking at the DTDs, it seems that html:errors tag has a 'bundle' parameter, so something like : html:errors bundle=errors property=your_property This should search errors message in the right message ressource, if they are all in the same. Thomas PS : ActionError class just

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
I don't believe you can. html:errors or html:messages can only accept a single message bundle. daniel manglu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thomas, You didn't get the question. I understand that multiple bundles can be used in bean:write or other tags that

Re: getting redirect to work -- easy one?

2003-09-17 Thread Daniel Wang
Looks like you printed something to the response before you try to do the redirect() daniel - Original Message - From: Adam Fisk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:02 PM Subject: getting redirect to work -- easy one? Hopefully this is an easy

Re: How to refresh a page in an action

2003-09-17 Thread Mehdi EL AKARI
No i didn't because i wanted the action and the action configuration to be really generic and work for any page. is there any solution for this or shal i just set an action mapping with an input attribute for each page? thanks - Original Message - From: Andrew Hill [EMAIL PROTECTED] To:

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread manglu
Thomas, Thanks. This variant that you are referring to is the one that places the errors to the side of the property that causes trouble. Is that right? I still want a single view at the top which outlines all the errors yet the message can come from multiple bundles. Is this achievable?

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Thomas Cornet
At 00:37 18/09/2003, you wrote: Thomas, Thanks. This variant that you are referring to is the one that places the errors to the side of the property that causes trouble. Is that right? Yep I still want a single view at the top which outlines all the errors yet the message can come from

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
They are the same tablib, i.e. html:errors or html:messages and you can only specify one optional bundle with each of these tags. If you really want to implement this, you can subclass or modify ActionMessage to allow you to specify a message bundle, and subclass ErrorsTag to use the specified

Problem recognising button property in action

2003-09-17 Thread Bruce James
Hi, I'm having a particularly frustrating time trying to get my struts app to recognise which button has been pressed. I've stripped it down a bit to only one submit button with one property and getter setters for it. The problem I have is that the property specified in the html:submit tag

Re: [OT] Subject line filter tag

2003-09-17 Thread Adam Hardy
On 09/16/2003 09:18 PM David Graham wrote: Generally, yes, redundant and unecessary. With lovely services like hotmail, however, you don't get much say in the way of header information being displayed before you actually open the email.. which makes mass deletions, folder filtering, and

RE: getting redirect to work -- easy one?

2003-09-17 Thread Kalra, Ashwani
It looks that you are sending output to the client before redirecting. Just make sure that you are not writing any thing to the client(browser) /Ashwani -Original Message- From: Adam Fisk [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:32 AM To: [EMAIL PROTECTED] Subject:

Re: struts-faces

2003-09-17 Thread Adam Hardy
Hi Craig, I remember a while ago in one of these architecture- theme emails you discussed the OO nature of struts it had been said that the action-form class and the action class broke the OO encapsulation principle, by having data in one and functionality in another. You said if you were

include a file

2003-09-17 Thread Mariano García
Hi all, Is there any tag to include html or jsp file into another jsp file? Thx. _ Mariano García Ingeniero de Sistemas Optiva Media Viriato,25 - 28010 Madrid - España t. +34 91 445 96 95 m. +34 651 03 33 86 © This message is printed on 100% recycled electrons.

RE: validator question: show value of a field in error

2003-09-17 Thread Jean-Michel Garnier
We want to do exaclty the same. After many attempts, it seems that Struts 1.1 Validator does not provide this functionality. It seems that there will be an evolution in Struts 1.2 with the validwhen validator, see : Designing Complex Validations with validwhen,

Re: include a file

2003-09-17 Thread Abhijeet Mahalkar
Why don't you try directly the jsp:include .. tag abhijeet - Original Message - From: Mariano García [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 5:00 PM Subject: include a file Hi all, Is there any tag to include html or jsp file into another jsp

RE: include a file

2003-09-17 Thread Andrew Hill
Yes -Original Message- From: Mariano García [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 19:30 To: [EMAIL PROTECTED] Subject: include a file Hi all, Is there any tag to include html or jsp file into another jsp file? Thx. _ Mariano García Ingeniero de Sistemas

[OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Casey Forbes
Hi everyone, There are many smart people on this list and I haven't been able to get anywhere with this problem, so... I'm running 12 Struts-based apps under Resin 2 on a Linux box. (I don't believe that this is a Struts problem - this is just some background for you) Every few days (sometimes

Re: include a file

2003-09-17 Thread Christian Bollmeyer
%@ include file=file % (static) jsp:include page=page / (dynamic) c:import url=url / (JSTL, URL-based) - Original Message - From: Mariano García [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 1:30 PM Subject: include a file Hi all, Is there any tag to

bean:write property= Format a Date ?

2003-09-17 Thread reps
one of my Bean propertys is a Date and i want to output it formated, is there a way to do that with struts ? Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) Web Applications - To unsubscribe, e-mail: [EMAIL PROTECTED]

What is wrong with this expression?

2003-09-17 Thread Mehran Zonouzi
Hi, I can not understand why the below does not function.. html:link action=editcontact.do?page=editcontactcontactid=%=contact.getID()%%=contact.getLastName()%, %=contact.getFirstName()% /html:link When the mouse is hovering over the link I get the below:

Re: bean:write property= Format a Date ?

2003-09-17 Thread Abhijeet Mahalkar
I don't thing struts provide you formating date functionality as i never tried also but frankly it will take another 20 min. to write a function for formatting date.. use string.substring methods and all after retriving the date from DB using getStirng() or use to_char(datefield,'dd/mm/

RE: bean:write property= Format a Date ?

2003-09-17 Thread Ripudaman.Sharma
Inspite of using substring.You can use SimpleDateFormat class which provide you the facility of format date to any any Date Format .For Your refrence sending code which is generic one and convert any DateFormat- How to convert date from 2002-11-29 to 29/11/2002 (Or from any format to any format.

Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
Hi, What else do I need to check? The form is working perfectly at the moment but it is not being validated In struts-config.xml snip form-bean name=Financial.Sponsor.ReceiveSponsorshipForm type=org.apache.struts.validator.DynaValidatorForm /snip snip action

RE: What is wrong with this expression?

2003-09-17 Thread Robert Taylor
Tag attribute values must be a single expression. Try this: % String action = editcontact.do?page=editcontactcontactId= + contact.getID(); % html:link action=%=action%%=contact.getLastName()%, %=contact.getFirstName()%/html:link robert -Original Message- From: Mehran

RE: bean:write property= Format a Date ?

2003-09-17 Thread Mohd Amin Mohd Din
There was a discussion on the list previously on formatting a date object. It would be better to format the date at the business layer rather than at the presentation layer. This is because if the view layer is changed to use Swing or another web app framework, the date is already formatted to the

Re: What is wrong with this expression?

2003-09-17 Thread Konstadinis Euaggelos
% java.lang.String hrefLink = /CRUDUser.do?method=showUserProfileuserId=+userId;% td class=LTCell valign=top width=10% html:link page=%=hrefLink% bean:write name=currentVector property=USER_NAME/nbsp; /html:link

RE: Application.properties

2003-09-17 Thread Paananen, Tero
I have seen the Message-Resources DB application (using OJB) by James Mitchell using which we can put the properties in a database and retrieve them. But It also needs the container to be reloaded when a change has been made. I tested the OBJMessageResources implementation yesterday with a

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread sreekant_gottimukkala
I have a few questions reg the below Is this recreatable is there a certain place where you get this OutOfMemory exception Are you using JNI Also Can you please send the stack trace. Regards Sreekant G @ 98404-65630

crud example

2003-09-17 Thread thomas Sontheimer
has anyone an example for crud (Create, Read, Update, Delete) functionnality with dispatchAction and jsp page code? thanks in advance. thomas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: jstl question

2003-09-17 Thread Mark Galbreath
I don't get it. Accessors for JavaBeans do not use parameters (public String getValueNum()); mutators use parameters (public void setValueNum( String param ). Why are you passing an accessor a param argument? Nevertheless, if this were a real JavaBean, you would set and get its values in JSTL

RE: jstl question

2003-09-17 Thread Bradley Handy
Accessors of java.util.Map implementations use a single parameter. Is the instance variable behind the valueNum property an implementation of java.util.Map (ie. HashMap, org.apache.commons.collections.FastHashMap, etc)? If it is, then Mark's suggestion needs one little tweak. Change:

Re: What is wrong with this expression

2003-09-17 Thread Mehran Zonouzi
Thanks Rob. It worked! -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of

Service Locator class

2003-09-17 Thread Viral_Thakkar
Hi all, Can anyone provide me the Service Locator class? Regards, Viral - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Daniel Wang
You could be running out of file descriptors? run ulimit before you start resin. - Original Message - From: Casey Forbes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 5:21 AM Subject: [OT] OutOfMemoryError when I have plenty of heap Hi everyone, There

RE: Service Locator class

2003-09-17 Thread Paananen, Tero
Can anyone provide me the Service Locator class? http://www.google.com/search?q=ServiceLocator+Java -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any

RE: bean:write property= Format a Date ?

2003-09-17 Thread Paul McCulloch
An easy way is to use JSTL's fmt:formatDate tag. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 13:31 To: Struts-User Subject: bean:write property= Format a Date ? one of my Bean propertys is a Date and i want to output it formated, is

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
fmt:setBundle fmt:bundle - Original Message - From: Carlos Sánchez [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 6:53 AM Subject: RE: How to pull messages from multiple Bundles? Another question which I've already asked but

RE: Service Locator class

2003-09-17 Thread Viral_Thakkar
This search results in classes which uses the ObjectInputStream and OutputStream. I am interested in a class which is not using this serializable funda. -Original Message- From: Paananen, Tero [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:24 PM To: 'Struts Users

Re: struts-faces

2003-09-17 Thread Gregory Seidman
On Wed, Sep 17, 2003 at 01:14:27PM +0200, Adam Hardy wrote: } I remember a while ago in one of these architecture- theme emails you } discussed the OO nature of struts it had been said that the } action-form class and the action class broke the OO encapsulation } principle, by having data in

RE: How to pull messages from multiple Bundles?

2003-09-17 Thread Carlos Sanchez
Oh, sorry, forget my last post and here's an aswer to your problem (which was also mine) Watch this from thread Multiple message resources with JSTL -Mensaje original- De: Kris Schneider [mailto:[EMAIL PROTECTED] Enviado el: viernes, 12 de septiembre de 2003 16:35 Para: Struts

Reuse of JSP's and relative links

2003-09-17 Thread Anders
Hi, How can i get html:link to use relative links? I'm trying to reuse actions and JSP several places under different paths. My problem is: The user enters through /secure/articles/Show.do and it displays the page with articles. The links on the page lets you go to the next page and read the

RE: jstl question

2003-09-17 Thread Mark Galbreath
smartass -Original Message- From: Bradley Handy [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:44 AM To: Struts Users Mailing List Subject: RE: jstl question Accessors of java.util.Map implementations use a single parameter. Is the instance variable behind the valueNum

RE: bean:write property= Format a Date ?

2003-09-17 Thread Mark Galbreath
Just use java.text.DateFormat in your action class and set a String property in your form bean with the result. Easy as pie. -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 8:45 AM To: Struts Users Mailing List Subject: Re:

Re: Reuse of JSP's and relative links

2003-09-17 Thread Daniel Wang
use href as opposed to page i.e. html:link href=Show.do - Original Message - From: Anders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:07 AM Subject: Reuse of JSP's and relative links Hi, How can i get html:link to use relative links? I'm trying

RE: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread David G Friedman
Casey, I asked the same question on August 20th an received the below answer from David Graham. I believe the bug was with reloading (stop/start) of Tomcat apps not fully releasing properties. I was developing and seeing this problem after about 20 or so stop/start actions. I still haven't

RE: bean:write property= Format a Date ?

2003-09-17 Thread Daniel H. F. e Silva
Hi Mahalkar, You can use JSTL to do that work on your JSP page. Just use formatting standard tags. As Mark said, it is piece of cake. You can use: fmt:formatDate value={$my_property} pattern=my_pattern/ Formatting pattern is exactly the same as patterns used in SimpleDateFormat.

Re: Reuse of JSP's and relative links

2003-09-17 Thread Anders
Ah, great! :) How can i do the same thing in the html:form tag? Anyone knows? Thanks, Anders, On Wed, 17 Sep 2003, Daniel Wang wrote: use href as opposed to page i.e. html:link href=Show.do - Original Message - From: Anders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Reuse of JSP's and relative links

2003-09-17 Thread Daniel Wang
You can't. :( - Original Message - From: Anders [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:24 AM Subject: Re: Reuse of JSP's and relative links Ah, great! :) How can i do the same thing in the html:form tag? Anyone knows?

RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
You might be able to do this with an onsubmit handler ie.. html:form onsubmit=this.location.href='/Show.do' -Original Message- From: Daniel Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:29 AM To: Struts Users Mailing List Subject: Re: Reuse of JSP's and relative

[SCAFFOLD] How get session in ProcessActionHelp class

2003-09-17 Thread Lázaro Miguel Fung
Hi. How I can get a session object in a ProcessActionHelp class, I have this session object: bookId How I can use this session inside a ProcessAction. TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
Or html:form onsubmit=this.action='/Show.do';this.submit(); -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:29 AM To: Struts Users Mailing List Subject: RE: Reuse of JSP's and relative links You might be able to do this with an

Re: Reuse of JSP's and relative links

2003-09-17 Thread Daniel Wang
Actually you probably don't want to do the extra this.submit() from within a submit handler -- it'll create an endless loop onSubmit should submit the form unless a FALSE is returned - Original Message - From: Mike Jasnowski [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Re: Reuse of JSP's and relative links

2003-09-17 Thread Anders
Good idea, but the tag needs to look up the action for form handling etc. It can't do that if the correct action url isn't specified in the action-attribute. I've tried something like action=%=path%Edit.do but as a lot of people probably would know that doesn't work either. :) Anders, You might

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Casey Forbes
Hello, I haven't been able to recreate this OutOfMemoryError. It doesn't seem to occur in any particular place. It happens a few times a month and I've written some little things to summarize and help me analyze the HTTP access logs and the Struts RequestProcessor logs but I can't find any

RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
Ahh good point, I was thinking I guess in terms if it was launched from a button. -Original Message- From: Daniel Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:39 AM To: Struts Users Mailing List Subject: Re: Reuse of JSP's and relative links Actually you

RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
Actually now that I think about it I'm not sure you'd be able to change the action attribute of the form tag during onsubmit. It might be too late at that point. -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:46 AM To: Struts Users

Design Question

2003-09-17 Thread sean schofield
I am working on a struts-based web application and I have an interesting design issue that I'd like to get some feedback on. I think this problem is actually quite generic and there must be some good ideas out there already that I could sponge off! Basically I have a struts form with a bunch

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Carl Walker
Set JAVA_OPTS=-server -verbose:gc -Xms64m -Xmx64m and test your application manually or using some kind automated loop. At some point, excessive garbage collection will take place. Look for Full GC. If you don't see it, you may not be exercising the problem part on the application. Full GC

RE: Design Question

2003-09-17 Thread Andrew Hill
oops. Forget what I said - didnt read it properly. You need to be able to tell which fields changed. The digest will merely tell you if any changed. Sorry. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 23:01 To: Struts Users Mailing List

RE: Design Question

2003-09-17 Thread sean schofield
You are correct that my problem requires more information that just something changed. But your solution may prove useful for a different problem ... Basically the user has the option of bringing up different forms without submitting their changes. I'd like to be able to present them with Are

Fail over: ActionForm's FormFile attribute is null .....(Weblogic8.1 cluster)...

2003-09-17 Thread Trieu, Danny
Hi all, I have an ActionForm used for fileupload that has an attribute of type FormFile, that become null after a file being uploaded and on the failover machine in our cluster environment it become null and throw a NullpointerException. Does anyone know how this can be fix? Thanks, --danny

Re: Design Question

2003-09-17 Thread Daniel Wang
You can probably write an aspect (using AspectJ) to do this fairly automatically -- i.e. create a pointcut for all *Form.set* methods, and then do your comparisons there. i.e. public aspect DiffAspect { pointcut setter() : call(public void *Form.set*(..)); before() : setter() { //...

Re: Fail over: ActionForm's FormFile attribute is null .....(Weblogic8.1 cluster)...

2003-09-17 Thread Daniel Wang
I don't know how to solve your problem -- but does your cluster support failover during file uploads? If so, can you describe how it is configured? we are trying to provide this functionality... thanks, daniel - Original Message - From: Trieu, Danny [EMAIL PROTECTED] To: [EMAIL

RE: Fail over: ActionForm's FormFile attribute is null .....(Weblogic8.1 cluster)...

2003-09-17 Thread Trieu, Danny
Daniel, I wasn't responsible for setting up the environment but here is what happens. When I finish uploading the file, we take down the target machine, that proccess the request, and let the failover machine take over. Every thing else working fine except when you access the ActionForm in the

appendChild related problem.

2003-09-17 Thread imran ali
Hi, I am doing client side sorting and first column of my table is a check box. After sorting I am loosing the clicked check box information. It is happening in following code: var newTbody = document.createElement('tbody'); for (var i=0, length=rowArray.length; ilength; i++) {

RE: Fail over: ActionForm's FormFile attribute is null .....(Weblogic8.1 cluster)...

2003-09-17 Thread Trieu, Danny
Thanks all, With the help from my friend Steve Ditlinger(sslext), I undterstood the problem. It is the same reason why File is not serializable Thanks all, --danny -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:01 AM To:

Re: struts-faces

2003-09-17 Thread Craig R. McClanahan
On Wed, 17 Sep 2003, Adam Hardy wrote: Date: Wed, 17 Sep 2003 13:14:27 +0200 From: Adam Hardy [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: struts-faces Hi Craig, I remember a while ago in one of these

Using DispatchAction class with Struts Validator

2003-09-17 Thread Burhan Nazir
Got a problem thats been bugging me for a while: I'm using an action class that extends DispatchAction class. The methods in this class use the same ActionForm class (DynaValidatorActionForm). However, the validation requirments for each method in the dispatch class are different. I understand

RE: Using DispatchAction class with Struts Validator

2003-09-17 Thread Mike Jasnowski
Do you have corresponding pages for each method? Would the page attribute enable you to only validate fields relevant to the corresponding dispatch method? Or have I missed your question. -Original Message- From: Burhan Nazir [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003

Re: Using DispatchAction class with Struts Validator

2003-09-17 Thread Burhan Nazir
Indeed, each dispatch method corresponds to a different jsp page. However, the page attribute is designed for building up an ActionForm from many different pages in wizard like way. I'm looking only to perform a specific type of validation on a subset of my ActionForm for each dispatch method.

RE: Design Question

2003-09-17 Thread Edgar P Dollin
I have special field objects which with separate methods for jsp setting and database setting which also track changes. Then I can use reflection to the specific type and see if any of the objects in the database changed and are not confused by spurious instance variables. You can then create

InvalidClassException....

2003-09-17 Thread Trieu, Danny
Hi All, I have an ActionForm that has a FormFile attribute used for fileupload. I had the attribute marked as transient so that the ActionForm can be serializable and replicate in a cluster environment. However, the out come is not what I am expected, it throws InvalidClassException. Does

Unsubscribe fails

2003-09-17 Thread Greg Jones
Let me apologize in advance for emailing the list with an unsubscribe request. However, I have no choice as I have emailed [EMAIL PROTECTED] and [EMAIL PROTECTED] with no response. In addition emailing [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] returns the following error: [EMAIL PROTECTED]

Re: JSTL bean:define copy translation

2003-09-17 Thread seloha .
From: seloha . [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JSTL bean:define copy translation Date: Tue, 16 Sep 2003 12:26:02 +0100 I am using struts-el and trying to translate the following bean:define (i.e. copy an existing bean) into

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Kito D. Mann
Casey, If you're using JSP, and you have a large number of pages running in a single VM, you may be filling up the permanent generation area of the VM's memory. This is a fixed amount of memory dedicated to classes, methods, and so on (reflective data). Since JSPs are compiled into classes,

[OT] M7 Development tool

2003-09-17 Thread jlord
The new release (v4) of the M7 has an option to use struts when it is generating code. I am evaluating it for possible use and wanted to know if anyone had any experiences with it either positive or negative. I _know_ I should code like a man and just use a text editor to write my code; but

RE: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Mike Jasnowski
Even though you might not think a profiler would be useful, it might not hurt to just poke around and see what's up. JProbe is a useful tool for debugging/profiling these types of errors, you can remotely connect and watch things like object creation, heap usage, etc..See what types of objects

RE: [OT] M7 Development tool

2003-09-17 Thread Andrew Hill
snip I _know_ I should code like a man and just use a text editor to write my code; but I'm still looking at it anyway. ;-) /snip Well so long as your just looking ;-) What is this M7 thing anyway? Got a link? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

How to display Errors as per validation in form...

2003-09-17 Thread Dhanunjaya Gotur
Hi, As I am new to Struts v1.1 ...I want to display error messages in my jsp according to validation ,The errors are as in my LoginForm The validatoin method code for Loginform is as below...and I am using Applicationresources.properties file also...So what should I need to code in my jsp..and

Forwarding to existing servlet from Struts??

2003-09-17 Thread Menke, John
I need to forward from a struts action to a servlet. How can this be done? -john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] M7 Development tool

2003-09-17 Thread jlord
Andrew: Sorry about not including the URL http://www.m7.com/ It is an IDE with repository, workflow designer and other stuff. Will know more after I go through the tutorial. I guess that it could be considered a CASE tool from what I have seen so far.

RE: Forwarding to existing servlet from Struts??

2003-09-17 Thread Andrew Hill
Have you tried using an ActionForward? (duh) -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 September 2003 03:06 To: Struts (E-mail) Subject: Forwarding to existing servlet from Struts?? I need to forward from a struts action to a servlet. How can

RE: [OT] M7 Development tool

2003-09-17 Thread Andrew Hill
Thanks :-) snip M7 lets you develop web applications in record time by assembling applications visually from existing database schemas, Java components and web services /snip Funny how the words record time stand out when one is reading them at 3:30 AM ;- I reckon I'll have to check this out

RE: Forwarding to existing servlet from Struts??

2003-09-17 Thread Menke, John
that would be a good start I guess. :) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:11 PM To: Struts Users Mailing List Subject: RE: Forwarding to existing servlet from Struts?? Have you tried using an ActionForward? (duh)

Chained Actions (why so bad?), forwards vs. redirects, and Tiles

2003-09-17 Thread Thompson, David
I'm still not seeing why 'chained' actions are so bad. On our current project, we want a user who has just signed up to go ahead and be logged-in all in the same step, and forwarded straight to the logged-in homepage. There are 2 actions, and using 1.1b3 with Tiles, the following struts-config

RE: Forwarding to existing servlet from Struts??

2003-09-17 Thread Andrew Hill
Umm.. if its in a different webapp the Im not sure what you need to do ( it would need to be redirecting in that case and I think you have to set the 'absolute' property??? hmmm), but for a servlet in the same webapp its not a problem, just define the forward to the appropriate path (or more

  1   2   >