Re: Nested tags not working with session-scope form

2004-01-02 Thread Arron Bates

If you can simply switch nested for html or logic, then the markup isn't
specifically made for the nested tags. ie: you've probably used the name
attribute etc which the nested tags don't need.

If you're able to use html or logic, then you may as well use the original
tags. If you want to take advantage of the nested tags, you'll have to look at
their specific needs in the documentation, or the tutorials at
http://keyboardmonkey.com/next


All the best.

Arron.




 Hello,
  
 I have a session scope ActionForm. I have a need to use the nested 
 tag library to iterator over some nested beans in the form. However, 
 any use of a nested:text, nested:write, nested:iterate, etc.,
  will not output the properties of the ActionForm. This results in a 
 blank HTML form in my browser.
  
 If I changed the nested prefix to the original html, logic, etc. Then
 everything outputs fine in the HTML.  
  
 I am wondering if anyone has come across this problem before, and knows
 what I might be doing wrong or something I can check.  To check my
 sanity, i wrote a simple web app using session-scoped action forms 
 and nested tags, and it worked fine. I just can't figure out why it 
 works in one web-app and not the other.
  
 Thanks,
 Joe




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



Re: Nested tags always break

2003-12-03 Thread Arron Bates
Rick,

You still having this problem?... can I see the tag markup that's causing the
problems?...

If the root tag is picking up the name of a valid bean, and the iterate tag
has it's property attribute properly set, then I assure you that you don't
need the name attribute in the write tag.

I'm hoping that there's more to the iterate tag than just the Id. to get
foo[i].bar you'd need...

nested:root name=someBean
  nested:iterate property=foo
nested:write property=bar /
  /nested:write
/nested:root

I haven't really used the id attribute in struts apps since I built the
original tags a couple of years ago. So I'm no absolute authority on whether
or not the base tags are managing it correctly or what... :P


Arron.


PS: Love the nested tags always break subject, too.


 I have a situation where I can use nested:root name=ac, 
 nested:iterate id=foo, and then *must* use nested:write 
 name=foo property=bar, rather than omitting the name attribute. 
 If I do, I get an exception No getter method for property 
 foo[0].bar of bean ac.
 
 Now, this code was working fine, but I made some changes to the bean 
 (I'm using torque). I know it's not (or at least, it shouldn't be) a 
 problem in the beans, becuase of the fact that it works fine if I 
 include the name attribute pointing to the id of the enclosing 
 iterate tag.
 
 Also, why is it that I can get the struts-digest posting but can't 
 post to the struts list?
 
 -- 
 Rick



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



Re: Nested tags always break

2003-12-03 Thread Rick Mann
On Dec 3, 2003, at 21:05, [EMAIL PROTECTED] 
wrote:

Rick,

You still having this problem?... can I see the tag markup that's 
causing the
problems?...
I still am. I sent you the markup directly under separate cover.

If the root tag is picking up the name of a valid bean, and the 
iterate tag
has it's property attribute properly set, then I assure you that you 
don't
need the name attribute in the write tag.

I'm hoping that there's more to the iterate tag than just the Id. to 
get
foo[i].bar you'd need...

nested:root name=someBean
  nested:iterate property=foo
nested:write property=bar /
  /nested:write
/nested:root
I haven't really used the id attribute in struts apps since I built the
original tags a couple of years ago. So I'm no absolute authority on 
whether
or not the base tags are managing it correctly or what... :P

Arron.

PS: Love the nested tags always break subject, too.
Heh. Not sure if you really love that or not ;-). What I meant to say 
is I have a reproducible case, and it happens on a regular basis (as 
I create new JSP code that uses the nested tags, sometimes they work 
and sometimes they don't).

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


Re: Nested tags : Desperately trying to get recursion to work

2003-11-11 Thread Arron Bates
Jyothi,

You still having problems with this?

Sorry that I haven't gotten back to you, but work's been quite busy and not
enough hours inbetween.

Just let me know.


Arron.

PS: you'll get my attention faster with this email address. :)



 Hi,
 
  I am very new to nested tags and  I am trying to display a tree 
 using nested tags.  I followed Arron's MonkeyTree example.  I have 
 been getting 'javax.servlet.ServletException: Cannot find bean  in 
 any scope'  exception
 (I have pasted exception trace at the end of this email) .  I cannot 
 seem to understand why it's not able to find the bean.  Following is 
 my main jsp files and struts-config.xml  ..  I was able to run 
 Arron's MonkeyTree example successfully. MonkeyTreeBean class 
 populates 'monkeyTree' (TreeNode) in it's construtor. My Form bean 
 does not populate the tree in construtor.  Instead it populates the 
 tree in the action class and then forwards to the Tree.jsp.
 
 Can somebody suggest a pointer on how to solve this problem?
 
 Thanks in advance,
 
 Jyothi
 
 Tree.jsp
 PS:  It has a base jsp page which inserts nested:form 
 
template:put name=contents
  nested:write name=deviceObjectsOMADMTreeForm 
 property=treeName /hrnested:nest property=omaDmTree 
jsp:include page=omadmNode.jsp //nested:nest
 
   /template:put
 
 omadmNode.jsp
 
 [EMAIL PROTECTED] contentType=text/html%
 %@ taglib uri=/WEB-INF/tld/struts-nested.tld prefix=nested %
 
 nested:root
 
 nested:write property=objName /
 
 /nested:root
 
 struts-config.xml
 
 form-bean name=deviceObjectsOMADMTreeForm
 type=com.openwave.opm.ui.configuration.deviceobjects.TreeForm/
 .
 .
 .
 
  action   path=/configuration.deviceObjects.omadmTree
   type=com.openwave.opm.ui.configuration.deviceobjects.HSParamAction
   name=deviceObjectsOMADMTreeForm
   parameter=action
   scope=session
   validate=false
   forward name=omadmList
 path=/scripts/configuration/deviceobjects/omadmList.jsp/
  /action
 
 Exception
 javax.servlet.ServletException: Cannot find bean  in any scope
   at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
 Source)
   at org.apache.jsp.omadmNode$jsp._jspService(omadmNode$jsp.java:370)
   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
 Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown 
 Source)   at org.apache.jasper.servlet.JspServlet.service(Unknown 
 Source)   at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)  at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(Unknown 
 Source)   at 
 org.apache.catalina.core.ApplicationDispatcher.include(Unknown 
 Source)   at 
 org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source)   
 at org.apache.jsp.omadmList$jsp._jspService(omadmList$jsp.java:498)   
 at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
 Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown 
 Source)   at org.apache.jasper.servlet.JspServlet.service(Unknown 
 Source)   at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)  at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown 
 Source)   at 
 org.apache.catalina.core.ApplicationDispatcher.forward(Unknown 
 Source)   at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
 69)
   at
 com.openwave.cdp.ui.CdpRequestProcessor.doForward(CdpRequestProcessor.java:7
 6)
   at
 org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
 sor.java:455)
   at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at
com.openwave.cdp.ui.CdpRequestProcessor.process(CdpRequestProcessor.java:85) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) 
at 

Re: Nested tags : Desperately trying to get recursion to work

2003-11-04 Thread Max Cooper
I don't know anything about the nested tags, but it seems very unlikely that
this code, as a complete JSP, could work:

%@ taglib uri=/WEB-INF/tld/struts-nested.tld prefix=nested %
nested:root
   nested:write property=objName /
/nested:root

What bean is objName a property of? This seems to correspond with the
error message you are getting since the error message does not have a name
of the bean it was looking for.

-Max

- Original Message - 
From: Jyothi Panduranga [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 6:31 PM
Subject: Nested tags : Desperately trying to get recursion to work


 Hi,

  I am very new to nested tags and  I am trying to display a tree using
 nested tags.  I followed Arron's MonkeyTree example.  I have been getting
 'javax.servlet.ServletException: Cannot find bean  in any scope'
exception
 (I have pasted exception trace at the end of this email) .  I cannot seem
to
 understand why it's not able to find the bean.  Following is my main jsp
 files and struts-config.xml  ..
   I was able to run Arron's MonkeyTree example successfully.
 MonkeyTreeBean class populates 'monkeyTree' (TreeNode) in it's construtor.
 My Form bean does not populate the tree in construtor.  Instead it
populates
 the tree in the action class and then forwards to the Tree.jsp.

 Can somebody suggest a pointer on how to solve this problem?

 Thanks in advance,

 Jyothi


 Tree.jsp
 PS:  It has a base jsp page which inserts nested:form 

template:put name=contents
  nested:write name=deviceObjectsOMADMTreeForm property=treeName
/
 hr
 nested:nest property=omaDmTree 
jsp:include page=omadmNode.jsp /
 /nested:nest

   /template:put

 omadmNode.jsp

 [EMAIL PROTECTED] contentType=text/html%
 %@ taglib uri=/WEB-INF/tld/struts-nested.tld prefix=nested %

 nested:root

 nested:write property=objName /

 /nested:root


 struts-config.xml

 form-bean name=deviceObjectsOMADMTreeForm
 type=com.openwave.opm.ui.configuration.deviceobjects.TreeForm/
 .
 .
 .

  action   path=/configuration.deviceObjects.omadmTree
   type=com.openwave.opm.ui.configuration.deviceobjects.HSParamAction
   name=deviceObjectsOMADMTreeForm
   parameter=action
   scope=session
   validate=false
   forward name=omadmList
 path=/scripts/configuration/deviceobjects/omadmList.jsp/
  /action

 Exception
 javax.servlet.ServletException: Cannot find bean  in any scope
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
 Source)
 at org.apache.jsp.omadmNode$jsp._jspService(omadmNode$jsp.java:370)
 at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
 Source)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
 at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
 at org.apache.catalina.core.ApplicationDispatcher.doInclude(Unknown
Source)
 at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source)
 at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source)
 at org.apache.jsp.omadmList$jsp._jspService(omadmList$jsp.java:498)
 at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
 Source)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
 at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown
Source)
 at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
 at

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
 69)
 at

com.openwave.cdp.ui.CdpRequestProcessor.doForward(CdpRequestProcessor.java:7
 6)
 at

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
 sor.java:455)
 at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 at

com.openwave.cdp.ui.CdpRequestProcessor.process(CdpRequestProcessor.java:85)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
 Source)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
 at 

RE: Nested Tags

2003-08-27 Thread Arron Bates
The nested tags are simply different. The advantages of using them is not
replicated in the JSTL/EL or any other tag system.

The nested tags directly extend the Struts html, bean and logic tag library
and add the nested context. Because they are different, they have never been
on the recommendation list of many developers on this list, but those that do
use them think that they're the duck's nuts because it is quicker and easier
to develop more complex views.

All in all, you'd have to take a look and see if it's a good fit for you
personally. Take a walk through the primer here...

   http://keyboardmonkey.com/next

...if all you want to do is stay in vogue technology, you'll probably turn to
the JSTL.


Arron.


 Thank you all, I just wanted to see if there are going to be phased out
 in favor of something else... like in the case of bean and logic
 tags in favor of JSTL ones.
 
 Thanks again,
 Erez
 
 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 3:43 PM
 To: Struts Users Mailing List
 Subject: RE: Nested Tags
 
 The power of nested tags cannot be understated. Id advise you to use
 them
 (where applicable) for they are really useful, they make simple a lot of
 things that would otherwise be a nightmare to implement.
 
 -Original Message-
 From: Erez Efrati [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 26 August 2003 22:12
 To: 'Struts Users Mailing List'
 Subject: Nested Tags
 
 Hi all,
 
 What is the status with nested:xxx tags? Should I use them or should I
 avoid using them?
 
 Thanks,
 Erez
 
 -
 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]
 
 -
 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]



RE: nested tags

2003-08-27 Thread Edgar P Dollin
With 1.1 they work fine.

My understanding is that all the tags are in a static state but should
continue to function as is.

Edgar

 -Original Message-
 From: Erez Efrati [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 7:59 AM
 To: 'Struts Users Mailing List'
 Subject: nested tags
 
 
 Hi all, 
 
 What is the status with nested:xxx tags? Should I use them 
 or should I avoid using them?
 
 Thanks,
 Erez
 
 
 

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



Re: Nested Tags

2003-08-27 Thread Jeff Kyser
nope.

On Wednesday, August 27, 2003, at 09:44  AM, Tarek M. Nabil wrote:

Hi everyone,

I have a problem using a Tag for the property of another tag. Isn't  
that possible?

Example:

tempArray[0] = bean:write name=data property=bean:message  
key=\column.client.property\/ /;

When I do that, I get the following error:

ERROR 2003-08-27 17:35:06,546 standish.charm.web.ErrorAction - Error  
details and stack trace:
javax.servlet.ServletException: No getter method for property  
bean:message key=column.client.property/ of bean data
	at  
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte 
xtImpl.java:533)
	at org.apache.jsp.data_jsp._jspService(data_jsp.java:415)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:210)
	at  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 
)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat 
cher.java:684)
	at  
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis 
patcher.java:432)
	at  
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa 
tcher.java:356)
	at  
org.apache.struts.action.ActionServlet.processActionForward(ActionServl 
et.java:1759)
	at  
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
	at  
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic 
ationFilterChain.java:247)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil 
terChain.java:193)
	at standish.charm.web.FlowFilter.doFilter(Unknown Source)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic 
ationFilterChain.java:213)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil 
terChain.java:193)
	at  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal 
ve.java:256)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal 
ve.java:191)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato 
rBase.java:551)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 
15)
	at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav 
a:180)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV 
alve.java:171)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav 
a:172)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve 
.java:174)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:5 
94)
	at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process 
Connection(Http11Protocol.java:392)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 
65)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo 
l.java:619)
	at java.lang.Thread.run(Thread.java:484)

I'm using Struts 1.0.2 and running on Tomcat 4.x on Win2K

Re: Nested Tags

2003-08-27 Thread Nagendra Kumar O V S








  hi,
  jsp compiler doest the nesting ofsuch type
  u need to define it as var and give it to the bean:write like 
  this
  bean:define id="var1"
   bean:message 
  key="column.client.property"/
  /bean:define
  
  tempArray[0] = bean:write name="data" property="%= var1 
  %" /-- nagi
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Wednesday, August 
  27, 2003 08:17:08 PM
  To: Struts (E-mail)
  Subject: Nested 
  Tags
  Hi everyone,I have a problem using a Tag for the 
  property of another tag. Isn't that 
  possible?Example:tempArray[0] = bean:write 
  name="data" property="bean:message 
  key=\"column.client.property\"/" /;When I do that, I get 
  the following error:ERROR 2003-08-27 17:35:06,546 
  standish.charm.web.ErrorAction - Error details and stack trace: 
  javax.servlet.ServletException: No getter method for property 
  bean:message key="column.client.property"/ of bean dataat 
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)at 
  org.apache.jsp.data_jsp._jspService(data_jsp.java:415)at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)at 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
  org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)at 
  org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)at 
  org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)at 
  org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)at 
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)at 
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)at 
  standish.charm.web.FlowFilter.doFilter(Unknown Source)at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at 
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
  org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at 
  

RE: Nested Tags

2003-08-27 Thread Slattery, Tim - BLS
 I have a problem using a Tag for the property of another tag. 
 Isn't that possible?
 
 Example:
 
 
 tempArray[0] = bean:write name=data 
 property=bean:message key=\column.client.property\/ /;


AFAIK, that's a no-no. It will try to evaluate the outer tag before finding
the inner one. The code that processes the property property knows nothing
about tags, it just takes the text assigned and tries to use that as  a
property of the bean. As the error message told you, that didn't work.

--
Tim Slattery
[EMAIL PROTECTED]


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



RE: Nested Tags

2003-08-27 Thread Tarek M. Nabil
I always wondered what that bean:define was for.
 
Thanks a million Nagendra :)))

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Nested Tags



hi,
jsp compiler doest the nesting of such type
u need to define it as var and give it  to the bean:write like this
bean:define id=var1
bean:message key=column.client.property/
/bean:define
 
tempArray[0] = bean:write name=data property=%= var1 % /

-- nagi
---Original Message---
 
From: Struts Users Mailing  mailto:[EMAIL PROTECTED] List
Date: Wednesday, August 27, 2003 08:17:08 PM
To: Struts (E-mail) mailto:[EMAIL PROTECTED] 
Subject: Nested Tags
 
Hi everyone,

I have a problem using a Tag for the property of another tag. Isn't that possible?

Example:


tempArray[0] = bean:write name=data property=bean:message 
key=\column.client.property\/ /;

When I do that, I get the following error:

ERROR 2003-08-27 17:35:06,546 standish.charm.web.ErrorAction - Error details and stack 
trace: 
javax.servlet.ServletException: No getter method for property bean:message 
key=column.client.property/ of bean data
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.data_jsp._jspService(data_jsp.java:415)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at standish.charm.web.FlowFilter.doFilter(Unknown Source)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service

RE: Nested Tags

2003-08-27 Thread Tarek M. Nabil
Any solution then? I tried Kumar's solution, but apparently it's not for Struts 1.0.2 
because I got an error message saying the bean:define tag must be empty.

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 5:52 PM
To: 'Struts Users Mailing List'
Subject: RE: Nested Tags


 I have a problem using a Tag for the property of another tag. 
 Isn't that possible?
 
 Example:
 
 
 tempArray[0] = bean:write name=data 
 property=bean:message key=\column.client.property\/ /;


AFAIK, that's a no-no. It will try to evaluate the outer tag before finding
the inner one. The code that processes the property property knows nothing
about tags, it just takes the text assigned and tries to use that as  a
property of the bean. As the error message told you, that didn't work.

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Nested Tags

2003-08-26 Thread Jeff Kyser
I think they are great - allows you to 'scope' your tags, and
makes iterators easier and recursion possible. And you
can develop reusable jsp fragments since the scope is
local to the object of interest. Read up on them at
www.keyboardmonkey.com - excellent documentation and
examples there...
-jeff

On Tuesday, August 26, 2003, at 09:11  AM, Erez Efrati wrote:

Hi all,

What is the status with nested:xxx tags? Should I use them or should 
I
avoid using them?

Thanks,
Erez


-
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]


RE: Nested Tags

2003-08-26 Thread Andrew Hill
The power of nested tags cannot be understated. Id advise you to use them
(where applicable) for they are really useful, they make simple a lot of
things that would otherwise be a nightmare to implement.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 August 2003 22:12
To: 'Struts Users Mailing List'
Subject: Nested Tags


Hi all,

What is the status with nested:xxx tags? Should I use them or should I
avoid using them?

Thanks,
Erez



-
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]



RE: Nested Tags

2003-08-26 Thread Erez Efrati
Thank you all, I just wanted to see if there are going to be phased out
in favor of something else... like in the case of bean and logic
tags in favor of JSTL ones.

Thanks again,
Erez

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2003 3:43 PM
To: Struts Users Mailing List
Subject: RE: Nested Tags

The power of nested tags cannot be understated. Id advise you to use
them
(where applicable) for they are really useful, they make simple a lot of
things that would otherwise be a nightmare to implement.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 August 2003 22:12
To: 'Struts Users Mailing List'
Subject: Nested Tags


Hi all,

What is the status with nested:xxx tags? Should I use them or should I
avoid using them?

Thanks,
Erez



-
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]



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



RE: Nested tags and recursive inclusion

2003-08-22 Thread PREETAM Balijepalli
Hi Yamini

I am sorry that  did not respond  imeadetly got stuck in some work

tiles:insert page=treenode.jsp flush=false/
use this instead of jsp include it has to work..

cheer up
preetam

-Original Message-
From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 4:23 PM
To: Struts Users Mailing List
Subject: Nested tags and recursive inclusion


Hello, 
I am trying to make recursive inclusion work with nested tags on Websphere but am 
running into some problems. This is what my code looks like. In main jsp:

  nested:nest property=tree
