nested:iterate and nested:hidden question

2005-05-11 Thread Liu, Benson
Hi,

I have a nested object hierarch as follows:

public Class Discrepancy {
String[] discrepancyIds;
}

public Class CashException {
Collection discrepancies; // collection of Discrepancy objects
}

In my JSP, I tried the following:

nested:iterate property=discrepancies 
nested:iterate id=discrepancyId property=discrepancyIds 
nested:hidden property=discrepancyId / !-- ??? --
/nested:iterate
/nested:iterate

How would I generate hidden tags for all of the nested Id fields?

I also tried:

Thanks in advance,
-Ben


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Validator Illegal Argument Exception - Digester problem?

2005-04-20 Thread Liu, Benson
Hi,

I'm working on a Struts/Tiles web app with Websphere 5.1.2 and Struts 1.2.4

I'm getting exceptions when trying to use the Validator framework.

After debugging, it almost seems as if the strut-config.xml is not being 
properly digested.

The property maps of the Plug-Ins are always null.

Thus, the ValidatorPlugIn does not know that I've specified a pathnames 
property.

Here's my struts-config.xml:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts 
Configuration 1.1//EN
   
http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;

struts-config

!-- Data Sources --
data-sources
/data-sources

!-- Form Beans --
form-beans
form-bean name=reconWorkqueueActionForm 
type=com.sscims.palms.gui.workqueue.recon.ReconWorkqueueActionForm
/form-bean
form-bean name=reconActionForm 
type=com.sscims.palms.gui.recon.ReconActionForm
/form-bean
form-bean name=progressActionForm 
type=com.sscims.palms.gui.recon.progress.ProgressActionForm
/form-bean
form-bean name=loginActionForm 
type=com.sscims.palms.gui.LoginActionForm
/form-bean
form-bean name=tmvDetailsActionForm 
type=com.sscims.palms.gui.recon.tmvdetails.TMVDetailsActionForm
/form-bean
form-bean name=analysisActionForm 
type=com.sscims.palms.gui.recon.analysis.AnalysisActionForm
/form-bean
form-bean name=cashActionForm 
type=com.sscims.palms.gui.recon.cash.CashActionForm
/form-bean
form-bean name=positionActionForm 
type=com.sscims.palms.gui.recon.cash.PositionActionForm
/form-bean
form-bean name=checklistActionForm 
type=com.sscims.palms.gui.recon.cash.ChecklistActionForm
/form-bean
/form-beans

!-- Global Exceptions --
global-exceptions
/global-exceptions

!-- Global Forwards --
global-forwards
!-- Default forward to Welcome action --
!-- Demonstrates using index.jsp to forward --
forward name=loginPage path=/showLogin.do redirect=true
/forward
/global-forwards

!-- Action Mappings --
action-mappings
!-- Default Welcome action --
!-- Forwards to Welcome.jsp --
action path=/PALMSBase type=com.sscims.palms.gui.PALMSBaseAction
/action
action path=/login type=com.sscims.palms.gui.LoginAction 
input=/pages/login/login.jsp name=loginActionForm scope=request 
validate=true
forward name=success path=/defaultPageDispatcher.do 
redirect=false
/forward
/action
action path=/logout type=com.sscims.palms.gui.LogoutAction 
forward name=success path=/showLogin.do redirect=true
/forward
/action
action path=/showLogin type=com.sscims.palms.gui.ShowLoginAction 
validate=false
forward name=success path=/pages/login/login.jsp 
/forward
/action
action path=/recon/showWorkqueue 
type=com.sscims.palms.gui.workqueue.recon.ShowReconWorkqueueAction
forward name=success path=/pages/workqueue/workqueue.jsp
/forward
/action
action path=/recon/showReconWorkqueue 
type=com.sscims.palms.gui.workqueue.recon.ShowReconWorkqueueAction 
name=reconWorkqueueActionForm scope=request 
input=/pages/workqueue/recon/recon.jsp
forward name=success path=/pages/workqueue/recon/recon.jsp
/forward
/action
action path=/recon/showProgress 
type=com.sscims.palms.gui.recon.progress.ShowProgressAction 
name=progressActionForm scope=request 
input=/pages/recon/progress/progress.jsp
forward name=success 
path=/pages/recon/progress/progress.jsp  
/forward
/action
action path=/recon/showTMVDetails 
type=com.sscims.palms.gui.recon.tmvdetails.ShowTMVDetailsAction 
name=tmvDetailsActionForm input=/pages/recon/tmvDetails/tmvDetails.jsp 
scope=request validate=false 
forward name=success 
path=/pages/recon/tmvDetails/tmvDetails.jsp
/forward
/action
action path=/recon/showAnalysis 
type=com.sscims.palms.gui.recon.analysis.ShowAnalysisAction 
name=analysisActionForm
forward name=success 
path=/pages/recon/analysis/analysis.jsp
/forward
/action
action path=/recon/showCash 
type=com.sscims.palms.gui.recon.cash.ShowCashAction name=cashActionForm 
scope=request input=/pages/recon/cash/cash.jsp
forward name=success path=/pages/recon/cash/cash.jsp  

/forward
/action
action path=/recon/showPosition 
type=com.sscims.palms.gui.recon.position.ShowPositionsAction
forward name=success 
path=/pages/recon/position/position.jsp  
/forward
/action

RE: Struts Validator Illegal Argument Exception - Digester problem?

2005-04-20 Thread Liu, Benson
I changed this, but am still getting the same behavior.

It looks as if the digester has validation set to false, but thanks anyways.

-Ben

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 3:17 PM
To: Struts Users Mailing List
Subject: Re: Struts Validator Illegal Argument Exception - Digester
problem?


Looks like you have a mistakes in your DTD declaration in the
struts-config.xml. Should be

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

Niall

- Original Message - 
From: Liu, Benson [EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 11:03 PM


I'm working on a Struts/Tiles web app with Websphere 5.1.2 and Struts 1.2.4

I'm getting exceptions when trying to use the Validator framework.

After debugging, it almost seems as if the strut-config.xml is not being
properly digested.

The property maps of the Plug-Ins are always null.

Thus, the ValidatorPlugIn does not know that I've specified a pathnames
property.

Here's my struts-config.xml:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN

http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]