Grid View

2001-09-26 Thread Dudley [EMAIL PROTECTED]

Hi all, 

Could u guys please help me out here. What we want to do is to be able to
display a list of taxpayers along with specific attributes that we can
either check or uncheck using checkboxes, then submit the form and update
these attributes. Has anyone got nay experience with Grid like views in
struts? Please HHEELLPP!!!
Thanx!!


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: logic:equal tag with more than one value?

2001-09-04 Thread Dudley [EMAIL PROTECTED]

yes, u just nest your logic tags, this is equivalent to AND
logic...
logic...
sdsdcsdcdo somethingsdcsdc
/logic...
/logic...

this is equivalent to OR, seperate single logic tags each testing for some
value/condition

logic...
sdsdcsdcdo somethingsdcsdc
/logic...

logic...
sdsdcsdcdo somethingsdcsdc
/logic...


-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 2:46 PM
To: struts-user
Subject: logic:equal tag with more than one value?


Hello, 

I could not find information on the following topic:

I would like to use the logic:equal tag, but instead of using just one value
to compare, I would like to use several values. 
Is this possible without the if-then-else-tag or switch-tag from Niall
Pemberton? Is there an other possibility to do this compare?

Thanks, Marcel


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Dudley [EMAIL PROTECTED]

i'm having the same problem , please help anyone?

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 9:32 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: STRANGE: session.invalidate() is not invalidating the session


Hi,

I noticed a peculiar thing. In my application I have a logout link on pages.
This link control goes to 'Logout' action where I  clean up the session
variables and then invalidate the session with:

session.invalidate();

and this class forwards it to Logout.jsp which just has the goodbye message.

I have noticed that at this point if I keep going back with the back key of
my browser to the point where jsessionid is part of the URL, i.e.,

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
453


and do the browser refresh here then I can go back into the application
without having to log in again. It is as if the session is still alive.

All the screens(incl. the above URL point) going backwards from Logout.jsp
do show the page expired message but doing refresh on the above URL screen
only brings back the application

Could someone please explain this to me? Has anyone else seen this?

BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0 too)

TIA.

-Nimmi


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Attribute value should be quoted

2001-08-30 Thread Dudley [EMAIL PROTECTED]

send a copy of your jsp, its usually a html tag just above or below the line
in question

-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 4:04 PM
To: Struts User
Subject: Attribute value should be quoted


I'm getting the following exception from a particular JSP:

org.apache.jasper.compiler.ParseException: .\AddCompany.jsp(58,36)
Attribute value should be quoted
at
org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:478)
at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:524)
at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:833)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

The line in question reads:

html:text size=40 property=description /

if the syntactical color is correct, my quotes are balanced.

It looks just like one from another page that works fine.  I do have the
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
at the top of the .JSP file.

I'm baffled.  Any ideas?

Thanks.
David Corbin


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Tokens?

2001-08-30 Thread Dudley [EMAIL PROTECTED]
Title: Message



one 
would typically use tokens as a means to prevent the user from submitting a page 
twice when it is undesirable to do so...if u would like more info and some 
examples let me know

  -Original Message-From: Steven Leija 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 29, 2001 
  5:24 PMTo: 'Struts 
  ([EMAIL PROTECTED])'Subject: 
  Tokens?
  Hello 
  All,
  
  I'm going over the 
  Action javadocs and came across several methods that use the keyword of 
  "token". The docs aren't very intuitive on what exactly defines a 
  token. 
  
  What do the token 
  methods do? 
  
  generateToken()
  resetToken()
  saveToken()
  isTokenValid()
  Have a good one, 
  Steven 
  

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Attribute value should be quoted

2001-08-30 Thread Dudley [EMAIL PROTECTED]

excellent

-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Attribute value should be quoted


Thanks.  I found it, and your assessment was correct.  Silly me for trusting
the compiler
- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:35 AM
Subject: RE: Attribute value should be quoted


 send a copy of your jsp, its usually a html tag just above or below the
line
 in question

 -Original Message-
 From: David Corbin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 4:04 PM
 To: Struts User
 Subject: Attribute value should be quoted


 I'm getting the following exception from a particular JSP:

 org.apache.jasper.compiler.ParseException: .\AddCompany.jsp(58,36)
 Attribute value should be quoted
 at
 org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:478)
 at

org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:524)
 at

org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:833)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
 at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
 at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 The line in question reads:

 html:text size=40 property=description /

 if the syntactical color is correct, my quotes are balanced.

 It looks just like one from another page that works fine.  I do have the
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 at the top of the .JSP file.

 I'm baffled.  Any ideas?

 Thanks.
 David Corbin


 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: looking for success stories

2001-08-23 Thread Dudley [EMAIL PROTECTED]

We've just finished phase1 of our system for the South African Revenue
Services, an online tax return system, check it out on www.ipayment.co.za
Unfortunately though, to get the full appreciation for the site one has to
register as a taxpayer, but basically we used Tomcat, Struts and JBoss. The
user is able to register and recieve and send their tax returns/payments
electronically

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: looking for success stories


Hello,

We are currently in the early design stages of an extremely high profile
application and I am considering using Struts.  I have used it in the past
for several very small applications with no more than a couple concurrent
users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I
must make a very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can
anyone point me in the direction of any articles or web pages or whatever
where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3
but will hopefully move to 4.0 before we roll it out) so I'd be especially
interested if anyone has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman  Co., its subsidiaries and affiliates (BBH).  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: use of logic-tags

2001-08-23 Thread Dudley [EMAIL PROTECTED]

i'm using Nials new tags, I've built them into my struts.jar file
what version of struts r u using. If u like I can send u my jar file and
tld, very easy to get working...let me know

-Original Message-
From: Heritier Arnaud [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 2:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: use of logic-tags


I think that you could implements rapidly somethink like :

tag:if condition=???Boolean expression???

tag:thenHere it's evaluate only if condition is truetag:then/

tag:elseHere it's evaluate only if condition is falsetag:else/

tag:if/

arno

-Message d'origine-
De: Marcel  Andres [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 23 aout 2001 13:55
A:  struts-user
Objet:  use of logic-tags

Hi all,

Two general questions:

1. Has someone an idea how to implement an ELSE with the logic-tags? Till 
now, I always made something like this (example):

logic:equal .

/logic:equal
logic:notEqual .

/logic:notEqual


2. Instead of using a string, which I can set to true or false, is 
there a possiblity to set a property to true or false (boolean) in the 
form,  and use it later on from a jsp page?


Thanks

Marcel


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Hi All, especially Nial Pemberton and Ted Husted - Re Logic Tags

2001-08-23 Thread Dudley [EMAIL PROTECTED]

Hi All, 

I just want to know wether Nials extra logic tags will ever be put into the
Struts build?

Thanx

Regards,
Dudley Butt

Software Analyst/Developer
Phone:   +27 (0)21 936 7517
Mobile:  +27 (0)83 327 5709
E-mail:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: include

2001-08-17 Thread Dudley [EMAIL PROTECTED]

you must have the following declarations on top of both jsp's

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

-Original Message-
From: Stefan Faist [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 10:35 AM
To: Struts
Subject: jsp:include


Hello all,
I want to include a jsp page in an other. But the struts-tags are not
rendered. This ist the code for the include:
jsp:include page=menue.jsp flush=true/

and this the code of the menue.jsp:
table
.
.
.
tr
td colspan=2 class=big align=left
html:img src=images/balken_r.gif width=8
height=28 border=0/
html:link styleClass=menue
forward=logoffnbsp;Logout/html:link
/td
/tr
/table

Why did the struts-tags not rendered?
Is there a way to do this?

Best regards,
Stefan

--
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: [EMAIL PROTECTED]
http://www.hmi-informatik.de


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Please help ...canonical path error

2001-08-06 Thread Dudley [EMAIL PROTECTED]

can anyone please help explain why i get this error? (maximize window to see
error)

 java.io.IOException: The filename, directory name, or volume label syntax
is incorrectat java.io.File.getCanonicalPath(File.java:437) at
org.apache.tomcat.util.FileUtil.safePath(FileUtil.java:184) at
org.apache.tomcat.core.Context.getRealPath(Context.java:794)at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.jav
a:191)  at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820
)   at
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl
.java:284)  at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
at
_0002fInstalmentsList_0002ejspInstalmentsList_jsp_6._jspService(_0002fInstal
mentsList_0002ejspInstalmentsList_jsp_6.java:102)   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)  at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1758)at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)  at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Re: Embedded bean/param values