jsp:include page=treenode.jsp flush=true/
  /nested:nest

But I get an exception stating: Illegal to flush within a custom tag.
If I do not flush I get an invalid jsp:include tag exception. Can someone help me with 
this?

Thanks and Regards
Yamini Ayyagari

-
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]



RE: Nested tags and recursive inclusion

2003-08-22 Thread Paul McCulloch
I use this all the time with Tomcat. Maybe this is a websphere bug?

-Original Message-
From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED]
Sent: 22 August 2003 11:53
To: Struts Users Mailing List
Subject: Nested tags and recursive inclusion


Hello, 
I am trying to make recursive inclusion work with nested tags on Websphere
but am running into some problems. This is what my code looks like. In main
jsp:

  nested:nest property=tree
jsp:include page=treenode.jsp flush=true/
  /nested:nest

But I get an exception stating: Illegal to flush within a custom tag.
If I do not flush I get an invalid jsp:include tag exception. Can someone
help me with this?

Thanks and Regards
Yamini Ayyagari

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: Nested tags and recursive inclusion

2003-08-22 Thread Yamini Krishnamurthi Ayyagari
I think it is. Probably because WSAD 4.x uses JSP1.1 which requires the flush 
attribute in jsp:include. And the flush attribute cannot be used with custom tags.  I 
ran the application on Tomcat 5.0 and it worked fine.

Thanks
Yamini

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 8:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Nested tags and recursive inclusion


I use this all the time with Tomcat. Maybe this is a websphere bug?

-Original Message-
From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED]
Sent: 22 August 2003 11:53
To: Struts Users Mailing List
Subject: Nested tags and recursive inclusion


Hello, 
I am trying to make recursive inclusion work with nested tags on Websphere
but am running into some problems. This is what my code looks like. In main
jsp:

  nested:nest property=tree
jsp:include page=treenode.jsp flush=true/
  /nested:nest

But I get an exception stating: Illegal to flush within a custom tag.
If I do not flush I get an invalid jsp:include tag exception. Can someone
help me with this?

Thanks and Regards
Yamini Ayyagari

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


-
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]



Re: nested tags

2003-07-04 Thread Pramod . P

me too have the same opinion!!! nested-tags is working pretty cool!!!
please post the exact issue in your application.

thanks,
Pramod



   

Mike Duffy 

mduffy_lists@   To: Struts Users Mailing List [EMAIL 
PROTECTED]
yahoo.com   cc:   

 Subject: Re: nested tags  

07/04/2003 

07:01 AM   

Please respond 

to Struts 

Users Mailing  

List  

   

   





I did not try to run the example specifically; however, I've built
some applications based on the Monkey Tree source and I will say that
nested tags are very elegant, very cool.

It does work.

If you have a speciffic question, the guy who wrote the nested tags
code,  Arron Bates, is very good about responding to this list.

Good luck.

Mike


--- Sloan Seaman [EMAIL PROTECTED] wrote:
 Has anyone every gotten the nested tags to work like in the Monkey
 Tree examples?

 I can't even get the examples to work.  It seems like the iterator
 tag has a bug in it...

 It doesn't seem to iterate to the next object after it comes out of
 the recursion...

 --
 Sloan




 This email has been scanned for all viruses by the MessageLabs
 Email
 Security System. For more information on a proactive email security
 service working around the clock, around the globe, visit
 http://www.messagelabs.com




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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





This  electronic  mail  message  is  intended  solely  for  the  named  recipients  
and  may contain
confidential  and  proprietary  business information of eFunds Corporation and all its 
subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.  You may 
not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or its contents 
for any other
purpose; or further store or copy its contents in any medium



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



Re: Nested tags : trying to get recursion to work

2003-07-03 Thread Sloan Seaman
What does yout struts config file look like?

Sounds like that is where the problem is...

Also, you can't just start with a nest tag (to my knowledge)  you have to
have it in a nested:form or nested:root, but I may be wrong.  The docs are a
bit thin and I can't even get the examples to work properly

--
Sloan

- Original Message - 
From: Pratima Aiyagari [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 6:33 PM
Subject: Nested tags : trying to get recursion to work


 I am trying to get recursive inclusion to work with
 the nested tags.

 Here is what I'm trying to do: I have a directory,
 which might have a bunch of files or more directories
 inside of it. Just like any regular directory
 structure. And I need to display all the directories
 and the files inside each.

 In main.jsp:
 
 nested:nest property=directory
 jsp:include page=recursiveDirectories.jsp /
 /nested:nest

 There is a bean in the request whose getter
 [getDirectory] method returns a directory.

 So, this should be fine.

 In recursiveDirectories.jsp
 
 nested:root
 readflag=[nested:write property=readFlag/]
 /nested:root

 The directory bean which is now passed to nested:root
 has a getReadFlag method. So this should work ?

 Or not ..  :-/

 I get a strange exception. It says Cannot find bean
 blank in any scope

 Please see end of this post for the exact exception.
 It says it can't find some bean, but no indication of
 what that might be ..

 Any help appreciated!

 Pratima

 ===
 org.apache.jasper.JasperException: Cannot find bean
 in any scope
 at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
 at

org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
 at

org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
 at

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
 at

org.apache.jsp.queryInvReport_jsp._jspx_meth_nested_nest_0(queryInvReport_js
p.java:1470)
 at
 org.apache.jsp.queryInvReport_jsp._jspService(queryInvReport_jsp.java:735)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
 at

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
 at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
 at

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
 at

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
 at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at


Re: nested tags

2003-07-03 Thread Mike Duffy
I did not try to run the example specifically; however, I've built
some applications based on the Monkey Tree source and I will say that
nested tags are very elegant, very cool.

It does work.

If you have a speciffic question, the guy who wrote the nested tags
code,  Arron Bates, is very good about responding to this list.

Good luck.

Mike


--- Sloan Seaman [EMAIL PROTECTED] wrote:
 Has anyone every gotten the nested tags to work like in the Monkey
 Tree examples?
 
 I can't even get the examples to work.  It seems like the iterator
 tag has a bug in it...
 
 It doesn't seem to iterate to the next object after it comes out of
 the recursion...
 
 --
 Sloan
 
 


 This email has been scanned for all viruses by the MessageLabs
 Email
 Security System. For more information on a proactive email security
 service working around the clock, around the globe, visit
 http://www.messagelabs.com




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Nested tags : trying to get recursion to work

2003-07-02 Thread Pratima Aiyagari
Never mind .. I got it to work.

- P

--- Pratima Aiyagari [EMAIL PROTECTED] wrote:
 I am trying to get recursive inclusion to work with
 the nested tags.
 
 Here is what I'm trying to do: I have a directory,
 which might have a bunch of files or more
 directories
 inside of it. Just like any regular directory
 structure. And I need to display all the directories
 and the files inside each. 
 
 In main.jsp: 
 
 nested:nest property=directory
 jsp:include page=recursiveDirectories.jsp /
 /nested:nest
 
 There is a bean in the request whose getter
 [getDirectory] method returns a directory. 
 
 So, this should be fine. 
 
 In recursiveDirectories.jsp
 
 nested:root
 readflag=[nested:write property=readFlag/]
 /nested:root
 
 The directory bean which is now passed to
 nested:root
 has a getReadFlag method. So this should work ?
 
 Or not ..  :-/
 
 I get a strange exception. It says Cannot find bean
 blank in any scope
 
 Please see end of this post for the exact exception.
 It says it can't find some bean, but no indication
 of
 what that might be .. 
 
 Any help appreciated!
 
 Pratima
 
 ===
 org.apache.jasper.JasperException: Cannot find bean 
 in any scope
   at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
   at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at

org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
   at

org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
   at

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
   at

org.apache.jsp.queryInvReport_jsp._jspx_meth_nested_nest_0(queryInvReport_jsp.java:1470)
   at

org.apache.jsp.queryInvReport_jsp._jspService(queryInvReport_jsp.java:735)
   at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
   at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
   at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
   at

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
   at

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
   at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
   at

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at


Re: nested tags

2003-06-10 Thread Arron Bates
The nested tags extend the Struts html and logic tags. So to use an OO
analogy, the nested tags is to the logic tags the same way that a Ferrari is
to a car. :P

Nested tags organise two things. The bean reference (the name attribute),
and the property property. The property property is the most important, as
it's what gets everything mixed up.

You could always have in the original tags...

html:text name=myBean property=one.two[1].three(key).prop /

...the above being the translation of a nested bean down, an indexed list and
a mapped list. But you have to do this for every tag, and it's very messy.
Getting it all to happen quick and easy is another story. The nested tags mean
you can simply go...

  nested:root name=myBean
nested:nest property=myBean
  nested:iterate property=two
nested:iterate property=two
  nested:text property=prop /
/nested:iterate
  /nested:iterate
/nested:nest

...and have the complex property property figured out for you.

The rest of the logic tags simply allow other logic to happen against the
current nested object, like value comparisions etc. If you use nested tags for
the html input, the logic tags will also simplify managing around them.

When it all comes down to it, the nested tags figure out the name and the
property of the current object, and call the super class which is the original
Struts html or logic tag and let them do all the grunt work or writing Html etc.

The keyboardmonkey site has a walk-through/tutorial on them if you want to
start playing.


Arron.



 Nested tags rock whereas logic tags, while perhaps doing
 the same thing are more cumbersome.
 
 Scoping is much more intuitive - instead of having to talk
 about 'myForm.myContainer.myObject, you can just
 use nested:iterate and nested:nest to make your code
 much easier to read. And, since you can write snippets
 to the more localized scope, they can be reused on multiple
 pages.
 
 And, if that wasn't enough, you can do recursion with nested.
 
 See the www.keyboardmonkey.com site for examples, etc.
 
 -jeff
 
 On Monday, June 9, 2003, at 08:56  PM, Frances Aleah Z. de Guzman wrote:
 
  what is the difference between nested tags and html tags?
  -- 
  Frances Aleah Z. De Guzman
  SA/Programmer
  Ingenium Technology, Inc.
  http://www.ingenium.com.ph
 
  Disclaimer :
  This message is intended only for the named recipient. If you are not 
  the
  intended recipient you are notified that disclosing, copying, 
  distributing
  or taking any action in reliance on the contents of this information is
  strictly prohibited.
 


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



Re: nested tags

2003-06-10 Thread Arron Bates
 My questions are :
 
 1. Does the nested tag lib require struts to be used ?
  I have nested-tag.jar and struts.jar in the
 WEB-INF/lib but the application is not based on struts
 framework. It is an MVC  app but with our own
 controller servlet and mapping(like struts-config). 
 When I tried, I got this dreaded error :
 
 Cannot find message resources under key
 org.apache.struts.action.MESSAGE'
 javax.servlet.ServletException: Cannot find message
 resources under key org.apache.struts.action.MESSAGE
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:494)
 
 This makes  me wonder if struts framework is actually
 needed for nested tags. Any help would be
 appreciated..


They extend the Struts tags, so to that end they need the struts library on
hand to even run. As for a set-up and running Struts app, it would depend on
what tag you're using. The above seems a little fuzzy and trying to get a hold
of the ApplicationResources.properties messages, which does need the Struts
Servlet fired up.

While the theory is sound about using beans and properties etc etc, The Struts
tags were geared for nothing but Struts apps, so you could be in for anything
with regards to implementation problems.

It would be easy to get the nested paradigm working without the Struts tags,
but they do all the grunt work with regard to making Html etc.


 
 2. I can't do a  nested:define in my included JSP as
 I get a null pointer exception. 
 
 Main jsp :
 nested:root name=docs
 nested:nest property=treeNode
  nested:iterate property=childCollection
 jsp:include page=docnode.jsp /
  /nested:iterate
 /nested:nest
 /nested:root
 
 docnode.jsp (this recurses):
 
 nested:root
 nested:equal property=showChildren
 value=true
  nested:define id=imgState
 value=open18x16.gif /
 /nested:equal
 !-- restof html code--

   nested:iterate property=childCollection
 jsp:include page=docnode.jsp /
/nested:iterate
 
 /nested:equal
 /nested:root
 
 What am i doing wrong?

The nested:define in this case doesn't seem to be related to a bean property.
nested:define is about making a variable out of a property which is relative
to the current nested object. Struts' original bean:define may be the answer,
as the nested tags only care about one thing... nesting (and can't forgive
them for that :P  ). You may even want to consider a... *cough*... scriptlet
to get at the string value.


Arron.


 
 thanks
 arvind
 
 --- Jeff Kyser [EMAIL PROTECTED] wrote:
  Nested tags rock whereas logic tags, while perhaps
  doing
  the same thing are more cumbersome.
  
  Scoping is much more intuitive - instead of having
  to talk
  about 'myForm.myContainer.myObject, you can just
  use nested:iterate and nested:nest to make your code
  much easier to read. And, since you can write
  snippets
  to the more localized scope, they can be reused on
  multiple
  pages.
  
  And, if that wasn't enough, you can do recursion
  with nested.
  
  See the www.keyboardmonkey.com site for examples,
  etc.
  
  -jeff
  
  On Monday, June 9, 2003, at 08:56  PM, Frances Aleah
  Z. de Guzman wrote:
  
   what is the difference between nested tags and
  html tags?
   -- 
   Frances Aleah Z. De Guzman
   SA/Programmer
   Ingenium Technology, Inc.
   http://www.ingenium.com.ph
  
   Disclaimer :
   This message is intended only for the named
  recipient. If you are not 
   the
   intended recipient you are notified that
  disclosing, copying, 
   distributing
   or taking any action in reliance on the contents
  of this information is
   strictly prohibited.
  
  
  
  
 
 -
   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]
  
 
 __
 Do you Yahoo!?
 Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
 http://calendar.yahoo.com
 
 -
 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]



Re: nested tags

2003-06-09 Thread Frances Aleah Z. de Guzman
oops sorrywhat i meant was between nested tags and logic tags

On Tuesday 10 June 2003 09:56 am, Frances Aleah Z. de Guzman wrote:
 what is the difference between nested tags and html tags?

-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



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



Re: nested tags

2003-06-09 Thread Jeff Kyser
Nested tags rock whereas logic tags, while perhaps doing
the same thing are more cumbersome.
Scoping is much more intuitive - instead of having to talk
about 'myForm.myContainer.myObject, you can just
use nested:iterate and nested:nest to make your code
much easier to read. And, since you can write snippets
to the more localized scope, they can be reused on multiple
pages.
And, if that wasn't enough, you can do recursion with nested.

See the www.keyboardmonkey.com site for examples, etc.

-jeff

On Monday, June 9, 2003, at 08:56  PM, Frances Aleah Z. de Guzman wrote:

what is the difference between nested tags and html tags?
--
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph
Disclaimer :
This message is intended only for the named recipient. If you are not 
the
intended recipient you are notified that disclosing, copying, 
distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



-
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]


Re: nested tags

2003-06-09 Thread Frances Aleah Z. de Guzman
thanks for the info and the link...i just visited it and i think it will help 
me alot...thanks again.

On Tuesday 10 June 2003 09:51 am, Jeff Kyser wrote:
 Nested tags rock whereas logic tags, while perhaps doing
 the same thing are more cumbersome.

 Scoping is much more intuitive - instead of having to talk
 about 'myForm.myContainer.myObject, you can just
 use nested:iterate and nested:nest to make your code
 much easier to read. And, since you can write snippets
 to the more localized scope, they can be reused on multiple
 pages.

 And, if that wasn't enough, you can do recursion with nested.

 See the www.keyboardmonkey.com site for examples, etc.

 -jeff

 On Monday, June 9, 2003, at 08:56  PM, Frances Aleah Z. de Guzman wrote:
  what is the difference between nested tags and html tags?
  --
  Frances Aleah Z. De Guzman
  SA/Programmer
  Ingenium Technology, Inc.
  http://www.ingenium.com.ph
 
  Disclaimer :
  This message is intended only for the named recipient. If you are not
  the
  intended recipient you are notified that disclosing, copying,
  distributing
  or taking any action in reliance on the contents of this information is
  strictly prohibited.
 
 
 
  -
  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]

-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



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



Re: nested tags

2003-06-09 Thread arvind ramaswami
Nested tags rock, as you have to deal with only one
level in the heirarchy at a time. I have been running
into some problems using nested tag for recursion,
though.  I thought you might help me out while we are
on same subject.

My questions are :

1. Does the nested tag lib require struts to be used ?
 I have nested-tag.jar and struts.jar in the
WEB-INF/lib but the application is not based on struts
framework. It is an MVC  app but with our own
controller servlet and mapping(like struts-config). 
When I tried, I got this dreaded error :

Cannot find message resources under key
org.apache.struts.action.MESSAGE'
javax.servlet.ServletException: Cannot find message
resources under key org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:494)

This makes  me wonder if struts framework is actually
needed for nested tags. Any help would be
appreciated..

2. I can't do a  nested:define in my included JSP as
I get a null pointer exception. 

Main jsp :
nested:root name=docs
nested:nest property=treeNode
 nested:iterate property=childCollection
jsp:include page=docnode.jsp /
 /nested:iterate
/nested:nest
/nested:root

docnode.jsp (this recurses):

nested:root
nested:equal property=showChildren
value=true
 nested:define id=imgState
value=open18x16.gif /
/nested:equal
!-- restof html code--
   
  nested:iterate property=childCollection
jsp:include page=docnode.jsp /
   /nested:iterate

/nested:equal
/nested:root

What am i doing wrong?

thanks
arvind


--- Jeff Kyser [EMAIL PROTECTED] wrote:
 Nested tags rock whereas logic tags, while perhaps
 doing
 the same thing are more cumbersome.
 
 Scoping is much more intuitive - instead of having
 to talk
 about 'myForm.myContainer.myObject, you can just
 use nested:iterate and nested:nest to make your code
 much easier to read. And, since you can write
 snippets
 to the more localized scope, they can be reused on
 multiple
 pages.
 
 And, if that wasn't enough, you can do recursion
 with nested.
 
 See the www.keyboardmonkey.com site for examples,
 etc.
 
 -jeff
 
 On Monday, June 9, 2003, at 08:56  PM, Frances Aleah
 Z. de Guzman wrote:
 
  what is the difference between nested tags and
 html tags?
  -- 
  Frances Aleah Z. De Guzman
  SA/Programmer
  Ingenium Technology, Inc.
  http://www.ingenium.com.ph
 
  Disclaimer :
  This message is intended only for the named
 recipient. If you are not 
  the
  intended recipient you are notified that
 disclosing, copying, 
  distributing
  or taking any action in reliance on the contents
 of this information is
  strictly prohibited.
 
 
 
 

-
  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]
 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



RE: Nested tags and recursion (Arron tree example)

2003-03-17 Thread Sri Sankaran

  I was trying to visualize/interact with a tree structure 
 using Struts, and looking through the archives I found 
 references to using Nested tags, which at that moment were an 
 extension provided by Arron Bates (http://www.keyboardmonkey.com).
 
  As I believe, since Struts 1.1, Nested Tags are part of the 
 main branch (correct if I'm wrong), so there's no further 
 need to use the .jar provided by Arron at his home page: 
 Struts 1.1 rc1 provides the tag libraries for using Nested Tags.

You are correct.  Nested tags are part of the Struts 1.1 distribution.  However, Arron 
has made some updates to it and they won't be reflected in the Struts distribution 
until rc2.  So, in the meantime, I would recommend getting the jar at 
http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar. Simply place the jar file 
in the same location as your struts jar.  The classes in this jar file will then be 
loaded.

 
  That seems to be true, as I've successfully tried Arron's 
 examples with Struts 1.1 rc1... All but the recursive ones. 
 That's why:
 
 1) I'd like to know if Struts 1.1 rc1 provides Nested Tags, 
 and so recursion, and if they work for other people.
 

Yes, and yes.

 2) Has somebody tried Arron's tree examples with 1.1 rc1 
 tags, and worked?
 

