Re:Using JUnit with Struts

2006-06-16 Thread starki78
Hi there is Struts-Test-Case, I've tested it it works but we don't use it in the project because it's not a large problem to configure actions... Another thing are the normal business-beans and DAOs there we use normal JUnit, but if someone has another test strategy I always would be curious! ---

Using JUnit with Struts

2006-06-16 Thread Sahil Gupta
Hi, I want to use JUnit with struts, can anyone please guide me. Regards, Sahil Gupta Extn : 339 Mobile: 91 9899468288 Email : [EMAIL PROTECTED] ** NetEdge Computing Global Solutions Private Limited.

RE: How to do pagination using Struts!

2006-06-16 Thread David Friedman
Both DisplayTag and Valuelist have various levels of supprot for the feature your describe. For more details, See: http://www.displaytag.org http://valuelist.sourceforge.net Other methods/tags are probably listed in the Struts Wiki. Regards, David -Original Message- From: Shailesh Bard

How to do pagination using Struts!

2006-06-16 Thread Shailesh Barde
  Hi, I have using a service at Bussiness layert which may fetch n number records... However i have to show this records using pagination... also when user won't find(let's say) his intended record on 1st paginated page & try to find data on 2nd paginated page,by clicking (1>2>3>4>5this

RE: Problem with prepoulating form

2006-06-16 Thread David Friedman
If you set 'validate="true"' in your action mapping, of course you will have this error because the validation in that case will fail, it will SKIP the action and go straight to the "input" (JSP) attribute for error displaying. This setup would skip the action execute() method and no "eventTypes" o

Problem with prepoulating form

2006-06-16 Thread Pankaj Gupta
Hi, I am facing a problem with prepoulating the form. I am using following code to prepopulate the form in my Action class: Vector eventTypes = new Vector(); eventTypes.add(new LabelValueBean("StartFailure", "Value 0")); eventTypes.add(new LabelValueBean("LowMemory", "Value 1")); request.setAttr

Re: [shale] component id + clay templates

2006-06-16 Thread Gary VanMatre
>If a have a shared html template how can I parameterize component ids >such that the template can be used more than once within the view? > >For example, if I have a > > > >within a reusable template, and I used the template twice in a view, I >would get an error because the of duplicate ids in th

Re: Defining dyna forms on the fly

2006-06-16 Thread Scott Van Wart
Wendy Smoak wrote: Let us know how the multiboxes work with lazy forms -- I had trouble with lists in regular DynaValidatorForms until I switched to using Commons Collections 'GrowthList' instead of String[] or ArrayList. Hi Wendy, The multibox thing seems to be a little tricky... I looked thro

Re: Defining dyna forms on the fly

2006-06-16 Thread Scott Van Wart
Wendy Smoak wrote: Let us know how the multiboxes work with lazy forms -- I had trouble with lists in regular DynaValidatorForms until I switched to using Commons Collections 'GrowthList' instead of String[] or ArrayList. Yeah I honestly don't understand why multiboxes don't work. The request h

Multi record form's values are not being updated

2006-06-16 Thread Givler, Eric
I based a multi record form on an array of beans: I can populate the array (set it up) for both ADD and EDIT mode, however, when I click save, none of the request parameters are written into the bean. The properties (as they exist in RequestUtils.ppulate) are correct.

Re: Defining dyna forms on the fly

2006-06-16 Thread Scott Van Wart
Wendy Smoak wrote: Let us know how the multiboxes work with lazy forms -- I had trouble with lists in regular DynaValidatorForms until I switched to using Commons Collections 'GrowthList' instead of String[] or ArrayList. I figured everything would work the same, but now that you mention it, it

Re: struts version of session.getAttribute() ?

2006-06-16 Thread Frank W. Zammetti
It maybe should be noted too that the code originally posted works just fine in Struts, it's just as valid as if Struts wasn't involved What Rick and Scott are pointing out are what most people would consider more elegant, canonical and "proper" ways. I'm mentioning this because Brian, you sa

Re: struts version of session.getAttribute() ?

2006-06-16 Thread Scott Van Wart
Brian Long wrote: Hi folks - newbie here with a quick question: I'm converting JSPs to struts, and they have a lot of stuff that looks like this: Service managedService = (Service) session.getAttribute("managedService"); . . . <% if (group.getExpirationDate() != null) { %> . . . What's

Re: struts version of session.getAttribute() ?

2006-06-16 Thread Rick Reumann
On 6/16/06, Brian Long <[EMAIL PROTECTED]> wrote: What's the mechanism in struts to accomplish pulling an object out of the session and using it in a jsp? If you are using a more recent app server like Tomcat 5.x+, you can just do ... in JSP: My session var ${sessionVar} El expressions will

RE: newbie question on indexed properties and validation

2006-06-16 Thread Givler, Eric
You can ignore this thread. The issue with validator was found on bugzilla at: http://issues.apache.org/bugzilla/show_bug.cgi?id=23372 via another Struts thread. "The Mail Archive" site is nice for finding/searching mailing lists. -Original Message- From: Givler, Eric [mailto:[EMAIL PRO

Re: [FRIDAY] No mercy

2006-06-16 Thread Rafael Nami
Don't know about the news in your country, folks, but here in Brazil, the press just bomb us with meaninful news like "Ronaldo went to bathroom", "Ronaldo had a fever this morning", "Ronaldo ate onions and bread at lunch", "Ronaldo will start the game versus Australia". Seems like the press are tr

struts version of session.getAttribute() ?

2006-06-16 Thread Brian Long
Hi folks - newbie here with a quick question: I'm converting JSPs to struts, and they have a lot of stuff that looks like this: Service managedService = (Service) session.getAttribute("managedService"); . . . <% if (group.getExpirationDate() != null) { %> . . . What's the mechanism in st

Re: Submission of collection of collection

2006-06-16 Thread Rick Reumann
On 6/16/06, Vijayraghav Nerella -X (vraghav - eTouch Systems at Cisco) <[EMAIL PROTECTED]> wrote: Hi, Has anyone tried to create a screen that shows input fields which are collection of collection? yes, you want to use nested Collections. It can be done, but their are few caveats with using it.

Re: pop up using

2006-06-16 Thread Rick Reumann
I'm sure it can be done with html:link, but I haven't used in a while. I'd just use JSTL... //below assumes your /readLogEntry is defined in an ActionMapping with .do ? Detail On 6/16/06, Kavita Mehta <[EMAIL PROTECTED]> wrote: Hi, I need to open a pop up using ..The code I am using is <%

Submission of collection of collection

2006-06-16 Thread Vijayraghav Nerella -X \(vraghav - eTouch Systems at Cisco\)
Hi, Has anyone tried to create a screen that shows input fields which are collection of collection? I would like to know how one can submit this page and get all information in the ActionForm as collection of collection. I tried lot of approaches and looked through the archives but haven't found

Re: [FRIDAY] No mercy

2006-06-16 Thread Frank W. Zammetti
Leon Rosenberg wrote: On 6/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: I don't like Soccer... It reminds me of high school too much: a bunch of guys running around like maniacs not scoring very much :) actually it's called Football! :-) only because some americans have another game whi

