RE: [OT] M7 Development tool

2003-09-17 Thread Mohd Amin Mohd Din
Second that Andrew, here, u'll be lucky enough to get a RM50k a year job programming. 1USD = RM3.8. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:40 PM To: Struts Users Mailing List Subject: RE: [OT] M7 Development tool The managem

RE: calls each method twice , logging everthing twice?

2003-09-17 Thread Andrew Hill
It looks as though the browser is sending two requests for the page. Not familiar with tiles so am not sure about the exception your getting though. -Original Message- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 September 2003 14:26 T

RE: [OT] M7 Development tool

2003-09-17 Thread Andrew Hill
The management is not bad here (actually their damn good compared to most places), just not very keen on forking out the dosh unless its absolutely necessary. Unfortunately we are a small company and not some cashed up behemoth than can play at being a sheltered workshop, so while I like to whinge

calls each method twice , logging everthing twice?

2003-09-17 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
hi, we are using jdeveloper as ide , and struts as framework ,, I dont know when it is started but in debug mode it calls each method twice (calls action class execute method twice ) and struts gives followig message after calling my first action class (loginAction) ,, it seccessfull execute and

Re: html:select multiple="true" and ActionForm

2003-09-17 Thread Ian Joyce
Minor correction: public String[] getSelectedProductValues() should be public ArrayList getSelectedProductValues() Ian Joyce Internet Systems Programmer/Analyst American Academy of Family Physicians Research and Information Services Interactive Media 11400 Tomahawk Creek Parkway Leawood, KS 662

html:select multiple="true" and ActionForm

2003-09-17 Thread Ian Joyce
I've looked in the archives and googled but haven't come up with a solution yet. I have a html:select multiple="true" form element. When the form is submitted what setter should be called in the ActionForm? My form 8<---8<--- 8<--

Re: Connection Pooling

2003-09-17 Thread Kwok Peng Tuck
Connection Pooling means to make available a pool of connections. In the case of a database it would be of course db connections. I think the front page of commons dbcp explains it pretty well : http://jakarta.apache.org/commons/dbcp/ Tomcat does ship with dbcp and you can configure it by follow

Connection Pooling

2003-09-17 Thread laxman murugappan
Hi Can any one explain,What does one mean by Connection Pooling? Is it advisable to prcatice Connection Pooling and if so,in WHAT CIRCUMSTANCES and Is there any aspect which should be kept in mind/taken care of while using Connection Pooing & how connection pooling changes the working of an

RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread hari_s
You can see more documentation about toplink here. www.otn.oracle.com\products\ias\toplink -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:37 AM To: Struts Users Mailing List Subject: RE: Tool to diagnose J2EE/Struts/Oracle prob

Using Map with html:optionsCollection

2003-09-17 Thread Lars Bergström
Dear Struts users, I am trying to get my html:optionsCollection to work with a TreeMap. I don't know if this is possible but on the Struts API page for the class OptionsCollectionTag I read the following: "The collection may be an array of objects, a Collection, an Enumeration, an Iterator, or a

RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread Viral_Thakkar
Hi hari, Could you provide some more info on using the toplink w.r.t to struts, EJB and oracle database. I would like to see few lines of toplink code. Thanks, Viral -Original Message- From: hari_s [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 10:06 AM To: 'Struts Users

RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread hari_s
I think you should try toplink from oracle for your connection to database. -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:52 AM To: Struts Users Mailing List Subject: Tool to diagnose J2EE/Struts/Oracle problem I am havng a No

Re: getting redirect to work -- easy one?

2003-09-17 Thread Adam Fisk
Thanks for that suggestion as well, Daniel -- I hadn't noticed that ActionForward constructor. I'm unfortunately still running into the same IllegalStateException. My code now simply reads: public ActionForward execute(ActionMapping mapping, ActionForm form,

RE: Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
Just an update, the error messages was not defined in the application resources file. Anyway, having another issue, since the action is a LookupDispatchAction, it has a few methods, execute, view and update. Whenever a user comes in, automatically it will go to execute which in turn will call the

RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread Mohd Amin Mohd Din
Is your oracle database configured properly? Try connecting multiple users using oem or sqlplus to rule out is the issue is from the database. I had a max cursor reached error before which was attributed to not closing the preparedstatement. Another thing you may try is to use the latest JDBC drive

Re: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread Sgarlata Matt
You should investigate using connection pooling, such as is offered by the DBCP project, which is a Jakarta Commons subproject. Garbage collection does not release database connections. I'm not sure on all the details why not, but there are other reasons to use connection pooling such as performa

Re: getting redirect to work -- easy one?

2003-09-17 Thread Daniel Wang
Why not just do: return new ActionForward(redirectUrl, true); the 2nd parameter (true) indicates this is a redirect, not a forward. - Original Message - From: "Adam Fisk" <[EMAIL PROTECTED]> To: "struts-user" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 7:43 PM Subject: Re: g

Re: Portals and managing UI changes

2003-09-17 Thread Sgarlata Matt
- Original Message - From: "Ghanakota, Vishu" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 7:38 PM Subject: Portals and managing UI changes > Hi, > I have been using Struts for a while and is working great. Now some of our

Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread Au-Yeung, Stella H
I am havng a No resource Available problem with my J2EE/Struts/Oracle application. It is saying I don't have any more Oracle connections available. Even I am closing the result set, statement and connection, I am still running into the problem. When I use the Oracle DBA monitor tool, it shows

Re: [scaffold] session object

2003-09-17 Thread Sgarlata Matt
Will request.getSession() work? - Original Message - From: "Lázaro Miguel Fung" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 7:50 PM Subject: [scaffold] session object > Hi > > Can any body tips me about get session object va

Re: getting redirect to work -- easy one?

2003-09-17 Thread Adam Fisk
Thanks for the speedy response. The Tomcat FAQ link is very related to my problem, but I'm not making any of the listed mistakes at least in my execute(...) method (I'm only calling sendRedirect once). It appears that there's something I'm unaware of in either struts or faces that tries to perfor

RE: Multipage JDBC result

2003-09-17 Thread David Benoff
You didn't specify whether you want to do client-side or server-side paging. Assuming you want to pull the whole resultset in one shot, but have a paged presentation, check out the "Struts Layout" taglibs. They have a very handy pager widget that uses javascript and tags. If you want to do serve

Re: getting redirect to work -- easy one?

2003-09-17 Thread Kwok Peng Tuck
Perhaps this link might help you : http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate Adam Fisk wrote: Thanks for getting back to me. I'm unfortunately still at a bit of loss here -- I'm right at the beginning of writing my first web app, so I think there's something I'm missing. When I

Re: getting redirect to work -- easy one?

2003-09-17 Thread Adam Fisk
Thanks for getting back to me. I'm unfortunately still at a bit of loss here -- I'm right at the beginning of writing my first web app, so I think there's something I'm missing. When I posted yesterday, the execute(...) method of my Action subclass had simply: return (mapping.findForward

RE: include a file

2003-09-17 Thread hari_s
Use mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 6:30 PM 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 Optiva Media Viriato,25 - 28010 Madrid - Esp

RE: Problem recognising button property in action

2003-09-17 Thread hari_s
You can try give your html:submit a value , And in your action class put code to arrange mapping for every submit value You you can try something like this yourFormBean frm=( yourFormBean)form; if(frm.getButtonCreate().equals("submit")) return mapping.findForward(.and so on) of course you

Is it possible to remove *.do or /do/* from the URL

2003-09-17 Thread Matt Raible
First of all: 1. Is it possible to remove the *.do or /do/* from the path and make all requests /* go to the Action Servlet? 2. If so, will this mess up any image or css or script files? What if they're on an external webserver and that webserver knows that /images goes one place and /scripts g

Confused - Scaffold and Action Mapping

2003-09-17 Thread Caroline Jen
I have problem to understand the action mapping shown below: code: - - It looks to me that 1. menuForm is the logical name for the form bean as given in the form-bean segment of t

RE: searching on client side.

2003-09-17 Thread Edgar P Dollin
Use javascript and a button to invoke the browser find function. Edgar > -Original Message- > From: imran ali [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 4:17 PM > To: Struts Users Mailing List > Subject: searching on client side. > > > Hi All, > I am havi

Portals and managing UI changes

2003-09-17 Thread Ghanakota, Vishu
Hi, I have been using Struts for a while and is working great. Now some of our customers are planning to integrate their sites into a portal along with personalization. My choice was to refactor the sites using Tiles. I also have to provide an admin interface to personalizable items. I have a plan

Re: [SCAFFOLD] How get session in ProcessActionHelp class

2003-09-17 Thread Ted Husted
The ProcessAction is designed to pass the ActionForm object down to the business layer. The simplest thing is to make the object part of the ActionForm. The best place to do something like that is the reset method. It is passed the HttpServletRequest, so you have access to just about everything

[scaffold] session object

2003-09-17 Thread Lázaro Miguel Fung
Hi Can any body tips me about get session object value inside a ProcessAction. I will appretiate any help. Thanks LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Forwarding to existing servlet from Struts??

2003-09-17 Thread Christian Bollmeyer
Am Mittwoch, 17. September 2003 21:05 schrieb Menke, John: Basically, forwards are handled (Struts or not) internally in the server by javax.servlet.RequestDispatcher. So forwards are generally possible only within the same machine | VM. This said, you should declare your Servlet as usual in web.x

Re: Populating Indexed Forms Bug?

2003-09-17 Thread David Erickson
Solved my problem.. in my FlexReferenceLine object I needed to change my declaration for the private FlexReference flexReference; to private FlexReference flexReference = new FlexReference(); -David - Original Message - From: "David Erickson" <[EMAIL PROTECTED]> To: "Struts Mailing List"

Populating Indexed Forms Bug?

2003-09-17 Thread David Erickson
I'm getting an error populating indexed properties.. I'm wondering if its a bug in struts.. has anyone else experienced this? Explanation: Exception javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254) at org.ap

Re: Undesired whitespace using

2003-09-17 Thread Daniel Wang
I don't believe is adding the whitespace (or at least, it's not doing it for me) but it will write out whatever you put in between it. i.e. foo should print to foo (no whitespace) but if you do foo it'll add the whitespaces in between. daniel - Original Message - From: "Srinivas Gunt

RE: Forwarding to existing servlet from Struts??

2003-09-17 Thread Menke, John
That worked perfectly thanks :) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:27 PM To: Struts Users Mailing List Subject: RE: Forwarding to existing servlet from Struts?? Umm.. if its in a different webapp the Im not sure what you n

Re: [OT] M7 Development tool

2003-09-17 Thread Daniel Wang
Err... you don't work for free... why should they? btw, M7 is on the board of eclipse. - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 12:42 PM Subject: RE: [OT] M7 Development tool >

Undesired whitespace using

2003-09-17 Thread Srinivas Gunturu
All, When using tag to write out my links in the navigation, there is some white space being written out before and after tag. Because of this undesired whitespace, my navigation layout which has some indentation based on the level of navigation is getting messed up. The browser is renderin

Re: searching on client side.

2003-09-17 Thread khote
agree. I tried to do something like that a couple of years ago, when there were still some poor suckers out there with netscrape 4.7x multiple different scripts, browser detection, if ns4 or if ie5 or whatever ... too bad they all couldn't agree with w3c on how stylesheets should work. another p

RE: InvalidClassException....

2003-09-17 Thread Trieu, Danny
Thanks steve -Original Message- From: Steve Ditlinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 1:44 PM To: Struts Users Mailing List Subject: Re: InvalidClassException This sounds like you need to make sure that each server/node in the cluster has the same v

Re: searching on client side.

2003-09-17 Thread Daniel Wang
A *lot* of javascript. You can basically iterate through the entire table, i.e. with something like document.getElementsByTag("TR"); use RegEx to find the data you want; and then hide the other rows by turning CSS style display to 'none' Imho, the client is not the right place to do this... dani

searching on client side.

2003-09-17 Thread imran ali
Hi All, I am having a table in my jsp. I have a text box which takes value of a particular column, make search on that column and finally displays only those rows which have those columns. And if I again want to search on some other column it will search in initial collection of values

Need some help

2003-09-17 Thread Ruben Carvalho
Did anyone work with Struts validation and the page attribute in the field tag? To validate different parts of the form? I'm really "stucked in a moment and I can't get out of it". Thank you, Rúben Carvalho

Re: InvalidClassException....

2003-09-17 Thread Steve Ditlinger
This sounds like you need to make sure that each server/node in the cluster has the same version of the class. The failover node is trying to deserialize a class that was serialized on the original node as a different version of the same class. Steve - Original Message - From: "Trieu, D

Re: Multipage JDBC result

2003-09-17 Thread Julie . Huang
It seems that it pulled the whole JDBC resultset into the memory at one time(correct me if I am wrong at this point) since my data sets will be very huge, I don't think it is a good idea to pull down all the data to the session for paging. Any better solution /examples? very appreciated!! Julie

RE: [OT] -- Editing XML

2003-09-17 Thread Greg Hess
Many thanks, I have been looking a lot a XForms and have come to the understanding and might be wrong that the XForms provides the ability to create forms that are not coupled with a particular view technology like HTML, the forms are build using XML and rendered appropriately for the requesting d

RE: [OT] M7 Development tool

2003-09-17 Thread jlord
Perhaps you would be interested in reading "Union Now?" by Warren Keuffel at http://www.sdmagazine.com/ or read the print version of the October issue. Bad Managment makes workers Unionize. "Andrew Hi

Re: [OT] M7 Development tool

2003-09-17 Thread Sergey Smirnov
It is good for M7 that they turn toward Struts. It might be a good competitor in the future. However, M7 should overcome some their illusions before they are able to reach the desire destination. I think they just waste time trying to combine open Struts with their proprietary technology. It is not

RE: Forwarding to existing servlet from Struts??

2003-09-17 Thread Andrew Hill
say what? The input? u -Original Message- From: Carey Nation [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 September 2003 03:18 To: Struts Users Mailing List Subject: Re: Forwarding to existing servlet from Struts?? > I need to forward from a struts action to a servlet. How can

RE: [OT] -- Editing XML

2003-09-17 Thread Mike Jasnowski
First off, what you describe is possible. There are probably a number of ways to accomplish this, you might want to consider using something like XML binding for working with the XML data structures directly. There are frameworks like JAXB, XMLBeans, etc. that enable you to work wtih XML documents

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

2003-09-17 Thread Casey Forbes
Hi Kito, Thank you. This is worth looking at (plus the link looks interesting). I've got a lot of classes that from JSP compilation. I also have lots and lots of sun.reflect.GeneratedMethodAccessor classes (from Digester and PropertyUtils I guess) and lots of _xsl._ caucho_0anonymous__xsl cla

RE: [OT] M7 Development tool

2003-09-17 Thread Andrew Hill
ouch! Why the smeg does every damn tool have to cost several months salary? Cant see mgmt springing for it then when they can just have us work till 4 or 5 am every day week atfer week in a row. :-( Oh well. thank God (or IBM at least) for Eclipse and extra thanks to the struts team without whose

Re: Forwarding to existing servlet from Struts??

2003-09-17 Thread Carey Nation
> I need to forward from a struts action to a servlet. How can this be done? I would think just make the input for the forward the url for the servlet... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

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

2003-09-17 Thread Andrew Hill
Now, I can understand how pulling path="login.do?someparm=hello" in a forward shouldn't work (even stepping through the code, I still can't figure out how it was working before Theres no problem slipping query params into a forward url like that. Its a standard technique. All my apps depend on i

Re: [OT] M7 Development tool

2003-09-17 Thread Barry Volpe
cool but a few thousand dollars! - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 12:15 PM Subject: RE: [OT] M7 Development tool > Thanks :-) > > > M7 lets you develop web applications i

[OT] -- Editing XML

2003-09-17 Thread Greg Hess
Hi All,   I have been assigned to add functionality to my STRUTS app that provides the ability to alter many 3rd party defined XML data structures. It would like to take a 3rd party XML data structure and defined XSLT to create a HTML form for editing the underling XML data structure. On

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 speci

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 wor

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

RE: [OT] M7 Development tool

2003-09-17 Thread Andrew Hill
Thanks :-) M7 lets you develop web applications in record time by assembling applications visually from existing database schemas, Java components and web services 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 when I get

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 this

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.

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]

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

RE: [OT] M7 Development tool

2003-09-17 Thread Andrew Hill
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. ;-) 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: Thursday, 1

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 hav

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

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,

Re: JSTL copy translation

2003-09-17 Thread seloha .
From: "seloha ." <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: JSTL 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 JSTL

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] returns the following error: <[EMAIL PROTECTED]

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 anyon

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 met

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

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

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: 'Str

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; i during appenChild it is

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

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 PRO

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() { //... you

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 T

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 "A

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 Andrew Hill
Actually you could just store a digest of the previous values, and then compare that with a digest of the new. -Original Message- From: sean schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 22:57 To: [EMAIL PROTECTED] Subject: Design Question I am working on a strut

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

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 of

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

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 probably

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 patter

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 m

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 Mike Jasnowski
Or -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 onsubmit handler ie.. -Original Message- From: Da

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

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.. -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 links You can't. :( - Original Message ---

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 tag? Anyone knows

Re: Reuse of JSP's and relative links

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

RE: 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: Formatting pattern is exactly the same as patterns used in SimpleDateFormat. Look at JSTL reference docs to more details. Regards,

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 depl

  1   2   >