Arron reported success with all his tests.

Sri

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



Re: Nested tags and recursion (Arron tree example)

2003-03-17 Thread Distrox
Hello again!

   I was trying to visualize/interact with a tree structure 
  using Struts, and looking through the archives I found 
  references to using Nested tags, which at that moment were an ...

 However, Arron has made some updates to it and they won't be reflected in the 
 Struts distribution until rc2.  So, in the meantime, I would recommend getting the 
 jar at ...

 I don't know what those updates are, but they made the recursion examples work! Just 
dropped the .jar in WEB-INF\lib, next to struts.jar, and it started to work 
properly... so I believe there must be something wrong with Struts 1.1 rc1 and its 
Nested Tags...

 In case somebody takes care of this; I deployed Arron's examples with:

 * Struts 1.1 rc1
 * Apache Tomcat 4.1.18
 * JSDK 1.4.1.01
 * J2EE 1.3.1

 And the recursion examples didn't work until I used the updated Nested Tags, 
available from:

http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar

 Thanks a lot, Sri Sankaran ;-) !

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



Re: Nested tags and recursion (Arron tree example)

2003-03-17 Thread David Graham
You could also download a recent nightly Struts build that includes the same 
fixes contained in Arron's jar.

David



From: Distrox [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Nested tags and recursion (Arron tree example)
Date: Mon, 17 Mar 2003 16:02:07 +0100
Hello again!

   I was trying to visualize/interact with a tree structure
  using Struts, and looking through the archives I found
  references to using Nested tags, which at that moment were an ...
 However, Arron has made some updates to it and they won't be reflected 
in the Struts distribution until rc2.  So, in the meantime, I would 
recommend getting the jar at ...

 I don't know what those updates are, but they made the recursion examples 
work! Just dropped the .jar in WEB-INF\lib, next to struts.jar, and it 
started to work properly... so I believe there must be something wrong with 
Struts 1.1 rc1 and its Nested Tags...

 In case somebody takes care of this; I deployed Arron's examples with:

 * Struts 1.1 rc1
 * Apache Tomcat 4.1.18
 * JSDK 1.4.1.01
 * J2EE 1.3.1
 And the recursion examples didn't work until I used the updated Nested 
Tags, available from:

http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar

 Thanks a lot, Sri Sankaran ;-) !

-
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]


Re: [NESTED-TAGS]Anyone using nested tags with the latest nightly build?

2003-03-07 Thread Jeff_Mychasiw

Thanks for the reply:

-- IMG Tag -
Thanks for the guideline on the use of the property property.
I really thought I covered the doc's but I guess that did not jump out at
me.  Now that I look back, you clearly state it at the top of the API docs.
. The original tags on occasion provide options that don't use the name
and property attributes. These uses will then fall outside the nested
context, and will most likely cause error. To take advantage of these
options, markup using the original tag for these cases.

My only issue:
The release of the nested  tags from  1.1b2 let you get away with some
nested tag mis-use.
My problem with the IMG tag is not present on 1.1b2. My first thought is
that if any nested:tags  *may* fail without at least *name* or *property*
then the tag should indicate so.
I will admit that when building many pages, if the tag works and does not
complain I move on.
It seemed I got different errors with the nested:img tag:
Both were solve by replacing with the html:img tag, as you said.

javax.servlet.jsp.JspException: No getter method for property  of bean
taskListForm
 at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:881)
 at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:622)

and

javax.servlet.jsp.JspException: Object must be of type Map
  at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:628)
  at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410)
  at 
org.apache.struts.taglib.nested.html.NestedImgTag.doEndTag(NestedImgTag.java:106)


So I guess in summary a message such as: You must have at least one of
these properties: 
-- Radio Tag ---

 I should say again that the following file works under TC4.0.4/1.1b2
but not with the last nightly and TC4.0.4  ***

I use the radio button as in this file:

nested:form method=post action=/printInvOnDemandRouter 
 nested:hidden  property=forwardToAction /
 nested:hidden property=invDFullList/
 nested:hidden property=invDsortCol/
 nested:hidden property=invDsortOrder/

 table  
  trhtml:img pageKey=section.separator //td/tr
 /table
 jsp:include page=/WEB-INF/printing/table/InvOnDemandParameterTable.jsp 
flush=true/

  table 
   trtd html:img height=1 pageKey=section.separator //td/tr
  /table
  jsp:include page=/WEB-INF/printing/table/InvOnDemandFilterTable.jsp 
flush=true/
/nested:form

This first include works:

%@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

nested:root
table 
tr
  td Customer:/td
  td nested:text property=custNumber onchange=clearInv()/ /td
/tr
tr
  td Invoice:/td
  td nested:text property=invNumber onchange=clearCust()//td
/tr
/table
/nested:root

This the include that gives the compile error in my previous email:

%@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

nested:root
table width=660 border=0 cellspacing=0 cellpadding=0
tr
  td All/td
  td  nested:radio property=status value=%= 
Integer.toString(ArConstants.TRANSACTION_STATUS_ALL) %//td
  td Open/td
  td nested:radio property=status value=%= 
Integer.toString(ArConstants.TRANSACTION_STATUS_OPEN) %//td
/tr
/table
/nested:root


Thanks again

Jeff Mychasiw




Arron Bates [EMAIL PROTECTED] on 03/07/2003 12:08:10 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:Re: [NESTED-TAGS]Anyone using nested tags with the latest
   nightly build?


Jeff,

I can fix the first problem with the nested:img tag... don't use it. :P

Use the html:image tag instead. The error's coming through because of the
old nested mantra that if you don't want the property property to be
managed
and set, then use the original tags. You're using pageKey instead of the
name/property duo, and internally the nested tags are evaluating the
property
property to an empty string, and the attempting to dance.


As for the radio tag in the include file... it will depend on the context
of
where it's included in the parent file. Can I get a snippet of the tag
layout
that it's nesting against in the parent JSP?... it holds the key to the
problem. Once I have that detail, I may be able to get somewhere.

And there's nothing wrong with long emails. :)


Arron*


* ...somewhere in the back of my head was the possibility I'd get out of
this
update without a bug being raised. what fools these monkeys be...

 I Had read that Arron had submitted patches to the nested tags to allow
the
 upgrade to tomcat 4.1.x.
 (I assume that the zip jakarta-struts-20030306 contains the nested fixes)

 We are currently developing on TC4.04 with 1.1b2.

 I dropped that latest binaries in and got several problems (compile
errors)
 on many

Re: [NESTED-TAGS]Anyone using nested tags with the latest nightly build?

2003-03-07 Thread Arron Bates
 -- IMG Tag -
 [..cut..]
 My only issue:
 The release of the nested  tags from  1.1b2 let you get away with 
 some nested tag mis-use
 [..cut..]

The reason why it stopped working in the recent nightly is that the nested
tags have been gutted, and remade to allow them more flexible use, including
the use of Tomcat 4.1.18 as a servlet container.

I've attempted to closely support previous proper use of the nested tags,
but I think that trying to support the same level of mis-use would be a very
pragmatic target and really hard.

As for the errors you're getting the nested tags are having those errors speak
from the internals of the tags they extend. They are a _very_ thin wrapper
around the original tags, and I'd like them kept that way really. Mandating
properties which can and cannot be set would make the job harder of having
them adapt to changes in the underlying tags.

Mis-use of the tags would always be at your own peril, but this big change has
obviously changed the way in which they can be mis-used. So I supose my
response is terribly sorry for now, but the internals probably won't change
again, but once again mis-use at your own risk.



 -- Radio Tag ---
 [..cut..]

Nothing outwardly obvious. Thanks for the code snippets, I'll have to get in
and do some testing and get back to you.


Thanks again.

Arron.


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



Re: [NESTED-TAGS]Anyone using nested tags with the latest nightly build?

2003-03-06 Thread Arron Bates
Jeff,

I can fix the first problem with the nested:img tag... don't use it. :P

Use the html:image tag instead. The error's coming through because of the
old nested mantra that if you don't want the property property to be managed
and set, then use the original tags. You're using pageKey instead of the
name/property duo, and internally the nested tags are evaluating the property
property to an empty string, and the attempting to dance.


As for the radio tag in the include file... it will depend on the context of
where it's included in the parent file. Can I get a snippet of the tag layout
that it's nesting against in the parent JSP?... it holds the key to the
problem. Once I have that detail, I may be able to get somewhere.

And there's nothing wrong with long emails. :)


Arron*


* ...somewhere in the back of my head was the possibility I'd get out of this
update without a bug being raised. what fools these monkeys be...

 I Had read that Arron had submitted patches to the nested tags to allow the
 upgrade to tomcat 4.1.x.
 (I assume that the zip jakarta-struts-20030306 contains the nested fixes)
 
 We are currently developing on TC4.04 with 1.1b2.
 
 I dropped that latest binaries in and got several problems (compile errors)
 on many pages that work fine other wise.
 
 If I understand the upgrade.I just replace the JARS, *.tld, and the
 *.dtd 's...?
 
 This is not all the problems but two main ones are the nested:img tag and
 the nested:radio tag
 
 With a usage such as:
 nested:img  pageKey=calendar.logo /
 I get:
 javax.servlet.jsp.JspException: No getter method for property  of bean
taskListForm
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:881)
 at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:622)
 at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410)
 at
org.apache.struts.taglib.nested.html.NestedImgTag.doEndTag(NestedImgTag.java:106)
 at
org.apache.jsp.TaskListMainForm$jsp._jspService(TaskListMainForm$jsp.java:390)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 ..
 
 If I replace it with:
 html:img  pageKey=calendar.logo /
 It will work Fine.
 
 The nested:radio tag gives me this:
 
 javax.servlet.jsp.JspException: Cannot find bean under name
 at org.apache.struts.taglib.html.RadioTag.doStartTag(RadioTag.java:229)
 at
org.apache.struts.taglib.nested.html.NestedRadioTag.doStartTag(NestedRadioTag.java:94)
 at
org.apache.jsp.InvOnDemandFilterTable$jsp._jspService(InvOnDemandFilterTable$jsp.java:126)
 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.java:201)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 
 with a usage of:
 inside a jsp:include
 nested:root
 table
 tr
   td All/td
   td  nested:radio property=status value=%=
Integer.toString(ArConstants.TRANSACTION_STATUS_ALL) %//td
   td Open/td
   td nested:radio property=status value=%=
Integer.toString(ArConstants.TRANSACTION_STATUS_OPEN) %//td
 /tr
 /table
 /nested:root
 
 sorry for the long email..
 
 Jeff
 
 -
 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]



RE: Nested tags

2003-02-25 Thread Karr, David
You can't nest custom tags in the attribute values of custom tags.

If you're using the JSTL, you might consider using Struts-EL, which is a
contrib library in the Struts distribution.  If you use that, your
example would look like this:

   campaign:list id=campaign
   TR bgcolor=#CC
TDcore:out value=${campaign.name}//TD
TDhtml-el:link page=/app/campaign/promo/index.jspPromo
Mgmt/html-el:link/TD
TDhtml-el:checkbox name=retire
value=${campaign.campaignId}//TD
   /TR
   /campaign:list

 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]
 
 I have the following in a jsp page:
 TDhtml:checkbox name=retire value=core:out
 value=${campaign.campaignId}///TD
 
 The page blows up with a jsp.error.unterminated.tag error.
 
 I'm guessing I have to use a nested tag to pull this off, but I don't
know
 how. Could someone help me out.
 
 Here is the full block of code.  The campaign:list tag is a custom
tag
 that iterates and places the bean in the pageContext object.
 
   campaign:list id=campaign
   TR bgcolor=#CC
TDcore:out value=${campaign.name}//TD
TDhtml:link page=/app/campaign/promo/index.jspPromo
 Mgmt/html:link/TD
TDhtml:checkbox name=retire value=core:out
 value=${campaign.campaignId}///TD
   /TR
   /campaign:list

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



Re: Nested Tags Problem .... Urgent

2003-02-12 Thread ashokd
Hi,

If I am displaying nested tags in a jsp page it is working fine.

When I include some other jsp page as iframe it is giving null pointer
exception (I am not put any html:form tag).

When I kept html:form action=myAction.go then it is working fine.

I have three this type of frames. User can update any field in any iframe.

Why nested:iterate name=formList  is checking from field?

Thanks  Regards,
Ashok.D



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




Re: Nested Tags Problem .... Urgent

2003-02-12 Thread ashokd
 Hi,

 If I am displaying nested tags in a jsp page it is working fine.
 When I include inner.jsp page as iframe in parent.jsp it is giving
null pointer exception (I am not put any html:form tag in  inner.jsp page,
but I kept html:form in parent.jsp).

 When I kept html:form action=myAction.go in inner.jsp then it is
working fine.

 I have three this type of frames. User can update any field in any
iframe.

 Why nested:iterate name=formList  is checking from field in inner.jsp
it is their in parent.jsp?

 Thanks  Regards,
 Ashok.D


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




Re: Nested Tags Problem .... Urgent

2003-02-12 Thread James Mitchell
Do you understand how iframe works?  It is a client-side include, not
server-side.

Here's a good place to start:

 http://www.htmlhelp.com/reference/html40/special/iframe.html


--
James Mitchell





- Original Message -
From: ashokd [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 5:31 AM
Subject: Re: Nested Tags Problem  Urgent


 Hi,

  If I am displaying nested tags in a jsp page it is working fine.
  When I include inner.jsp page as iframe in parent.jsp it is giving
 null pointer exception (I am not put any html:form tag in  inner.jsp
page,
 but I kept html:form in parent.jsp).

  When I kept html:form action=myAction.go in inner.jsp then it is
 working fine.

  I have three this type of frames. User can update any field in any
 iframe.

  Why nested:iterate name=formList  is checking from field in
inner.jsp
 it is their in parent.jsp?

  Thanks  Regards,
  Ashok.D


 -
 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]




RE: Nested Tags Problem .... Urgent

2003-02-11 Thread Sri Sankaran
The code you have presented isn't very clear.  Your Action, for example seems to 
declare the controlVO1 reference twice -- won't compile.

Are you trying to say that you have a list of objects within the ActionForm?  Is it 
being placed in the session/request under the key formList -- 'cos that's how you 
are trying to retrieve it in the JSP.  Why do you have the getAttribute(...) stuff?

Also, what version of Struts are you using?
 
Sri
P.S.
Repeatedly posting the same message doesn't assure a response.  In fact it is a 
turn-off

-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 02, 2002 1:00 PM
To: Struts Users Mailing List; Martin Gross
Subject: Nested Tags Problem  Urgent 


Hi,

I am facing problem with Nested Tags.

I have a method in ActionForm
private ArrayList mFormList = new ArrayList();

public Object[] getFormList() {
return mFormList.toArray();
}
public ArrayList getMyFormList() {
return mFormList
}

public setMyFormList(ArrayList  pFormList) {
this.mFormList = pFormList
}

This ArrayList contian the ValueObjects.

I am getting the instance of ActionForm in another Action Class and setting this 
variable (which is invoked before loading this page).

Code in Action class:
MyVO controlVO1 = new MyVO(600,10,100 O,10,1,2/5/1998,12/31/, ); 
MyVO controlVO1 = new MyVO(600,10,100 O,10,1,2/5/1998,12/31/, ); 
ArrayList alControl = new ArrayList();

TestForm testForm = (TestForm)aRequest.getSession().getAttribute(testForm);
if(testForm == null) {
   testForm = new TestForm();
  }
  testForm .setMyFormList(alControl)



JSP
-

nested:iterate name=formList 


I am getting the follwoing exception any suggestions.

Error Message:
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NullPointerException
 at org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:159)
 at org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:195)
 at org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
tedPropertyHelper.java:242)
 at org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
ateTag.java:115)
 at wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
pondence_0005fpage_jsp_7.java:113)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
 at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
 at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag

RE: Nested Tags Problem .... Urgent

2003-02-11 Thread Chen, Gin
not name .. property

name: The name of the JSP bean containing the collection to be iterated (if
property is not specified), or the JSP bean whose property getter returns
the collection to be iterated (if property is specified).

property: Name of the property, of the JSP bean specified by name, whose
getter returns the collection to be iterated.

So it should be:

nested:iterate property=formList

-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 1:00 PM
To: Struts Users Mailing List; Martin Gross
Subject: Nested Tags Problem  Urgent 


Hi,

I am facing problem with Nested Tags.

I have a method in ActionForm
private ArrayList mFormList = new ArrayList();

public Object[] getFormList() {
return mFormList.toArray();
}
public ArrayList getMyFormList() {
return mFormList
}

public setMyFormList(ArrayList  pFormList) {
this.mFormList = pFormList
}

This ArrayList contian the ValueObjects.

I am getting the instance of ActionForm in another Action Class and setting
this variable (which is invoked before loading this page).

Code in Action class:
MyVO controlVO1 = new MyVO(600,10,100
O,10,1,2/5/1998,12/31/, );
MyVO controlVO1 = new MyVO(600,10,100
O,10,1,2/5/1998,12/31/, );
ArrayList alControl = new ArrayList();

TestForm testForm =
(TestForm)aRequest.getSession().getAttribute(testForm);
if(testForm == null) {
   testForm = new TestForm();
  }
  testForm .setMyFormList(alControl)



JSP
-

nested:iterate name=formList 


I am getting the follwoing exception any suggestions.

Error Message:
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NullPointerException
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:159)
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:195)
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
tedPropertyHelper.java:242)
 at
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
ateTag.java:115)
 at
wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
pondence_0005fpage_jsp_7.java:113)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at

Re: Nested Tags Problem .... Urgent

2003-02-11 Thread ashokd
Hi Chen,.

Thanks for your observations.
It helped me a lot and saved my time in debugging.
Your observation is correct and it solved my problem

Thanks  Regards,
Ashok.D
- Original Message -
From: Chen, Gin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 2:30 AM
Subject: RE: Nested Tags Problem  Urgent


 not name .. property

 name: The name of the JSP bean containing the collection to be iterated
(if
 property is not specified), or the JSP bean whose property getter returns
 the collection to be iterated (if property is specified).

 property: Name of the property, of the JSP bean specified by name, whose
 getter returns the collection to be iterated.

 So it should be:

 nested:iterate property=formList

 -Original Message-
 From: ashokd [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 1:00 PM
 To: Struts Users Mailing List; Martin Gross
 Subject: Nested Tags Problem  Urgent


 Hi,

 I am facing problem with Nested Tags.

 I have a method in ActionForm
 private ArrayList mFormList = new ArrayList();

 public Object[] getFormList() {
 return mFormList.toArray();
 }
 public ArrayList getMyFormList() {
 return mFormList
 }

 public setMyFormList(ArrayList  pFormList) {
 this.mFormList = pFormList
 }

 This ArrayList contian the ValueObjects.

 I am getting the instance of ActionForm in another Action Class and
setting
 this variable (which is invoked before loading this page).

 Code in Action class:
 MyVO controlVO1 = new MyVO(600,10,100
 O,10,1,2/5/1998,12/31/, );
 MyVO controlVO1 = new MyVO(600,10,100
 O,10,1,2/5/1998,12/31/, );
 ArrayList alControl = new ArrayList();

 TestForm testForm =
 (TestForm)aRequest.getSession().getAttribute(testForm);
 if(testForm == null) {
testForm = new TestForm();
   }
   testForm .setMyFormList(alControl)


 
 JSP
 -

 nested:iterate name=formList 


 I am getting the follwoing exception any suggestions.

 Error Message:
 Error Code: 500
 Target Servlet: null
 Error Stack:
 java.lang.NullPointerException
  at

org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
 dPropertyHelper.java:159)
  at

