RE: Question on formbeans and collections in iterate tags

2006-11-13 Thread Gallagher, Jim (RBoS ITDS Dublin)
Hi, Further information as requested: The formbean is as below: package com.rbsg.application.serviceuserweb.forms; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionMapping; import

RE: Problem while using logic:iterate

2006-11-13 Thread Sunita Ramchandra Shukla
Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel Here name attribute should be what you have set the key in request and specify the location of your class in type w.r.t web application. Rest is fine. It should work. -Original Message- From: santas

RE: Problem while using logic:iterate

2006-11-13 Thread santas
HI i tried what u said but stil the same error is shown to me i have set the list with key users then i first check logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td

Lost Error Message!!

2006-11-13 Thread Balwinder
Hi!! Iam losing error message when iam setting redirect=true in action mapping, iam doing this to avoid resubmit of data on page refresh ie if user press F5 function key. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar

Re: Problem while using logic:iterate

2006-11-13 Thread Nuwan Chandrasoma
try to use the scope attribute of the iterator tag and see, eg: logic:iterate id=listvo name=users type=com.user.uservo scope=request logic:iterate id=listvo name=users type=com.user.uservo scope=session Thanks, Nuwan. - Original Message - From: santas [EMAIL PROTECTED] To:

RE: Lost Error Message!!

2006-11-13 Thread Juan Espinosa
Im not very sure, but i think that when you use redirect= true a new request is built(when the redirect is made) and there you loose all your data that is in the request. To avoid the resubmit there is others solutions. Regards, Juan -Mensaje original- De: Balwinder

Re: Problem while using logic:iterate

2006-11-13 Thread Eider Iturbe
Hi, You mustn´t add an ArrayList in request scope, you have to add a Collection of objects of the class uservo . Regards, -- Eider On 11/13/06, santas [EMAIL PROTECTED] wrote: HI i tried what u said but stil the same error is shown to me i have set the list with key users then i first

RE: Lost Error Message!!

2006-11-13 Thread Anil Kumar T
Would the svaeToken(), isTokenValid() helps you..? -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 6:45 PM To: 'Struts Users Mailing List' Subject: RE: Lost Error Message!! Im not very sure, but i think that when you use redirect= true a

RE: Problem while using logic:iterate

