RE: need some help.......

2001-06-14 Thread Jiten Mohanty
Title: need some help...



Niall
Thanks 
for a quick response.I tried but got the following 
error.

javax.servlet.ServletException: Cannot find bean jas in 
scope null
Jiten

  -Original Message-From: Niall Pemberton 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13, 
  2001 5:18 PMTo: [EMAIL PROTECTED]Subject: 
  RE: need some help...
  "jas" 
  is not in "session" scope - the iterator is creating it for each iteration 
  (must be page scope?) - try it without the "scope":
  
  bean:write name="jas" 
  property="attr"/
  
  Niall
  
  -Original 
  Message-From: Jiten Mohanty 
  [mailto:[EMAIL PROTECTED]]Sent: 14 June 2001 
  23:57To: [EMAIL PROTECTED]Subject: need 
  some help...
  
Hi folks 
I am trying to iterate through a array of 
objects.Here is the code.. 
logic:iterate id="jas" name="countBeanForm" 
property="mbeanOper" type="Ipseal.JbossOperationForm" 
scope="session"  
 td align="center" 
 
   
 bean:write name="jas" 
property="attr" scope="session"/  
  
 /td /logic:iterate 
property "mbeanOper" : returns 
array[objects] 
Each Object has a property called 
Attr[String](set  get).I want to display the each String in Attr[ ].Whe 
I run the code, i get the following error..
Error: 500 Location: 
/ipseal_demo/bean_count.jsp Internal Servlet Error: javax.servlet.ServletException: Cannot find bean 
jas in scope session  
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) 
 at 
_0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44._jspService(_0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44.java:299)
 at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
and on.. 
Can some body help on this. 

Jiten Software Enginer 


need some help.......

2001-06-14 Thread Jiten Mohanty
Title: need some help...






Hi folks


I am trying to iterate through a array of objects.Here is the code..


logic:iterate id=jas name=countBeanForm property=mbeanOper type=Ipseal.JbossOperationForm scope=session

  td align=center

  

   bean:write name=jas property=attr scope=session/

 

  

 /td

/logic:iterate


property mbeanOper : returns array[objects]


Each Object has a property called Attr[String](set  get).I want to display the each String in Attr[ ].Whe I run the code, i get the following error..

Error: 500

Location: /ipseal_demo/bean_count.jsp

Internal Servlet Error:

javax.servlet.ServletException: Cannot find bean jas in scope session

 at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)

 at _0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44._jspService(_0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44.java:299)

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

and on..


Can some body help on this.


Jiten

Software Enginer





RE: need some help.......

2001-06-14 Thread Jiten Mohanty
Title: need some help...



Hey 
Niall,

You 
are the man..I got it running.Your suggestion about the nested iteration 
worked fine...Thanks buddy.I was trying hard to get this running.Saved my 
day.
Have a 
nice evening.

Jiten
Soft. 
Engineer
Ipseal 
Inc.
Denver, Colorado

  -Original Message-From: Niall Pemberton 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13, 
  2001 6:08 PMTo: [EMAIL PROTECTED]Subject: 
  RE: need some help...
  M...the iterator doesn't appear to 
  becreating your "jas" bean from the elements of your array - the 
  question is why?
  
  1) 
  Have you defined the logic taglib at the top of your jsp?
   %@ taglib 
  uri="/WEB-INF/struts-logic.tld" prefix="logic" %
  
  2) 
  Does the array returned by your getMbeanOper() method contain any 
  nulls?
  
  Also...I've just noticed...are you saying the 
  getAttr() method returns a String array - meaning you have a grid situation? 
  If so you need an iterate within an iterate. Haven't done that but there are 
  messages in the archive which talk about it.
  
  Niall
  
  
-----Original Message-From: Jiten Mohanty 
[mailto:[EMAIL PROTECTED]]Sent: 15 June 2001 
00:30To: [EMAIL PROTECTED]Subject: RE: 
need some help...
Niall
Thanks for a quick response.I tried but got the 
following error.

javax.servlet.ServletException: Cannot find bean 
jas in scope null
Jiten

  -Original Message-From: Niall Pemberton 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 
  13, 2001 5:18 PMTo: 
  [EMAIL PROTECTED]Subject: RE: need some 
  help...
  "jas" is not in "session" scope - the iterator is 
  creating it for each iteration (must be page scope?) - try it without the 
  "scope":
  
  bean:write name="jas" 
  property="attr"/
  
  Niall
  
  -Original 
  Message-From: Jiten Mohanty 
  [mailto:[EMAIL PROTECTED]]Sent: 14 June 2001 
  23:57To: [EMAIL PROTECTED]Subject: need 
  some help...
  
