Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dakota Jack
If you want to discuss this, I have a number of things to say. If you find that argumentative, then I won't offer anything more. Having JSPs fetch data indeed is putting application logic in the JSPs. This does not give you flexibility. Quite the opposite, it ties your model and you view down

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dakota Jack
You cannot talk about request objects and ignore the client. The requests come from the client. Any data coming to a JSP comes in the same way. This is not pull and this is not push. The data comes from some class existing in some scope: page, request, session, application. You are not doing

RE: JSP Buffer Size

2005-05-23 Thread tarek.nabil
Thanks Martin. But this is exactly what I'm trying to avoid. If I use the page directive, then I would need to do that in EVERY page. My question is, is there a way I can do this with Struts in some central place only once? -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED]

Re: JSP Buffer Size

2005-05-23 Thread Jason Lea
If you are using Servlet 2.4, then you can use the include-prelude to specifiy a page that is included at the beginning of every jsp page. You can put page directives there. http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSPIntro13.html eg

Re: JSP Buffer Size

2005-05-23 Thread Catalin Croitoru
Hi, if you use Java Servlet specification version 2.3 (at least) you can use a Filter. make your filter intercept the jsp and in that filter you can change the buffer. for a more information about Filter take a look at this: http://java.sun.com/products/servlet/Filters.html Catalin On

RE: sTRUTS 1.3 - chain flow / complex app

2005-05-23 Thread Marco Mistroni
Hello all, It's interesting to have some more complex use cases to test the chain model against... I would offer my app as 'guinea pig' for complex cases :-) Currently it's a small app that manage my own 'expenses' (I have a mysql as backend and jboss 3.2.5/tomcat 5.5 as app server)to see What

RE: struts 1.2.4 examples error with NB4.1. help pls!

2005-05-23 Thread Nitin Mandolkar
10.5.1 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. There is some thing wrong with Application server. Application server Is not able to compile that file. Please check application server configuration. -ni3

RE: struts 1.2.4 examples error with NB4.1. help pls!

2005-05-23 Thread Naslai, Shobha \(Cognizant\)
Is there any trace or reason given? Also I have an observation about the Path pls see this clearly /s truts-example//org/apache/jsp\welcome_jsp.java -Original Message- From: Nitin Mandolkar [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 2:13 PM To: Struts Users Mailing List

Re: VALIDATION FOR TWO FIELDSHELP

2005-05-23 Thread Muhammad Momin Rashid
Metal KoRn wrote: Hey guys I need to validate two fields for password and confirmation but I can get the jakarta example work can anybody tell me how to do taht with struts? Here is a snippit of validation rule from our live application field property=passwordConfirm

RE: struts 1.2.4 examples error with NB4.1. help pls!

2005-05-23 Thread carmen lam
I should apologise to those ppl being helpful to me because I made a really stupid mistake. I choose the J2EE server instead of the Tomcat server. After I choose the Tomcat server to run this examples, it works flawlessly. Thanks everyone!! - email Yahoo!

RE: struts 1.2.4 examples error with NB4.1. help pls!

2005-05-23 Thread carmen lam
I should apologise to those ppl being helpful to me because I made a really stupid mistake. I choose the J2EE server instead of the Tomcat server. After I choose the Tomcat server to run this examples, it works flawlessly. Thanks everyone!! - email Yahoo!

Re: struts 1.2.4 examples error with NB4.1. help pls!

2005-05-23 Thread carmen lam
I should apologise to those ppl being helpful to me because I made a really stupid mistake. I choose the J2EE server instead of the Tomcat server. After I choose the Tomcat server to run this examples, it works flawlessly. Thanks everyone!! - email Yahoo!

howto redirect to login site after session expiration?

2005-05-23 Thread Frank Ratzlow
Hallo folks, I encountered a strange behaviour regarding the population mechanics of my forms. Following situation: I have my app running, the browser stays open with a html form to be filled. The http-session expires and the user submits the form to the server. The result is a http 500

RE: howto redirect to login site after session expiration?

2005-05-23 Thread Marco Mistroni
Hello, Can't you use a ServletFilter that checks if user is in the session? If it is not you will redirect the request to your loginpage. Regards marco -Original Message- From: Frank Ratzlow [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 11:18 To: user@struts.apache.org

Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Frank Ratzlow
Hi, unfortunately this is not an good option because the application (exactly some of the actions) serve authorized and unauthorized users the same. Afaik if a user sends his first request a session will be created for him (default behaviour). Additionally we invalidate a session when a user

RE: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Marco Mistroni
Hello, container. I just want to say, if your session expired, go to page xyz. BTW: how can I determine via the API if a session expired? Is it possible at all? I m not 100% sure, but will an HttpSessionListener help here? Regards Frank Marco Mistroni [EMAIL PROTECTED]