2006-11-13 Thread Sunita Ramchandra Shukla
Debug your code. Make sure that your listvo should exist. Use scriplet and use println to verify the object status using in logic iterate. The problem lies with code written in action class. -Original Message- From: santas [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 5:33 PM

Re: Problem while using logic:iterate

2006-11-13 Thread Puneet Lakhina
On 11/13/06, Eider Iturbe [EMAIL PROTECTED] wrote: Hi, You mustn´t add an ArrayList in request scope, you have to add a Collection of objects of the class uservo . Dont really know what you are trying to say. An arraylist would be a collection of uservo. ArrayList uservoList = new

Re: Problem while using logic:iterate

2006-11-13 Thread Eider Iturbe
Hi again, Instead of using ArrayList uservoList = new ArrayList(); request.setAttribute(listvo,uservoList); you have to use this: *java.util.Collection* uservoList = new ArrayList(); request.setAttribute(listvo,uservoList); Regards, -- Eider On 11/13/06, Puneet Lakhina [EMAIL PROTECTED]

Re: Last Page Regenration

2006-11-13 Thread Balwinder
Nitin M. Mandolkar wrote: This solution is also good. If later on you find the filter code block is taking more time and creating some performance issues in that case you can easily remove it. By making few changes in web.xml. Even the URL pattern can help you more to apply it for specific

Re: Lost Error Message!!

2006-11-13 Thread Balwinder
Anil Kumar T wrote: Would the svaeToken(), isTokenValid() helps you..? -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 6:45 PM To: 'Struts Users Mailing List' Subject: RE: Lost Error Message!! Im not very sure, but i think that when

Re: [s2] 404 - /struts2-mailreader/Tour.do

2006-11-13 Thread Ted Husted
It's up now. We're just trying to run too many example applications through this hosted account. -Ted. On 11/12/06, wolverine my [EMAIL PROTECTED] wrote: Hi Wendy I did not deploy the application locally, it is on the Struts 2's Tutorial at http://struts.apache.org/WW/tutorials.html Under

RE: Problem while using logic:iterate

2006-11-13 Thread Sunita Ramchandra Shukla
Hi Sandip, the flow should be like. 1. from action class call you call method which in turn fetch the data from DB. 2. in that method, populate the data and the whole row should be added into object. something like while(rs.next()) {

Re: Problem while using logic:iterate

2006-11-13 Thread Martin Gainty
Sunita- please display bean code for com.user.uservo M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received

RE: Problem while using logic:iterate

2006-11-13 Thread santas
i added one following code to my jsp % ArrayList list= (ArrayList)request.getAttribute(users); System.out.println(the size of the arraylist is:--+list.size()); Iterator it= list.iterator(); while(it.hasNext()) { uservo vo=

Re: Problem while using logic:iterate

2006-11-13 Thread santas
Thank You All for your great support,help and valueable time finally it is working now, today i learned a lot from you all about logic:iterate tag Thank You once again Puneet Lakhina wrote: On 11/13/06, Eider Iturbe [EMAIL PROTECTED] wrote: Hi, You mustn´t add an ArrayList in request

Re: html messages tag

2006-11-13 Thread Ed Griebel
The error message is not related to the logic:messagesPresent tag. This error is caused by having an html:xxx form field tag (checkbox, file, text, textarea, password, etc.) that is not inside an html:form/html:form tag. Look at the erroring jsp's to see where this is the case. Often exception

Re: DispatchAction help?

2006-11-13 Thread Ed Griebel
You should do validation manually in your action. Set validation='false' in your struts-config.xml and call form.validate in the action methods that need to be validated on. For example, do something like this in a method: ActionMessages errors = form.validate(mapping,request); if ( errors !=

HTTP Request Parameter overwrites ActionForm Field ?

2006-11-13 Thread Mihalka, Laszlo \(Extern\)
Dear developers, I need help to the following problem. Scenario: User edits the Field comment on the HTML page (.e.g. hello). This field corresponds with ActionForm property comment. I set the the ActionForm.comment null in the Action class(the HTTPServletRequest Parameter comment remains hello

RE: In search of a perfect AJAX solution for Struts

2006-11-13 Thread Levan Dvalishvili
IMHO, yahoo UI is the most Robust Library out there... at least one that I could find (and yes I don't work for Yahoo :)) ..., the biggest problem with Dojo that I have seen is in its performance,(goggling gives a quite good view of it as well) and there has been instances that it had

Re: [s2] Dynamically Parameterize Redirect Result

2006-11-13 Thread Mark Menard
On 11/10/06 6:46 PM, Don Brown [EMAIL PROTECTED] wrote: I believe that any unknown result parameters are automatically used as request parameters for the redirect. Then, use an ognl expression for your param value and provide a getter on your action for the value. Hi Don, Do you have an

[HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-13 Thread Garner Shawn
I reset my checkboxes and a multibox in a form reset method but then when I come back to the page the values arn't checked. If I don't reset them then it won't register them as not checked anymore. How do I fix this? Shawn -

RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-13 Thread Lance Semmens
A couple of things to check 1. Is your get action using the same form as your post action? 2. Do the names of the checkboxes in the html match your form? 3. Where are you resetting the checkboxes? I'm hoping you're doing it by overriding ActionForm.reset(). -Original Message- From:

RE: Struts 1.3.5 and Eclipse 3.2

2006-11-13 Thread Bruno Melloni
I did some testing and came to the conclusions below. I might be wrong, but I think these are correct: - Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x. Chances are that it is also incompatible with Struts 2.0.x. - Struts 1.3.x has changed how TLD tags are placed on the

Question reg EventDispatchAction

2006-11-13 Thread rapsy
Hi All I have multiple submit buttons on my jsp page. I would like to use EventDispatchAction to do that. The issue is I have been working with struts1.1 and I can't upgrade to struts1.2.9. Is is possible for me to add EventDispatchAction to struts1.1 version. If yes, please let me how can I

RE: Struts 1.3.5 and Eclipse 3.2

2006-11-13 Thread Levan Dvalishvili
On struts wiki it says to remove local or old external references of TLDs with new external URLs : http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 topic 5.4 TLD URLs, myeclpse which I think is based on eclipse WTP, works fine with struts 1.3.x using external TLD references. Levan

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-13 Thread James Mitchell
I hope you meant Eclipse *Web Tools* and that your project is a Web Application. If not, then Eclipse (as Robin hints at below) has no concept of the web root or what jars belong where and why. That's the purpose of having a project type that understands Web Applications. If using Maven,

RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-13 Thread Garner Shawn
1. Yes 2. Yes 3 In ActionForm.reset If I comment out my reset method then it populates the checkboxes based on the form values like I want however I then loose the ability to only get the checked value put into my action form after the page is submitted.

RE: Struts 1.3.5 and Eclipse 3.2

2006-11-13 Thread Bruno Melloni
Yes, I am using the WTP plug-in and the project is a Web Application. I am not using maven to build Eclipse... I am using the canned Eclipse 3.2.1 from eclipse.org and all the latest plug-ins downloaded from inside Eclipse. I also found a note at the bottom of section 2 of

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-13 Thread Wendy Smoak
On 11/13/06, Bruno Melloni [EMAIL PROTECTED] wrote: (An alternative is specified in 5.4 as suggested by Levan, but it makes the app - which could be an intranet app - dependent on a connection to the internet, not good for mission-critical apps) No, it doesn't. Those are URIs not URLs. (Try

Console error message for a working logic:iterate tag

2006-11-13 Thread Bradley Wagner
I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul logic:iterate name=accountInformationForm property=accounts id=accountSummaryView li

[s2] Loading FreeMarker template from Classpath?

2006-11-13 Thread wolverine my
Hi! In http://cwiki.apache.org/WW/freemarker.html, it explained that Struts 2 looks for FreeMarker template in Web application followed by the Class path. However, when I placed my FreeMarker template in webapps/dummy/WEB-INF/classes/com/dummy/test.ftl it caused the following exception:

jsp page/actions design question

2006-11-13 Thread fea jabi
Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can be re-used in the other one too. The way I have designed is for a jsp have a prepare action and

Re: [s2] Loading FreeMarker template from Classpath?

2006-11-13 Thread Chris Pratt
Remember the thing that is on the classpath is WEB-INF\classes, not it's subclasses. I don't use FreeMarker, but I'd suggest puting that file in WEB-INF\classes and giving it a try. (*Chris*) On 11/13/06, wolverine my [EMAIL PROTECTED] wrote: Hi! In

Re: jsp page/actions design question

2006-11-13 Thread Lixin Chu
you can use %@ include file=... % to include the common JSP. On 11/14/06, fea jabi [EMAIL PROTECTED] wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that

Re: jsp page/actions design question

2006-11-13 Thread Chris Pratt
I'd look at either JSP Include or Tiles. (*Chris*) On 11/13/06, fea jabi [EMAIL PROTECTED] wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can

Re: [s2] Loading FreeMarker template from Classpath?

2006-11-13 Thread wolverine my
Hi Chris Yes, it works when I put the file in WEB-INF/classes On 11/14/06, Chris Pratt [EMAIL PROTECTED] wrote: Remember the thing that is on the classpath is WEB-INF\classes, not it's subclasses. I don't use FreeMarker, but I'd suggest puting that file in WEB-INF\classes and giving it a try.

RE: Console error message for a working logic:iterate tag

2006-11-13 Thread Mano Chinthaka Dasanayaka
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November

Re: Console error message for a working logic:iterate tag

2006-11-13 Thread Bradley Wagner
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano The struts config file uses scope=request for this action. I tried adding a bean:write before

Re: Console error message for a working logic:iterate tag

2006-11-13 Thread Bradley Wagner
Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED]

html:html XSS vulnerability?

2006-11-13 Thread otsuka
The value of lang attribute which html:html tag generates is not escaped. I think it could cause XSS problem If Accept-Language HTTP header's value is replaced with script tag. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Console error message for a working logic:iterate tag

2006-11-13 Thread Mano Chinthaka Dasanayaka
Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 10:11 AM To: Struts Users Mailing List Subject: Re: Console error message for a working

RE: Console error message for a working logic:iterate tag

2006-11-13 Thread Mano Chinthaka Dasanayaka
Hi, U can enclose logic:present /logic:present tag before coming into iterate tag and test it.. Regards, Mano -Original Message- From: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 11:55 AM To: 'Struts Users Mailing List' Subject: RE: Console

setInput method of ActionMapping

2006-11-13 Thread chamal desilva
Hi, I want to call mapping .setInput() method inside my validate method of a form bean. But it throws an Exception. java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ActionConfig.setInput(ActionC

RE: setInput method of ActionMapping

2006-11-13 Thread Mano Chinthaka Dasanayaka
Can u Pls mention ur struts version ? Regards, Mano -Original Message- From: chamal desilva [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 1:08 PM To: user@struts.apache.org Subject: setInput method of ActionMapping Hi, I want to call mapping .setInput() method inside my