Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Peng > Well just a shot in the dark but maybe a slight speed up maybe achieved by > pre-compiling jsps possibly. Do you have any link or so, that explains this. Thinking of adding a "precompile jsp task" to my ANT script..? Regards Henrik --

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi there > [To HG] > I said the problem deal with cluster means: > assume we have 3 servers (S1, S2, S3) form a cluster and one Struts > plugins deal with home object caching (P1) > > when the application start up, P1 with get all home interfaces from > the cluster and also create all home object

Re: DBCP Connection full

2004-07-22 Thread Peng Tuck Kwok
You are getting that problem possibly due to the fact that maybe you are not freeing them in your application. Also make your you are using a recent version of DBCP. On Fri, 23 Jul 2004 13:25:11 +0800, Ding Lei <[EMAIL PROTECTED]> wrote: > Hi list, > I know that it's little off-topic ... but

RE: jsf-developers -- new Yahoo group

2004-07-22 Thread Oswald Campesato
Hello, Matthias: Good to see that MyFaces is gaining momentum:) Though I'm spread a bit thin right now (aren't we all?) I'll take it for a test drive as soon as find a block of time, probably in tandem with the reference implementation. Incidentally, feel free to post code samples to 'jsf-develo

DBCP Connection full

2004-07-22 Thread Ding Lei
Hi list, I know that it's little off-topic ... but since we are using struts here, I am not sure if the problem might be related to struts ... The system is OK before, but recently: 2004-07-23 11:08:59,723 INFO [org.apache.struts.legacy.GenericDataSource] releaseConnection(), activeCount=10

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
yeah, I think so, thanks for advice ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About Struts + JBoss preference issue

2004-07-22 Thread Peng Tuck Kwok
Well just a shot in the dark but maybe a slight speed up maybe achieved by pre-compiling jsps possibly. On Fri, 23 Jul 2004 10:05:30 +0800, Koon Yue Lam <[EMAIL PROTECTED]> wrote: > Oh! thanks for all of these help ! > I don't expect over 10 mails in one night to this issue~~ > Maybe becasue the

Re: Portability & extension vs path mapping

2004-07-22 Thread Rick Reumann
Erik Weber wrote: I have a feeling I am missing something here. I tried fiddling with the action attribute to html:link, rather than the page attribute, but that didn't seem to do it. . . . . Or am I thinking about extension mapping the wrong way? Why not just always use the mapping /do/* then i

Re: OT: Re: Velocity vs tags (was JSF vs Struts)

2004-07-22 Thread David Evans
On Thu, 2004-07-22 at 21:59, Rick Reumann wrote: > David Evans wrote: > > > Velocitys other big sellling point to me is > > that i can use it during an action's execution, for instance, to create > > files on disc. theres no way to do that with jsp is there? > > Not sure what you mean by writin

Portability & extension vs path mapping

2004-07-22 Thread Erik Weber
I choose to use path mapping, but it's not always my decision, so I'm trying to generate some hyperlinks in such a way as to make them completely portable, whether path mapping or extension mapping is used. Let's say I have a hyperlink to the action that is mapped to "/actor/viewsearch". If I

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
Oh! thanks for all of these help ! I don't expect over 10 mails in one night to this issue~~ Maybe becasue the timezone because I am from Hong Kong, ^^ [About Struts] After some testing, I prove myself wrong ! The delay wasn't cause by Struts, it is cause by JSP instead. The delay time is the time

Re: OT: Re: Velocity vs tags (was JSF vs Struts)

2004-07-22 Thread Rick Reumann
David Evans wrote: Velocitys other big sellling point to me is that i can use it during an action's execution, for instance, to create files on disc. theres no way to do that with jsp is there? Not sure what you mean by writing files to disc? You mean writing to the server's file system? If so,

Re: [OT] JBoss/Tomcat & default context

2004-07-22 Thread Erik Weber
The main thing I want to get around is having to restart the server, if that's possible. Thanks, Erik Erik Weber wrote: Hi. I need to test my foo.war file using the default context in JBoss 3.2.4/Tomcat 5. So right now I am unpacking the war and placing all the contents inside /deploy/jbossweb-

[OT] JBoss/Tomcat & default context

