Re: Populating form Elements from another object.

2004-02-25 Thread Janarthan Sathiamurthy
Hi, This is what i have understood - Button Click - An action class - Showing a form that needs to be populated. In the action class u may have got the desired data. Assciate the form bean to this action class. Doing this u can get a reference to the Action Form in the execute(). Now do -

AW: [OT] Automatic generation of class diagrams

2004-02-25 Thread Andreas Solarik
Hi Manish If it doesnt have to be an 'ant tool', then I can recommend TogetherJ, or argouml (argouml.com) if it has to be free. andreas -Ursprungliche Nachricht- Von: Manish Singla [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Februar 2004 04:36 An: [EMAIL PROTECTED] Betreff: [OT]

Re: Populating form Elements from another object.

2004-02-25 Thread Niall Pemberton
I wrote these http://www.niallp.pwp.blueyonder.co.uk Niall - Original Message - From: shanmugampl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 7:00 AM Subject: Populating form Elements from another object. Hi, I have a requirement where i

Re: Action form

2004-02-25 Thread Niall Pemberton
I wrote these http://www.niallp.pwp.blueyonder.co.uk Niall - Original Message - From: Pradeep, PK [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 7:22 AM Subject: RE: Action form Hi, It first seemed that

RE: ActionForward and onLoad()

2004-02-25 Thread Leticia Golubov
Thanks everyone for help and suggestions... Sadly enough I was thinking about this last night, and it took me ages to go to sleep!!! What you suggest, Wendy, is what I should (and wanted to) do, but I just don't know how to... Basically, my action form has 4 modes: ADD, EDIT, DELETE and DISPLAY

Re: Submit button does nothing

2004-02-25 Thread Niall Pemberton
You have a '/' at the end of your openning html:form tag Try... html:form action=/enquiry/email.do Instead of... html:form action=/enquiry/email.do/ Niall - Original Message - From: RALPH ROPER [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 6:16 AM

request scoped forms

2004-02-25 Thread Mark Lowe
Okay following the session vs request debate I've a situation like the one I was describing. If you wanted to make someone see the light this is the time to do so. I've success fully scoped a few forms with indexed properties to request, and all is fine and dandy. but I've a form with 2

Re: request scoped forms

2004-02-25 Thread Mark Lowe
Seems to be working now.. Also i had a while loop not an if statement in my getFoo unlike my example. Just to deal with wizard style forms now. On 25 Feb 2004, at 10:46, Mark Lowe wrote: Okay following the session vs request debate I've a situation like the one I was describing. If you

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
Inside the logic:iterate the beans returned by your getRaw() method should be exposed with the name you specify in the iterate's 'id' attribute. So something along the lines of. logic:iterate name=dateForm property=raw id=foo indexId=ctr tr tdbean:write name=ctr //td

Memory usage

2004-02-25 Thread virupaksha
Dear All, I have a requirement, where i need to stop garbage collection, is there any way to implement? Because, I need to judge our code is good and optimized, I need some ray of hope Thanks in advance, Viru

validation error in FormBean, where to redirect next?

2004-02-25 Thread Marco Mistroni
Hi all, Assume that I have following struts-config.xml action path=/receiveLine type= ReceiveLineAction input=/receiveLine.jsp name=receiveLineForm scope=request forward name=failure path=/receiveLine.jsp

Re: request scoped forms

2004-02-25 Thread Niall Pemberton
So was it taking out the mutipart stuff that did the trick? Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:21 AM Subject: Re: request scoped forms Seems to be working now.. Also i had

EL - can't get access to my constants

2004-02-25 Thread Axel Groß
dear friends! i declared a getter method for a constant, but i can't use it using jsp2.0 Expression Language. public class Constants{ .. public static String getBEAN_PROP_SYSTEM() { return BEAN_PROP_SYSTEM; } .. } in the jsp: works fine: %=

Re: request scoped forms

2004-02-25 Thread Mark Lowe
No.. Its fine with that. It was okay as i explained despite my mistyped if rather than while. Although things are pretty slow even in request scope, but that's looking like it has more to do with my hibernate stuff. On 25 Feb 2004, at 11:52, Niall Pemberton wrote: So was it taking out the

RE: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
You don't neccessarily have to worry that much about storing things in session. Once the session is terminated (either through logout, or via the timeout of your container) the garbage collector will do that for you. In my application all form beans are session scope. My users only use one form

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
I have to say I'm changing sides in this debate. The only 'need' i see to store forms in the session is for wizard type interfaces, although I'm looking into a tidy solution into this. I agree that hardware it cheaper than time, and that sessions are by no means evil, but unless there's a

Re: need help converting from session to request scope

2004-02-25 Thread Niall Pemberton
+1 - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 11:36 AM Subject: Re: need help converting from session to request scope I have to say I'm changing sides in this debate. The only 'need' i see

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
Not sure whether my point can be extended to dynaaction forms as i rarely use them. But certainly with plain old action forms it seems to be the case, I haven't looked but Niall's Lazy version will probably address using dynaactionforms with nested properties scoped to request. IMO dynaaction

Re: validation error in FormBean, where to redirect next?

2004-02-25 Thread Niall Pemberton
Yes - Original Message - From: Marco Mistroni [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:51 AM Subject: validation error in FormBean, where to redirect next? Hi all, Assume that I have following struts-config.xml action

Tomcat 4 Compression Filter

2004-02-25 Thread Niall Pemberton
There is a CompressionFilter class shipped with with Tomcat which compresses the ServletResponse that I'm considering using (we have some remote offices which have slow links):

Common Services across Different Actions.

2004-02-25 Thread Kommineni, Sateesh \(GE Consumer Industrial\)
Hi All, In our Application we have identified few common Services which we are planning to develop as reusable components. The approaches we identified are 1) Representing each service as a Plug-in so that we can initialize all the Service when the Web App is initialized . 2)

Struts Tag Lib Documentation/Tutorials

2004-02-25 Thread Kommineni, Sateesh \(GE Consumer Industrial\)
Hi All, Could any one of you pls let me know URL's to find the Documentation of the Struts TagLibs .. Thanks Sateesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Tag Lib Documentation/Tutorials

2004-02-25 Thread Niall Pemberton
http://jakarta.apache.org/struts/userGuide/index.html If you look at the second part of the menu of the left titled Developer Guides you can see the all the different tag packages guides. Niall - Original Message - From: Kommineni, Sateesh (GE Consumer Industrial) [EMAIL PROTECTED]

Re: Common Services across Different Actions.

2004-02-25 Thread Niall Pemberton
I guess the other approach would be to plug in a custom RequestProcessor - but its not easy to sub-class the original, there is only one 'hook' [processPreprocess()] for putting your code in and overriding other methods usually ends up invloving duplicating some of the code in the original method.

Re: need help converting from session to request scope

2004-02-25 Thread Niall Pemberton
They don't have anything that specifically addresses nested properties. If you're just displaying nested properties then no problem - BeanUtils handles nested properties in the normal way for the struts tags. The would be an issue if you want an input form with nested properties and my Lazy forms

RE: Common Services across Different Actions.

2004-02-25 Thread Robert Taylor
Wrap the service in a ServletContextListener. The Servlet2.3 spec and higher mandate that these listeners be invoked before the application can process requests; so initialization can take place here and they have access to the application init parameters through web.xml. Then place them in

jsp:include page=some action Really need help

2004-02-25 Thread Tommy Holm - TELMORE
Hi everyone. I have already asked this once but didn't get any answer, I have tried everything that I could think of but no luck, so if any of you have an idea what to do, I would really be happy for any help. I have a problem, I have a jsp page which should include the result of an action call.

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread [EMAIL PROTECTED]
Hi Niall, List thanks for you answer. I tried out you suggestion (literary and in several variations), but it does not help: still the same error. no getter defined. If you have any other suggestions, I'd be happy. Otherwise I will just try a workaround which is not such a nice sollution,

Re: Common Services across Different Actions.

2004-02-25 Thread Niall Pemberton
...and another could involve using Filters. Niall - Original Message - From: Niall Pemberton [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 12:38 PM Subject: Re: Common Services across Different Actions. I guess the other approach

RE: [OT] Automatic generation of class diagrams

2004-02-25 Thread Jay Glanville
I believe doxygen can produce class inheritance (in both text and graphics formats) diagrams. It might be worth looking into. JDG -- Jay Glanville -Original Message- From: Manish Singla [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 10:36 PM To: [EMAIL PROTECTED]

Re: EL - can't get access to my constants

2004-02-25 Thread Adam Hardy
How did you try to use it in your EL? It doesn't look very Javabean-specification-conformant. i.e. use myProperty for getMyProperty() and setMyProperty() On 02/25/2004 12:02 PM Axel Gro wrote: dear friends! i declared a getter method for a constant, but i can't use it using jsp2.0 Expression

Re: jsp:include page=some action Really need help

2004-02-25 Thread Geeta Ramani
Also, have you looked at the source of the jsp (which is not rendered)? Sometimes there are helpful error messages there which for whatever reason don't show up on the browser. Niall Pemberton wrote: Haven't done what you're trying - but isn't the problem that at the end of the action

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
I just noticed something else wrong...your index value is 0 for all three RawRecords - so you are initializing raw[0] three times and not raw[1] or raw[2] public DateForm() { raw = new RawRecord[3]; raw[0] = new RawRecord(,,,); raw[0] = new RawRecord(,,,); raw[0] = new RawRecord(,,,);

SV: jsp:include page=some action Really need help

2004-02-25 Thread Tommy Holm - TELMORE
Thx for your reply but if you don't foward to a jsp page, the jsp page never gets rendered and nothing is inserted in the main jsp page! Cheers -Oprindelig meddelelse- Fra: Niall Pemberton [mailto:[EMAIL PROTECTED] Sendt: 25. februar 2004 14:18 Til: Struts Users Mailing List Emne: Re:

html:link dynamic URI

2004-02-25 Thread Jakarta
Greetings, What I'd like to do is to dynamically write the URI of the Forward attribute of the HTML:Link tag from a bean as follows: logic:iterate id=refVO name=listRef type=abc.ref.RefVO tr td class=darkGreyDescription brhtml:link forward=bean:write name=refVO property=link/

Re: jsp:include page=some action Really need help

2004-02-25 Thread Niall Pemberton
OK but I think the forward is causing the problem. Looking at the request processor you need to specify an include in your struts-config.xml action mapping instead of a forward. action . include=myMenu.jsp/ /action - Original Message - From: Tommy Holm - TELMORE [EMAIL

Re: html:link dynamic URI

2004-02-25 Thread Niall Pemberton
Someone else was struggling with this problem this week - they ended up using the logic:equal/notEqual tags, but they only required two options. If you want the conditional logic in your jsp then put it in either ... 1) Scriptlet 2) Struts logic tags 3) JSTL 4) Your own custom tag (maybe

Re: html:link dynamic URI

2004-02-25 Thread Mark Lowe
html-el will do you. If you're running tc5 then you can use the expression syntax in standard tag libs (i think). if not then . html-el:link page=${refVO.link} or html:link page =%= refVO.getLink() % or a href=c:url value=${refVO.link} / If you get the jstl route then use c:forEach rather

Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

2004-02-25 Thread Pranay Parsatwar
Hello, We are facing problem of jsp file size exceeding to more than 5 MB at runtime. The jsp file is full of struts tag with lot many logic:equal, notEqual in the code. The compiled html when generated takes a lot of time for browser rendering because of the file size. Looking at the html

RE: EL - can't get access to my constants

2004-02-25 Thread Karr, David
You haven't shown the EL syntax that you're trying to use. If you're just trying to reference normal properties, note that property accessors cannot be static methods, they have to be normal instance methods. If you're trying to reference constants, you might be better off putting the constant

RE: Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

2004-02-25 Thread Karr, David
It's the newline between % and % that is causing you problems (not to mention the design of your page, but that's a different matter). If you do things like: ... %ns:tagname stuff=value %%ns:nothertag morestuff=morevalue %%... Then you will reduce the newlines in your output. This gets

Nested nest Tag

2004-02-25 Thread Daniel, Gillian
Hi there, I am using Struts 1.1 and Java SE 1.4.2.02 and Java EE 1.4 I have an object called SccDTO.java which is extended by many objects, but I will use LocDTO,java as the example here. In my SccBean.java - which extends the ValidatorForm - I have getter and setter methods for a SccDTO

Re: Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

2004-02-25 Thread Adam Hardy
On 02/25/2004 03:04 PM Pranay Parsatwar wrote: We are facing problem of jsp file size exceeding to more than 5 MB at runtime. The jsp file is full of struts tag with lot many logic:equal, notEqual in the code. The compiled html when generated takes a lot of time for browser rendering because of

optionsCollection ...

2004-02-25 Thread Daniel
Someone have one example of html:optionsCollection with html:select. obrigado Daniel S.

Re: How to create an include which calls an action

2004-02-25 Thread GS655
Did anyone figure out how to do this? Giri SENji. -Tommy Holm - TELMORE [EMAIL PROTECTED] wrote: - To: [EMAIL PROTECTED] From: Tommy Holm - TELMORE [EMAIL PROTECTED] Date: 02/23/2004 10:38AM Subject: How to create an include which calls an action Hi everyone. I have a problem, I

How to disable session encoding for html:img, html:link, ...

2004-02-25 Thread René Zanner
Hi folks, I have a question regarding all those url generating tags of Struts. Is it possible to disable the encoding of the current session id when the jsp engine is using url rewriting? Unfortunately I found nothing in the docs. Is this feature missing? I can't believe it... All my images or

data transfer from Action class to jsp page

2004-02-25 Thread Pradeep, PK
I have this basic question. Suppose action class calls some business object and fetches some data (say employee detail). How to transfer this data to jsp page which is reached through ActionForward? One way I know is storing the data in session object..is there any better/different way

SV: How to create an include which calls an action

2004-02-25 Thread Tommy Holm - TELMORE
No currently none of the proposed solutions worked. I am currently looking into the Tiles:insert tag Attributes are page = the jsp page to insert And most importantly there is an controller attribute which should be an action that perhaps prepares the jsp page. Just testing it now - HOLD ON -

Re: How to create an include which calls an action

2004-02-25 Thread Niall Pemberton
The thread name changed (it got re-posted) to re: jsp:include page=some action Really need help - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 2:38 PM Subject: Re: How to create an include which calls an

RE: optionsCollection ...

2004-02-25 Thread Slattery, Tim - BLS
Someone have one example of html:optionsCollection with html:select. html-el:select property=domestic_Foreign html-el:optionsCollection property=domesticForeignList value=code label=value/ /html-el:select The FormBean contains a domestic_Foreign property (a string), and a

RE: Tomcat 4 Compression Filter

2004-02-25 Thread Jerry Jalenak
I've also been playing around with this with mixed results. I've been looking for some doc on the filter mainly to better understand the 'compressThreshold' setting. Does anyone have any doc for this thing? Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd.

RE: EL - can't get access to my constants

2004-02-25 Thread Hookom, Jacob
What we had done to handle this case is create a bean, but then have all of our constants available in a static map available via getter. static { CONSTANT_MAP = new HashMap(); CONSTANT_MAP.put(beanPropSystem, BEAN_PROP_SYSTEM); } public Map getConstants() { return

Can a a href be made to function as a 'submit'

2004-02-25 Thread Au-Yeung, Stella H
Hi: Can a a href be made to function as a 'submit' and upon submission, all the formBean properties are remembered in the Action class that handles it. When I try to use just the a href I can't get the formBean properties to be remembered. But I can't change my list of a href as submit buttons

RE: Tomcat 4 Compression Filter

2004-02-25 Thread Kris Schneider
Essentially, the compressionThreshold filter init param is a buffer size for CompressionResponseStream. If it's 0, then compression is turned off (this is handled by the filter, not the stream). Otherwise, it's the max of 128 (hard-coded min) and whatever is set in web.xml. The stream works by

Re: Can a a href be made to function as a 'submit'

2004-02-25 Thread Nick Heudecker
Sure, all you need is a bit of JavaScript that submits your form tag. The 'myForm' form is representative: form name=myForm input type=text name=someField1/ input type=text name=someField2/ /form a href=javascript:submitForm();Click/a And finally, the function: script language=JavaScript

Simple ActionError question

2004-02-25 Thread Theodosios Paschalidis
Hi all, just a newbie question. I have a PlaceOrderAction and I want to display as an ActionError the items that were out of stock. I would like to be able to pass a String to my ActionError. Is there a way to do this may using Format? Could somebody provide an example? Suppose I have a

More then one servlet mapping

2004-02-25 Thread Kale, Nilesh
Hi Can anyone confirm if on servlet can have more then one servlet-mapping in Servlet 2.2 spec? Thanks Nilesh The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB The Royal Bank of Scotland plc is authorised and

Action needs to forward to different windows

2004-02-25 Thread Kat Luna
Hi all, I hope someone can help me. I have an struts application that contains a menu page. Each item in the menu should open in a new browser window. I've set these up as link tags that forward to an action (test.do) with target=_blank so the resulting jsp will open in a new window. Here's my

Re: Common Services across Different Actions.

2004-02-25 Thread rick
I like to use a ServiceLocater (created and initialized at application start) exposed through the BaseAction. Rick DeBay On Wed, 25 Feb 2004 17:50 , Kommineni, Sateesh \(GE Consumer Industrial\) [EMAIL PROTECTED] sent: Hi All, In our Application we have identified few common Services

Re: More then one servlet mapping

2004-02-25 Thread Mark Lowe
I hereby confirm that you can have more that one servlet mapping according to the servlet 2.2 spec On 25 Feb 2004, at 16:51, Kale, Nilesh wrote: Hi Can anyone confirm if on servlet can have more then one servlet-mapping in Servlet 2.2 spec? Thanks Nilesh The Royal Bank of Scotland plc,

RE: Common Services across Different Actions.

2004-02-25 Thread Anderson, James H [IT]
Could you provide a little more detail? Thanks, jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:54 AM To: Struts Users Mailing List Subject: Re: Common Services across Different Actions. I like to use a ServiceLocater

RE: Tomcat 4 Compression Filter

2004-02-25 Thread Jerry Jalenak
Kris - Thanks. So what's a reasonable setting? The example has the threshold set to 10; is this OK for most web apps? Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From:

Re: Tomcat 4 Compression Filter

2004-02-25 Thread Niall Pemberton
...its also what its name implies a threshold - if the reponse doesn't exceed the threshold (in bytes) it writes it out normally - uncompressed. - Original Message - From: Kris Schneider [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004

Re: Tomcat 4 Compression Filter

2004-02-25 Thread Niall Pemberton
If you set it less than 10, it will get re-set to 128 (unless its zero) - Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 3:57 PM Subject: RE: Tomcat 4 Compression Filter Kris - Thanks. So

Re: Simple ActionError question

2004-02-25 Thread Carl Walker
You ActionError constructor takes additional parameters. Here's a sample from some code that passes two parameters to a message I'm working on. In my example, if the user tries to insert a group with the same name as one in the DB, an error is thrown and html:errors is used to display the

RE: Suppresing the generation of blank lines while using logic tags -

2004-02-25 Thread rick
Use Apache and mod_deflate and mod_gzip. There are also Filters available to remove whitespace, but all of them have the problem where they'll modify code within a lt;pregt; tag or style. Rick DeBay On Wed, 25 Feb 2004 06:19 , Karr, David [EMAIL PROTECTED] sent: It's the newline between % and

RE: Common Services across Different Actions.

2004-02-25 Thread Kommineni, Sateesh \(GE Consumer Industrial\)
Hi All, Why can't we have this sort of functionality in the Framework itself. A Base class for a Generic Service and all the Custom Services classes that User wants can extend that Service and details can be entered in the struts-config.xml . Right now i am planning to have another xml

RE: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
My application has an Asset search form. The user can enter many criteria to search on. Most of these criteria themselves are looked up from the database (e.g the Person associated with the Asset search). When the user selects a search criteria (e.g. the Person) I store the DTO for that person

RE: More then one servlet mapping

2004-02-25 Thread Kale, Nilesh
Thanks for the reply Mark. The next question is does Struts support more than one mapping: I.e: Will the following work correctly? servlet servlet-namemyapp/servlet-name display-nameMy Application/display-name descriptionno

RE: Nested nest Tag

2004-02-25 Thread Paul McCulloch
Have you tried using the LocDTO properties? I think it will just work - Struts uses bean utils which looks at the object you are trying to operate on, rather than the type it is declared as. Paul -Original Message- From: Daniel, Gillian [mailto:[EMAIL PROTECTED] Sent: 25 February 2004

RE: Can a a href be made to function as a 'submit'

2004-02-25 Thread Au-Yeung, Stella H
But each of my a href is within a html:iterate indexId=index . tag and it passes the index to the next page base on which item in the list the user clicks. How can I do that with what you suggested? My current a href: a href=app/Order/DisplayPictureRequest.exec?partIdx=%=index%

RE: Nested nest Tag

2004-02-25 Thread Daniel, Gillian
Thanks very much for the advice, I tried it and it did work. I had tried before but it didn't work, but I tried again and it did work, so thanks for prompting me to try again. Something must have been wrong the first time. Thanks again, Gillian -Original Message- From: Paul McCulloch

RE: Common Services across Different Actions.

2004-02-25 Thread Marco Mistroni
Hi, My 2 cents... I had to implement similar functionalities And I used a plugIn... I would go for writing a common GenericService interface, and And a GenericServiceFactory implemented as plugin (so that you Get your specific service from the factory). How do you create specific

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
I agree that manually hiding the values in hidden form elements is dirty, I'd still store values that are required beyond a request in the session (until i find a clean alternative or I run out of memory). But thats not the same as all form beans are session scope. My change of sides was more

RE: Tomcat 4 Compression Filter

2004-02-25 Thread rick
Can you enable mod_gzip and/or mod_deflate for Apache? I've always felt that's a better deliniation of responsibilities between the servers. Rick DeBay On Wed, 25 Feb 2004 08:58 , Jerry Jalenak [EMAIL PROTECTED] sent: I've also been playing around with this with mixed results. I've been

Re: Action needs to forward to different windows

2004-02-25 Thread rick
If your app is for intranet use, you can use a hidden frame and javascript. If it's for general use, you probably don't want to get that fancy. Rick DeBay On Wed, 25 Feb 2004 07:53 , Kat Luna [EMAIL PROTECTED] sent: Hi all, I hope someone can help me. I have an struts application that

Re: Simple ActionError question

2004-02-25 Thread Theodosios Paschalidis
Thanks a lot mate, that did the trick! - Original Message - From: Carl Walker [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 4:01 PM Subject: Re: Simple ActionError question You ActionError constructor takes additional parameters.

Re: Encode/Encrypt url parameters?

2004-02-25 Thread Jim Theodoridis
Maybe U can use javascript to set the value of parameters to hidden fields?? - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 3:32 AM Subject: Re: Encode/Encrypt url parameters? Aye Encrypt

RE: data transfer from Action class to jsp page

2004-02-25 Thread Pradeep, PK
Sending the same question again.. I have this basic question. Suppose action class calls some business object and fetches some data (say employee detail). How to transfer this data to jsp page which is reached through ActionForward? One way I know is storing the data in session object..is

RE: data transfer from Action class to jsp page

2004-02-25 Thread Pat Quinn
You should place it in the request scope if the data is required for the next view only You should avoid placing such objects in the session as this will remain in memory until the users HttpSession expires. -Original Message- From: Pradeep, PK [mailto:[EMAIL PROTECTED] Sent: 25

RE: Common Services across Different Actions.

2004-02-25 Thread rick
All getters/setters etc are in an abstract BaseAction, so all a concrete action needs to do is: SearchService searchSvc = getSearchService(possiblyAnSpecifyingParamButUsuallyNot); To initialize you'd have one or more context listeners (hacked up example): public class InitializeServices implements

RE: Encode/Encrypt url parameters?

2004-02-25 Thread Hookom, Jacob
I wrote a CryptoFactory to take care of this. We use it for cross domain session validation. // example code: CryptoFactory cf = CryptoFactory.create(aPassword,PBEWithMD5AndDES); Date goodUntil = new Date(System.currentTimeMillis()+somePeriodMs); String token =

RE: Tomcat 4 Compression Filter

2004-02-25 Thread rick
I wouldn't compress anything less than a packet. A good minimum packet size is 576 bytes, so call it 512 to account for headers and to make it even. I'd still use Apache and mod_gzip/mod_deflate as that will make caching proxies much happier. Rick DeBay On Wed, 25 Feb 2004 09:57 , Jerry Jalenak

Re: Can a a href be made to function as a 'submit'

2004-02-25 Thread Nick Heudecker
Assuming I know what you're talking about, this is also pretty easy to address: The form is hidden, with one hidden field. It doesn't have to be hidden, certainly. form name=myForm input type=hidden name=partIdx/ /form The link calls the JavaScript function, passing in the current parameter. a

RE: data transfer from Action class to jsp page

2004-02-25 Thread rick
Store in request scope. Rick DeBay On Wed, 25 Feb 2004 22:21 , Pradeep, PK [EMAIL PROTECTED] sent: Sending the same question again.. I have this basic question. Suppose action class calls some business object and fetches some data (say employee detail). How to transfer this data to jsp

Re: Tomcat 4 Compression Filter

2004-02-25 Thread Kris Schneider
It should probably also be mentioned that the JSP buffer can play a role in how this thing works. The page implementation will generally have a buffer of its own, the default size for JSP 1.2 is at least 8KB (it can be changed with the page directive). If the page implementation writes a buffer

RE: More then one servlet mapping

2004-02-25 Thread Craig R. McClanahan
Quoting Kale, Nilesh [EMAIL PROTECTED]: Thanks for the reply Mark. The next question is does Struts support more than one mapping: http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_mapping Craig - To

RE: data transfer from Action class to jsp page

2004-02-25 Thread Craig R. McClanahan
Quoting Pradeep, PK [EMAIL PROTECTED]: Sending the same question again.. I have this basic question. Suppose action class calls some business object and fetches some data (say employee detail). How to transfer this data to jsp page which is reached through ActionForward? One way

Java source out of memory

2004-02-25 Thread Gandle, Panchasheel
My jsp is heavily loaded with struts tags. When weblogic tries to generate a Java source, It throws out of memory error, If I cut that page in half it works fine. How to overcome with all struts tag intact ? Panchasheel - To

treeview

2004-02-25 Thread Daniel
I need make a treeview of some information retrived from database and make a dual list with this treeview, someone knows where there is some example or something like this. Obrigado Daniel S.

Re: Java source out of memory

2004-02-25 Thread Larry Meadors
Make more memory available. [EMAIL PROTECTED] 02/25/04 10:27 AM My jsp is heavily loaded with struts tags. When weblogic tries to generate a Java source, It throws out of memory error, If I cut that page in half it works fine. How to overcome with all struts tag intact ? Panchasheel

Re: Java source out of memory

2004-02-25 Thread Richard Yee
Panchasheel, Can you send your page? How much memory do you have on your machine? Rgds, Richard --- Gandle, Panchasheel [EMAIL PROTECTED] wrote: My jsp is heavily loaded with struts tags. When weblogic tries to generate a Java source, It throws out of memory error, If I cut that page in

[OT]Ant Script

2004-02-25 Thread Ramadoss Chinnakuzhandai
Hi, Using Ant Script is it possible to detect the latest modified file by comparing the same file across two different locations and make them sync or override the old file with the latest modified file and make sure that same version of file exists on these two different location??

Re: [OT]Ant Script

2004-02-25 Thread Lucas Gonzalez
Hi, I do not mean to be harsh or something, but a simple look at the doc would have solved your problem http://ant.apache.org/manual/CoreTasks/copy.html It´s on the second sentence! Copies a file or FileSet to a new file or directory. By default, files are only copied if the

RE: Nested nest Tag

2004-02-25 Thread Daniel, Gillian
Sorry to bother you again, but I have another stumbling block. Although I can get the details from the LocDTO with nested:nest property=sccDTO nested:write property=type/ The problem is with this line. taskTitle is an attribute of LocDTO but not SccDTO. When I submit my form, obviously an

RE: Nested nest Tag

2004-02-25 Thread Paul McCulloch
That should be fine as well. I'd test that you can read the property first before trying to write it: nested:nest property=sccDTO nested:write property=taskTitle/ Paul -Original Message- From: Daniel, Gillian [mailto:[EMAIL PROTECTED] Sent: 25 February 2004 18:07 To: Struts

RE: Can a a href be made to function as a 'submit'

2004-02-25 Thread Au-Yeung, Stella H
Thanks Nick...I completelu forgot you can 'dynamically' change form fields value such as 'document.myForm.partIdx.value'. What you suggested should work. -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 12:11 PM To: Struts Users

Bug in Validator javascript, not showing all errors?

2004-02-25 Thread Mike Millson
I have a form with 1 text field and 1 password field: username: required and maxlength 10 password: required The return statement for the validateLoginForm function generated in the dynamic javascript: return validateMaxLength(form) validateRequired(form); If I enter a username that is too

RE: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread Paul, R. Chip
There's a parameter or setting somewhere that controls whether to return only the first error, or all the errors in the javascript alert window. Sorry I don't have the exact name handy. Chip -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25,

RE: data transfer from Action class to jsp page

2004-02-25 Thread Paul, R. Chip
Your four choices are: place in session place in request place in Tiles context (if a tiles context exists) pass as request parameter (i.e. on the forward url) Sounds to me like placing this in the request via request.setAttribute(name, value) is what you want, but

  1   2   >