org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
 dPropertyHelper.java:195)
  at

org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
 tedPropertyHelper.java:242)
  at

org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
 ateTag.java:115)
  at

wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
 pondence_0005fpage_jsp_7.java:113)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:300)
  at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
 .java:827)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
 eServlet.java:167)
  at

com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
 t.java:297)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
 Servlet.java:110)
  at

com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
 2)
  at

com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
 ager.java:1012)
  at

com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
 er.java:913)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
 ebAppRequestDispatcher.java:523)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
 Dispatcher.java:282)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
 ispatcher.java:112)
  at

org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
 va:1759)
  at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
  at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
 .java:827)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
 eServlet.java:167)
  at

com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
 t.java:297

Re: [Nested Tags] Problem in 1.1b3 ?

2003-02-10 Thread Jeff_Mychasiw

We just tried a recent build (feb 8/03) and the problem is the same...  :-(


Any insight?

frustrating note
  We are using jboss bundled with tomcat 4.0.6.
  We see the speed increase with newer tomcat and would like to go higher
(4.1x)
  We understand that to move to newer JBoss/Tomcat 4.1x we need a newer
struts, due to some class loading issue(A Digester issue? ).
  When we go to newer struts , nested tags act funny...

  Rollback to Tomcat 4.0.6
  And  so it goes
/frustrating note



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




Re: nested tags

2003-01-08 Thread Mark Lowe
Something along these lines might help

html:select property=myname
html:options
	collection=myarray
	property=value  /
/html:select


if you've a map you can use

html:select property=myname
html:options
	collection=myhash
	property=key
	labelProperty=value /
/html:select


cheers mark

Mercoledì, 8 gen 2003, alle 01:53 Europe/Rome, LUCERO,DENNIS 
(HP-Boise,ex1) ha scritto:



I am trying something like this:

html:select property = whatever

logic:iterate id = item name = someArray
html:option value = thisIsMyProblem %=item%   /html:option
/logic:iterate
/htmlselect


I need the vaule of item to go where thisIsMyProblem  is  similar to 
the use
of %=item% that follows it,
But I do not know how to to this.





We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Valhalla I am coming



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




RE: nested tags

2003-01-08 Thread Brown, Melonie S. - Contractor
Is there a way to get back the key/value pair that was selected (without
using hidden fields)?

Melonie Brown



-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 3:57 AM
To: Struts Users Mailing List
Subject: Re: nested tags


Something along these lines might help

html:select property=myname
html:options
collection=myarray
property=value  /
/html:select


if you've a map you can use

html:select property=myname
html:options
collection=myhash
property=key
labelProperty=value /
/html:select


cheers mark


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




RE: nested tags

2003-01-08 Thread LUCERO,DENNIS (HP-Boise,ex1)

Thanks Mark,  I don't know how I missed that tag.


Melonie, if I understand you correctly,  I am not using hidden fields and I
get back the key value pair in the form associated with the action class,
The collection I am referencing is separate from the form. The form does not
contain a list just the ( select property = balh )  select property
properties.

Hope that was helpful.



-Original Message-
From: Brown, Melonie S. - Contractor [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, January 08, 2003 5:50 AM
To: [EMAIL PROTECTED]
Subject: RE: nested tags

Is there a way to get back the key/value pair that was selected (without
using hidden fields)?

Melonie Brown



-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 3:57 AM
To: Struts Users Mailing List
Subject: Re: nested tags


Something along these lines might help

html:select property=myname
html:options
collection=myarray
property=value  /
/html:select


if you've a map you can use

html:select property=myname
html:options
collection=myhash
property=key
labelProperty=value /
/html:select


cheers mark


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

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




RE: [Nested Tags] Frustration..Should this work?

2002-11-28 Thread Arron Bates
A really subtle problem. Remind me to make this advice available some
place else when I'm done (like a mail archive?)... :)


Trap one: It sounds like the bean reference is a collection itself.

A little more background clarity... The nested tags never actually
define references, they simply construct the nested property property
for when a tag really needs it, like a nested text tag or whatever.

So, with this root tag being the collection, it will actually try and
make a property that looks like [0] rather than myProperty[0].
Basically, when BeanUtils tries to apply the property it's having
issues.

To get around this, have the collection one level down in a really
simple bean, and make the bean reference to that. This will kick
everything off with a proper name in front of that index value,
eg: listProperty[5]


All in all, nested properties must have at least one substantial named
property. They can't just go this/ against the root bean, as there's
no name for BeanUtils to play with, even for children as their
evaluation will be .something, the dot on the front assumes a nesting
level and it all falls down.


Trap two: This is actually because of the first problem. When the child
tags are trying to do their thing, they're simply appending to the
index. From above you can see that the follow-on for a child will be
[5].somethingProperty. Once again, the property is just BeanUtils
having an issue.


Summary:
Just keep in mind that the nested tags are all about managing the
property property so BeanUtils can do its thing. We need that meaningful
property to start off with.

nested:iterate property=somethingMeaningful

I'm quite sure that putting a bean around that top collection will make
things easier.

Using this/ and such is really just a helper for when you need the the
object itself in a collection. Without a properly set up parent, it all
falls down.


On a completely different note...
I just want to thank Sri for really putting in some effort to help
people get around the nature of the nested tags. When all the list comes
down into my email client and there's a nested problem, one from Sri
usually follows smartly.

The nested tags have an esoteric following (that I know of), no-one on
this list goes out the their way to recommend them outside of the old
list in lists problem, whatever (I'm curious to see if they even get a
mention in any of these spiffy new books... :). They mostly snag new
users who haven't had an old die-hard bend their ear about best (not
necessarily pragmatic) practices :) It is a fact however, that they can
truly make life easier.

I can't watch the list as often as I'd like, and it's been a big
reassurance than the users have somewhere to turn with issues. Sri's one
of the peoples that make this list a great [ot] Impact with wall
resource.

How many people apologise for a not leading to the answer?...

Thanks again Sri.


Arron.



On Thu, 2002-11-28 at 03:07, [EMAIL PROTECTED] wrote:
 
 Thank you for reminding me of that link.  I tried ./value and this/value
 without success.
 
 Even though I use the nested:form as the root..for this iterate tag I
 want to tell it to look to
 an object in page scope instead of the form bean. That is what I thought
 the combinations of name and property were all
 about.From docs:
 
 **
 The collection to be iterated over must be specified in one of the following ways:
 As a runtime expression specified as the value of the collection attribute.
 As a JSP bean specified by the name attribute.
 As the property, specified by the property, of the JSP bean specified by the name 
attribute.
 
 
 I understand that the name is not needed by the nested tags (thats why I
 use them so much :-) ), but
 the nested docs simply point to the docs for the standard logic tags.
 
 The nested:iterate seems to work as expected, but the nested equal and
 write either do not see the current object exposed by nested:iterate OR the
 nested:iterate is not exposing the current object.
 
 I guess my original question still is: should this code work?
 
 nested:define id=collectionCode name=%=
 WebConstants.COLLECTIONCODE_KEY % property=list/
 nested:define id=col  property=collectionCode type
 =java.lang.String/
 
 nested:iterate   name=collectionCode 
 nested:equal  property=value value=%= col %
nested:write  property=label/
 /nested:equal
 /nested:iterate
 
 Thanks for the help..
 
 
 
 
 Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 09:09:59 AM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:Struts Users Mailing List [EMAIL PROTECTED]
 cc:
 
 Subject:RE: [Nested Tags] Frustration..Should this work?
 
 
 I suspected a problem to be with the iterate since that's what your stack
 trace suggests.
 
 Also, look at Arron's reply to an earlier post (by you, in fact!)
 http://marc.theaimsgroup.com/?l=struts-userm=103584892423199w=2.  He
 states that the name attribute is ignored.
 
 Given that I don't know how

RE: [Nested Tags] Frustration..Should this work? - Future?

2002-11-28 Thread Jeff_Mychasiw

Thank you, that makes things clearer.


Arron Bates wrote:
The nested tags have an esoteric following (that I know of), no-one on
this list goes out the their way to recommend them outside of the old
list in lists problem, whatever (I'm curious to see if they even get a
mention in any of these spiffy new books... :).


It is true that I started using them because of lists in lists thing.
I used them in combination with ListUtils.LazyList in commons collections
and they worked well.


One of the biggest things I like about them is that I can replace the
countless
bean:write name=formBeanName property=xyz/ with
nested:write property=xyz /

It always seemed odd to me that the html:text was nested but the bean:write
needed the name of the form bean..

They make things so easy that I just use them everywhere without even
thinking about some of the issues.


I have one big question:
I seems that everyone is talking JSTL, struts-EL ect..

How does the nested library fit into this?

Does JSTL have the power of nested tags? Will there be nested-EL...?

Thanks again.



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




RE: [Nested Tags] Frustration..Should this work?

2002-11-27 Thread Sri Sankaran
I wonder if this would work

nested:root name=pageList
  nested:iterate property=this/
%-- etc --%
  /nested:iterate
/nested:root

Sri

-Original Message-
From: Sri Sankaran 
Sent: Wednesday, November 27, 2002 9:13 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?


Is this happening inside a nested:form?  If so, I am fairly certain that 
nested:iterate ignores the value of its name attribute.  That would explain why your

nested:iterate name=pageList

isn't working.  Also, you probably recognize the problem with changing it to

nested:iterate property=pageList

That wont work since pageList isn't a property of your form bean.  So you'll have to 
specify a nested:root to tell the nested structure the root node.  However, I see that 
pageList isn't contained within another bean either.  There is a way around this 
situation; it just isn't coming to meI'll keep looking.

Anyway hope this gets your started.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 4:48 PM
To: [EMAIL PROTECTED]
Subject: [Nested Tags] Frustration..Should this work?


Greetings:
All I am trying to do is display a a selected item form a list.

 - pageList is standard java.util.List of LabelValueBeans set in page scope.
 - cc is a String pulled out of the form bean and set to page scope.

Using the nested tags my first approach was this:

 nested:iterate  name=pageList 
  nested:equal  property=value value=%= cc %
nested:write   property=label/
  /nested:equal
  /nested:iterate


But to get it working I am forced to  redo it like this:
nested:iterate   id=it name=pageList type=org...LabelValueBean
 logic:equal  name=it property=value value=%= cc %
bean:write  name=it property=label/
 /logic:equal
/nested:iterate

Before I report this to bugzilla, I would like it  if someone could tell me if I am 
doing something wrong.

The error I get is:
2002-11-26 15:32:23 ApplicationDispatcher[/ar] Servlet.service() for servlet jsp threw 
exception java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:394)
  at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229)
  at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:390)
  at 
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIterateTag.java:121)
  at 
org.apache.jsp.DetailedProfileReadOnlyForm$jsp._jspService(DetailedProfileReadOnlyForm$jsp.java:336)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



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


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


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




RE: [Nested Tags] Frustration..Should this work?

2002-11-27 Thread Jeff_Mychasiw

Thanks for the reply:
It is inside a nested form but I am getting these values by setting to page
scope.

The nested iterate has no problem reading the collection. The problem is
the equal and write tag *inside* the iterate.  They only work
if I change them to their non nested versions and explicitly set an id to
read by the *inner* tags.

** Summary  of code below **
The first define tag grabs a wrapper object from application scope and gets
the internal List and sets it to page scope - This works.
The second define tag gets a value from the form bean (using a nested form)
and set it to page scope. - This works.
The nested:iterate tag gets the  collectionCode from page scope. - This
Works.
The nested:equal tag *should* use property=value from each LabelValueBean
in the List - This does not work.

* This code works 
nested:define id=collectionCode name=%= WebConstants.COLLECTIONCODE_KEY % 
property=list/
nested:define id=col  property=collectionCode type=java.lang.String/

nested:iterate id=item  name=collectionCode 
type=com.nlg.ar.common.datatransfer.vo.LabelValueBean
logic:equal name=item property=value value=%= col %
   bean:write name=item property=label/
/logic:equal
/nested:iterate

* This code does NOT work - but I think that it should ***
nested:define id=collectionCode name=%= 
WebConstants.STATICLIST_COLLECTIONCODE_KEY % property=list/
nested:define id=col  property=collectionCode type=java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate








Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 08:16:06 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I wonder if this would work

nested:root name=pageList
  nested:iterate property=this/
%-- etc --%
  /nested:iterate
/nested:root

Sri

-Original Message-
From: Sri Sankaran
Sent: Wednesday, November 27, 2002 9:13 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?


Is this happening inside a nested:form?  If so, I am fairly certain that
nested:iterate ignores the value of its name attribute.  That would explain
why your

nested:iterate name=pageList

isn't working.  Also, you probably recognize the problem with changing it
to

nested:iterate property=pageList

That wont work since pageList isn't a property of your form bean.  So
you'll have to specify a nested:root to tell the nested structure the root
node.  However, I see that pageList isn't contained within another bean
either.  There is a way around this situation; it just isn't coming to
meI'll keep looking.

Anyway hope this gets your started.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:48 PM
To: [EMAIL PROTECTED]
Subject: [Nested Tags] Frustration..Should this work?


Greetings:
All I am trying to do is display a a selected item form a list.

 - pageList is standard java.util.List of LabelValueBeans set in page
 scope.
 - cc is a String pulled out of the form bean and set to page scope.

Using the nested tags my first approach was this:

 nested:iterate  name=pageList 
  nested:equal  property=value value=%= cc %
nested:write   property=label/
  /nested:equal
  /nested:iterate


But to get it working I am forced to  redo it like this:
nested:iterate   id=it name=pageList type=org...LabelValueBean
 logic:equal  name=it property=value value=%= cc %
bean:write  name=it property=label/
 /logic:equal
/nested:iterate

Before I report this to bugzilla, I would like it  if someone could tell me
if I am doing something wrong.

The error I get is:
2002-11-26 15:32:23 ApplicationDispatcher[/ar] Servlet.service() for
servlet jsp threw exception java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:394)
  at
  org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229)

  at
  org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:390)

  at
  
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIterateTag.java:121)

  at org.apache.jsp.DetailedProfileReadOnlyForm$jsp.
  _jspService(DetailedProfileReadOnlyForm$jsp.java:336)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



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


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


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

RE: [Nested Tags] Frustration..Should this work?

2002-11-27 Thread Sri Sankaran
I suspected a problem to be with the iterate since that's what your stack trace 
suggests.  

Also, look at Arron's reply to an earlier post (by you, in fact!) 
http://marc.theaimsgroup.com/?l=struts-userm=103584892423199w=2.  He states that the 
name attribute is ignored.

Given that I don't know how the working version works.  I trust by works you mean 
that you are able to display a collection of label values.

Have you tried looking at what's going on at line 121 of NestedIterateTag?

Sorry I don't have any answers.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 27, 2002 9:49 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?



Thanks for the reply:
It is inside a nested form but I am getting these values by setting to page scope.

The nested iterate has no problem reading the collection. The problem is the equal and 
write tag *inside* the iterate.  They only work if I change them to their non nested 
versions and explicitly set an id to read by the *inner* tags.

** Summary  of code below **
The first define tag grabs a wrapper object from application scope and gets the 
internal List and sets it to page scope - This works. The second define tag gets a 
value from the form bean (using a nested form) and set it to page scope. - This works. 
The nested:iterate tag gets the  collectionCode from page scope. - This Works. The 
nested:equal tag *should* use property=value from each LabelValueBean in the List - 
This does not work.

* This code works  nested:define id=collectionCode 
name=%= WebConstants.COLLECTIONCODE_KEY % property=list/ nested:define 
id=col  property=collectionCode type=java.lang.String/

nested:iterate id=item  name=collectionCode 
type=com.nlg.ar.common.datatransfer.vo.LabelValueBean
logic:equal name=item property=value value=%= col %
   bean:write name=item property=label/
/logic:equal
/nested:iterate

* This code does NOT work - but I think that it should *** 
nested:define id=collectionCode name=%= 
WebConstants.STATICLIST_COLLECTIONCODE_KEY % property=list/ nested:define 
id=col  property=collectionCode type=java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate








Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 08:16:06 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I wonder if this would work

nested:root name=pageList
  nested:iterate property=this/
%-- etc --%
  /nested:iterate
/nested:root

Sri

-Original Message-
From: Sri Sankaran
Sent: Wednesday, November 27, 2002 9:13 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?


Is this happening inside a nested:form?  If so, I am fairly certain that 
nested:iterate ignores the value of its name attribute.  That would explain why your

nested:iterate name=pageList

isn't working.  Also, you probably recognize the problem with changing it to

nested:iterate property=pageList

That wont work since pageList isn't a property of your form bean.  So you'll have to 
specify a nested:root to tell the nested structure the root node.  However, I see that 
pageList isn't contained within another bean either.  There is a way around this 
situation; it just isn't coming to meI'll keep looking.

Anyway hope this gets your started.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:48 PM
To: [EMAIL PROTECTED]
Subject: [Nested Tags] Frustration..Should this work?


Greetings:
All I am trying to do is display a a selected item form a list.

 - pageList is standard java.util.List of LabelValueBeans set in page  scope.
 - cc is a String pulled out of the form bean and set to page scope.

Using the nested tags my first approach was this:

 nested:iterate  name=pageList 
  nested:equal  property=value value=%= cc %
nested:write   property=label/
  /nested:equal
  /nested:iterate


But to get it working I am forced to  redo it like this:
nested:iterate   id=it name=pageList type=org...LabelValueBean
 logic:equal  name=it property=value value=%= cc %
bean:write  name=it property=label/
 /logic:equal
/nested:iterate

Before I report this to bugzilla, I would like it  if someone could tell me if I am 
doing something wrong.

The error I get is:
2002-11-26 15:32:23 ApplicationDispatcher[/ar] Servlet.service() for servlet jsp threw 
exception java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:394)
  at
  org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229

RE: [Nested Tags] Frustration..Should this work?

2002-11-27 Thread Jeff_Mychasiw

Thank you for reminding me of that link.  I tried ./value and this/value
without success.

Even though I use the nested:form as the root..for this iterate tag I
want to tell it to look to
an object in page scope instead of the form bean. That is what I thought
the combinations of name and property were all
about.From docs:

**
The collection to be iterated over must be specified in one of the following ways:
As a runtime expression specified as the value of the collection attribute.
As a JSP bean specified by the name attribute.
As the property, specified by the property, of the JSP bean specified by the name 
attribute.


I understand that the name is not needed by the nested tags (thats why I
use them so much :-) ), but
the nested docs simply point to the docs for the standard logic tags.

The nested:iterate seems to work as expected, but the nested equal and
write either do not see the current object exposed by nested:iterate OR the
nested:iterate is not exposing the current object.

I guess my original question still is: should this code work?

nested:define id=collectionCode name=%=
WebConstants.COLLECTIONCODE_KEY % property=list/
nested:define id=col  property=collectionCode type
=java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate

Thanks for the help..




Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 09:09:59 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I suspected a problem to be with the iterate since that's what your stack
trace suggests.

Also, look at Arron's reply to an earlier post (by you, in fact!)
http://marc.theaimsgroup.com/?l=struts-userm=103584892423199w=2.  He
states that the name attribute is ignored.

Given that I don't know how the working version works.  I trust by works
you mean that you are able to display a collection of label values.

Have you tried looking at what's going on at line 121 of NestedIterateTag?

Sorry I don't have any answers.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 9:49 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?



Thanks for the reply:
It is inside a nested form but I am getting these values by setting to page
scope.

The nested iterate has no problem reading the collection. The problem is
the equal and write tag *inside* the iterate.  They only work if I change
them to their non nested versions and explicitly set an id to read by the
*inner* tags.