2001-08-03 Thread Dudley [EMAIL PROTECTED]

Hi There

Excuse my ignorance, but what is JSPTL?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: RE: Re: Embedded bean/param values


 Using your example:
 
tag attribute=bean:message key=... /
 
 This could be done in JSPTL in the following way:
 
   jx:set var=msgbean:message key=... //jx:set
   tag attribute=$msg/

I missed that on my brief tour of the JSPTL docs. Yes,
that does solve the problem.

 Would that make you dance on your desk? ;-)

Hmm... not sure. Dancing is usually reserved for elegant
solutions. This works but still looks too much like
a hack. Most important, though, is that the problem at
least has a possible solution now. So it's certainly
worth a little jig. ;-)

Devon


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



BUILDING A URL FOR A REFRESH META TAG

2001-07-31 Thread Dudley [EMAIL PROTECTED]

can anyone please helpi want to redirect the user to another page, after
showing a page with a message, for a few seconds.
This is what I have

META HTTP-EQUIV=Refresh CONTENT=5; URL=/logon.jsp  This URL doesn't
work though!! Please help





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Checked radio buttons

2001-07-06 Thread Dudley [EMAIL PROTECTED]

can anyone supply a  good radio buttons example? preferably with more than 1
button..pLEASE!!

-Original Message-
From: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Checked radio buttons


A radio button will be cheked if its value is equals to the value of the
form property specified.

Jean-Noel

- Original Message -
From: Guus Holshuijsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 10:28 AM
Subject: Checked radio buttons


I'm trying to find out if it is possible to set a radiobutton to checked
using the HTML tag library. The documentation
does not describe it.

Regards,
Guus

Guus Holshuijsen, Videtur
Horsten 1, unit 1.18
5612 AX Eindhoven
The Netherlands
T:+31-40-2450214  F:+31-40-2939343  M:+31-6-25077204




RE: Checked radio buttons

2001-07-06 Thread Dudley [EMAIL PROTECTED]

thanx, appreciate the help