Hi folks 
I am trying to iterate through a array of 
objects.Here is the code.. 
logic:iterate id="jas" 
name="countBeanForm" property="mbeanOper" 
type="Ipseal.JbossOperationForm" scope="session"   td 
align="center"  
   
 bean:write name="jas" 
property="attr" scope="session"/  
  
 /td /logic:iterate 
property "mbeanOper" : returns 
array[objects] 
Each Object has a property called 
Attr[String](set  get).I want to display the each String in Attr[ 
].Whe I run the code, i get the following error..
Error: 500 
Location: 
/ipseal_demo/bean_count.jsp Internal Servlet Error: javax.servlet.ServletException: Cannot find 
bean jas in scope session 
 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) 
 at 
_0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44._jspService(_0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44.java:299)
 at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
and on.. 
Can some body help on 
this. 
Jiten Software Enginer 



RE: need some help.......

2001-06-14 Thread Jiten Mohanty
Title: RE: need some help...






Craig,


Thanks for the response.I got it running


Jiten


-Original Message-

From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]

Sent: Thursday, June 14, 2001 6:21 PM

To: [EMAIL PROTECTED]

Subject: RE: need some help...



There was a string of nightly builds of Struts a couple of months ago

where the iterate tag had a bug (not creating the id item). This was

fixed -- are you trying this with a recent build like 1.0-b3?


Craig



On Thu, 14 Jun 2001, Niall Pemberton wrote:


 need some help...M...the iterator doesn't appear to be creating your

 jas bean from the elements of your array - the question is why?

 

 1) Have you defined the logic taglib at the top of your jsp?

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

 

 2) Does the array returned by your getMbeanOper() method contain any nulls?

 

 Also...I've just noticed...are you saying the getAttr() method returns a

 String array - meaning you have a grid situation? If so you need an iterate

 within an iterate. Haven't done that but there are messages in the archive

 which talk about it.

 

 Niall

 

 -Original Message-

 From: Jiten Mohanty [mailto:[EMAIL PROTECTED]]

 Sent: 15 June 2001 00:30

 To: [EMAIL PROTECTED]

 Subject: RE: need some help...

 

 

 Niall

 Thanks for a quick response.I tried but got the following error.

 

 javax.servlet.ServletException: Cannot find bean jas in scope null

 

 Jiten

 -Original Message-

 From: Niall Pemberton [mailto:[EMAIL PROTECTED]]

 Sent: Wednesday, June 13, 2001 5:18 PM

 To: [EMAIL PROTECTED]

 Subject: RE: need some help...

 

 

 jas is not in session scope - the iterator is creating it for each

 iteration (must be page scope?) - try it without the scope:

 

 bean:write name=jas property=attr/

 

 Niall

 

 -Original Message-

 From: Jiten Mohanty [mailto:[EMAIL PROTECTED]]

 Sent: 14 June 2001 23:57

 To: [EMAIL PROTECTED]

 Subject: need some help...

 

 

 Hi folks

 

 I am trying to iterate through a array of objects.Here is the

 code..

 

 logic:iterate id=jas name=countBeanForm property=mbeanOper

 type=Ipseal.JbossOperationForm scope=session

 td align=center

 

 bean:write name=jas property=attr

 scope=session/

 

 

 /td

 /logic:iterate

 

 property mbeanOper : returns array[objects]

 

 Each Object has a property called Attr[String](set  get).I want to

 display the each String in Attr[ ].Whe I run the code, i get the following

 error..

 

 Error: 500

 Location: /ipseal_demo/bean_count.jsp

 Internal Servlet Error:

 javax.servlet.ServletException: Cannot find bean jas in scope session

 at

 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp

 l.java:459)

 at

 _0002fbean_0005fcount_0002ejspbean_0005fcount_jsp_44._jspService(_0002fbean_

 0005fcount_0002ejspbean_0005fcount_jsp_44.java:299)

 

 at

 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)

 and on..

 

 Can some body help on this.

 

 Jiten

 Software Enginer