** Summary  of code below **
The first define tag grabs a wrapper object from application scope and gets
the internal List and sets it to page scope - This works. The second define
tag gets a value from the form bean (using a nested form) and set it to
page scope. - This works. The nested:iterate tag gets the  collectionCode
from page scope. - This Works. The nested:equal tag *should* use property
=value from each LabelValueBean in the List - This does not work.

* This code works  nested:define id
=collectionCode name=%= WebConstants.COLLECTIONCODE_KEY % property
=list/ nested:define id=col  property=collectionCode type
=java.lang.String/

nested:iterate id=item  name=collectionCode type
=com.nlg.ar.common.datatransfer.vo.LabelValueBean
logic:equal name=item property=value value=%= col %
   bean:write name=item property=label/
/logic:equal
/nested:iterate

* This code does NOT work - but I think that it should ***
nested:define id=collectionCode name=%=
WebConstants.STATICLIST_COLLECTIONCODE_KEY % property=list/
nested:define id=col  property=collectionCode type
=java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate








Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 08:16:06 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I wonder if this would work

nested:root name=pageList
  nested:iterate property=this/
%-- etc --%
  /nested:iterate
/nested:root

Sri

-Original Message-
From: Sri Sankaran
Sent: Wednesday, November 27, 2002 9:13 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?


Is this happening inside a nested:form?  If so, I am fairly certain that
nested:iterate ignores the value of its name attribute.  That would explain
why your

nested:iterate name=pageList

isn't working.  Also, you probably recognize the problem with changing it
to

nested:iterate property=pageList

That wont work since pageList isn't

RE: [Nested Tags] Frustration..Should this work?

2002-11-27 Thread Sri Sankaran
I don't have an answer to your question, should this code work -- since I've never 
used the name attribute in any nested tag other than nested:root.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 27, 2002 11:08 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?



Thank you for reminding me of that link.  I tried ./value and this/value without 
success.

Even though I use the nested:form as the root..for this iterate tag I want to 
tell it to look to an object in page scope instead of the form bean. That is what I 
thought the combinations of name and property were all about.From docs:

**
The collection to be iterated over must be specified in one of the following ways: As 
a runtime expression specified as the value of the collection attribute. As a JSP bean 
specified by the name attribute. As the property, specified by the property, of the 
JSP bean specified by the name attribute.


I understand that the name is not needed by the nested tags (thats why I use them so 
much :-) ), but the nested docs simply point to the docs for the standard logic tags.

The nested:iterate seems to work as expected, but the nested equal and write either do 
not see the current object exposed by nested:iterate OR the nested:iterate is not 
exposing the current object.

I guess my original question still is: should this code work?

nested:define id=collectionCode name=%= WebConstants.COLLECTIONCODE_KEY % 
property=list/ nested:define id=col  property=collectionCode type 
=java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate

Thanks for the help..




Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 09:09:59 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I suspected a problem to be with the iterate since that's what your stack trace 
suggests.

Also, look at Arron's reply to an earlier post (by you, in fact!) 
http://marc.theaimsgroup.com/?l=struts-userm=103584892423199w=2.  He states that the 
name attribute is ignored.

Given that I don't know how the working version works.  I trust by works you mean 
that you are able to display a collection of label values.

Have you tried looking at what's going on at line 121 of NestedIterateTag?

Sorry I don't have any answers.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 9:49 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?



Thanks for the reply:
It is inside a nested form but I am getting these values by setting to page scope.

The nested iterate has no problem reading the collection. The problem is the equal and 
write tag *inside* the iterate.  They only work if I change them to their non nested 
versions and explicitly set an id to read by the
*inner* tags.

** Summary  of code below **
The first define tag grabs a wrapper object from application scope and gets the 
internal List and sets it to page scope - This works. The second define tag gets a 
value from the form bean (using a nested form) and set it to page scope. - This works. 
The nested:iterate tag gets the  collectionCode from page scope. - This Works. The 
nested:equal tag *should* use property =value from each LabelValueBean in the List - 
This does not work.

* This code works  nested:define id =collectionCode 
name=%= WebConstants.COLLECTIONCODE_KEY % property =list/ nested:define 
id=col  property=collectionCode type =java.lang.String/

nested:iterate id=item  name=collectionCode type
=com.nlg.ar.common.datatransfer.vo.LabelValueBean
logic:equal name=item property=value value=%= col %
   bean:write name=item property=label/
/logic:equal
/nested:iterate

* This code does NOT work - but I think that it should *** 
nested:define id=collectionCode name=%= 
WebConstants.STATICLIST_COLLECTIONCODE_KEY % property=list/ nested:define 
id=col  property=collectionCode type =java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate








Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 08:16:06 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I wonder if this would work

nested:root name=pageList
  nested:iterate property=this/
%-- etc --%
  /nested:iterate
/nested:root

Sri

-Original Message-
From: Sri Sankaran
Sent: Wednesday, November 27, 2002 9:13 AM
To: Struts Users Mailing List
Subject: RE

RE: [Nested Tags] Frustration..Should this work?

2002-11-27 Thread Jeff_Mychasiw

Thanks again for all the help.

I guess I need to take a step back,
because we are in active development, I will go with what works, even
though I do not fully understand why :-)




Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 10:43:44 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I don't have an answer to your question, should this code work -- since
I've never used the name attribute in any nested tag other than
nested:root.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 11:08 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?



Thank you for reminding me of that link.  I tried ./value and this/value
without success.

Even though I use the nested:form as the root..for this iterate tag I
want to tell it to look to an object in page scope instead of the form
bean. That is what I thought the combinations of name and property were all
about.From docs:

**
The collection to be iterated over must be specified in one of the
following ways: As a runtime expression specified as the value of the
collection attribute. As a JSP bean specified by the name attribute. As the
property, specified by the property, of the JSP bean specified by the name
attribute.


I understand that the name is not needed by the nested tags (thats why I
use them so much :-) ), but the nested docs simply point to the docs for
the standard logic tags.

The nested:iterate seems to work as expected, but the nested equal and
write either do not see the current object exposed by nested:iterate OR the
nested:iterate is not exposing the current object.

I guess my original question still is: should this code work?

nested:define id=collectionCode name=%=
WebConstants.COLLECTIONCODE_KEY % property=list/ nested:define id
=col  property=collectionCode type =java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate

Thanks for the help..




Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 09:09:59 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Frustration..Should this work?


I suspected a problem to be with the iterate since that's what your stack
trace suggests.

Also, look at Arron's reply to an earlier post (by you, in fact!)
http://marc.theaimsgroup.com/?l=struts-userm=103584892423199w=2.  He
states that the name attribute is ignored.

Given that I don't know how the working version works.  I trust by works
you mean that you are able to display a collection of label values.

Have you tried looking at what's going on at line 121 of NestedIterateTag?

Sorry I don't have any answers.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 9:49 AM
To: Struts Users Mailing List
Subject: RE: [Nested Tags] Frustration..Should this work?



Thanks for the reply:
It is inside a nested form but I am getting these values by setting to page
scope.

The nested iterate has no problem reading the collection. The problem is
the equal and write tag *inside* the iterate.  They only work if I change
them to their non nested versions and explicitly set an id to read by the
*inner* tags.

** Summary  of code below **
The first define tag grabs a wrapper object from application scope and gets
the internal List and sets it to page scope - This works. The second define
tag gets a value from the form bean (using a nested form) and set it to
page scope. - This works. The nested:iterate tag gets the  collectionCode
from page scope. - This Works. The nested:equal tag *should* use property
=value from each LabelValueBean in the List - This does not work.

* This code works  nested:define id
=collectionCode name=%= WebConstants.COLLECTIONCODE_KEY % property
=list/ nested:define id=col  property=collectionCode type
=java.lang.String/

nested:iterate id=item  name=collectionCode type
=com.nlg.ar.common.datatransfer.vo.LabelValueBean
logic:equal name=item property=value value=%= col %
   bean:write name=item property=label/
/logic:equal
/nested:iterate

* This code does NOT work - but I think that it should ***
nested:define id=collectionCode name=%=
WebConstants.STATICLIST_COLLECTIONCODE_KEY % property=list/
nested:define id=col  property=collectionCode type
=java.lang.String/

nested:iterate   name=collectionCode 
nested:equal  property=value value=%= col %
   nested:write  property=label/
/nested:equal
/nested:iterate








Sri Sankaran [EMAIL PROTECTED] on 11/27/2002 08:16:06 AM

Please respond to Struts Users Mailing List

RE: Nested Tags situation any light would be appreciated

2002-11-04 Thread Sri Sankaran
Your JSP looks ok.  The fact that the data is displaying correctly in the first place 
suggests that the various elements in struts-config are ok as well.  

That brings us to what happens when the page is submitted.  You *should* (as a test) 
be able to set up an action that does nothing and just forwards back to the same 
location.

Can you describe -- possibly with a code snippet -- what's going on in your action?

Does your form-bean do anything in the reset and/or validate methods?

Sri

-Original Message-
From: Rick Reumann [mailto:maillist;reumann.net] 
Sent: Monday, November 04, 2002 10:20 AM
To: Struts List
Subject: Nested Tags situation any light would be appreciated


Sorry to repeat this question... possibly some fresh Monday blood could help...

I'm stumped here what I'm screwing up and would appreciate any help. I'm playing 
around using nested tags and for a simple example in my first action that brings me to 
the jsp everything gets prepopulated and the display is fine:

Ex output:
=
John
Enter Favorite Cars:
MustangPorsche   BMW

Bill
Enter Favorite Cars:
Corvette   Mercedes  Viper

Fred
Enter Favorite Cars:
A  B C
==

The problem is when you change the name of any of the cars, after the form submits and 
returns you to this page, it populates all the rows with whatever the first row has in 
it (In this case if you did nothing and hit submit all 3 rows would look like John's 
row). I'm sure it's something simple I'm screwing up and would appreciate any help. 
Here's the basics of the jsp nested tag page:

nested:form  action=myAction

   nested:iterate property=people 

   nested:write property=name/brR

Enter in Cars:br

nested:iterate property=carList

nested:text property=carName/

/nested:iterate

brbrbr

/nested:iterate

nested:hidden property=dispatch value=getResults/ brbr html:submit 
styleClass=field value=GET RESULTS/

/nested:form

//reminder:

Form Bean
 ArrayList people

 people is populated with Person beans

Each Person bean has the field
 String name;
 ArrayList carList

   carList is a list of CarBeans
   CarBean just has String carName

   
people = ArrayList in form bean of Person beans
name = String in Person Bean
carList = ArrayList of CarBean beans
carName = String field in CarBean


-- 

Rick
mailto:maillist;reumann.net


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Taylor, Jason
Just a hunch-- have you tried specifying a 'name' for the nested:iterate
tag?  

-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca]
Sent: Monday, October 28, 2002 8:03 AM
To: [EMAIL PROTECTED]
Subject: [Nested Tags] Nested vs logic tags..


Greetings:
  I am almost exclusively using nested tags.
Every now and then I run  into a problem and have to switch over the
corresponding logic or bean version.

Can anyony tell me if this is a bug?  I am using 1.1b2

I tried this with nested:equal but got a NullPointerException (listed
below)
nested:iterate property=meshList indexId=listIndex
  tr
 td
 %-- Show this only for the first item--%
 nested:equal name=listIndex value=0

  /nested:equal


but had to change the equals to:
 logic:equal name=listIndex value=0

  /logic:equal


2002-10-28 09:52:49 jsp: init
2002-10-28 09:52:49 ApplicationDispatcher[/ar] Servlet.service() for servlet
jsp threw exception
java.lang.NullPointerException
  at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:173)
  at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:195)
  at
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
tedPropertyHelper.java:242)
  at
org.apache.struts.taglib.nested.logic.NestedEqualTag.doStartTag(NestedEqualT
ag.java:91)
  at
org.apache.jsp.CustomerMeshMainForm$jsp._jspService(CustomerMeshMainForm$jsp
.java:475)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Jeff_Mychasiw

No I have not.
I could be wrong but I am under the assumptiion that  the name attribute is
used to look for a bean.

The documents state that the nested versions of the tags will work the same
but allow you exclude specific references to parent tags.
I have done this many times:
  logic:iterate name=myFormBean property=meshList id=myObject
indexId=listIndex type=com.nlg.ar.SomeVo
logic:equal name=listIndex value=0XXX/logic:iterate
bean:write name=myObject property=legalName /
  /logic:iterate

  I like the nested version..
  nested:iterate property=meshList indexId=listIndex 
nested:equal name=listIndex value=0XXX/nested:iterate
nested:write property=legalName /
  /nested:iterate

  It is not the end of the world, but I in order to use the indexId I have
 to use the logic:equal
  (note the equal tag)
  nested:iterate property=meshList indexId=listIndex 
logic:equal name=listIndex value=0XXX/logic:iterate
nested:write property=legalName /
  /nested:iterate







Taylor, Jason [EMAIL PROTECTED] on 10/28/2002 02:38:33 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc:

Subject:RE: [Nested Tags] Nested vs logic tags..


Just a hunch-- have you tried specifying a 'name' for the nested:iterate
tag?

-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca]
Sent: Monday, October 28, 2002 8:03 AM
To: [EMAIL PROTECTED]
Subject: [Nested Tags] Nested vs logic tags..


Greetings:
  I am almost exclusively using nested tags.
Every now and then I run  into a problem and have to switch over the
corresponding logic or bean version.

Can anyony tell me if this is a bug?  I am using 1.1b2

I tried this with nested:equal but got a NullPointerException (listed
below)
nested:iterate property=meshList indexId=listIndex
  tr
 td
 %-- Show this only for the first item--%
 nested:equal name=listIndex value=0

  /nested:equal


but had to change the equals to:
 logic:equal name=listIndex value=0

  /logic:equal


2002-10-28 09:52:49 jsp: init
2002-10-28 09:52:49 ApplicationDispatcher[/ar] Servlet.service() for
servlet
jsp threw exception
java.lang.NullPointerException
  at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste

dPropertyHelper.java:173)
  at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste

dPropertyHelper.java:195)
  at
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes

tedPropertyHelper.java:242)
  at
org.apache.struts.taglib.nested.logic.NestedEqualTag.doStartTag(NestedEqualT

ag.java:91)
  at
org.apache.jsp.CustomerMeshMainForm$jsp.
_jspService(CustomerMeshMainForm$jsp
.java:475)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org








--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Arron Bates
 Just a hunch-- have you tried specifying a 'name' for the nested:iterate
 tag?  

The nested tags don't need it, and if it's provided they will ignore it.
Why?... because all the tags are working off the same bean structure,
and this is defined for us by the form tag. The nested tags will fetch
this bean. Because of this, all the nested tags within the form bean
don't need the name property to be set.


 From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca]
 Greetings:
   I am almost exclusively using nested tags.
 Every now and then I run  into a problem and have to switch over the
 corresponding logic or bean version.
 
 Can anyony tell me if this is a bug?  I am using 1.1b2
 
 I tried this with nested:equal but got a NullPointerException (listed
 below)
 nested:iterate property=meshList indexId=listIndex
   tr
  td
  %-- Show this only for the first item--%
  nested:equal name=listIndex value=0
 
   /nested:equal

Try remove the name property (for reasons explained above), and try
aiming the property property at it.

It looks like you're trying to get the current object of the iterate
tag, so this may work...

nested:iterate property=meshList
  tr
td
  nested:equal property=this/ value=0
[...]
  /nested:equal
/td
  /tr
/nested:iterate


...the this/ or ./ simply refers to the current parent object level
just like using ./ on a command line. If it's not the current object
you're after, point the property at one of it's relative properties.

See if that works.


Arron.



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE:[NESTED TAGS] Questions regarding nested:iterate and indexid....

2002-10-08 Thread Jeff_Mychasiw

Just to close this topic, the problem I described seemed to go away when I
upgraded to 1.1b2.

I guess it was about time anyway...   :o)


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




Re: [NESTED TAGS] Questions regarding nested:iterate and indexid....

2002-10-08 Thread Eddie Bush

Go for the nightly ... if you are going that far, go for the nightly (if 
you can at all).

[EMAIL PROTECTED] wrote:

Just to close this topic, the problem I described seemed to go away when I
upgraded to 1.1b2.

I guess it was about time anyway...   :o)


-- 
Eddie Bush




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




Re: [NESTED TAGS] Questions regarding nested:iterate and indexid....

2002-10-07 Thread Jeff_Mychasiw


Sorry I should have mentioned it.  I am using Tomcat 4.04/JBoss3.0  for
this test.

We are also planning to move to tomcat 4.1.12 asap.




[EMAIL PROTECTED] (David M. Karr) on 10/06/2002 04:24:25 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Re: [NESTED TAGS] Questions regarding nested:iterate and
   indexid


 Jeff == Jeff Mychasiw [EMAIL PROTECTED] writes:

Jeff I am using 1.1b1
Jeff Summary: I cannot make use of the indexId reference in side a
java method, unless I specify an id=XX attribute.
Jeff The funny thing is that the id attribute can be named anything.

It may not be relevant, but it might be important to know what web
container
and version you're using.

--
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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








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




Re: [NESTED TAGS] Questions regarding nested:iterate and indexid....

2002-10-06 Thread David M. Karr

 Jeff == Jeff Mychasiw [EMAIL PROTECTED] writes:

Jeff I am using 1.1b1
Jeff Summary: I cannot make use of the indexId reference in side a java method, 
unless I specify an id=XX attribute.
Jeff The funny thing is that the id attribute can be named anything.

It may not be relevant, but it might be important to know what web container
and version you're using.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




RE: nested tags - version problem

2002-09-18 Thread Lister, Tom (ANTS)

Hi
after some double checking the problem is with our build copying in the old
tld for struts 1.1
WebLogic seems to insist that all tags are valid for the application
regardless of whether we are using them 
in our pages.
performance
Our main master/detail style jounral entry seems to have too many tags now
and is very slow in displaying, even on subsequent (compiled) requests.
Traces should it to slow down on page display and not business components
Our suspect are garbage collection of tags or overhead from the try/catch
blocks
Any suggestions?

:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 15:31
To: Struts Users Mailing List
Subject: Re: nested tags - version problem


Do you mean the nested_tags_10.jar from my site?...

I just checked the tld, there's no mention of the EmptyTag or the
NestedEmptyTag that extends from it. It is in the Jar, but if it's not
in the tld file, it's not going to get called.

Other people are running off weblogic on the old jars also.

Arron.


On Tue, 2002-09-17 at 20:31, Lister, Tom (ANTS) wrote:
 we are using the nested tags library that is compatable with struts 1.0
 but it depends on but it still contains references to the 'EmptyTag',
which
 I think is 1.1
 this has only become apparent when moving from development using tomcat to
 deployment on web-logic
 
 has anyone got this problem.
 
 If it time for 1.1, then is it straight forward to run up our current
 application under 1.1 and what are the 
 pitfalls. we're coming to the end of a large development and don't really
 have time for major reworking of the application
 
 :-)
 Tom Lister
 * 020 7612 3030
 * [EMAIL PROTECTED]
 
 

***
 This communication (including any attachments) contains confidential
information.  If you are not the intended recipient and you have received
this communication in error, you should destroy it without copying,
disclosing or otherwise using its contents.  Please notify the sender
immediately of the error.
 
 Internet communications are not necessarily secure and may be intercepted
or changed after they are sent.  Abbey National Treasury Services plc does
not accept liability for any loss you may suffer as a result of interception
or any liability for such changes.  If you wish to confirm the origin or
content of this communication, please contact the sender by using an
alternative means of communication.
 
 This communication does not create or modify any contract and, unless
otherwise stated, is not intended to be contractually binding.
 
 Abbey National Treasury Services plc. Registered Office:  Abbey National
House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
England under Company Registration Number: 2338548.  Regulated by the
Financial Services Authority (FSA).

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



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


***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***


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