Re: Defining dyna forms on the fly

2006-06-16 Thread Wendy Smoak
On 6/16/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: > type="org.apache.struts.validator.LazyValidatorForm" /> OK, I'll give that a shot. Do lazy forms have the benefit of auto-population or do I need to copy the parameters from request to action form myself? I think the most complex I'l

Re: Defining dyna forms on the fly

2006-06-16 Thread Scott Van Wart
Wendy Smoak wrote: On 6/16/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: I'd like to define the structure of a DynaValidatorForm on the fly instead of through struts-config.xml. I had a look at FormBeanConfig and DynaActionFormClass (which says "Application developers never need to consult this

Re: [FRIDAY] No mercy

2006-06-16 Thread Leon Rosenberg
On 6/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: I don't like Soccer... It reminds me of high school too much: a bunch of guys running around like maniacs not scoring very much :) actually it's called Football! :-) only because some americans have another game which they also call foot

RE: [FRIDAY] No mercy

2006-06-16 Thread Frank W. Zammetti
I don't like Soccer... It reminds me of high school too much: a bunch of guys running around like maniacs not scoring very much :) Frank -Original Message- From: "Leon Rosenberg" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: 6/16/06 3:31 AM Subject: Re: [FRIDAY] No mercy On

html:image

2006-06-16 Thread fea jabi
in my form have . . in jsp --- Not sure if this has to be hidden. value="${copyVar}" styleId="copyImgID" onclick="setMethodName();"/> JS is function setMethodName() { var copyObj=doc

Re: Defining dyna forms on the fly

2006-06-16 Thread Niall Pemberton
On 6/16/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 6/16/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: > I'd like to define the structure of a DynaValidatorForm on the fly > instead of through struts-config.xml. I had a look at FormBeanConfig > and DynaActionFormClass (which says "Application

Re: Defining dyna forms on the fly

2006-06-16 Thread Wendy Smoak
On 6/16/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: I'd like to define the structure of a DynaValidatorForm on the fly instead of through struts-config.xml. I had a look at FormBeanConfig and DynaActionFormClass (which says "Application developers never need to consult this documentation" :),

RE: How to avoid IllegalStateException ?

2006-06-16 Thread Bharat Kumar Meda
Thanks a lot, Adam! Issue solved !!! Regards, Bharat -Original Message- From: Samere, Adam J [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:17 PM To: Struts Users Mailing List Subject: RE: How to avoid IllegalStateException ? Your logic needs to go: If(not authorized) Then

Defining dyna forms on the fly

2006-06-16 Thread Scott Van Wart
I'd like to define the structure of a DynaValidatorForm on the fly instead of through struts-config.xml. I had a look at FormBeanConfig and DynaActionFormClass (which says "Application developers never need to consult this documentation" :), but I'm not sure where to start. I'd like to do som

Re: PLZ help : urgent

2006-06-16 Thread Richard Yee
Look at the Set interface in java.lang.util -Richard Nikita Desai wrote: Hi, I have one problem in displaying value of form bean in jsp page. In my action class i am getting collection of formbean from database. Form bean contains division, heading, date as property. From database I can get

RE: How to avoid IllegalStateException ?

2006-06-16 Thread Samere, Adam J
Your logic needs to go: If(not authorized) Then redirect to 3rd party, do not call filterChain.doFilter Else do not redirect to 3rd party, call filterChain.doFilter -Adam -Original Message- From: Bharat Kumar Meda [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 9:43 AM To: Str

RE: How to avoid IllegalStateException ?

2006-06-16 Thread Bharat Kumar Meda
Thanks Adam, Indeed I was calling filterChain.doFilter(request, response) after redirect. I just tried commenting filterChain.doFilter. No IllegalStateException comes now and am redirected to third party url. But now my application is not working if authorization is successful; I am getting a bl

RE: How to avoid IllegalStateException ?

2006-06-16 Thread Samere, Adam J
You aren't calling FilterChain.doFilter(req,res) after sending the redirect are you? Are there any other filters ahead of this filter in the pipeline that use the response? Perhaps you could post the applicable code from your Filter and information regarding any other filters you are using. -Adam

How to avoid IllegalStateException ?

2006-06-16 Thread Bharat Kumar Meda
Hi, I have a struts based application and using Filters for authorization. If the user is not authorized, I have to redirect the user to a third party application. For that, in the doFilter method, I have added the redirection logic (I am using response.sendRedirect to take the user to the third

RE: newbie question on indexed properties and validation

2006-06-16 Thread Givler, Eric
I can provide a zip of the workspace I was doing for this if that would help. I just can't seem to get the multiple errors. Can the html:text tag determine that a row's value is wrong in a multi-record form bean and color it? How would it know if it's only getting back one error as opposed to

Problem whith Validation in javascript

2006-06-16 Thread José María Tristán
Hello: I have the next: and this validation is ok, when I press the submit button the function validateSeguimientoComercialForm it's work. But if i write this: Where finally I call at: document

[ANN] JAVAWUG BOF XXI / 19 June 2006 / 7pm / Firestation, Waterloo, London

2006-06-16 Thread Peter Pilgrim
Hi All I am very pleased to announce the nineteenth birds-of-a-feather of the JAVA Web User Group in London, UK. The venue is ``The Firestation'' restaurant and bar. The address is: 149 Waterloo Road, London, SE1 8SB, London http://maps.google.co.uk/maps?q=SE1+8SB&spn=0.005,0

Re: proper web.xml version for specification [SOLVED]

2006-06-16 Thread Leon Rosenberg
sorry, stupid stupid me: <%@ taglib uri="/tags/struts-bean.tld" prefix="bean" %> should have been <%@ taglib uri="/tags/struts-bean" prefix="bean" %> :-) Leon On 6/16/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: Hi, I'm trying to change the hard-wired references to the struts-taglibs in the j

The requested resource is not available error

2006-06-16 Thread Vanessa Danin
Hi, I am using Struts 1.2 with Tomcat 5.5.17 on Redhat Linux. My problem is that the following error message is displayed when I submit a request URI that is mapped to a Struts action: HTTP Status 404 - /exec/search.do description The requested resource (/exec/search.do) is not available. Ap

proper web.xml version for specification

2006-06-16 Thread Leon Rosenberg
Hi, I'm trying to change the hard-wired references to the struts-taglibs in the jsps to the maped taglibs: in the jsp: <%@ page language="java" contentType="text/html;charset=iso-8859-15" session="true" %><%@ taglib uri="/tags/struts-bean.tld" prefix="bean" %><%@ taglib uri="/tags/struts-logic.

pop up using

2006-06-16 Thread Kavita Mehta
Hi, I need to open a pop up using ..The code I am using is <% String tempStr = "javascript:popUpWindow('/readLogEntry','" + tmpStr + "',100,100,100,100)"; %> action="/LogFileSelectPage">Detail where tmpstr is a variable containing a String . My problem is that i dont want any action on th

Re:[OT] Problem using MyEclipse

2006-06-16 Thread starki78
Hi I don't know MyEclipse but from my feeling, you should check the struts-config. Is there this? An alternative could be to chekc the jar-Files. I don't know how also myeclipse could found 1.1 Nice greetings! Starky -- Initial Header --- >From : "Pankaj Gupta" [EMAIL PROT

RE: How to get index of the iterator in logic:iterator

2006-06-16 Thread Shasirekha Engala
<%= index1%> -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 1:41 PM To: Struts Users Mailing List Subject: How to get index of the iterator in logic:iterator Hi All, Can some one please suggest that how can I display the serial no. in my t

How to get index of the iterator in logic:iterator

2006-06-16 Thread Pankaj Gupta
Hi All, Can some one please suggest that how can I display the serial no. in my table using the index of logic:iterate tag. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

[OT] Problem using MyEclipse

2006-06-16 Thread Pankaj Gupta
Hi, I am using Myeclipse for building my struts application. The problem that I am facing is that when I try creating a Striuts 1.2 action, it gives an error that the project is 1.1 compatible and cannot allow 1.2 action class. Can you please suggest how can I change the project to 1.2 compli

Re: [FRIDAY] No mercy

2006-06-16 Thread Leon Rosenberg
On 6/16/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Hello everybody Tomorrow there will be the soccer match Italy vs U.S.A. I am sorry for all American friends but Italians will have no mercy for you :-P . Marcello Lippi and his team will show what "playing real soccer" means. VAI ITALIA

Cancel button sets the form value

2006-06-16 Thread deepali sharma
Hi I am using html:cancel button before clicking on html:cancel button i am changing the values in the form. But I want so that If the user clicks on html:cancel the values should not be set to the form Is there any solution for this -- cheers deepali

Re: Struts and RMI

2006-06-16 Thread Tom Ziemer
Hi there, my setup is similar - I have got a JSF frontend and a Spring controlled business logic that handles RMI (client and server) and exception handling (via AOP) declaratively. I'd suggest you take a look at Spring since it eases development, keeps your app. simpler and smaller and therefore

[FRIDAY] No mercy

2006-06-16 Thread Antonio Petrelli
Hello everybody Tomorrow there will be the soccer match Italy vs U.S.A. I am sorry for all American friends but Italians will have no mercy for you :-P . Marcello Lippi and his team will show what "playing real soccer" means. VAI ITALIAA Antonio P.S. I think that now you all are sure