-Original Message-
From: flare [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 2:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Checked radio buttons


 can anyone supply a  good radio buttons example? preferably with more
 than 1 button..pLEASE!!
 
that's what I'm using

tr
 th align=right
 bean:message key=prompt.newsletter/
 /th
  td align=left colspan=5
  html:radio property=newsletter value=si /si
  html:radio property=newsletter value=no /no
  /td
/tr

inside the actionform just put

public class GenericForm extends ActionForm
{
protected String newsletter=si;
 
public void setNewsletter(String newsletter) 
{
...


and your radiobutton will be checked 

 Fla'



RE: Javascript Validation

2001-06-11 Thread Dudley [EMAIL PROTECTED]

GREAT! THATS EXACTLY HOW I FEEL, thanx, now i'm getting that good feeling
again that what i've done is ok...

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 2:04 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Javascript Validation




On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote:

 i just find it sometimes easier to move all validation off the jsp, and
 hence all java off the jsp. I think its just basically a personal
 preference. This way I'm making full use of the struts error handling
model
 and keep all my java in one place. There always seems to be more than one
 way to do things, just depends on what u need to do and whats your
 preference
 Thanx for all the help guys
 

In future versions of Struts we will be integrating the ability to create
client side validations.  In my mind, the purpose of these validations is
to improve the quality of the user interface -- in this case, by catching
errors that can be caught inside the page (such as required fields and
invalid number formats) without wasting the time needed to submit the form
and get the errors back.

However, it is important to understand that you should *ALWAYS*
perform these validations again on the server side.  Consider the
following cases:

* The client turns off JavaScript

* The client does not support JavaScript

* The user is actually typing a URL (with request parameters)
  directly into the location line of the browser.

Basically, never trust the client to do any validations.

Craig McClanahan



RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-11 Thread Dudley [EMAIL PROTECTED]

thanx, appreciate the suggestion

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 1:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Can anyone help with solving the BACK button problem, in
th e browser?




On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote:

 yes, but this is a form that is being filled in like a wizard type of
thing,
 i need the form to be session
 any ideas, for an alternative?
 

The alternative approach is to have *all* of the input fields for the
entire wizard included on every page -- but the ones you are not
displaying on the current page would be created with html:hidden instead
of html:text or whatever.

Craig



RE: Javascript Validation

2001-06-08 Thread Dudley [EMAIL PROTECTED]

i find using struts to do validation works way better than jscript. To date
i haven't used 1 line of jscript in the project.
this is what we do

have a look, this is one of our actionhandlers

/**
 * Used to update the return of a specific taxpayer
 * @author: Dudley Butt
 *
 */

public class Vat201ReturnActionHandlerUpdate implements IActionHandler{

   Vat201ReturnActionForm actionFormObject = null;
   HttpServletRequest aRequest = null;
   User user = null;
   String errMsg = ;
public ActionHandlerResponse executeAction(ActionMapping mapping,
ActionForm form, HttpServletRequest request){

System.out.println(In  + this.getClass());
actionFormObject = (Vat201ReturnActionForm)form;
aRequest = request;
ActionErrors errors = null;
if (actionFormObject.getRefreshOption()){
return new
ActionHandlerResponse(errors,mapping.findForward(success));
}
errors = doFieldValidation(); //this is what u want
if (errors != null) {
actionFormObject.setAction(Edit);
return new ActionHandlerResponse(errors, new
ActionForward(mapping.getInput()));
}
else {
errors = doReturnUpdate();
if (errors == null){

return new
ActionHandlerResponse(errors,mapping.findForward(success));
}
else {
actionFormObject.setAction(Edit);
return new ActionHandlerResponse(errors, new
ActionForward(mapping.getInput()));
}
}
//return new ActionHandlerResponse(errors,
mapping.findForward(mainMenu));
}

  public ActionErrors doReturnUpdate(){

ActionErrors errors = null;

try {

HttpSession session = null;
if (aRequest.getSession(false) == null){
  System.out.println(Session is null);
  session = (HttpSession)aRequest.getSession(true);
}
else{
  session = (HttpSession)aRequest.getSession(false);
}

user = new User();
user = (User)session.getAttribute(Constants.USER_KEY);
Object obj =
(Object)EJBUtil.getBeanHome(EFilerSessionHome.JNDI_NAME, user.getUsername(),
user.getPassword());
obj = (Object)EJBUtil.getBeanHome(TaxFormSessionHome.JNDI_NAME,
user.getUsername(), user.getPassword());
TaxFormSessionHome taxFormSessionHome =
(TaxFormSessionHome)PortableRemoteObject.narrow(obj,
TaxFormSessionHome.class);
TaxFormSession taxFormSession = taxFormSessionHome.create();

actionFormObject.getFormProperties();

FieldErrorList fldErr = null;
fldErr = actionFormObject.getTaxReturn().validate();
if (fldErr !=null  fldErr.size()  0) {
return errors = ErrorUtil.toActionErrors(fldErr);
}
actionFormObject.getTaxForm().calculate();
actionFormObject.setFormProperties();
taxFormSession.updateTaxForm(actionFormObject.getTaxForm());



}
catch (Exception ex) {
  ex.printStackTrace();
  errors = new ActionErrors();
  errors.add(taxPayerEdit, new ActionError(error.taxPayerEdit));
}
return errors;
  }
   public ActionErrors doFieldValidation(){
  ActionErrors errors = null;
  errMsg = ;
  errMsg = StringUtil.checkValue(1- Standard
Rate,actionFormObject.getStandardRate1(),false,15,1,0,0,new
Double(999.0), new Double(0.0));
  if (!errMsg.equals()) {
errors = new ActionErrors();
errors.add(standardRate1, new
ActionError(error.validateVat201, standardRate1 ,errMsg));
  }

  errMsg = ;
  errMsg = StringUtil.checkValue(1A- Standard
Rate,actionFormObject.getStandardRate1A(),false,15,1,0,0,new
Double(999.0), new Double(0.0));
  if (!errMsg.equals()) {
errors = new ActionErrors();
errors.add(standardRate1A, new
ActionError(error.validateVat201, standardRate1A ,errMsg));
  }

  errMsg = ;
  errMsg = StringUtil.checkValue(2- Zero
Rate,actionFormObject.getZeroRate2(),false,15,1,0,0,new
Double(999.0), new Double(0.0));
  if (!errMsg.equals()) {
errors = new ActionErrors();
errors.add(zeroRate2, new ActionError(error.validateVat201,
zeroRate2 ,errMsg));
  }

  errMsg = ;
  errMsg = StringUtil.checkValue(3- Exempt and not
Supplies,actionFormObject.getExemptAndNonSupplies3(),false,15,1,0,0,new
Double(999.0), new Double(0.0));
  if (!errMsg.equals()) {
errors = new ActionErrors();
errors.add(exemptAndNonSupplies3, new
ActionError(error.validateVat201, exemptAndNonSupplies3 ,errMsg));
  }

  errMsg = ;
  errMsg = StringUtil.checkValue(5- Accomodation Exceeding 45
days,actionFormObject.getAccomodationExceeding45Days(),false,15,1,0,0,new
Double(999.0), new Double(0.0));
  if (!errMsg.equals()) {
errors = new ActionErrors();
errors.add(accomodationExceeding45Days, new

RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Dudley [EMAIL PROTECTED]
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?



well, 
this will blow all your socks off.
I got 
something to work, and remaining in line with my "REDUCE THE JAVASCRIPT" 
policy
here 
is what i did...

I just 
plugged some code into my actionhandler to evaluate a state property on my 
actionform. If it was a certain state i either perform usual processing or just 
by pass the processing and show the JSP which gets rebuilt 
anyways...

great!!

 public ActionHandlerResponse 
executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest 
request){

 System.out.println("In " + 
this.getClass()); actionFormObject 
= (Vat201ReturnActionForm)form; 
aRequest = request; ActionErrors 
errors = null; if 
(actionFormObject.getRefreshOption()){ // IF THIS IS TRUE DONT ALLOW 
ANY PROCESSING JUST REBUILD JSP
// 
THIS boolean GETS SETAFTERFIRSTTIME PROCESSING 
 
return new 
ActionHandlerResponse(errors,mapping.findForward("success")); 
} errors = 
doFieldValidation(); if (errors != 
null) { 
actionFormObject.setAction("Edit"); 
return new ActionHandlerResponse(errors, new 
ActionForward(mapping.getInput())); 
} else 
{ errors = 
doReturnUpdate(); 
if (errors == null){

 
return new 
ActionHandlerResponse(errors,mapping.findForward("success")); 
} else 
{ 
actionFormObject.setAction("Edit"); 
return new ActionHandlerResponse(errors, new 
ActionForward(mapping.getInput())); 
} 
} //return new 
ActionHandlerResponse(errors, 
mapping.findForward("mainMenu")); 
}



  -Original Message-From: Spencer Smith 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 07, 2001 7:44 
  PMTo: [EMAIL PROTECTED]Subject: Re: Can 
  anyone help with solving the "BACK" button problem, in th e 
  browser?
  That won't work. I solved the problem using 
  javascript. Javascript doesn't cache like JSP pages does, so you can get 
  around this problem using javascript.
  
  If you want, I can send you the code I 
  use.
  
- Original Message - 
From: 
Thane Eisener 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, June 07, 2001 10:12 
AM
Subject: RE: Can anyone help with 
solving the "BACK" button problem, in th e browser?

Oops, I guess I should test before I post. It looks like 
newer browsers don't support this as a META tag only as a header.
I added the following to one of my action classes and the 
perform() method was called when I pressed 'Back': 
response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
Hope it helps, Thane 
-Original Message- From: 
Peter Alfors [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: 
Re: Can anyone help with solving the "BACK" button problem, in 
th e browser? 
Thane , 
I am using:  
META http-equiv="Expires" content="now" in 
my header, and my action is not re-executed when I use the browser 
back button. Is there another 
option I should be using? 
thanks,  
Pete 
Thane Eisener wrote: 
   I seem to recall a META tag called something like 
pragma-no-cache that  you can embed in your page 
which will force the page to reload (not  just 
display a snapshot). This should enable handling the situation in 
 scriptlets or your action class.   -Original Message- 
 From: Peter Alfors [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  
Subject: Re: Can anyone help with solving the "BACK" button problem, 
 in  the browser? 
  Depending on which 
browser you use, and the data on the page, the back  button  may cause (or ask) the page 
to reload.  However, some browsers (like IE) 
only display a snapshot of what the  last 
page  rendered to.  
Therefore, you cannot use scriptlets or the action class. 
However,  you are able  to kick-off javascript.  If you can 
gaurantee that your users will have javascript enabled, you  can write  a simple test to see if 
this page was already displayed to the user.  
You could  check a flag (hidden field) when the 
page loads. If the flag is true,  then 
use  the javascript to reload to your desired 
page.   HTH, 
 Pete   "Dudley Butt@i-Commerce" 
wrote:Please 
help, 
When the user pushes the back button, I want the page to redirect or 
 refresh   to a 
different page, please, any ideas?   
  Thanx guys and gals  
 Dudley 


RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Dudley [EMAIL PROTECTED]
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?



the 
solution i posted means that the user can push the BACK button, but we have full 
control via the actionhandler, as to how much processing we will allow the user 
to perform, simply just by evaluating some previously set 
formproperties
[Dudley Butt@i-Commerce]
-Original 
Message-From: Spencer Smith 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, June 07, 2001 7:44 
PMTo: [EMAIL PROTECTED]Subject: Re: Can 
anyone help with solving the "BACK" button problem, in th e 
browser?

  That won't work. I solved the problem using 
  javascript. Javascript doesn't cache like JSP pages does, so you can get 
  around this problem using javascript.
  
  If you want, I can send you the code I 
  use.
  
- Original Message - 
From: 
Thane Eisener 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, June 07, 2001 10:12 
AM
Subject: RE: Can anyone help with 
solving the "BACK" button problem, in th e browser?

Oops, I guess I should test before I post. It looks like 
newer browsers don't support this as a META tag only as a header.
I added the following to one of my action classes and the 
perform() method was called when I pressed 'Back': 
response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
Hope it helps, Thane 
-Original Message- From: 
Peter Alfors [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: 
Re: Can anyone help with solving the "BACK" button problem, in 
th e browser? 
Thane , 
I am using:  
META http-equiv="Expires" content="now" in 
my header, and my action is not re-executed when I use the browser 
back button. Is there another 
option I should be using? 
thanks,  
Pete 
Thane Eisener wrote: 
   I seem to recall a META tag called something like 
pragma-no-cache that  you can embed in your page 
which will force the page to reload (not  just 
display a snapshot). This should enable handling the situation in 
 scriptlets or your action class.   -Original Message- 
 From: Peter Alfors [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  
Subject: Re: Can anyone help with solving the "BACK" button problem, 
 in  the browser? 
  Depending on which 
browser you use, and the data on the page, the back  button  may cause (or ask) the page 
to reload.  However, some browsers (like IE) 
only display a snapshot of what the  last 
page  rendered to.  
Therefore, you cannot use scriptlets or the action class. 
However,  you are able  to kick-off javascript.  If you can 
gaurantee that your users will have javascript enabled, you  can write  a simple test to see if 
this page was already displayed to the user.  
You could  check a flag (hidden field) when the 
page loads. If the flag is true,  then 
use  the javascript to reload to your desired 
page.   HTH, 
 Pete   "Dudley Butt@i-Commerce" 
wrote:Please 
help, 
When the user pushes the back button, I want the page to redirect or 
 refresh   to a 
different page, please, any ideas?   
  Thanx guys and gals  
 Dudley 


RE: Javascript Validation

2001-06-08 Thread Dudley [EMAIL PROTECTED]

i just find it sometimes easier to move all validation off the jsp, and
hence all java off the jsp. I think its just basically a personal
preference. This way I'm making full use of the struts error handling model
and keep all my java in one place. There always seems to be more than one
way to do things, just depends on what u need to do and whats your
preference
Thanx for all the help guys

-Original Message-
From: Eelco van Kuik [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Javascript Validation


I don't understand why Dudley thought it was necessary to send java code,
but I think what you need you can find at:

http://javascript.internet.com/forms/

I don't have internet from this place, but know there are many javascript
examples there.

Regards,

Eelco



-Original Message-
From: Satish Khanzode [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 7:42 AM
To: [EMAIL PROTECTED]
Subject: Javascript Validation


Hi
Has anyone used client-side validations (using Javascript) in jsp pages
created Struts ? Pls help.
Thanks,
Satish Khanzode



RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Dudley [EMAIL PROTECTED]

yes, but this is a form that is being filled in like a wizard type of thing,
i need the form to be session
any ideas, for an alternative?


-Original Message-
From: William Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help with solving the BACK button problem, in
th e browser?


Just a comment... Looks like your method of checking the RefreshOption
property will only work if the scope of the ActionForm is session.
That's ok if one doesn't mind the use of resources.

- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 5:34 AM
Subject: RE: Can anyone help with solving the BACK button problem, in
th e browser?


 well, this will blow all your socks off.
 I got something to work, and remaining in line with my REDUCE THE
 JAVASCRIPT policy
 here is what i did...

 I just plugged some code into my actionhandler to evaluate a state
property
 on my actionform. If it was a certain state i either perform usual
 processing or just by pass the processing and show the JSP which gets
 rebuilt anyways...

 great!!

 public ActionHandlerResponse executeAction(ActionMapping mapping,
 ActionForm form, HttpServletRequest request){

 System.out.println(In  + this.getClass());
 actionFormObject = (Vat201ReturnActionForm)form;
 aRequest = request;
 ActionErrors errors = null;
 if (actionFormObject.getRefreshOption()){   // IF THIS IS TRUE
DONT
 ALLOW ANY PROCESSING JUST REBUILD JSP
 // THIS boolean GETS SET AFTER FIRST TIME PROCESSING
 return new
 ActionHandlerResponse(errors,mapping.findForward(success));
 }
 errors = doFieldValidation();
 if (errors != null) {
 actionFormObject.setAction(Edit);
 return new ActionHandlerResponse(errors, new
 ActionForward(mapping.getInput()));
 }
 else {
 errors = doReturnUpdate();
 if (errors == null){

 return new
 ActionHandlerResponse(errors,mapping.findForward(success));
 }
 else {
 actionFormObject.setAction(Edit);
 return new ActionHandlerResponse(errors, new
 ActionForward(mapping.getInput()));
 }
 }
 //return new ActionHandlerResponse(errors,
 mapping.findForward(mainMenu));
 }







RE: Javascript Validation

2001-06-08 Thread Dudley [EMAIL PROTECTED]



thanx 
, will check it out


  -Original Message-From: David Winterfeldt 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 4:56 
  PMTo: [EMAIL PROTECTED]Subject: RE: 
  Javascript Validation
  Don't forget that any client validations you do using JavaScript should be 
  duplicated on the server side because there is no guarantee the JavaScipt will 
  run. The client have have it turned off or the script could fail 
  depending on the browser. I have started work on a validation framework 
  that works in Struts and let's you sync up your server side validation with 
  your client side validation if you want to look at it. 
  http://home.earthlink.net/~dwinterfeldt 
  David 
   "Dudley Butt@i-Commerce" 
  [EMAIL PROTECTED] wrote: 
  i 
just find it sometimes easier to move all validation off the jsp, 
andhence all java off the jsp. I think its just basically a 
personalpreference. This way I'm making full use of the struts error 
handling modeland keep all my java in one place. There always seems to 
be more than oneway to do things, just depends on what u need to do and 
whats yourpreferenceThanx for all the help guys-Original 
Message-From: Eelco van Kuik [mailto:[EMAIL PROTECTED]]Sent: Friday, 
June 08, 2001 11:32 AMTo: '[EMAIL PROTECTED]'Subject: 
RE: Javascript ValidationI don't understand why Dudley thought 
it was necessary to send java code,but I think what you need you can 
find at:http://javascript.internet.com/forms/I don't have 
internet from this place, but know there are many javascriptexamples 
there.Regards,Eelco-Original 
Message-From: Satish Khanzode 
[mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 7:42 
AMTo: [EMAIL PROTECTED]Subject: Javascript 
ValidationHiHas anyone used client-side validations (using 
Javascript) in jsp pagescreated Struts ? Pls help.Thanks,Satish 
Khanzode
  
  
  Do You Yahoo!?Yahoo! Mail Personal 
  Address - Get email at your own domain with Yahoo! 
Mail.


Can anyone help with solving the BACK button problem, in the browser?

2001-06-07 Thread Dudley [EMAIL PROTECTED]

Please help,

When the user pushes the back button, I want the page to redirect or refresh
to a different page, please, any ideas?

Thanx guys and gals
Dudley



HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?

2001-06-07 Thread Dudley [EMAIL PROTECTED]

Does anyone have an example of this?



RE: Any Hashmap examples used in jsp page? - still not working

2001-06-05 Thread Dudley [EMAIL PROTECTED]

Hi all

Still not getting this hashmap thing write...here is what i'm trying to do.
I have a hashmap with a list of key-value pairs.

I don't want to go thru each element and list it, i just want to evaluate
the equivalent Java code : if (map.containsKey(LIC.LINE_TYPE)){ 
I want to find out whether the map has a certain key in it, without having
to loop the whole way. I'm trying to use a logic:equals tag

help!!!



-Original Message-
From: Steve A Drake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 3:17 AM
To: [EMAIL PROTECTED]
Subject: RE: Any Hashmap examples used in jsp page?


On Mon, 4 Jun 2001, Deadman, Hal wrote:

 I don't think what you are trying to do should be done in the JSP by a
 struts/custom tag.

 Maybe it's a dumb idea, but that's never stopped me before. =:]

 Why not copy the value objects in the HashMap to an array based on the
order
 of the keys in your String array? Then pass the array to the JSP instead
of
 the HashMap. If you need the keys and they aren't attributes of the value
 objects then you can pass the String array of keys to the JSP too.

 I used an ArrayList of String[]s and that worked fine. Thanks.



RE: Any Hashmap examples used in jsp page? - THANX!!!

2001-06-04 Thread Dudley [EMAIL PROTECTED]

Hi all, 

I just want to thank everyone for their great responses, I really appreciate
all the help.GREAT THANX

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 6:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Any Hashmap examples used in jsp page?


Steve,

This is how I used a HashMap in a jsp:

logic:iterate id=item name=user_list property=userList 

TR
TDbean:write name=item property=key//TD
TDbean:write name=item property=value//TD
/TR

/logic:iterate

getUserList() method in my user_list bean returns a HashMap.

Hope this helps.

-Nimmi


-Original Message-
From: Steve A Drake [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Any Hashmap examples used in jsp page?


 Hi Jon. I'm having a similar problem as Dudley with a HashMap. I tried
playing around with your example but couldn't get it to work within the
context of what I'm doing. Perhaps another example would help. For
example, I have a scriptlet that looks something like:

 fee.fie.fo.sql.ResultSetBean rsb =
(fee.fie.fo.sql.ResultSetBean) request.getAttribute(resultBean);
 java.util.HashMap hm = rsb.getProperties();
 String foobar = (String) hm.get(foobar);
 out.println(foobar =  + foobar);


So, the ResultSetBean contains a HashMap as a property. I get a reference
to the HashMap and then can extract a value with a key as input. Any ideas
on the syntax of doing this with bean tags? TIA.



On Fri, 1 Jun 2001, Jon.Ridgway wrote:

 Hi Dudley,

 See code sample below. The type in the iterate tag must be as shown, you
 will then need to use a bean define to put your 'value' into the page
 context and cast it to whatever type you have placed in your HashMap
value.

 Hope this helps,

 Jon.

 logic:iterate id=list name=gallery property=artifacts
 type=java.util.Map.Entry

 bean:define id=artifact name=list property=value
 type=net.itwa.model.artifact.IArtifact/

 bean:write name=artifact property=description/

 /logic:iterate


 -Original Message-
 From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]]
 Sent: 01 June 2001 10:34
 To: [EMAIL PROTECTED]
 Subject: Any Hashmap examples used in jsp page?

 Hi all,

 Could anyone please point me to where i can find some examples using
 hashmaps in a jsp with struts...
 Instead of using a whole bunch of logic equal tags all the time, i need a
 way to evaluate a collection, looking for a specific key value, then show
or
 hide the relevant input boxes on my jsp..
 any help...please!!!???


---
Steve Drake[EMAIL PROTECTED]
UCAR / COMET   (303) 497 - 8496
PO Box 3000
Boulder, CO  80307-3000



RE: Checkbox Arrays

2001-05-11 Thread Dudley [EMAIL PROTECTED]

yes please,, please share

-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Checkbox Arrays


I don't know if this is the right thread.  But I just got multibox working
in my app (including preservation of checkbox entries between forwards).
Let me share with you what I have to see if this helps:

in Jsp: (cleanSolutionAreaTypes in an Application-scoped Vector)
tr
td align=left
Solutions Area*
/td
td align=left
logic:iterate id=solutionAreaType name=cleanSolutionAreaTypes
html:multibox property=solutionAreaTypes
bean:write name=solutionAreaType property=id/
/html:multibox
bean:write name=solutionAreaType property=name/br
/logic:iterate
/td
/tr

in Form:
protected String[] solutionAreaTypes = new String[0];

public String[] getSolutionAreaTypes()
{
return solutionAreaTypes;
}

public void setSolutionAreaTypes(String[] solutionAreaTypes)
{
this.solutionAreaTypes = solutionAreaTypes;
}

What was causing me some exceptions was this.  I originally used another
application-scoped vector called solutionAreaTypes for other purposes
(like drop-down lists).  That Vector contains an entry that has a null ID
value (eg. name = --specify-- value=).  This was causing Struts to throw
a non-intuitive exception.  I then created another Vector without this entry
in it and everything seems to work fine now.  Of course I've only gotten it
to work about 15 minutes ago so I'll let you know later if it really works
;-)

- jeff

- Original Message -
From: Peter Alfors [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 2:01 PM
Subject: Re: Checkbox Arrays


 Try pulling the bean value out into a script variable.
 Taglibs cannot be nested within another taglib as an attribute.


 Tony Karas wrote:

  Yeah - I'm looking at that.  My problem now is how to get the value for
each
  checkbox.  My bean has an id property - so I have tried this kind of
  thing:
 
  logic:iterate id=retailer name=retailerForm property=retailers
  tr
  tdhtml:checkbox name=retailer property=delete
value=bean:write
  name=retailer property=id///td
  tdbean:write name=retailer property=id//td
  tdhtml:text name=retailer property=name//td
  /tr
  /logic:iterate
 
  But it doesn't like having the bean:write embedded there.  Am I missing
  something obvious?
 
  Many thanks
  Tony
 
  From: Peter Alfors [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Checkbox Arrays
  Date: Thu, 10 May 2001 11:09:18 -0500
  
  Im not sure how the ActionForm changes things, but without an
actionform
  your
  could do this
  
  Each checkbox can have the same name, but a different value.
  When the form is submitted, the checkboxes that have been checked are
in
  the
  request.
  You can use the request.getParameterValues(checkBoxName) to retrieve
a
  string
  array of the values for the checked boxes.
  
  HTH,
   Pete
  
  Tony Karas wrote:
  
Can anyone help with this?
   
I have an array of checkboxes in my ActionForm represented by
   
boolean[] delete;
   
and I have a setter function
   
public void setDelete( boolean[] values )
{
delete = values;
}
   
The problem is that I have only checkboxes that are checked get sent
  back -
so if one checkbox is checked all I get is an array of length 1.
  Therefore,
it is not possible for me to determine which checkbox has been
checked.
   
In the documentation it tells me to use reset() in ActionForm to
  initialise
the values - but this will only work with single checkboxes and not
  arrays.
   
I think I'm stuck.  Is there anyway I can determine which checkbox
has
  been
checked - maybe I can get the value to differ for each checkbox.
Will
  look
in to that.
   
Cheers
Tony
   peter.alfors.vcf 
 
 
_
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.




RE: Newbie Question: Servlet Exception - This is being answered by Dudley - giving something back to the user group for all the help i got - thanx all u guys

2001-05-10 Thread Dudley [EMAIL PROTECTED]

You need to make sure the html:form action=/logon  tag in you jsp page,
is declared in your struts config file ..here is an example of my struts
confignotice the action path=/logon  tag.You need one of these
for every different html:form action=  tag in you jsp page. 


?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;

struts-config


  !-- == Form Bean Definitions ===
--
  form-beans
form-bean name=loginForm
type=com.didata.itax.payment.web.actionform.LoginActionForm/
form-bean name=eFilerForm
type=com.didata.itax.payment.web.actionform.EFilerActionForm/
form-bean name=taxPayerForm
type=com.didata.itax.payment.web.actionform.TaxPayerActionForm/
  /form-beans
  !-- == Global Forward Definitions ==
--
  
  global-forwards
forward   name=logonForm path=/logon.jsp/
forward   name=mainMenu  path=/mainMenu.jsp/
forward   name=index path=/index.jsp/
forward   name=eFilerpath=/EFilerMenu.jsp/

  /global-forwards
  
  !-- == Action Mapping Definitions ==
--
  action-mappings 

   actionpath=/logon
   type=com.didata.itax.payment.web.action.LoginAction
   name=loginForm
   scope=request
   input=/logon.jsp
   forward name=failure path=/index.html/
   forward name=success path=/login.jsp/
   
   /action 
   actionpath=/eFilerAdd
   type=com.didata.itax.payment.web.action.EFilerAction
   name=eFilerForm
   scope=request
   input=/EFilerInput.jsp
   forward name=failure path=/EFilerInput.jsp/
   forward name=success path=/EFilerDone.jsp/
   
   /action
   
   action path=/eFilerEdit
   type=com.didata.itax.payment.web.action.EFilerAction
   name=eFilerForm
   scope=request
   forward name=failure path=/EFilerMenu.jsp/
   forward name=success path=/EFilerInput.jsp/
   
   /action   

   action path=/eFilerUpdateState
   type=com.didata.itax.payment.web.action.EFilerAction
   name=eFilerForm
   scope=request
   forward name=failure path=/EFilerList.jsp/
   forward name=success path=/EFilerDoneList.jsp/
   /action   


   action path=/eFilerDelete
   type=com.didata.itax.payment.web.action.EFilerAction
   name=eFilerForm
   scope=request
   forward name=failure path=/EFilerMenu.jsp/
   forward name=success path=/EFilerList.jsp/
   
   /action   

   
   actionpath=/eFiler
   type=com.didata.itax.payment.web.action.EFilerAction
   name=eFilerForm
   scope=request
   input=/EFilerMenu.jsp
   forward name=failure path=/index.jsp/
   forward name=success path=/EFilerList.jsp/

   /action


   
  /action-mappings

/struts-config

-Original Message-
From: Kevin Newman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 7:07 AM
To: Struts-User (E-mail)
Subject: Newbie Question: Servlet Exception


Hi All,

I've just loaded struts and am having a little problem.  I started by
placing the *.war files in webapps directory.  After copying xalan  xerces
jar files into the lib directory almost all of the example apps worked.

My next step was to setup the struts-blank then modify it to get a feel for
how strut works.  When I try to add logon to the blank app I get the message
below.  What does this mean?  Do I need to post more info?

Platform: Windows 2000
Servlet Engine: Tomcat 4.0 b3
Struts: 1.0-b1


Thanks,

Kevin Newman

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Cannot retrieve mapping for specified form
action path /logon
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:441)
at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:299)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:200)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431)
 Some deleted .

Root Cause:
javax.servlet.jsp.JspTagException: Cannot retrieve mapping for specified
form action path /logon
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:487)
at 

RE: Logic iterate problems

2001-05-10 Thread Dudley [EMAIL PROTECTED]



have u 
put that object into the session, before u get to the form

session.setAttribute("tabTest", 
VectorObject);

  -Original Message-From: Sylvain FAGNENT 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 10, 2001 2:57 
  PMTo: [EMAIL PROTECTED]Subject: Logic 
  iterate problems
  Hello,
  
  I have a Vector Object stored in my session with 
  the key "tabTest" this Vector contains "Client" Objetcs, Client classe 
  have a "name" property.
  
  I use this code in my JSP :
  
  logic:iterate id="client" name="tabTest" 
  scope="session" type="Client" bean:write 
  name="client" property="name"//logic:iterate
  
  This error is return :
  
  ...JSP Exception : Cannot find bean client in 
  scope null
  
  any help...Thanks
  
  Sylvain


RE: Logic iterate problems

2001-05-10 Thread Dudley [EMAIL PROTECTED]

try this

logic:iterate id=tabTest name=tabTest scope=session type=Client
 bean:write name=tabTest property=name/
 /logic:iterate

-Original Message-
From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Logic iterate problems


I tried to encapsulate all my tags with
html:form action=realAction
..
/html:form

But it still doesn't work !
- Original Message -
From: Firmin David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 3:22 PM
Subject: RE: Logic iterate problems


 I came across a similar problem not so long ago. What I'd done wrong was
try
 and access properties outside the html:form tags.
 Moving my tag calls inside the form tags fixed my problem at the time, but
I
 don't know if this applies in your case. It's worth double checking
 none-the-less.

 Regards
 David

 -Original Message-
 From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
 Sent: 10 May 2001 13:57
 To: [EMAIL PROTECTED]
 Subject: Logic iterate problems


 Hello,

 I have a Vector Object stored in my session with the key tabTest this
 Vector
 contains Client Objetcs, Client classe have a name property.

 I use this code in my JSP :

 logic:iterate id=client name=tabTest scope=session type=Client
 bean:write name=client property=name/
 /logic:iterate

 This error is return :

 ...JSP Exception : Cannot find bean client in scope null

 any help...Thanks

 Sylvain



 
 The information in this email is confidential and is intended solely
 for the addressee(s).
 Access to this email by anyone else is unauthorised. If you are not
 an intended recipient, you must not read, use or disseminate the
 information contained in the email.
 Any views expressed in this message are those of the individual
 sender, except where the sender specifically states them to be
 the views of Capco.

 http://www.capco.com
 ***





RE: Logic iterate problems

2001-05-10 Thread Dudley [EMAIL PROTECTED]

i'll send u some code that u can adapt for Vectors that we used quite
effectively with Arraylists, try it out...

we used like a wrapper class to put our collection object in as follows:


-
package com.didata.itax.payment.web.data;

import java.util.ArrayList;

/**
 * Title:
 * Description:
 * Copyright:Copyright (c) 2001
 * Company:
 * @author
 * @version 1.0
 */

public class EFilerList {
private ArrayList list = null;
private int size = 0;

public int getSize(){
return list.size();
}

public EFilerList() {
list = new ArrayList();
}
public EFilerList(ArrayList newList) {
list = newList;
}
public void addEFiler(EFiler efiler){
list.add(efiler);
}

public void removeEFiler(int eFilerID){
list.remove(eFilerID);
list.trimToSize();
}
public EFiler[] getEfilers(){//the iterate tags property=efilers will
call this method!!
EFiler[] eFilers = new EFiler[list.size()];
eFilers = (EFiler[])list.toArray(eFilers);
return eFilers;
}


public EFiler getEfiler(int eFilerID){
EFiler eFiler = new EFiler();
eFiler = (EFiler)list.get(eFilerID);
return eFiler;
}
}

in your actionform or wherever u build the vector, use the above class to
wrap your Vector, then, u push this list class above as your session object.
This class is juts a wrapper, so we can access the ArrayList or Vector in
our jsp. Once you've built EFilerList, put all the elements in it that u
need, add it to the session   session.setAttribute...etc


the jsp for the above example looks like this

logic:iterate id=eFilerList
name=eFilerList scope=session property=efilers
  tr
td align=center
  bean:write name=eFilerList
property=firstName filter=true/
/td
td align=center
  bean:write name=eFilerList
property=initials filter=true/
/td
td align=center
  bean:write name=eFilerList
property=lastName filter=true/
/td
td align=center
  bean:write name=eFilerList
property=idNumber/
/td
td align=center
  bean:write name=eFilerList
property=state/
/td   
td align=center
html:link
page=/eFilerEdit.do?action=Edit bean:message
key=eFilerList.edit//html:link
/td
td align=center
  html:checkbox name=eFilerList
property=state/
/td

  /tr
/logic:iterate


the eFiler class looks like this.


package com.didata.itax.payment.web.data;

import com.didata.itax.payment.web.actionform.*;

/**
 * Title:
 * Description:
 * Copyright:Copyright (c) 2001
 * Company:
 * @author
 * @version 1.0
 */

public class EFiler implements java.io.Serializable {

String firstName = null;
String initials = null;
String lastName = null;
String idNumber = null;
Boolean state = new Boolean(false);

public EFiler() {

}

public EFiler(EFilerActionForm eFilerForm) {
firstName = eFilerForm.getFirstName();
initials = eFilerForm.getInitials();
lastName = eFilerForm.getLastName();
idNumber = eFilerForm.getIdNumber();
state = eFilerForm.getState();
}

   public Boolean getState(){
 return state;
   }

   public void setState(Boolean _state){
  this.state = _state;
   }
public String getFirstName(){
return firstName;
}
public void setFirstName(String firstName){
this.firstName = firstName;
}
public String getInitials(){
return initials;
}
public void setInitials(String initials){
this.initials = initials;
}
public String getLastName(){
return lastName;
}
public void setLastName(String lastName){
this.lastName = lastName;
}
public String getIdNumber(){
return idNumber;
}
public void setIdNumber(String idNumber){
this.idNumber = idNumber;
}

}







-Original Message-
From: Sylvain 

FW: Design Error? Bean repopulation...

2001-05-10 Thread Dudley [EMAIL PROTECTED]


yes please inform us, i also want to know, i've also had to do it this way,
is there a better way anyone, please help!!! desperation is setting in
here! An example would help..anyone!??

-Original Message-
From: Tony Karas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 4:52 PM
To: Dudley Butt@i-Commerce
Cc: Struts User
Subject: Design Error?


Cheers Dudley,

I have a solution but I am not happy with it (and I now also have the
additional problem that checkboxes only get sent back if they are set so I
can't tell which checkbox has been checked! - Another one to sort out).

Do you know if this is a design error.  Basically, the problem is this (for
those who haven't been following the thread):

- I have a number of beans held in a Vector.
- In my ActionForm I have a two getters for this vector - one returns the
vector and one returns elements of the vector - so something like this:

public RetailerBean getRetailerBean( int index )
{
return (RetailerBean)retailers.elementAt( index );
}

and

public Vector getRetailers()
{
return retailers;
}

This works fine to populate using the following type of iterate tag:

logic:iterate id=retailer name=retailerForm property=retailers
tr
tdhtml:checkbox name=retailer property=delete//td
tdhtml:text name=retailer property=name//td
/a/td--
/tr
/logic:iterate

However, it doesn't repopulate the beans when I do a submit.  This is
because the generated html is something like:

input type=checkbox name=delete

rather than:

input type=checkbox name=retailer[0].delete
input type=checkbox name=retailer[1].delete

which would allow my beans to be repopulated.

The outcome of this is that I have to create arrays for all properties of my
beans in my ActionForm and take the values from there.  This seems like
bodge-heaven and not at all object-oriented.

If the form can be populated directly from the beans then surely it should
work the other way too.

Any struts developers want to comment?

Thanks for all your help.

Cheers
Tony


-Original Message-
From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 1:06 PM
To: 'Tony Karas'
Subject: RE: please help...iteration question...what i Have is...GOT IT
WORKING!! LET ME kNOW IF U GOT IT WORKING


ya sorry about that the one is the actionform attribute and the other is an
attribute of my TaxPayerData[] bean.

-Original Message-
From: Tony Karas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 1:46 PM
To: Dudley Butt@i-Commerce
Subject: RE: please help...iteration question...what i Have is...GOT IT
WORKING!! LET ME kNOW IF U GOT IT WORKING


OK - I see what you're doing - got a little confused with taxpayerName and
taxPayerName but worked it out.  I'm going to give it a go - see what
happens.  Will let you know

-Original Message-
From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 12:29 PM
To: 'Tony Karas'
Subject: RE: please help...iteration question...what i Have is...GOT IT
WORKING!! LET ME kNOW IF U GOT IT WORKING


have a look at this multibox code i see someone also sent to u, i think that
would also work..same idea..just using a Long array

-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 10:30 PM
To: [EMAIL PROTECTED]
Subject: RE: Posting Collections


I think I am doing the same thing that you want to do using the
html:multibox. When the form is submitted you get an array of the ids that
are checked and then you can go delete them.

in the jsp form (where restaurant id is a key for the item being deleted):
logic:iterate id=restaurant name=favoriterestaurants
...
html:multibox property=favoriteRestaurantRemoveList
bean:write property=restaurantId name=restaurant/
/html:multibox
...
/logic:iterate


in the form class:
private Long favoriteRestaurantRemoveList[] = new Long[0];

public Long[] getFavoriteRestaurantRemoveList() {
return (this.favoriteRestaurantRemoveList);
}

public void setFavoriteRestaurantRemoveList(Long
favoriteRestaurantRemoveList[]) {
this.favoriteRestaurantRemoveList = favoriteRestaurantRemoveList;
}

I am not sure if initializing the array to new Long[0] is necessary,
probably not.


-Original Message-
From: Tony Karas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 1:13 PM
To: Dudley Butt@i-Commerce
Subject: RE: please help...iteration question...what i Have is...GOT IT
WORKING!! LET ME kNOW IF U GOT IT WORKING


Thanks very much - I'll have a look and get back to you asap.

-Original Message-
From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 11:49 AM
To: 'Tony Karas'
Subject: RE: please help...iteration question...what i Have is...GOT IT
WORKING!! LET ME kNOW IF U GOT IT WORKING


i may have a solution for you, let me send u my one 

does anyone please have a working example of how to...

2001-05-09 Thread Dudley [EMAIL PROTECTED]

use an ArrayList in an iterate tag, to display a series of input boxes,
which will then be able to set the actionforms arraylist property, once the
form is submitted? 
thanx



RE: javascript and struts

2001-05-09 Thread Dudley [EMAIL PROTECTED]

and if data was a collection of employees would you be able to do this?
document.form[data.employee[0].emplyeeName].value

-Original Message-
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 8:12 PM
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: RE: javascript and struts





Thanks! That worked.



 

 

   To:
'[EMAIL PROTECTED]'
Jason Chaffee  [EMAIL PROTECTED]

JasonChaffee@mcc: (bcc: Will Spies/Towers
Perrin)   
etatv.com Subject: RE: javascript and
struts
 

05/08/01 12:47

PM

Please respond

to struts-user

 

 




Try thg following


document.form[data.emplyeeName].value


-Original Message-
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:39 AM
To: [EMAIL PROTECTED]
Subject: javascript and struts






I have some HTML tags that have struts form data associated with them of
the form input name=data.value. For example: input name
=data.employeeName/input. I seem to be having difficult referencing
these in Javascript due to the .'. Javascript thinks employeeName is a
property of data rather than both being one single variable name. Anyone
else run into this or am I barking up the wrong tree?









please help...this doesn't want to display the exception, is this correct?

2001-05-09 Thread Dudley [EMAIL PROTECTED]

} catch (Exception ex) {
  ex.printStackTrace();
  errors = new ActionErrors();
  errors.add(beanErr,new ActionError(ex.toString()));
}   




RE: please help...this doesn't want to display the exception, is this correct?

2001-05-09 Thread Dudley [EMAIL PROTECTED]

thank-you so much Great I appreciate it!!

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 1:19 PM
To: [EMAIL PROTECTED]
Subject: Re: please help...this doesn't want to display the exception,
is this correct?


ActionError constructor wants a message key. not just a string.
you could do:

errors.add(beanErr,new ActionError(general.exception,ex.toString()));

and then have a general.exception in youre resouce bundle:
general.exception=An exception occured: {0}

johan

- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 10:55 AM
Subject: please help...this doesn't want to display the exception, is this
correct?


 } catch (Exception ex) {
   ex.printStackTrace();
   errors = new ActionErrors();
   errors.add(beanErr,new ActionError(ex.toString()));
 }




please help...iteration question...what i Have is...

2001-05-09 Thread Dudley [EMAIL PROTECTED]

I'm trying to iterate thru an array of objects in my
actionform(taxPayerForm)
here is my jsp...
logic:iterate id=taxPayerForm
scope=request property=taxPayers
  tr
td align=center
  bean:write name=taxPayerForm
property=taxpayerName filter=true/
/td
td align=center
  bean:write name=taxPayerForm
property=eMail filter=true/
/td
td align=center
html:link
page=/taxPayerEdit.do?action=Edit bean:message
key=taxPayerList.edit//html:link
/td

  /tr
/logic:iterate

here is my actionform...


package com.didata.itax.payment.web.actionform;
/**
 *  Form for Taxpayer data for front-end
 */
import javax.servlet.http.HttpServletRequest;
import java.util.*;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.didata.itax.payment.services.Registration.*;
import com.didata.itax.payment.taxpayer.*;
import com.didata.itax.payment.efiler.*;
import com.didata.itax.payment.taxtype.TaxTypeData;
import com.didata.itax.payment.web.util.Constants;

public class TaxPayerActionForm extends FormBase {

private String sectionId = null;
private String taxPayerName = null;
private String taxPayerEmail = null;
private String filerEmailAddress = null;
private Boolean state = new Boolean(false);
private String tradingName1 = null;
private String tradingName2 = null;

private String payeReferenceNumber = null;
private String sdlReferenceNumber = null;
private String vatReferenceNumber = null;
private String personalTaxReferenceNumber = null;
private String[] taxTypes = null;
private ArrayList list = new ArrayList();
private int size = 0;
   



public String getTradingName1(){
return tradingName1;
}

public int getSize(){
return list.size();
}


public TaxPayerData[] getTaxPayers(){
TaxPayerData[] taxPayers = new TaxPayerData[list.size()];
taxPayers = (TaxPayerData[])list.toArray(taxPayers);
return taxPayers;
}



}






Does anyne please have an example of using a multibox?

2001-05-07 Thread Dudley [EMAIL PROTECTED]

I have an iteration with each row displaying a checkbox, being set to the
underlying bean property in the iteration. Each checkbox needs to have a
different name, and this is not happening...they all have the same name, i
need some way of individually referencing the checkboxes..please help!!! 



pleaseeee help!!! please help guys....is it possible to update properties of an object in an iteration?

2001-05-04 Thread Dudley [EMAIL PROTECTED]



-Original Message-
From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 2:47 PM
To: [EMAIL PROTECTED]
Subject: very important please help guysis it possible to update
prope rties of an object in an iteration?


pleeaaasssee help

What i have is this...

html:form action=/eFilerAdd
center

.
.
.   

tr
th align=center 
  bean:message
key=eFiler.firstName/
/th
th align=center 
  bean:message
key=eFiler.initials/
/th
th align=center 
  bean:message
key=eFiler.lastName/
/th
th align=center 
  bean:message
key=eFiler.idNumber/
/th
th align=center 
  bean:message key=eFiler.state/
/th

th align=center 
  nbsp;
/th
th align=center 
html:link
page=/eFilerUpdateState.do?action=UpdateState bean:message
key=eFilerList.activate.deactivate//html:link
/th

/tr

logic:iterate id=eFilerList
name=eFilerList scope=request property=efilers
  tr
td align=center
  bean:write name=eFilerList
property=firstName filter=true/
/td
td align=center
  bean:write name=eFilerList
property=initials filter=true/
/td
td align=center
  bean:write name=eFilerList
property=lastName filter=true/
/td
td align=center
  bean:write name=eFilerList
property=idNumber/
/td
td align=center
  bean:write name=eFilerList
property=state/
/td   
td align=center
html:link
page=/eFilerEdit.do?action=Edit bean:message
key=eFilerList.edit//html:link
/td
td align=center
  html:checkbox name=eFilerList
property=state/
/td

  /tr
/logic:iterate
 
/table
I want ot update the state property using the checkbox html:checkbox
name=eFilerList property=state/. does anyone have any suggestions?
Pleeeaaaeee!!



URL for struts archive?

2001-05-04 Thread Dudley [EMAIL PROTECTED]

Can someone please give me the URL to go search thru all the struts
archives?
thanx



very important please help guys....is it possible to update properties of an object in an iteration?

2001-05-03 Thread Dudley [EMAIL PROTECTED]

pleeaaasssee help

What i have is this...

html:form action=/eFilerAdd
center

.
.
.   

tr
th align=center 
  bean:message
key=eFiler.firstName/
/th
th align=center 
  bean:message
key=eFiler.initials/
/th
th align=center 
  bean:message
key=eFiler.lastName/
/th
th align=center 
  bean:message
key=eFiler.idNumber/
/th
th align=center 
  bean:message key=eFiler.state/
/th

th align=center 
  nbsp;
/th
th align=center 
html:link
page=/eFilerUpdateState.do?action=UpdateState bean:message
key=eFilerList.activate.deactivate//html:link
/th

/tr

logic:iterate id=eFilerList
name=eFilerList scope=request property=efilers
  tr
td align=center
  bean:write name=eFilerList
property=firstName filter=true/
/td
td align=center
  bean:write name=eFilerList
property=initials filter=true/
/td
td align=center
  bean:write name=eFilerList
property=lastName filter=true/
/td
td align=center
  bean:write name=eFilerList
property=idNumber/
/td
td align=center
  bean:write name=eFilerList
property=state/
/td   
td align=center
html:link
page=/eFilerEdit.do?action=Edit bean:message
key=eFilerList.edit//html:link
/td
td align=center
  html:checkbox name=eFilerList
property=state/
/td

  /tr
/logic:iterate
 
/table
I want ot update the state property using the checkbox html:checkbox
name=eFilerList property=state/. does anyone have any suggestions?
Pleeeaaaeee!!




pleae help..submit button only allows 1 parameter to be sent with the request

2001-05-02 Thread Dudley [EMAIL PROTECTED]

I want to be able to send more than one parameter when the submit button is
clicked.
currently i have this...

html:submit property=action value=Add  --- I want more
parameters to be sentis this possible?
bean:message key=button.submit/
/html:submit

thanx




help..bean write not working..html:form action=bean:write name='formAction' /

2001-04-26 Thread Dudley [EMAIL PROTECTED]

hi all, 

i cant seem to get this bean write tag to work, any ideas?

logic:notPresent name=user 
bean:define id=formAction value=/eFilerAddNoUser scope=request /
/logic:notPresent
logic:present name=user 
bean:define id=formAction value=/eFilerAdd scope=request /
/logic:present

html:html
html:errors/
headhtml:base/
link rel=stylesheet href=bean:message key=all.stylesheet/
type=text/css
/head
body

html:form action=bean:write name=\formAction\ /bean:write 
.
..
.

thanx