Stateless web apps

2005-05-23 Thread andy wix
Hi, I am working at a place that doesn't use session state for their web apps. The reason given is that they have 2 physical servers and 2 Oracle Application Servers running on each of these machines for failover. From the little I know about clustering, I thought that if everything in the

Populating growing List

2005-05-23 Thread Nils Liebelt
Hi all, I know that common issue with indexed properties as mentioned in the wiki http://wiki.apache.org/struts/StrutsCatalogLazyList. So I wrote a little handcranked lazy list but I still get an indexoutofbounce exception. I really don't know whats going on here: private ArrayList

Populating growing List

2005-05-23 Thread Nils Liebelt
Hi all, I know that common issue with indexed properties as mentioned in the wiki http://wiki.apache.org/struts/StrutsCatalogLazyList. So I wrote a little handcranked lazy list but I still get an indexoutofbounce exception. I really don't know whats going on here: private ArrayList

RE: Populating growing List

2005-05-23 Thread Nils Liebelt
What a bummer. I got the wrong scope!?! If I put the Form in session scope it works fine. Gonna borrow a tie from my boss so I can hang myself... Cheers, Nils -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 1:50 PM To: 'Struts Users Mailing

RE: Populating growing List

2005-05-23 Thread Nitish Kumar
dont think its a great idea, If I start putting beans in session , every time I have a collection in form bean, I am not sure how long my application is going to run. Thanks and Regards, Nitish Kumar -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Monday, May

RE: Populating growing List

2005-05-23 Thread Sachin Bhutada
If your form bean is being used in multiple page, you can put the form in session and clear the collection in reset method if required. That will serve the purpose. In my application we are using the same apporach and our application has not yet crashed at least bcoz of form bean :) sachin

RE: Populating growing List