Re: nested tags - version problem

2002-09-17 Thread Arron Bates

Do you mean the nested_tags_10.jar from my site?...

I just checked the tld, there's no mention of the EmptyTag or the
NestedEmptyTag that extends from it. It is in the Jar, but if it's not
in the tld file, it's not going to get called.

Other people are running off weblogic on the old jars also.

Arron.


On Tue, 2002-09-17 at 20:31, Lister, Tom (ANTS) wrote:
 we are using the nested tags library that is compatable with struts 1.0
 but it depends on but it still contains references to the 'EmptyTag', which
 I think is 1.1
 this has only become apparent when moving from development using tomcat to
 deployment on web-logic
 
 has anyone got this problem.
 
 If it time for 1.1, then is it straight forward to run up our current
 application under 1.1 and what are the 
 pitfalls. we're coming to the end of a large development and don't really
 have time for major reworking of the application
 
 :-)
 Tom Lister
 * 020 7612 3030
 * [EMAIL PROTECTED]
 
 
 ***
 This communication (including any attachments) contains confidential information.  
If you are not the intended recipient and you have received this communication in 
error, you should destroy it without copying, disclosing or otherwise using its 
contents.  Please notify the sender immediately of the error.
 
 Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.
 
 This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.
 
 Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
 ***
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]



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




RE: Nested tags and performance (after compiling)

2002-09-03 Thread Lister, Tom (ANTS)

Hi
One more try
Does anyone know how to deal with performance problems in JSP pages using
large numbers of tags
We are using the the nested taglib extension and finding the time to display
a page is not acceptable to users.




:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Lister, Tom (ANTS) [mailto:[EMAIL PROTECTED]]
Sent: 02 September 2002 09:05
To: 'Struts Users Mailing List'
Subject: Nested tags and performance (after compiling)


Hi
This isn't a compile problem. The pages performance are consistently slow
even after the first access.
I've heard that tag libraries can cause performance problems. 
Does anyone have strategies for dealing with this?
Is it related to the nested tag library in particular?
We've put traces in to the detail part if the master detail display using
nested tags and the performance is erratic ( on a machine we have control
over) hence we suspect it's the garbage collection removing objects created
by the tags.

:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Michael Lee [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 15:54
To: Struts Users Mailing List
Subject: Re: Nested tags performance


In addition to pre-compiling, most JSP engines compile only once unless a
new version of your JSP is added so it should only be slow upon first hit.

I've run into this problem before. The solution is...
Don't show the bosses/customers the product until you run through on
iteration of testing on all the jsps you plan to show!
With bosses/customers, it rarely matters when you say 'But it's only slow
the first time'! They don't understand compiled/slow once.

Michael Lee

- Original Message -
From: Donald Ball [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 28, 2002 10:23 AM
Subject: RE: Nested tags performance


 On 8/28/2002 at 1:58 PM Lister, Tom (ANTS) wrote:

 I have got a page working with nested tags and the functionality is
 brilliant for master/detail pages
 However the performance is abysmal, to the point where we mayhave to
 abandon
 it completely.
 The problem appears to be during the page compile/display phase. it is a
 bit
 erratic as to where it actually slows down and we suspect the problem is
 the
 garbage collector clearing up objects created by various tags although
 we've
 yet to put it through Optimizeit
 Any suggestions for speeding up?

 Have you tried precompiling your jsp pages? any has an optional task that
 purports to make that easy.

 - donald


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


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


***
This communication (including any attachments) contains confidential
information.  If you are not the intended recipient and you have received
this communication in error, you should destroy it without copying,
disclosing or otherwise using its contents.  Please notify the sender
immediately of the error.

Internet communications are not necessarily secure and may be intercepted or
changed after they are sent.  Abbey National Treasury Services plc does not
accept liability for any loss you may suffer as a result of interception or
any liability for such changes.  If you wish to confirm the origin or
content of this communication, please contact the sender by using an
alternative means of communication.

This communication does not create or modify any contract and, unless
otherwise stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National
House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
England under Company Registration Number: 2338548.  Regulated by the
Financial Services Authority (FSA).
***


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


***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise

Re: Nested tags and jsp:include

2002-08-28 Thread Spunky Monkey

pop an empty nested:root tag around all the nested tags in the included
page. Nested tags always need their root tag. In this instance, the
empty root tag will pick up where the other page left off.


First page, eg...

nested:form name=myFormBean
  nested:iterate property=myList
jsp:include page=myListItemPage.jsp
  /nested:iterate
/nested:form


Included Page, eg...

nested:root
  [... other nested stuff...]
/nested:root


The tree tutorial on my site uses dynamic included and the nested tags
to do its thing. This is how true JSP recursion happens.

Should do the trick.


Arron.


On Wed, 2002-08-28 at 19:29, Jon.Ridgway wrote:
 Hi All,
 
 I havea problem with the nested tags. If I use a jsp:include on a page and
 the included jsp tires to use the nested tags I get a NullPointerException
 thrown by one of the Nested classes. I guess that something is being stored
 in the page context by the nested tags and that the included page gets a
 different page context (???). The normal bean/html tags seem to be fine.
 
 Is there a work round, as I really need to use the nested tags and an
 included page. I have a nested:nest just before the jsp:include that sets
 the nested level to an address on my form - the form has delivery, sender
 and receiver addresses - each uses the same address value object. If the
 nested tags worked on the included jsp (my address jsp) I could reuse it for
 each address.
 
 Any idears
 
 Jon.
 
 The contents of this email are intended only for the named addressees and
 may contain confidential and/or privileged material. If received in error
 please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
 e-mail from your system. Unauthorised review, distribution, disclosure or
 other use of this information could constitute a breach of confidence. Your
 co-operation in this matter is greatly appreciated. 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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




RE: Nested tags and jsp:include

2002-08-28 Thread Lister, Tom (ANTS)

i tried this in my include page and get
org.apache.jasper.compiler.CompileException: /Journal/JournalEdit.jsp(235,3)
/Journal/JournalLineEdit.jsp(1,0) According to the TLD attribute name is
mandatory for tag root



:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Spunky Monkey [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 11:05
To: Struts Users Mailing List
Subject: Re: Nested tags and jsp:include


pop an empty nested:root tag around all the nested tags in the included
page. Nested tags always need their root tag. In this instance, the
empty root tag will pick up where the other page left off.


First page, eg...

nested:form name=myFormBean
  nested:iterate property=myList
jsp:include page=myListItemPage.jsp
  /nested:iterate
/nested:form


Included Page, eg...

nested:root
  [... other nested stuff...]
/nested:root


The tree tutorial on my site uses dynamic included and the nested tags
to do its thing. This is how true JSP recursion happens.

Should do the trick.


Arron.


On Wed, 2002-08-28 at 19:29, Jon.Ridgway wrote:
 Hi All,
 
 I havea problem with the nested tags. If I use a jsp:include on a page and
 the included jsp tires to use the nested tags I get a NullPointerException
 thrown by one of the Nested classes. I guess that something is being
stored
 in the page context by the nested tags and that the included page gets a
 different page context (???). The normal bean/html tags seem to be fine.
 
 Is there a work round, as I really need to use the nested tags and an
 included page. I have a nested:nest just before the jsp:include that sets
 the nested level to an address on my form - the form has delivery, sender
 and receiver addresses - each uses the same address value object. If the
 nested tags worked on the included jsp (my address jsp) I could reuse it
for
 each address.
 
 Any idears
 
 Jon.
 
 The contents of this email are intended only for the named addressees and
 may contain confidential and/or privileged material. If received in error
 please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
 e-mail from your system. Unauthorised review, distribution, disclosure or
 other use of this information could constitute a breach of confidence.
Your
 co-operation in this matter is greatly appreciated. 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




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


***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***


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




RE: Nested tags performance

2002-08-28 Thread Lister, Tom (ANTS)

I have got a page working with nested tags and the functionality is
brilliant for master/detail pages
However the performance is abysmal, to the point where we mayhave to abandon
it completely.
The problem appears to be during the page compile/display phase. it is a bit
erratic as to where it actually slows down and we suspect the problem is the
garbage collector clearing up objects created by various tags although we've
yet to put it through Optimizeit
Any suggestions for speeding up?

:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Lister, Tom (ANTS) [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 11:35
To: 'Struts Users Mailing List'
Subject: RE: Nested tags and jsp:include


i tried this in my include page and get
org.apache.jasper.compiler.CompileException: /Journal/JournalEdit.jsp(235,3)
/Journal/JournalLineEdit.jsp(1,0) According to the TLD attribute name is
mandatory for tag root



:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Spunky Monkey [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 11:05
To: Struts Users Mailing List
Subject: Re: Nested tags and jsp:include


pop an empty nested:root tag around all the nested tags in the included
page. Nested tags always need their root tag. In this instance, the
empty root tag will pick up where the other page left off.


First page, eg...

nested:form name=myFormBean
  nested:iterate property=myList
jsp:include page=myListItemPage.jsp
  /nested:iterate
/nested:form


Included Page, eg...

nested:root
  [... other nested stuff...]
/nested:root


The tree tutorial on my site uses dynamic included and the nested tags
to do its thing. This is how true JSP recursion happens.

Should do the trick.


Arron.


On Wed, 2002-08-28 at 19:29, Jon.Ridgway wrote:
 Hi All,
 
 I havea problem with the nested tags. If I use a jsp:include on a page and
 the included jsp tires to use the nested tags I get a NullPointerException
 thrown by one of the Nested classes. I guess that something is being
stored
 in the page context by the nested tags and that the included page gets a
 different page context (???). The normal bean/html tags seem to be fine.
 
 Is there a work round, as I really need to use the nested tags and an
 included page. I have a nested:nest just before the jsp:include that sets
 the nested level to an address on my form - the form has delivery, sender
 and receiver addresses - each uses the same address value object. If the
 nested tags worked on the included jsp (my address jsp) I could reuse it
for
 each address.
 
 Any idears
 
 Jon.
 
 The contents of this email are intended only for the named addressees and
 may contain confidential and/or privileged material. If received in error
 please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
 e-mail from your system. Unauthorised review, distribution, disclosure or
 other use of this information could constitute a breach of confidence.
Your
 co-operation in this matter is greatly appreciated. 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




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


***
This communication (including any attachments) contains confidential
information.  If you are not the intended recipient and you have received
this communication in error, you should destroy it without copying,
disclosing or otherwise using its contents.  Please notify the sender
immediately of the error.

Internet communications are not necessarily secure and may be intercepted or
changed after they are sent.  Abbey National Treasury Services plc does not
accept liability for any loss you may suffer as a result of interception or
any liability for such changes.  If you wish to confirm the origin or
content of this communication, please contact the sender by using an
alternative means of communication.

This communication does not create or modify any contract and, unless
otherwise stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National
House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
England under Company Registration Number: 2338548.  Regulated by the
Financial Services Authority (FSA).
***


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


***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender

RE: Nested tags performance

2002-08-28 Thread Donald Ball

On 8/28/2002 at 1:58 PM Lister, Tom (ANTS) wrote:

I have got a page working with nested tags and the functionality is
brilliant for master/detail pages
However the performance is abysmal, to the point where we mayhave to
abandon
it completely.
The problem appears to be during the page compile/display phase. it is a
bit
erratic as to where it actually slows down and we suspect the problem is
the
garbage collector clearing up objects created by various tags although
we've
yet to put it through Optimizeit
Any suggestions for speeding up?

Have you tried precompiling your jsp pages? any has an optional task that
purports to make that easy.

- donald


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




Re: Nested tags performance

2002-08-28 Thread Michael Lee

In addition to pre-compiling, most JSP engines compile only once unless a
new version of your JSP is added so it should only be slow upon first hit.

I've run into this problem before. The solution is...
Don't show the bosses/customers the product until you run through on
iteration of testing on all the jsps you plan to show!
With bosses/customers, it rarely matters when you say 'But it's only slow
the first time'! They don't understand compiled/slow once.

Michael Lee

- Original Message -
From: Donald Ball [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 28, 2002 10:23 AM
Subject: RE: Nested tags performance


 On 8/28/2002 at 1:58 PM Lister, Tom (ANTS) wrote:

 I have got a page working with nested tags and the functionality is
 brilliant for master/detail pages
 However the performance is abysmal, to the point where we mayhave to
 abandon
 it completely.
 The problem appears to be during the page compile/display phase. it is a
 bit
 erratic as to where it actually slows down and we suspect the problem is
 the
 garbage collector clearing up objects created by various tags although
 we've
 yet to put it through Optimizeit
 Any suggestions for speeding up?

 Have you tried precompiling your jsp pages? any has an optional task that
 purports to make that easy.

 - donald


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


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




Re: nested tags --- caught me again--- urgent help needed.

2002-08-02 Thread Sanjay Choudhary

Arron,

We also discovered that it works for the attributes
without _(underscore) in them. With attribute name
with an underscore it fails. 

we are using struts 1.1 beta dt. 30 May 2002.

-Sanjay


--- Arron Bates [EMAIL PROTECTED] wrote:
 it's looking for ...
 
 public String getLast_name()
 public void setLast_name(String newVal)
 
 ...in your personVO object. From this uml-ish
 diagram (last_name:String)
 it's hard to make this out.
 
 
 Arron.
 
 
 
  Hi friends,
  
  I am kind of in a loop with nested tags.
  
  In my formbean I have attribute
  
  authority: AuthorityVo
|
|
-- person:PersonVo
  |
  |
  -- last_name:String
  
  I wish to display name attribute in my jsp
  
  To display this I am doing the following
  
  nested:nest property=authority
 nested:nest property=person
nested:write property=last_name/
 /nested:nest
  /nested:nest
  
  I get an error no setter/getter defined for
  authority.person.last_name. Where as methods are
  defined?
  
  Please help.
  
  -Sanjay
  
  __
  Do You Yahoo!?
  Yahoo! Health - Feel better, live better
  http://health.yahoo.com
 
 
 
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: Nested Tags question

2002-06-14 Thread Arron Bates

 As far as the problem goes concerning setting against valid indices, 
 my code does that simply enough using a check against ArrayList.size() 
 and the index from the request parameter - if the size is too small, I 
 just add new objects - 3 lines of code. This is all in a for loop, 
 which could recurse - presumably what your commons wrapper does. Guess 
 I'll find out. 



That's pretty much what it does.
Only thing is it's tackled at the collection level so that you only need 
to use the properties which return and set the collection itself. You 
have to provide one of these to the iterate tags anyways. Means you 
don't have to manage the collections yourself.

It's all of a muchness, so I'll just say it's less to be concerned with 
on a regular basis as a wrapper  :)


Arron.


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




Re: Nested Tags question

2002-06-13 Thread Craig R. McClanahan



On Thu, 13 Jun 2002, Arron Bates wrote:

 Date: Thu, 13 Jun 2002 14:14:13 +1000
 From: Arron Bates [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Nested Tags question

 
 
 I know JSP will automatically save parameters to a javabean with the
 correctly named getters and setters, but there's obviously a gap in my
 knowledge because all my attempts to recreate the situation above have
 failed.
 

 Setting form properties against beans is a Struts thing, not a JSP
 thing. The property thing is a Bean thin and can be looked up in the
 JavaBean spec.

 The example you quote...

 monkeyTeamAlpha.monkeyWorkers[0].salary

 ...is a nested property. An invention implemented within Struts
 (Craig?).

Yep, although in Struts 1.1 it is really a commons-beanutils thing
because we abstracted out this generally useful code into a separate
package.

 What it basically is, is a string of calls rather than the
 single property method. Here, it will get a hold of the form bean, get a
 hold of the bean returned from the monkeyTeamAlphaproperty. On this
 bean, it will invoke the indexed property monkeyWorkers[0] which will
 pluck a bean from a collection or index provided, from this last bean it
 will will get a hold of its salary property, and set the value.


At each stage, you also get the benefit of some intelligence that is built
in to the underlying PropertyUtils class.  For example, the JavaBeans spec
defines two ways to define an indexed property -- you can use getter and
setter methods that take a value and a subscript, or you can use getter
and setter methods that return the entire array.  PropertyUtils makes the
expression listed above work for either (or even for a property whose
value is a java.util.List, which is an extension to the JavaBeans spec).

 All this boils down to, is that you can compose objects a little
 cleaner, rather than have truly enormous beans for everything. Having
 the indexed properties allows for lists and whatever else.

 The ability for nesting beans has been in Struts for a long time. The
 nested tags just make it much easier.

 There's a primer and tutorial for nested beans here...

 http://www.keyboardmonkey.com/next

 ...it should take you over creating and using such a construct.

 Hope this gets you on th path you're after.

Another area of useful learning for the future is the JSP Standard Tag
Library (JSTL).  Although the expression language syntax supported by JSTL
is different from the one in Struts, it is well worth learning about --
this expression language will be supported anywhere in a JSP page in JSP
1.3, and (in the mean time) we will likely adapt Struts tags to be able to
use it as well.



 Arron.


Craig


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




RE: nested tags doubt by radhika

2002-06-13 Thread SATISH.T

Yeah I have tried out most of the nested tags. What kind of info r u
looking for.

-Original Message-
From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: nested tags doubt by radhika

hi,
Has anyone used nested:text tag, or any other tag like
nested:checkbox 
etc ?
Can anyone provide any info. on it

_
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


Re: nested tags doubt by radhika

2002-06-13 Thread Radhika Nadkarni

hi,
wat is the diff. between nested:text and html:text tags ??
Help reqd. urgently


From: Radhika Nadkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: nested tags doubt by radhika
Date: Thu, 13 Jun 2002 09:04:15 +

hi,
Has anyone used nested:text tag, or any other tag like nested:checkbox 
etc ?
Can anyone provide any info. on it

_
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Re: nested tags doubt by radhika

2002-06-13 Thread adam . hardy

nested:text is based on html:text but has added functionality to allow
you to nest the tags to reflect beans nested in the formbean, like
Russian Dolls. Check out the archives here, check out the tutorials at
www.keyboardmonkey.com

Adam


Radhika Nadkarni [EMAIL PROTECTED] schrieb am 13.06.2002,
11:29:48:
 hi,
 wat is the diff. between  and  tags ??
 Help reqd. urgently
 
 
 From: Radhika Nadkarni 
 Reply-To: Struts Users Mailing List 
 To: [EMAIL PROTECTED]
 Subject: nested tags doubt by radhika
 Date: Thu, 13 Jun 2002 09:04:15 +
 
 hi,
 Has anyone used  tag, or any other tag like  
 etc ?
 Can anyone provide any info. on it
 
 _
 Join the worldÂ’s largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:   
 
 For additional commands, e-mail: 
 
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
 
 
 --
 To unsubscribe, e-mail:   
 For additional commands, e-mail:

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




Re: Re: Nested Tags question

2002-06-13 Thread adam . hardy

So Craig, 
does the process work at submit time (when the request parameters are
being put into the nested beans) via calls to the getter methods to get
the beans on which the parameters have to be set? 

I can't see how else it would work.


Adam



Craig R. McClanahan [EMAIL PROTECTED] schrieb am 13.06.2002,
08:22:43:
 
 
 On Thu, 13 Jun 2002, Arron Bates wrote:
 
  Date: Thu, 13 Jun 2002 14:14:13 +1000
  From: Arron Bates 
  Reply-To: Struts Users Mailing List 
  To: Struts Users Mailing List 
  Subject: Re: Nested Tags question
 
  
  
  I know JSP will automatically save parameters to a javabean with the
  correctly named getters and setters, but there's obviously a gap in my
  knowledge because all my attempts to recreate the situation above have
  failed.
  
 
  Setting form properties against beans is a Struts thing, not a JSP
  thing. The property thing is a Bean thin and can be looked up in the
  JavaBean spec.
 
  The example you quote...
 
  monkeyTeamAlpha.monkeyWorkers[0].salary
 
  ...is a nested property. An invention implemented within Struts
  (Craig?).
 
 Yep, although in Struts 1.1 it is really a commons-beanutils thing
 because we abstracted out this generally useful code into a separate
 package.
 
  What it basically is, is a string of calls rather than the
  single property method. Here, it will get a hold of the form bean, get a
  hold of the bean returned from the monkeyTeamAlphaproperty. On this
  bean, it will invoke the indexed property monkeyWorkers[0] which will
  pluck a bean from a collection or index provided, from this last bean it
  will will get a hold of its salary property, and set the value.
 
 
 At each stage, you also get the benefit of some intelligence that is built
 in to the underlying PropertyUtils class.  For example, the JavaBeans spec
 defines two ways to define an indexed property -- you can use getter and
 setter methods that take a value and a subscript, or you can use getter
 and setter methods that return the entire array.  PropertyUtils makes the
 expression listed above work for either (or even for a property whose
 value is a java.util.List, which is an extension to the JavaBeans spec).
 
  All this boils down to, is that you can compose objects a little
  cleaner, rather than have truly enormous beans for everything. Having
  the indexed properties allows for lists and whatever else.
 
  The ability for nesting beans has been in Struts for a long time. The
  nested tags just make it much easier.
 
  There's a primer and tutorial for nested beans here...
 
  http://www.keyboardmonkey.com/next
 
  ...it should take you over creating and using such a construct.
 
  Hope this gets you on th path you're after.
 
 Another area of useful learning for the future is the JSP Standard Tag
 Library (JSTL).  Although the expression language syntax supported by JSTL
 is different from the one in Struts, it is well worth learning about --
 this expression language will be supported anywhere in a JSP page in JSP
 1.3, and (in the mean time) we will likely adapt Struts tags to be able to
 use it as well.
 
 
 
  Arron.
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 For additional commands, e-mail:

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




Re: Re: Nested Tags question

2002-06-13 Thread Craig R. McClanahan



On Thu, 13 Jun 2002 [EMAIL PROTECTED] wrote:

 Date: Thu, 13 Jun 2002 11:43:59 +0200
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Re: Nested Tags question

 So Craig,
 does the process work at submit time (when the request parameters are
 being put into the nested beans) via calls to the getter methods to get
 the beans on which the parameters have to be set?

 I can't see how else it would work.


It depends on what context you are using the expressions in.  For example:

  !-- Assume the form bean name is customerForm --
  html:form action=/editCustomer
...
html:text property=mailingAddress.city/
...
  /html:form

will, in effect, do a call to:

  customerForm.getMailingAddress().getCity()

when the page is displayed, and a call to:

  customerForm.getMailingAddress().setCity()

when the request parameters are being copied in to the form bean.


 Adam


Craig




 Craig R. McClanahan [EMAIL PROTECTED] schrieb am 13.06.2002,
 08:22:43:
 
 
  On Thu, 13 Jun 2002, Arron Bates wrote:
 
   Date: Thu, 13 Jun 2002 14:14:13 +1000
   From: Arron Bates
   Reply-To: Struts Users Mailing List
   To: Struts Users Mailing List
   Subject: Re: Nested Tags question
  
   
   
   I know JSP will automatically save parameters to a javabean with the
   correctly named getters and setters, but there's obviously a gap in my
   knowledge because all my attempts to recreate the situation above have
   failed.
   
  
   Setting form properties against beans is a Struts thing, not a JSP
   thing. The property thing is a Bean thin and can be looked up in the
   JavaBean spec.
  
   The example you quote...
  
   monkeyTeamAlpha.monkeyWorkers[0].salary
  
   ...is a nested property. An invention implemented within Struts
   (Craig?).
 
  Yep, although in Struts 1.1 it is really a commons-beanutils thing
  because we abstracted out this generally useful code into a separate
  package.
 
   What it basically is, is a string of calls rather than the
   single property method. Here, it will get a hold of the form bean, get a
   hold of the bean returned from the monkeyTeamAlphaproperty. On this
   bean, it will invoke the indexed property monkeyWorkers[0] which will
   pluck a bean from a collection or index provided, from this last bean it
   will will get a hold of its salary property, and set the value.
  
 
  At each stage, you also get the benefit of some intelligence that is built
  in to the underlying PropertyUtils class.  For example, the JavaBeans spec
  defines two ways to define an indexed property -- you can use getter and
  setter methods that take a value and a subscript, or you can use getter
  and setter methods that return the entire array.  PropertyUtils makes the
  expression listed above work for either (or even for a property whose
  value is a java.util.List, which is an extension to the JavaBeans spec).
 
   All this boils down to, is that you can compose objects a little
   cleaner, rather than have truly enormous beans for everything. Having
   the indexed properties allows for lists and whatever else.
  
   The ability for nesting beans has been in Struts for a long time. The
   nested tags just make it much easier.
  
   There's a primer and tutorial for nested beans here...
  
   http://www.keyboardmonkey.com/next
  
   ...it should take you over creating and using such a construct.
  
   Hope this gets you on th path you're after.
 
  Another area of useful learning for the future is the JSP Standard Tag
  Library (JSTL).  Although the expression language syntax supported by JSTL
  is different from the one in Struts, it is well worth learning about --
  this expression language will be supported anywhere in a JSP page in JSP
  1.3, and (in the mean time) we will likely adapt Struts tags to be able to
  use it as well.
 
  
  
   Arron.
  
 
  Craig
 
 
  --
  To unsubscribe, e-mail:
  For additional commands, e-mail:

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




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




RE: Re: Nested Tags question

2002-06-13 Thread Jayaraman Dorai

When I use nested tags, I am not able to access it through java scripts since the name 
is mailingAddress.city. Does anyone have a work around or am I missing something?

Jayaraman

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:23 PM
To: Struts Users Mailing List
Subject: Re: Re: Nested Tags question




On Thu, 13 Jun 2002 [EMAIL PROTECTED] wrote:

 Date: Thu, 13 Jun 2002 11:43:59 +0200
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Re: Nested Tags question

 So Craig,
 does the process work at submit time (when the request parameters are
 being put into the nested beans) via calls to the getter methods to get
 the beans on which the parameters have to be set?

 I can't see how else it would work.


It depends on what context you are using the expressions in.  For example:

  !-- Assume the form bean name is customerForm --
  html:form action=/editCustomer
...
html:text property=mailingAddress.city/
...
  /html:form

will, in effect, do a call to:

  customerForm.getMailingAddress().getCity()

when the page is displayed, and a call to:

  customerForm.getMailingAddress().setCity()

when the request parameters are being copied in to the form bean.


 Adam


Craig




 Craig R. McClanahan [EMAIL PROTECTED] schrieb am 13.06.2002,
 08:22:43:
 
 
  On Thu, 13 Jun 2002, Arron Bates wrote:
 
   Date: Thu, 13 Jun 2002 14:14:13 +1000
   From: Arron Bates
   Reply-To: Struts Users Mailing List
   To: Struts Users Mailing List
   Subject: Re: Nested Tags question
  
   
   
   I know JSP will automatically save parameters to a javabean with the
   correctly named getters and setters, but there's obviously a gap in my
   knowledge because all my attempts to recreate the situation above have
   failed.
   
  
   Setting form properties against beans is a Struts thing, not a JSP
   thing. The property thing is a Bean thin and can be looked up in the
   JavaBean spec.
  
   The example you quote...
  
   monkeyTeamAlpha.monkeyWorkers[0].salary
  
   ...is a nested property. An invention implemented within Struts
   (Craig?).
 
  Yep, although in Struts 1.1 it is really a commons-beanutils thing
  because we abstracted out this generally useful code into a separate
  package.
 
   What it basically is, is a string of calls rather than the
   single property method. Here, it will get a hold of the form bean, get a
   hold of the bean returned from the monkeyTeamAlphaproperty. On this
   bean, it will invoke the indexed property monkeyWorkers[0] which will
   pluck a bean from a collection or index provided, from this last bean it
   will will get a hold of its salary property, and set the value.
  
 
  At each stage, you also get the benefit of some intelligence that is built
  in to the underlying PropertyUtils class.  For example, the JavaBeans spec
  defines two ways to define an indexed property -- you can use getter and
  setter methods that take a value and a subscript, or you can use getter
  and setter methods that return the entire array.  PropertyUtils makes the
  expression listed above work for either (or even for a property whose
  value is a java.util.List, which is an extension to the JavaBeans spec).
 
   All this boils down to, is that you can compose objects a little
   cleaner, rather than have truly enormous beans for everything. Having
   the indexed properties allows for lists and whatever else.
  
   The ability for nesting beans has been in Struts for a long time. The
   nested tags just make it much easier.
  
   There's a primer and tutorial for nested beans here...
  
   http://www.keyboardmonkey.com/next
  
   ...it should take you over creating and using such a construct.
  
   Hope this gets you on th path you're after.
 
  Another area of useful learning for the future is the JSP Standard Tag
  Library (JSTL).  Although the expression language syntax supported by JSTL
  is different from the one in Struts, it is well worth learning about --
  this expression language will be supported anywhere in a JSP page in JSP
  1.3, and (in the mean time) we will likely adapt Struts tags to be able to
  use it as well.
 
  
  
   Arron.
  
 
  Craig
 
 
  --
  To unsubscribe, e-mail:
  For additional commands, e-mail:

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




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


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




Re: Nested Tags question

2002-06-13 Thread Arron Bates

Adam,

Back to the old want lists, but no session objects issue. It's a 
common problem these days. It's hard to get the list model working 
nicely without knowing how big the list is going to be so that objects 
can be set against valid indexes.

The post you speek of in the archives is that I've made a collections 
wrapps in the commons project which will wrap collections so that they 
can expand by definition when the request comes in with indexed or 
mapped properties.

I'm cutting a short tutorial on it (how to make funky complex form 
models leaving the session object in the closet), should be finished in 
the next few days. It should help a lot of people. Most people end up 
with indexed lists, but it's hard to get them working properly on the 
back end. It's not just a nested tags thing.

If you don't mind wading through code and having a go at the collections 
wrapper with nothing but javadoc (good javadoc though :)...

http://cvs.apache.org/viewcvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LazyCollections.java


Arron.


Adam Hardy wrote:

 Hi Down Under,

 thanks for the reply. I figured that the form properties setting thing 
 must be struts, after checking out the JSP spec. JSP does do a certain 
 amount of it though, since you can specify a tag in your jsp and say 
 parameters=* - and JSP will match any parameters in the request to 
 methods on the tag's bean.

 Anyway sorry for sounding like such a dumbass but I've been through 
 your tutorials. For the display, I've got the nested tags sussed - 
 it's for the save on submit that I'm having problems. It's one of 
 those aggravating problems that I can't pin down so it's difficult to 
 ask the right questions.

 I've actually hacked out some code to stuff the request parameters 
 into the bean structure by hand in the form's validate method. 
 Obviously I'd like to do it automatically but I had to get the app 
 working. To try to sort out what I've done wrong, I'll strip it back 
 to the simplest bare bones and take it from there.

 What I can't work out from playing with your SavingMonkey demo is how 
 struts gets the request parameters into beans inside each other inside 
 the formbean. Is it necessary to instantiate the right amount of empty 
 beans first? I see SavingMonkey instantiates everything on construction.

 When saving request parameters to the beans in the formbean, does 
 struts call the beans' getter methods to get the ArrayLists and beans? 
 I can't see how else it would get access the setter methods on the 
 deeper nested beans.

 Thanks for your help. I did see a message in the archives here but I 
 can't find it again, where you were talking about changes awaiting 
 acceptance in CVS - is that just stuff that is now incorporated into 
 struts 1.1? I'm using 1.0.2

 All the best,
 Adam




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




Re: Nested Tags question

2002-06-13 Thread Arron Bates

try...

document.forms[0][mailingAddress.city]

...works a treat.


Arron.

Jayaraman Dorai wrote:

When I use nested tags, I am not able to access it through java scripts since the 
name is mailingAddress.city. Does anyone have a work around or am I missing 
something?

Jayaraman

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:23 PM
To: Struts Users Mailing List
Subject: Re: Re: Nested Tags question




On Thu, 13 Jun 2002 [EMAIL PROTECTED] wrote:

Date: Thu, 13 Jun 2002 11:43:59 +0200
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Re: Nested Tags question

So Craig,
does the process work at submit time (when the request parameters are
being put into the nested beans) via calls to the getter methods to get
the beans on which the parameters have to be set?

I can't see how else it would work.


It depends on what context you are using the expressions in.  For example:

  !-- Assume the form bean name is customerForm --
  html:form action=/editCustomer
...
html:text property=mailingAddress.city/
...
  /html:form

will, in effect, do a call to:

  customerForm.getMailingAddress().getCity()

when the page is displayed, and a call to:

  customerForm.getMailingAddress().setCity()

when the request parameters are being copied in to the form bean.

Adam


Craig



Craig R. McClanahan [EMAIL PROTECTED] schrieb am 13.06.2002,
08:22:43:


On Thu, 13 Jun 2002, Arron Bates wrote:

Date: Thu, 13 Jun 2002 14:14:13 +1000
From: Arron Bates
Reply-To: Struts Users Mailing List
To: Struts Users Mailing List
Subject: Re: Nested Tags question


I know JSP will automatically save parameters to a javabean with the
correctly named getters and setters, but there's obviously a gap in my
knowledge because all my attempts to recreate the situation above have
failed.

Setting form properties against beans is a Struts thing, not a JSP
thing. The property thing is a Bean thin and can be looked up in the
JavaBean spec.

The example you quote...

monkeyTeamAlpha.monkeyWorkers[0].salary

...is a nested property. An invention implemented within Struts
(Craig?).

Yep, although in Struts 1.1 it is really a commons-beanutils thing
because we abstracted out this generally useful code into a separate
package.

What it basically is, is a string of calls rather than the
single property method. Here, it will get a hold of the form bean, get a
hold of the bean returned from the monkeyTeamAlphaproperty. On this
bean, it will invoke the indexed property monkeyWorkers[0] which will
pluck a bean from a collection or index provided, from this last bean it
will will get a hold of its salary property, and set the value.

At each stage, you also get the benefit of some intelligence that is built
in to the underlying PropertyUtils class.  For example, the JavaBeans spec
defines two ways to define an indexed property -- you can use getter and
setter methods that take a value and a subscript, or you can use getter
and setter methods that return the entire array.  PropertyUtils makes the
expression listed above work for either (or even for a property whose
value is a java.util.List, which is an extension to the JavaBeans spec).

All this boils down to, is that you can compose objects a little
cleaner, rather than have truly enormous beans for everything. Having
the indexed properties allows for lists and whatever else.

The ability for nesting beans has been in Struts for a long time. The
nested tags just make it much easier.

There's a primer and tutorial for nested beans here...

http://www.keyboardmonkey.com/next

...it should take you over creating and using such a construct.

Hope this gets you on th path you're after.

Another area of useful learning for the future is the JSP Standard Tag
Library (JSTL).  Although the expression language syntax supported by JSTL
is different from the one in Struts, it is well worth learning about --
this expression language will be supported anywhere in a JSP page in JSP
1.3, and (in the mean time) we will likely adapt Struts tags to be able to
use it as well.


Arron.

Craig


--
To unsubscribe, e-mail:
For additional commands, e-mail:

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




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


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




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




Re: Nested Tags question

2002-06-13 Thread Adam Hardy

Hi there,
I'll take a look at it this weekend. I don't get your reference to no 
session objects.

As far as the problem goes concerning setting against valid indices, my 
code does that simply enough using a check against ArrayList.size() and 
the index from the request parameter - if the size is too small, I just 
add new objects - 3 lines of code. This is all in a for loop, which 
could recurse - presumably what your commons wrapper does. Guess I'll 
find out.

All the best
Adam

Arron Bates wrote:

 Adam,

 Back to the old want lists, but no session objects issue. It's a 
 common problem these days. It's hard to get the list model working 
 nicely without knowing how big the list is going to be so that 
 objects can be set against valid indexes.

 The post you speek of in the archives is that I've made a collections 
 wrapps in the commons project which will wrap collections so that they 
 can expand by definition when the request comes in with indexed or 
 mapped properties.

 I'm cutting a short tutorial on it (how to make funky complex form 
 models leaving the session object in the closet), should be finished 
 in the next few days. It should help a lot of people. Most people end 
 up with indexed lists, but it's hard to get them working properly on 
 the back end. It's not just a nested tags thing.

 If you don't mind wading through code and having a go at the 
 collections wrapper with nothing but javadoc (good javadoc though :)...

 
http://cvs.apache.org/viewcvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LazyCollections.java
 



 Arron.


 Adam Hardy wrote:

 Hi Down Under,

 thanks for the reply. I figured that the form properties setting 
 thing must be struts, after checking out the JSP spec. JSP does do a 
 certain amount of it though, since you can specify a tag in your jsp 
 and say parameters=* - and JSP will match any parameters in the 
 request to methods on the tag's bean.

 Anyway sorry for sounding like such a dumbass but I've been through 
 your tutorials. For the display, I've got the nested tags sussed - 
 it's for the save on submit that I'm having problems. It's one of 
 those aggravating problems that I can't pin down so it's difficult to 
 ask the right questions.

 I've actually hacked out some code to stuff the request parameters 
 into the bean structure by hand in the form's validate method. 
 Obviously I'd like to do it automatically but I had to get the app 
 working. To try to sort out what I've done wrong, I'll strip it back 
 to the simplest bare bones and take it from there.

 What I can't work out from playing with your SavingMonkey demo is how 
 struts gets the request parameters into beans inside each other 
 inside the formbean. Is it necessary to instantiate the right amount 
 of empty beans first? I see SavingMonkey instantiates everything on 
 construction.

 When saving request parameters to the beans in the formbean, does 
 struts call the beans' getter methods to get the ArrayLists and 
 beans? I can't see how else it would get access the setter methods on 
 the deeper nested beans.

 Thanks for your help. I did see a message in the archives here but I 
 can't find it again, where you were talking about changes awaiting 
 acceptance in CVS - is that just stuff that is now incorporated into 
 struts 1.1? I'm using 1.0.2

 All the best,
 Adam





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





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




Re: Nested Tags question

2002-06-12 Thread adam . hardy

Hi folks,
I'm going nuts  having a very unproductive day here trying to save
these nested tags as I mentioned earlier. I've boiled down my ignorance
so to speak to the following question:

How or why is the following input tag name / http request param:

monkeyTeamAlpha.monkeyWorkers[0].salary

saved to the MonkeyBean object within an ArrayList monkeyList within a
MonkeyTeamBean within the formbean?

I know JSP will automatically save parameters to a javabean with the
correctly named getters and setters, but there's obviously a gap in my
knowledge because all my attempts to recreate the situation above have
failed. 

I'll go off and try to find something in Sun's JSP specification, but if
anyone can give me a clue, I'd be massively grateful. 

Thanks
Adam



[EMAIL PROTECTED] schrieb am 12.06.2002, 15:15:30:
 Hi All,
 I am trying to save a list created with the nested:iterate tag (from an
 object array in my form bean). I've written my code by following the
 SaveMonkey example from Arron Bates' KeyboardMonkey site (kudos to you,
 capt'n) - but the object array doesn't get recreated on a submit!
 
 Can I use a nested:iterate tag on an array straight out of the form
 bean? That seems to be the only difference I can see between mine and
 the SaveMonkey demo.
 
 The setList(Object[] newList) isn't working. Struts or Tomcat isn't
 recognising it as a normal javabean property setter I guess. Here's what
 the HTML looks like:
 
 
   
 
 
 
 Should I keep looking for a bug that's stopping the setList() method
 from being recognised as a setter method?
 
 Thanks if you can help,
 Adam
 
 --
 To unsubscribe, e-mail:   
 For additional commands, e-mail:

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




Re: Nested Tags question

2002-06-12 Thread Arron Bates

Adam,

Should say that the monkey example's not the mos simple example. It's 
more of a what's possible than a learners tool.

I just posted the link to the tute's and primer. The Tute's walk through 
from a plain, non-nested bean, to the initial nesting, to the lists, and 
lists within lists... I'd recommend going that way. For convenience, 
that link again...

http://www.keyboardmonkey.com/next

A couple of people have had a stumbling start because they found the 
monkey example first and love to hack that than take the walking tour. 
I'm considering removing it from the nesting-newbie eye.

If you have any more issues or questiong, you know where we are...


Arron.


[EMAIL PROTECTED] wrote:

Hi All,
I am trying to save a list created with the nested:iterate tag (from an
object array in my form bean). I've written my code by following the
SaveMonkey example from Arron Bates' KeyboardMonkey site (kudos to you,
capt'n) - but the object array doesn't get recreated on a submit!

Can I use a nested:iterate tag on an array straight out of the form
bean? That seems to be the only difference I can see between mine and
the SaveMonkey demo.

The setList(Object[] newList) isn't working. Struts or Tomcat isn't
recognising it as a normal javabean property setter I guess. Here's what
the HTML looks like:

form name=operationForm method=POST
action=/apla/operationList.do
  input type=hidden name=list[0].opIdString value=31
  input type=text name=list[0].packageName value=Pack1  


Should I keep looking for a bug that's stopping the setList() method
from being recognised as a setter method?

Thanks if you can help,
Adam

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





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




Re: Nested Tags question

2002-06-12 Thread Adam Hardy

Hi Down Under,

thanks for the reply. I figured that the form properties setting thing 
must be struts, after checking out the JSP spec. JSP does do a certain 
amount of it though, since you can specify a tag in your jsp and say 
parameters=* - and JSP will match any parameters in the request to 
methods on the tag's bean.

Anyway sorry for sounding like such a dumbass but I've been through your 
tutorials. For the display, I've got the nested tags sussed - it's for 
the save on submit that I'm having problems. It's one of those 
aggravating problems that I can't pin down so it's difficult to ask the 
right questions.

I've actually hacked out some code to stuff the request parameters into 
the bean structure by hand in the form's validate method. Obviously I'd 
like to do it automatically but I had to get the app working. To try to 
sort out what I've done wrong, I'll strip it back to the simplest bare 
bones and take it from there.

What I can't work out from playing with your SavingMonkey demo is how 
struts gets the request parameters into beans inside each other inside 
the formbean. Is it necessary to instantiate the right amount of empty 
beans first? I see SavingMonkey instantiates everything on construction.

When saving request parameters to the beans in the formbean, does struts 
call the beans' getter methods to get the ArrayLists and beans? I can't 
see how else it would get access the setter methods on the deeper nested 
beans.

Thanks for your help. I did see a message in the archives here but I 
can't find it again, where you were talking about changes awaiting 
acceptance in CVS - is that just stuff that is now incorporated into 
struts 1.1? I'm using 1.0.2

All the best,
Adam

Arron Bates wrote:



 I know JSP will automatically save parameters to a javabean with the
 correctly named getters and setters, but there's obviously a gap in my
 knowledge because all my attempts to recreate the situation above have
 failed.


 Setting form properties against beans is a Struts thing, not a JSP 
 thing. The property thing is a Bean thin and can be looked up in the 
 JavaBean spec.

 The example you quote...

monkeyTeamAlpha.monkeyWorkers[0].salary

...is a nested property. An invention implemented within Struts 
 (Craig?). What it basically is, is a string of calls rather than the 
 single property method. Here, it will get a hold of the form bean, get 
 a hold of the bean returned from the monkeyTeamAlphaproperty. On 
 this bean, it will invoke the indexed property monkeyWorkers[0] 
 which will pluck a bean from a collection or index provided, from this 
 last bean it will will get a hold of its salary property, and set 
 the value.

 All this boils down to, is that you can compose objects a little 
 cleaner, rather than have truly enormous beans for everything. Having 
 the indexed properties allows for lists and whatever else.

 The ability for nesting beans has been in Struts for a long time. The 
 nested tags just make it much easier.

 There's a primer and tutorial for nested beans here...

http://www.keyboardmonkey.com/next

...it should take you over creating and using such a construct.

 Hope this gets you on th path you're after.


 Arron.


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





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




Re: nested tags - doesn't support select option ?

2002-04-24 Thread Arron Bates

It should be fine. To remove my personal doubt, I just tried it out 
again on one of my nested apps and it still seems to work.
It even works the other way using html:select with a nested:options.

What part of it is not working?... is there an exception?... what kind 
of legacy code are we talking about?...
Can I get more information on the problem?..

Arron.

Struts Newsgroup (@Basebeans.com) wrote:

Subject: nested tags - doesn't support select option 1 2 3 4 5 6 7 8 9
From: Lian Seng, Loh [EMAIL PROTECTED]
 ===
Hi
I noticed that html:option is not supported with nested:select

Is there a reason ?  What is the work around if I really need the option
tag - I have legacy code.

Thanks
LS


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



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





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




Re: nested tags - doesn't support select option ?

2002-04-24 Thread @Basebeans.com

Subject: Re: nested tags - doesn't support select option 1 2 3 4 5 6 7 8 9
From: Lian Seng, Loh [EMAIL PROTECTED]
 ===
Never mind, I found the source of my errors with using nested:select with
html:select

JSP !!

Lian Seng, Loh [EMAIL PROTECTED] wrote in message
news:aa7ods$q0c$[EMAIL PROTECTED]...
 Hi
 I noticed that html:option is not supported with nested:select

 Is there a reason ?  What is the work around if I really need the option
 tag - I have legacy code.

 Thanks
 LS


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



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




RE: nested tags question

2002-04-15 Thread Alex Paransky
You should be able to do that.  In-fact, that's one of the ways to re-use
common page presentations.  If you do your job write, then your main page is
composed of a bunch of includes to render different parts of the result
"tree".  Be-careful, however, the last time I checked the nested tags only
work well in a static include scenario.  They don't work well with dynamic
includes, which is what you might find you need to do, if you have a lot of
conditionals (otherwise, it's very easy to exceed to the 64K method limit).

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-Original Message-
From: Kousek, Theron [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:33 PM
To: 'Struts Users Mailing List'
Subject: nested tags question



Hi folks:

I have a few forms that contain the same type of "template"...   I want to
create a generic template that uses a form bean.   This template needs to
handle form beans that are at the root level or a form bean that may be
nested.

So in one screen, the template will be at the root and not need to be
nested.  In another screen, the same template will need to be nested.  So
basically, I can contain my nested statements like:

nested:root name="clientForm"
nested:nest property="billingForm"

outside the scope of the template and in the file that needs to invoke the
template...
The actual template can contain the :

td align="left"
nested:text
property="displayBillid"
disabled="true"
size="10" styleId="small"/
/td

type tags...
So here's my question:

Even if a form bean is at the root and not nested at all, can I still
declare it to be nested, only define it at the root?  So billingForm for
example could be:
nested:root name="billingForm"

even if it is at the topmost level?   Is this normal or should I avoid it?
If this is legal, then I will be able to literally plug and play these
templates into other screens and will have one common layout repository.

thanks,
Theron

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



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


Re: nested tags question

2002-04-15 Thread Arron Bates
The nested tags as of probably a month and a half ago, the nested tags
penetrate dynamic includes.
I tried to mail the few (but vocal :) people that were throwing things
at me to get it done, you may have been the one that got away. Apologies.

Putting up a tutorial on my site tonight to show the potential of true
recursion and JSP's to make a tree structure. Trees have never been more
fun. :)

Arron.


Alex Paransky wrote:

You should be able to do that.  In-fact, that's one of the ways to re-use
common page presentations.  If you do your job write, then your main page is
composed of a bunch of includes to render different parts of the result
"tree".  Be-careful, however, the last time I checked the nested tags only
work well in a static include scenario.  They don't work well with dynamic
includes, which is what you might find you need to do, if you have a lot of
conditionals (otherwise, it's very easy to exceed to the 64K method limit).

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-Original Message-
From: Kousek, Theron [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:33 PM
To: 'Struts Users Mailing List'
Subject: nested tags question



Hi folks:

I have a few forms that contain the same type of "template"...   I want to
create a generic template that uses a form bean.   This template needs to
handle form beans that are at the root level or a form bean that may be
nested.

So in one screen, the template will be at the root and not need to be
nested.  In another screen, the same template will need to be nested.  So
basically, I can contain my nested statements like:

nested:root name="clientForm"
   nested:nest property="billingForm"

outside the scope of the template and in the file that needs to invoke the
template...
The actual template can contain the :

   td align="left"
   nested:text
property="displayBillid"
   disabled="true"
   size="10" styleId="small"/
   /td

type tags...
So here's my question:

Even if a form bean is at the root and not nested at all, can I still
declare it to be nested, only define it at the root?  So billingForm for
example could be:
nested:root name="billingForm"

even if it is at the topmost level?   Is this normal or should I avoid it?
If this is legal, then I will be able to literally plug and play these
templates into other screens and will have one common layout repository.

thanks,
Theron

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



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





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


Re: nested tags

2002-04-07 Thread Arron Bates

  The nested version of the bean:message tag wasn't added until the 
other night. You can get the nightly build, or download the nested tags 
library for the older struts 1.0/1.0.1 from...

http://www.keyboardmonkey.com/struts


Arron.

[EMAIL PROTECTED] wrote:

Hi guys,

I really need some help on nested-tags. What I want to do is:

- get a bean property, which in fact is a key to my properties file
- use the bean:message tag to get the info to display no page.

How can I do that ? How can I use a bean info in the bean:message
tag ?

I'm using the nested-tags
Thanks in advance
Jefferson


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






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




Re: Nested Tags - new be

2002-03-18 Thread Arron Bates

Sanjay,

I'm all for some client-side operation, but at some point the server has 
to find out about it so that it knows how to manage your data model 
properly. Forget the nesting tags, this problem will get you in whatever 
your server side solution is. Once the Html is served, the server just 
doesn't care until it gets the next request.

The nested tags just evaluate the model at JSP execution time, just like 
any other tag, JSP or top-down servlet.

If you had to do it without a trip to the server, you will have to 
gather all the details of the extra rows in some hidden form element, 
and then process the details on the server when the user finally submits 
the page. It's possible, but not fun. Not the least of which is the 
client-side rendering of the page. If you're using IE5+ NS6+ you can 
just do Html replacements easy enough. The ability is certainly there... 
but approach with caution. It could quite easily become a nightmare.

For example, if a user is adding a whole heap of rows, they think that 
the data is in there because it's on the screen as they typed it, and 
simply types in another URL... all the data is lost, never to return. 
Not even with the back button (because JavaScript objects and state are 
not cached by the browser). Unless you can be certain that the page will 
be posted to the server after filling out these new rows, I would steer 
clear of it all together.

Another option is to have a page on a hidden frame send updates to the 
server. Every time that something changes to the data on the screen, get 
JavaScript to fire off the hidden frame with the update. Because you're 
only wanting to send updates, there's no heavy Html having to be 
generated by the server to be returned, maybe just a yes or no to tell 
your JavaScript whether the server got any errors etc.

Whatever you do... it will change the way you have to code your web 
interface, and increase your development time. How familiar are you with 
JavaScript?... This aint no simple mouse-over. :)


The monkey example uses the server-side management simply because a lot 
of puritans out there simply refuse to regard anything with client-side 
logic. And it's also 100% easier to do and manage.


Arron

(MonkeyBanana Author :)


Sanjay Choudhary wrote:

Hi,

I am very new to Struts, jsp and html programming.

I kind of figured out how the nested tags works. 

In my application, I have Bean A which contains Array
list of type Bean B. Bean B has attributes B1 and B2.

We show user on the web page details of A and under
that all the elements of Bean B in a single row. User
is allowed to edit this. So far it works fine for me
using nested beans.

We have another feature on our page where in we allow
user to add n no. of rows on the page. Currently we
are adding rows using java script. IS THERE A
MACHANISM I CAN ADD THESE ROWS DYNAMICALLY USING
JAVASCRIPT AND THEN ADD THESE ADDED ROWS PHYSICALLY TO
THE ARRAYLIST INSTEAD OF MAKING A CALL TO THE SERVER
EVERYTIME I ADD ONE. In monkeybanana example author is
making call the server everytime the add button is
pressed. Or is there an ALTERNATIVE solution.

Thanks,
sanjay










__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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





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




Re: Nested Tags - new be

2002-03-18 Thread Sanjay Choudhary

Thanks Arron for your comments.

I have a group of prog. in my team who claim to know
javascript but none of them envisioned what you wrote.
None of them wish to use hidden frames. So only choice
left is to do the control over server side.

It did help me not to go the wrong way.

Regards

--- Arron Bates [EMAIL PROTECTED] wrote:
 Sanjay,
 
 I'm all for some client-side operation, but at some
 point the server has 
 to find out about it so that it knows how to manage
 your data model 
 properly. Forget the nesting tags, this problem will
 get you in whatever 
 your server side solution is. Once the Html is
 served, the server just 
 doesn't care until it gets the next request.
 
 The nested tags just evaluate the model at JSP
 execution time, just like 
 any other tag, JSP or top-down servlet.
 
 If you had to do it without a trip to the server,
 you will have to 
 gather all the details of the extra rows in some
 hidden form element, 
 and then process the details on the server when the
 user finally submits 
 the page. It's possible, but not fun. Not the least
 of which is the 
 client-side rendering of the page. If you're using
 IE5+ NS6+ you can 
 just do Html replacements easy enough. The ability
 is certainly there... 
 but approach with caution. It could quite easily
 become a nightmare.
 
 For example, if a user is adding a whole heap of
 rows, they think that 
 the data is in there because it's on the screen as
 they typed it, and 
 simply types in another URL... all the data is lost,
 never to return. 
 Not even with the back button (because JavaScript
 objects and state are 
 not cached by the browser). Unless you can be
 certain that the page will 
 be posted to the server after filling out these new
 rows, I would steer 
 clear of it all together.
 
 Another option is to have a page on a hidden frame
 send updates to the 
 server. Every time that something changes to the
 data on the screen, get 
 JavaScript to fire off the hidden frame with the
 update. Because you're 
 only wanting to send updates, there's no heavy Html
 having to be 
 generated by the server to be returned, maybe just a
 yes or no to tell 
 your JavaScript whether the server got any errors
 etc.
 
 Whatever you do... it will change the way you have
 to code your web 
 interface, and increase your development time. How
 familiar are you with 
 JavaScript?... This aint no simple mouse-over. :)
 
 
 The monkey example uses the server-side management
 simply because a lot 
 of puritans out there simply refuse to regard
 anything with client-side 
 logic. And it's also 100% easier to do and manage.
 
 
 Arron
 
 (MonkeyBanana Author :)
 
 
 Sanjay Choudhary wrote:
 
 Hi,
 
 I am very new to Struts, jsp and html programming.
 
 I kind of figured out how the nested tags works. 
 
 In my application, I have Bean A which contains
 Array
 list of type Bean B. Bean B has attributes B1 and
 B2.
 
 We show user on the web page details of A and under
 that all the elements of Bean B in a single row.
 User
 is allowed to edit this. So far it works fine for
 me
 using nested beans.
 
 We have another feature on our page where in we
 allow
 user to add n no. of rows on the page. Currently we
 are adding rows using java script. IS THERE A
 MACHANISM I CAN ADD THESE ROWS DYNAMICALLY USING
 JAVASCRIPT AND THEN ADD THESE ADDED ROWS PHYSICALLY
 TO
 THE ARRAYLIST INSTEAD OF MAKING A CALL TO THE
 SERVER
 EVERYTIME I ADD ONE. In monkeybanana example author
 is
 making call the server everytime the add button is
 pressed. Or is there an ALTERNATIVE solution.
 
 Thanks,
 sanjay
 
 
 
 
 
 
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.com/
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




RE: Nested Tags

2001-10-31 Thread Damian Powell

 Am I doing something wrong, or is this just the way things are.

You're doing something wrong. You can't nest custom tags so a bean:write
inside a html:hidden tag is illegal.


---
Damian L Powell
[e] [EMAIL PROTECTED]
[w] http://www.shadow-angel.com

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




RE: Nested Tags

2001-10-31 Thread Jake Thompson

To answer my own stupidness:

html:hidden name=values property=employee_id/

Soled it.

Thanks,
Jake T.

-Original Message-
From: Jake Thompson 
Sent: Tuesday, October 30, 2001 10:59 PM
To: [EMAIL PROTECTED]
Subject: Nested Tags


Hi All,

I have the following within in logic:iterate section of code.

This works:
input type=hidden name=employee_id value=bean:write name=values 
property=employee_id /

This does not:
html:hidden property=employee_id value=bean:write name=values 
property=employee_id // I get:
javax.servlet.ServletException: /employee/selectEmployee-body.jsp(32,87) Attribute 
values has no value

Am I doing something wrong, or is this just the way things are.

Any help much appreciated.

Later,
Jake





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





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




Re: nested tags again - Q

2001-03-19 Thread Scott Walter

I have never been able to get that to work,  I think
it's an issue with either tomcat of the java spec.

The way I have been able to get around this is to
write my own tag and have the tag set page context
attributes via a tag extra info class.

scott.
--- Maya Muchnik [EMAIL PROTECTED] wrote:
 Hi,
 
 Maybe this question was posted already. I am sorry
 for the repetition.
 Can somebody suggest what is the best case to
 resolve this expression
 (maybe nested tags are not working):
 
 html:hidden property="domainID" value='%=
 bean:message
 key="admin.domaindn"/'/
 
 value of domainID is still  %= bean:message
 key="admin.domaindn"/
 
 Thank you all in advance.
 
 Maya
 
 
 
 


=
~~~
Scott

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: nested tags again - Q

2001-03-19 Thread Craig R. McClanahan



On Mon, 19 Mar 2001, Maya Muchnik wrote:

 Hi,
 
 Maybe this question was posted already. I am sorry for the repetition.
 Can somebody suggest what is the best case to resolve this expression
 (maybe nested tags are not working):
 
 html:hidden property="domainID" value='%= bean:message
 key="admin.domaindn"/'/
 

This is not legal JSP syntax.  You are not allowed to nest custom tag uses
inside an attribute value.

The closest you can come is to use JSP scriptlet expressions to go get the
data you are looking for.

 value of domainID is still  %= bean:message key="admin.domaindn"/
 
 Thank you all in advance.
 
 Maya
 

Craig McClanahan




Re: Nested tags don't work. What alternatives are there?

2001-03-03 Thread Incze Lajos

On Fri, Mar 02, 2001 at 04:53:58PM -0800, Richard D. LeCour wrote:
 Here's some examples of what I'd like to do:
 
 template:put name='some.name' content='bean:message key="some.message"/'
 direct='true'/

Especially this case is resolvable:

template:put name="some.name"
  bean:message key="some.message" /
/template:put

 or
 html:img src='bean:message key="image.url"/' width='bean:message
 key="image.width"/' height='bean:message key="image.height"/'/
 or even
 % someVar = 'bean:message key="image.url"/'; %
 
 But Struts doesn't seem to allow that. Can anyone suggest simple
 alternatives? I am REALLY stuck. Thanks!
 

I would not use bean:message for these cases. It's main purpose to hold
internationalized messages  and I hardly believe it would be the appropriate
structure for sitemap-like data. For these things you should use xml
files or databse. Then initialize some beans from these datastores and
you can use at least the standrad jsp scripting to access the properties.
 incze