2004-07-22 Thread Erik Weber
Hi. I need to test my foo.war file using the default context in JBoss 3.2.4/Tomcat 5. So right now I am unpacking the war and placing all the contents inside /deploy/jbossweb-tomcat50.sar/ROOT.war/, in place of the default JBoss web app contents. Is there an easier way? Erik ---

Re: Accessing index properties in javascript validator

2004-07-22 Thread atta-ur rehman
hello, this is how i've done it: textbox = document.getElementById("block[0]"); if (textbox.value ) so basically you use document.getElementById("property[0]") to get the reference of html elment and then use .value or any other stuff on this element. hope this helps! ATTA On Thu, 22 J

Accessing index properties in javascript validator

2004-07-22 Thread Ding Lei
Hi list, Some JSP pages uses Strut's indexed properties, like: And it could be accessed by the corresponding Action correctly through a customized Form. The problem is that I would like to add javascript validation before the user submits the form to check if the file box is not null & valid

RE: Intermediate loading page

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Rizwan Merchant [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 4:23 PM > To: 'Struts Users Mailing List' > Subject: RE: Intermediate loading page > > > > Thanks for the previous input. I moved the report generation > to a thread and > set a sess

RE: Intermediate loading page

2004-07-22 Thread Rizwan Merchant
Thanks for the previous input. I moved the report generation to a thread and set a session variable which is a boolean indicating that a report is currently being generated. Once the report generation is complete that session variable is set to false again. I have come across another problem thou

RE: Intermediate loading page

2004-07-22 Thread Rizwan Merchant
Thanks for the previous input. I moved the report generation to a thread and set a session variable which is a boolean indicating that a report is currently being generated. Once the report generation is complete that session variable is set to false again. I have come across another problem thou

Re: Trouble with SSL and struts using sslext

2004-07-22 Thread Ludovic Bailly
Jim Kennedy mindspring.com> writes: > What causes the framework to use the SecureRequestProcessor.> You have to change the controller processorClass in your struts-config.xml. Switch to org.apache.struts.action.SecureRequestProcessor or org.apache.struts.action.TilesSecureRequestProcessor if y

RE: Trouble with SSL and struts using sslext

2004-07-22 Thread Jim Kennedy
What causes the framework to use the SecureRequestProcessor. Do I have to set an init-param in web.xml for the ActionServlet ? -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 4:47 PM To: 'Struts Users Mailing List' Subject: RE: Trouble with S

Re: Trouble with SSL and struts using sslext

2004-07-22 Thread Nathan Maves
Jim, Works perfect for me. ... On Jul 22, 2004, at 1:49 PM, Jim Kennedy wrote: I can't seem to get any of my action to go under https. The config seems fairly simple but I must be missing something. I want

RE: Submitting form does nothing

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Claire Suttle [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 1:18 PM > To: [EMAIL PROTECTED] > Subject: Submitting form does nothing > > > Hi, > > I am working on moving our current struts based server from > Java 1.3 / tomcat 3 to Java 1.4 / to

RE: Trouble with SSL and struts using sslext

2004-07-22 Thread Jim Kennedy
I added this to web.xml: login page /login GET POST CONFID

RE: Tag question (JSP organization)

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 1:25 PM > To: Struts Users Mailing List > Subject: Re: Tag question (JSP organization) > > > Haha! Thanks Jim for your usual wit and insight. I will take > your advice > to heart. And tha

Editable Tables...

2004-07-22 Thread Andrew Close
hi all, i attemtped to use the cool displaytag to lay out a table but couldn't use struts or jstl tags inside of the table for editable components. so i switched to the old fashioned html tags. the problem there was that my action forms didn't pick up the values that had changed. so now i'm look

Re: Tag question (JSP organization)

2004-07-22 Thread Erik Weber
Haha! Thanks Jim for your usual wit and insight. I will take your advice to heart. And thanks for the compliment. I am gathering that by "fly in the security" you are referring to a "need to change something in more than one place" problem, rather than a "serious hole needs to be addressed" pro

Submitting form does nothing

2004-07-22 Thread Claire Suttle
Hi, I am working on moving our current struts based server from Java 1.3 / tomcat 3 to Java 1.4 / tomcat 5. The forms that were working before do not seem to be working now - when I hit the submit button, I just get forwarded to a blank page. My action classes are not hit. I extended the Action

RE: Trouble with SSL and struts using sslext

2004-07-22 Thread Jim Kennedy
I've made no changes to my web.xml. Should I define a user data constraint? I hesitated doing that because the login page is not under security. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 3:53 PM To: Struts Users Mailing List; [EMAIL PR

RE: Trouble with SSL and struts using sslext

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Jim Kennedy [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 12:50 PM > To: 'Struts Users Mailing List' > Subject: Trouble with SSL and struts using sslext > > > I can't seem to get any of my action to go under https. The > config seems > fairly s

Trouble with SSL and struts using sslext

2004-07-22 Thread Jim Kennedy
I can't seem to get any of my action to go under https. The config seems fairly simple but I must be missing something. I want some pages to be under SSL and others not to. Here is my config: Struts-config.xml (snippet only) Also

RE: Tag question (JSP organization)

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 11:43 AM > To: Struts Users Mailing List > Subject: Re: Tag question (JSP organization) > > > Sure, Raghuram. > > Caution: long post! > > > Finally, restricting access to *.jsp in you

Re: Tag question (JSP organization)

2004-07-22 Thread Erik Weber
Sure, Raghuram. Caution: long post! It seems every project I've ever seen has an actor called "vendor", so I'll use that as an example. ;) Typically these use cases are required: Add a new vendor account to the system Remove an existing vendor account from the system Edit an existing vendor's acc

Form Population

2004-07-22 Thread Isaias Barroso
Hi all, I've a ActionForm that have 3 fields. Integer code; String description; Integer status; I would like that when this fields wasn't filled on the ActionForm wasn't populated with default values, to Wrapper classes, I put convertNull=true on action properties on web.xml, exist a equivale

Re: OT: Re: Velocity vs tags (was JSF vs Struts)

2004-07-22 Thread David Evans
On Thu, 2004-07-22 at 13:43, Craig McClanahan wrote: > On Thu, 22 Jul 2004 10:33:35 -0400, David Evans <[EMAIL PROTECTED]> wrote: > > Thanks for the input. i can see what you mean about the conditionals and > > looping looking cleaner. but the ease of use of sticking any kind of > > java object in

Re: OT: Re: Velocity vs tags (was JSF vs Struts)

2004-07-22 Thread Craig McClanahan
On Thu, 22 Jul 2004 10:33:35 -0400, David Evans <[EMAIL PROTECTED]> wrote: > Thanks for the input. i can see what you mean about the conditionals and > looping looking cleaner. but the ease of use of sticking any kind of > java object in the context and calling out its properties by > $object.prope

(SOLVED): parameterizing action attribute to html:form

2004-07-22 Thread Sergey Livanov
Thank you a lot, HTML-EL of course, :) Sergey, >> -Original Message- >> From: Sergey Livanov [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 22, 2004 9:03 AM >> To: Struts Mailing List >> Subject: parameterizing action attribute to html:form >> >> >> Please advise me, >> >> I try to

RE: Sharing Fields Between 2 Forms

2004-07-22 Thread Wiebe de Jong
Create one field and attach to the first form. Create a second field identical to the first, but hidden, and attach it to the second form. Have some javascript attached to the first field that copies the contents of the first field to the second field whenever a change is made. Wiebe -Origin

RE: Form Bean and decions based on Business Logic calls

2004-07-22 Thread Robert Taylor
As Jim already mentioned, its best to keep the form beans as simple as possible and void of logic. Place calls to business logic or delegates in the action class. robert > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Muhammad Momin Rashid > Sent: Thursday, July 22

Re: Sharing Fields Between 2 Forms

2004-07-22 Thread atta-ur rehman
hi, yes it's possible if both the form classes are inherited from the same base class that has the common field getter/setter defined in it. but why not have the same field in the both the forms? won't it be easier? ATTA On Thu, 22 Jul 2004 18:11:31 +0100, Ciaran Hanley <[EMAIL PROTECTED]> wrot

RE: Sharing Fields Between 2 Forms

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Ciaran Hanley [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 10:12 AM > To: Struts User Mailing List > Subject: Sharing Fields Between 2 Forms > > > Hello, > > > > Is it possible for forms to share a common field? > > I have two forms on a p

Sharing Fields Between 2 Forms

2004-07-22 Thread Ciaran Hanley
Hello, Is it possible for forms to share a common field? I have two forms on a page which both need to gather data from a html:textarea. I do not want to have two textareas on the JSP however so I can I share one between both forms? Thanks, CH

RE: Form Bean and decions based on Business Logic calls

2004-07-22 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Muhammad > Momin Rashid > Sent: Thursday, July 22, 2004 9:30 AM > To: [EMAIL PROTECTED] > Subject: Re: Form Bean and decions based on Business Logic calls > > > Thank you for your quick response. > > I do have the a

Re: Form Bean and decions based on Business Logic calls

2004-07-22 Thread Muhammad Momin Rashid
Thank you for your quick response. I do have the appropriate action class with the desired forwards defined (as you have also outlined), but the problem is that the form bean itself is making the business logic calls to get its desired data. Upon failure to get the desired data, how can I forward

RE: parameterizing action attribute to html:form

2004-07-22 Thread Robert Taylor
Are you including the html-el tag library in the page? robert > -Original Message- > From: Sergey Livanov [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 12:03 PM > To: Struts Mailing List > Subject: parameterizing action attribute to html:form > > > Please advise me, > > I t

RE: parameterizing action attribute to html:form

2004-07-22 Thread Robert Taylor
You have to use the Struts-EL tag library for this to work with EL. robert > -Original Message- > From: Sergey Livanov [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 12:03 PM > To: Struts Mailing List > Subject: parameterizing action attribute to html:form > > > Please advise

RE: parameterizing action attribute to html:form

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Sergey Livanov [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 9:03 AM > To: Struts Mailing List > Subject: parameterizing action attribute to html:form > > > Please advise me, > > I try to set html:form action= parameter. > > In my action : >

parameterizing action attribute to html:form

2004-07-22 Thread Sergey Livanov
Please advise me, I try to set html:form action= parameter. In my action : request.setAttribute( "action", MyBean ) JSP: OR After this I've got an error Cannot retrieve mapping for action /${formaction}' What's wrong? -- regards Sergey

RE: Form Bean and decions based on Business Logic calls

2004-07-22 Thread Robert Taylor
Define success and failure forwards in your struts-config file for the specified action. In the action class (which should delegate to a business object), retrieve the data. Upon failure, forward to the "failure" forward, else forward to the "success" forward. You could achieve the same using de

Form Bean and decions based on Business Logic calls

2004-07-22 Thread Muhammad Momin Rashid
Hello, I have a form bean which needs to retrieve some information from the business logic. I want to know how I can redirect to different pages on the bases of data retrieved. e.g. I need to retrieve and display a list of countries for the user to select from. In case of failure to retrieve th

OT: Re: Velocity vs tags (was JSF vs Struts)

2004-07-22 Thread David Evans
Thanks for the input. i can see what you mean about the conditionals and looping looking cleaner. but the ease of use of sticking any kind of java object in the context and calling out its properties by $object.property or $object.nestedObject.property is the part of velocity that i think is cleane

R: coupla easy (I hope) beginner questions

2004-07-22 Thread Amleto Di Salle
Hi, Is "bean.define" correct? Anyway you have to use and . Furthermore, in order to use the Struts tag without the el-extension (you can find them in the "contrib" directory inside the Struts 1.1 binary release) you have to use a 2.4 servlet (and jsp 2.0) Web-container compliant (for example Tomc

RE: coupla easy (I hope) beginner questions

2004-07-22 Thread Robert Taylor
I'm no guru, but You can put the appropriate HTML stuff in, but the basics are as follows: Sorry, can't help you with your second question :( robert > -Original Message- > From: Tim Cross [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 9:22 AM > To: [EMAIL PROTECTED]

coupla easy (I hope) beginner questions

2004-07-22 Thread Tim Cross
Hail gurus! I've got a jsp page taking a session-context Collection of forms and displaying it, and I'm trying to add a delete and an edit link or form on a per-row basis. Seems like a pretty obvious thing, right? Based on a tip from this list, I tried the following, after considerable screwing ar

Re: Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread Georg Filios
Hi Raghuram and Raul, thanks for your tips!!! I tried the caching tips, but the didnt worked on my apple using safari browser! Tip 1 did not help <% response.setHeader ("cache-control", "no-cache"); response.setHeader ("expires", "-1"); %> Tip 2: did not help and the configuration in strut

Redirect a request to ssl page using tiles and sslext

2004-07-22 Thread Ludovic Bailly
Hi, I'm successfully using struts / tiles / sslext except in one case : All my pages are rendering using tiles. After a form validation, I have to redirect the user to a secure page. Using sslext, I can set the secure property in the struts-config.xml but it doesn't work as I expect : If erro

[Re: Problem with STRUTS application]

2004-07-22 Thread Bruno Grossmann
Ana, As far as I can tell, it is Struts which is overriding the toString() library. I will cross post this to the Struts list so that the developers are aware of this > From: Bruno Grossmann <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8 > Date: 16 Jul 2004 14:43:46 -0400 > Subject

Re: testing struts and locale

2004-07-22 Thread Alex
Is this something no one has ever ventured to try? On Wed, 21 Jul 2004, Alex wrote: > Date: Wed, 21 Jul 2004 09:36:05 -0400 (EDT) > From: Alex <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: testing stru

RE: About Struts + JBoss preference issue

2004-07-22 Thread Raghuram Kanadam
Koon, Try using a plain servlet on JBoss for your application, (JBoss may be loading a lot more unwanted stuff which may be consuming your resources) if you have a performance gain then we could concentrate on struts -Original Message- From: Aditya Athalye Sent: Thursday, July

Coding Standards

2004-07-22 Thread Shailender Jain
Hai, Does anybody has got any development standards which can be used to check if the code written using the Struts Framework is optimized. Or any king of checklist Regards, Shailender Jain - To unsubscribe, e-mail: [EMAIL PR

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Robert > This approach sounds similar to the Spring IoC framework. > Objects are defined in an xml file and a manager loads them > into memory. Your action class looks up beans using something > like: > MyBD bd = (MyBD)applicationContext.getBean("MyBD"); I wasn't aware of that. I have seen so

RE: About Struts + JBoss preference issue

2004-07-22 Thread Robert Taylor
This approach sounds similar to the Spring IoC framework. Objects are defined in an xml file and a manager loads them into memory. Your action class looks up beans using something like: MyBD bd = (MyBD)applicationContext.getBean("MyBD"); So you don't have to implement the ServiceLocator or Single

RE: About Struts + JBoss preference issue

2004-07-22 Thread Aditya Athalye
Very True...Struts wont cause the delay...Anyhow Bean lookup and getting reference to the component interface bein remote calls are inherently slow in nature.So I think even with a normal servlet u wont get any performance gain. As said earlier check if u can optimise ur SQL queries or even ur D

RE: EJB + Struts + Hibernate

2004-07-22 Thread Marco Mistroni
Hello, Yes I have now (and it's working fine).. I was wondering Just if I could take it out to put in some other tomcat directories, in Case I have more than one webapp that uses hibernate... Regards marco -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent:

RE: About Struts + JBoss preference issue

2004-07-22 Thread McCormack, Chris
Depening on how you are obtaining a connection to the database, you may be seeing overhead in creating/destroying the object each time rather than poor SQL. Try running an ExplainPlan(I use the EP built in to Toad by Quest software) over each SQL statement that does any table joins, you may be mi

Re: About Struts + JBoss preference issue

2004-07-22 Thread Vic Cekvenich
Because Struts is a layered application, you can stress test the performance of your data layer by itself. If the DAO is slow, or the SQL is slow, then Struts can't serve it fast. So, test the performance of DAO layer. .V Koon Yue Lam wrote: Hi ! My application has change from Struts + Tomcat t

Re: EJB + Struts + Hibernate

2004-07-22 Thread Mark Lowe
Hi Marco I'm running all the hibernate stuff in the webapp, /WEB-INF/lib and had no issues.. Have you the ehcahche jar file in you lib directory? Only the jdbc drivers in the common/lib directory that i dont particularly like, but seems the only way it will dig. Likewise with the mail api an

Redirect a request to ssl page using tiles and sslext

2004-07-22 Thread Ludovic Bailly
Hi, I'm successfully using struts / tiles / sslext except in one case : All my pages are rendering using tiles. After a form validation, I have to redirect the user to a secure page. Using sslext, I can set the secure property in the struts-config.xml but it doesn't work as I expect : If errors

RE: Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread rahul.chaudhary
The header can be set to specify not to cache the page using : Meta tags ... this will be more of browser specific. or set the Header object which can then take care of caching at the webproxy. Better option will be the use of Struts-workflow extension which can prevent the user from entering

RE: Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread Raghuram Kanadam
Try no-cache, max-expires HTTP headers in your in your response, its also possible to provide these in struts-config. This would prevent you from including it in all your JSPs. <% response.setHeader ("cache-control", "no-cache"); response.setHeader ("expires", "-1"); %> I'm not

Re: Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread Georg Filios
Hi, i would like to prevent caching.. Georg Am 22.07.2004 um 11:36 schrieb Raghuram Kanadam: George are you looking from preventing the user from going back or are you looking for preventing caching? -Original Message- From: Georg Filios [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22,

Re: Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread Georg Filios
Hi, i am looking for preventing caching. So I am responsible on the server side, no matters what the users browser is. Regards, georg Am 22.07.2004 um 11:36 schrieb Raghuram Kanadam: George are you looking from preventing the user from going back or are you looking for preventing caching? ---

Redirect a request to ssl page using tiles and sslext

2004-07-22 Thread Ludovic Bailly
Hi, I've configured struts, tiles and sslext. All seems to work quite well but I can't find out a solution to this problem : All my pages are rendering using tiles. A JSP containing a form must forward to another JSP page if the validation is ok. To achieve this, I put in the corresponding actio

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Marco > right, so I assume every Action class that u write subclasses > PlugInManagerAction, correct? Correct > I don't like putting parenthesis :-) coz everything that I get > From ServletContext is an object > > It doesn't bother me much.. but I m still wandering if I can add > Let's s

RE: Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread Raghuram Kanadam
George are you looking from preventing the user from going back or are you looking for preventing caching? -Original Message- From: Georg Filios [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 3:06 PM To: [EMAIL PROTECTED] Subject: Error: html:multibox, backbutton, BeanPopulate Ex

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
> isn't that in a cluster the app server 'replicates' the JNDI tree, so > that u won't have to bother if one of the servers in a cluster shuts > down? Se my other post. I think it's up to the J2EE Server to provide "cluster transparacy" to the clients. > I m no expert in cluster, and I was wande

RE: jsf-developers -- new Yahoo group

2004-07-22 Thread Matthias Wessendorf
Oswald, whats with MyFaces-Mailing-Lists`? MyFaces is in move to become an Apache-Project (http://www.mail-archive.com/[EMAIL PROTECTED]/msg03402.html) (http://wiki.apache.org/incubator/MyFacesProposal) so perhaps you will find more on : http://sourceforge.net/projects/myfaces hope that helps y

RE: Tag question

2004-07-22 Thread Raghuram Kanadam
If you had the time Erik would you explain your method of arranging JSPs by the actor, seemed a beautiful approach. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 1:16 AM To: Struts Users Mailing List Subject: Re: Tag question Sorry if this

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi > 2. If the application scale up to cluster, this design seems can't deal with it > (because the client always invoke remote object that was downloaded to > cache, which is not dynamically locate by app. server in a cluster > environment.) Is this really an issue? Maybe I do not understand you

Error: html:multibox, backbutton, BeanPopulate Exception (IndexOutOfBoundsException)

2004-07-22 Thread Georg Filios
Hi, I am having a unnices error, which I can't solve. Even I am having found any hints in the archives, making me very nervous, that I totally messed up some concepts. Here is my Problem: I am using a html:multibox to select some entries (the number of the entries, is dynamic) i.e 5 differen

RE: About Struts + JBoss preference issue

2004-07-22 Thread Marco Mistroni
Hello, >2. If the application scale up to cluster, this design seems can't deal >with it >(because the client always invoke remote object that was downloaded to >cache, which is not dynamically locate by app. server in a cluster >environment.) isn't that in a cluster the app server 'replicates' t

RE: About Struts + JBoss preference issue

2004-07-22 Thread Marco Mistroni
Hello, >But it could easily be a XML file, or anything else yes...personally I would 4 that unless u have particular requirements for storing it into the DB >> U use the PlugInMgr as singleton, correct? Coz right now I m following >> Similar 'approach' but I m storing the BD in the ServletCon

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
some drawbacks I can see: 1. longer server start up time (but it is OK) 2. If the application scale up to cluster, this design seems can't deal with it (because the client always invoke remote object that was downloaded to cache, which is not dynamically locate by app. server in a cluster environme

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi Marco > I have questions coz I m interested in that approach.. I am happy that you find it interesting :-) > I assume u have a config file for telling the PlugIn Mgr what > To load, correct? The plugins, names and classed that implement the plugin interface are stored in a table in a databa

Re: Jsp to pass Bean back/on to Action

2004-07-22 Thread Erik Weber
Sounds like you will need to either use session scope to store your data, so that it lasts longer than a single request, or else render a hidden variable in a form to contain your values (this can be multiple values) that the next action can get and possibly parse. I think Struts "indexed prope

RE: About Struts + JBoss preference issue

2004-07-22 Thread Marco Mistroni
Hello, I have questions coz I m interested in that approach.. I assume u have a config file for telling the PlugIn Mgr what To load, correct? U use the PlugInMgr as singleton, correct? Coz right now I m following Similar 'approach' but I m storing the BD in the ServletContext, and what I

Re: Jsp to pass Bean back/on to Action

2004-07-22 Thread Shailender Jain
May be you can put the bean in the session scope and then retreive the bean in the Action class. Not sure if this will be the right practice. Mike Young wrote: > I have developed pages and seen examples where a bean is passed from an > action to a jsp but how do I pass the bean on to an action wh

Jsp to pass Bean back/on to Action

2004-07-22 Thread Mike Young
I have developed pages and seen examples where a bean is passed from an action to a jsp but how do I pass the bean on to an action when it is called by the jsp either by a submit or a hyperlink. Note I want to pass a bean (array of info) rather than a simple parameter = value? A pointer in the

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Glad to help. I even optimized this further down the road, but it depends on your application if you can do that. I used the BusinessDelegate pattern to employ the concept of a BusinessPlugin. That is an interface to the EJB Session Facade, but implemented as a POJO. There's a one-to-one relation

RE: EJB + Struts + Hibernate

2004-07-22 Thread Marco Mistroni
Hello, Thanx 4 the fast reply.. I have tried to put in tomcat/common/lib, seems not working I tried also to put it in tomcat/server/lib, still not working The file was present in both directories, so I'll have to try to put It in either one of the two and see if it is working. Regar

Re: EJB + Struts + Hibernate

2004-07-22 Thread Richard
Marco Can you try and put it on tomcat/common/lib directory? HTH Richard Marco Mistroni wrote: Hello Mark, How r u doin'? hope fine.. I have a question 4 u.. have u been running Hibernate on Tomcat 5.0? I m having classpath problem In the sense that it complaints that it cannot Find the class net.

RE: EJB + Struts + Hibernate

2004-07-22 Thread Marco Mistroni
Hello Mark, How r u doin'? hope fine.. I have a question 4 u.. have u been running Hibernate on Tomcat 5.0? I m having classpath problem In the sense that it complaints that it cannot Find the class net.sf.hibernate... CacheManager, which is included in Hibernate's ehcache2.1.jar (somethin

Re: OT: Formatting issues...

2004-07-22 Thread ron1
I think you woule be better looking in a HTML listing than in a struts one... Cheers, Ron Andrew Close wrote: i know this is a little off-topic, but i was hoping someone could point me in the right direction. my client is currently using frames for layout in their webapp. we're rewriting the c

Re: Using .properties file to set elements in

2004-07-22 Thread ron1
I never used struts EL but I cuess you can do it with it: I am not sure about the String -> int conversion, since bean length is a String, ant the attribute excepts an int, but maybe it works :-) Sam Bilbrey wrote: I hope this is not to much of a newbie question: I would like to do something

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
Thanks ! It seems like a great solution and I will try that out tonight, thanks for help ^^ Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About Struts + JBoss preference issue

2004-07-22 Thread HG
Hi there Now, it shouldn't be much slower. However, there is a performance tradeoff when using EJB, specially remote ones like you do. One thing, that really speeds up things is to cache the home interface, when looking it up, or when the applications starts up. First use will still be slow, but s