2005-05-23 Thread Nitish Kumar
Even I had to do the same in quite a few of my application, personally I would have loved to have a standard solution for this problem from apache group in future releases of struts. Thanks and Regards, Nitish Kumar -Original Message- From: Sachin Bhutada [mailto:[EMAIL PROTECTED]

RE: Populating growing List

2005-05-23 Thread Nils Liebelt
The only problem is that you have no choice. I don't like polluting the session context. But if you have growing stuff mentioned before and you don't want a LazyList. -Original Message- From: Nitish Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 2:14 PM To: 'Struts Users

RE: Populating growing List

2005-05-23 Thread Nils Liebelt
The only problem is that you have no choice. I don't like polluting the session context. But if you have growing stuff mentioned before and you don't want a LazyList. -Original Message- From: Nitish Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 2:14 PM To: 'Struts Users

RE: sTRUTS 1.3 - chain flow / complex app

2005-05-23 Thread Joe Germuska
Marco wrote: Does Shale use chain? Could you integrate chain in Shale? Shale does use chain, but to be honest, I don't know much more about it than that. I am looking forward to add more complexity for 'testing' the chain.. If you have anything to suggest me, go ahead :-) .. Just keep

Dealing with many forms

2005-05-23 Thread Janek Ziniewicz
Hi, I am writing my first Struts application, and have some problems with it. Some part of my app, gets data from database, fills appropriate form, displays it and, if user changed the form, writes data back to database. Another functionality is: get whole webpage (including form)from

RE: Populating growing List

2005-05-23 Thread David Suarez
On the surface it looks like the code is wrong. Index 0 represents a size of 1 (zero-based array). Once you account for that, your array should grow as you desire. Regards...djsuarez -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 6:50 AM To:

Re: Populating growing List

2005-05-23 Thread Niall Pemberton
The reason this isn't working lies in how Commons BeanUtils works. What you read in the wiki works for setting the properties of nested indexed beans- not straight forward indexed properties. In this circumstance it will just call the indexed setter so for it to work you need your lazy code there,

RE: Populating growing List

2005-05-23 Thread Nitish Kumar
The solution, we later adopted was have a class extending ArrayList, some thing like this.. class MyList extends ArrayList{ public Object set(int index, Object element) { if(index size()) { add(new Object()); // Add objects of appropriate type to

Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Andrew Thorell
This is what I use... logic:present ... -- main body here -- /logic:present logic:notPresent name=... logic:redirect ... /logic:notPresent Now if you're talking about the person filled out the form (or whatever) and then let the session expire.. The first thing I would check in the Validate

Re: Populating growing List

2005-05-23 Thread Dakota Jack
Probably not a good idea to be populating session scope unnecessarily. On 5/23/05, Nils Liebelt [EMAIL PROTECTED] wrote: What a bummer. I got the wrong scope!?! If I put the Form in session scope it works fine. Gonna borrow a tie from my boss so I can hang myself... Cheers, Nils

Re: howto redirect to login site after session expiration?

2005-05-23 Thread Dakota Jack
If you keep a user object in session, just check at the beginning of the Action whether it is still with you. If not, forward to a log on page. I assume that will work for you. If you don't have a user object in session, whether authorized or not, then you can put a simple String iin session

Lista de Struts

2005-05-23 Thread Néstor Boscán
Para inscribirse en la lista de struts deben enviar un correo vacío a: [EMAIL PROTECTED] Para eliminar la subscripción: [EMAIL PROTECTED] Si quieren mandar un email a la lista lo mandan a: user@struts.apache.org Saludos

Antwort: Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Frank Ratzlow
Hi, okay, but this leads to a solution where I do have to ensure a manuell redirect to the appropriate site by tracking session attributes. I thought that the container is maintaining a list of expired sessions (or at least valid sessions to figure out invalid sessions), so that I can

RE: How can we send parameter's value to javascript function ??

2005-05-23 Thread Greg Pelly
You can't mix %= % and struts form elements (eg, html:radio). Your best bet is to change the javascript to whichAuctionType(this)--send the input element--then inside your JS function, get the value by doing a .value on the element passed in. -Original Message- From: minhnguyet

Collecting Dynamic Form Data

2005-05-23 Thread Andrew Thorell
Greetings all, I'm trying to write an application that will collect form data from a webpage when it is directed at an Action. Is there any way to do this without using an ActionForm (which is pretty useless because in some cases I won't know what variable names will be pointed at me)? Any

Re: Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Andrew Thorell
In part you are correct. You can try doing this: in web.xml error-page error-code 404 /error-code location/pages/error.jsp/location /error-page This goes after servlet-mapping and before any taglib declarations. The 404 can be replaced with any html error code you wish (as far as I

Re: Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Dakota Jack
I am of the opinion that this is too specific a situation for a framework to take over. I really get irritated when frameworks plug in stuff that should be taken care of at the application level. I do think that making code available for people that want a prepackaged solution in a plugin or

Re: How can we send parameter's value to javascript function ??

2005-05-23 Thread Rick Reumann
minhnguyet wrote the following on 5/20/2005 11:47 PM: Hi all, I want to send parameter 's value to javascript function . When I use html : radio as follow html:radio property=auctionTypeId value=%=(String)rId% onclick='javascript:whichAuctionType(%=(String)rId%);'/ , You should use

Antwort: Re: Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Frank Ratzlow
okay, but handling sessions is nothing special for a certain framework. I tend to place it some where in the container area itself, how to react on this condition. All the feedback I got so far (thanx ;-)) leads to an own implementation of session tracking, whatever it looks like. I was

Re: Collecting Dynamic Form Data

2005-05-23 Thread erikweber
If I'm not mistaken, Struts has some mechanisms for dynamic fields in ActionForms. Regardless, can't you use request.getParameterNames in your Action's execute method? Erik -Original Message- From: Andrew Thorell [EMAIL PROTECTED] Sent: May 23, 2005 11:07 AM To: Struts Mailing List

Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Rick Reumann
Frank Ratzlow wrote the following on 5/23/2005 6:54 AM: some of the actions) serve authorized and unauthorized users the same. Afaik if a user sends his first request a session will be created for him (default behaviour). Additionally we invalidate a session when a user authorizes and store

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Laurie Harper
Dakota Jack wrote: You cannot talk about request objects and ignore the client. The requests come from the client. Sure, but I'm not talking about request objects. A request to http://host/myapp/something.jsp (with no query parameters) contains no request data, but the JSP still has to

obtaining an action's ActionMapping

2005-05-23 Thread Jorge Chacón Souto
Hi. Anybodoy knows how can I access the action B's ActionMapping from the Action A (a preprocessing filter that is executed before every action) ? I have to do that because I need to read the properties of many actions in the filter, to check if the user can execute those actions. I've tried

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Laurie Harper
Dakota Jack wrote: If you want to discuss this, I have a number of things to say. If you So I see on your other reply ;-) find that argumentative, then I won't offer anything more. Having No, I'm happy to discuss; it's always worth hearing another person's perspective. JSPs fetch

[Shale] Validation...

2005-05-23 Thread Mariano Petrakovsky
I'm installed Shale Framework, because I need use the Strut's validator under JSF... I having some troubbles with javascript generation... like javascript errors... Somebody know what happen?... (I'm practicing my english... sorry :S) -- Mariano G. Petrakovsky Programmer · Software Factory AXG

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Frank W. Zammetti
Rather than pollute the view (if one chooses to perceive it that way... I'm staying away from that debate!), why not introduce some sort of scripting engine into the mix? I'm not really sure precisely where because I don't know your project, but I say this based on your comment: True, at

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dakota Jack
On 5/23/05, Laurie Harper [EMAIL PROTECTED] wrote: Dakota Jack wrote: You cannot talk about request objects and ignore the client. The requests come from the client. Sure, but I'm not talking about request objects. A request to http://host/myapp/something.jsp (with no query parameters)

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dave Newton
Dakota Jack wrote: Just use some framework, like Struts. Write your actions and your model to take are of this business and feed the data to the appropriate scopes and objects. I believe the point was that this isn't an option. It seems to me, in this case, that the client wants more

[Shale] Javascript validator

2005-05-23 Thread Mariano Petrakovsky
I have a JSP like this: - h:form id=testForm onsubmit=return ValidateForm(this); h:panelGroup h:inputText id=currentconfig

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Michael Jouravlev
JSPs fetch data indeed is putting application logic in the JSPs. This does not give you flexibility. Quite the opposite, it ties your model and you view down by coupling them. Rather than give you flexibility it hamstrings you. So what? These two will always be related unless you use

logic:iterate multiple collections

2005-05-23 Thread Titus Barik
Hi all, Let's say I have two collections, A, and B. Is there a way to iterate over multiple collections with something like logic:iterate? i.e logic:iterate ${rowA.name} ${rowB.value} /logic:iterate -- Titus Barik ([EMAIL PROTECTED]) http://www.barik.net

Trouble get the size of an ArrayList

2005-05-23 Thread Brent Vaughn
I am trying to print out the size of an ArrayList. Here is the code I am using. BC is a bean container. infusion is a bean. The variable prepopUserList is an ArrayList. c:out value=${BC.infusion.prepopUserList.size}/ This is the error it gives me.

simple Validator question

2005-05-23 Thread Riyaz Mansoor
i saw a doc which had form name=formaname1,formname2 wondering if multiple forms could be declared like this? sorry but am t tired to test right no :) riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: sTRUTS 1.3 - chain flow / solved

2005-05-23 Thread Frank W. Zammetti
Sorry I didn't respond sooner Marco, Fantastic work! I haven't had a chance to look at what you sent me yet, but I definitely look forward to doing so. Would you have any objection to me putting your code out on SF in CVS, maybe as a separate branch? That way others can benefit from your

Re: Trouble get the size of an ArrayList

2005-05-23 Thread Wendy Smoak
From: Brent Vaughn [EMAIL PROTECTED] I am trying to print out the size of an ArrayList. Here is the code I am using. BC is a bean container. infusion is a bean. The variable prepopUserList is an ArrayList. c:out value=${BC.infusion.prepopUserList.size}/ There is no 'getSize' method on

Re: logic:iterate multiple collections

2005-05-23 Thread Wendy Smoak
From: Titus Barik [EMAIL PROTECTED] Let's say I have two collections, A, and B. Is there a way to iterate over multiple collections with something like logic:iterate? If you know they're the same size and in the same order, (should be the case with List,) how about iterating over one with

Re: obtaining an action's ActionMapping

2005-05-23 Thread Hubert Rabago
Try ModuleUtils.getInstance().findActionConfig(actionB); Hubert On 5/23/05, Jorge Chacón Souto [EMAIL PROTECTED] wrote: Hi. Anybodoy knows how can I access the action B's ActionMapping from the Action A (a preprocessing filter that is executed before every action) ? I have to do that

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dakota Jack
Normally, Camilo, when you have a question you start your own thread. On 5/23/05, Camilo Quevedo [EMAIL PROTECTED] wrote: Hi, I'm trying to create a struts application, but it seams that when i ask for a user input (html:form) it doesn't,t recognize the special characters. How can I configure

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dakota Jack
I believe the point was nothing like this at all, Dave. Don't know why you thought it was. Seems like you just thought this stuff up separate to me. However, certainly I don't think that the issue whether or not you are writing a CMS is relevant to the issues discussed. I also have no idea why

Re: DynaActionForm and the 'pull' model

2005-05-23 Thread Dakota Jack
Okay, Michael. If this is what you like, good luck. I am stopping the conversation from my side if it is staying at this level. On 5/23/05, Michael Jouravlev [EMAIL PROTECTED] wrote: JSPs fetch data indeed is putting application logic in the JSPs. This does not give you flexibility.

Session-Problem

2005-05-23 Thread Mohan
Hi All, I have problem in my application.In My application I have login and log out functionality.When user clicks log-out I am removing the session and I am redirectiong to Login page.So far it is working fine.But problem starts here.If user clicks the back button of browser window.He is

wildcard action mapping

2005-05-23 Thread Richard Reyes
Hello Guys, I got this action mapping... action path=/login-* type=net.telic.wdsap.actions.LoadCustomPropertiesAction forward name=login path=/page-login-{1}.tn / forward name=wrongurl path=/main-index.tn / forward name=systemerror