Re: Struts, EJBs, and problems

2003-11-25 Thread guo yingshou
you need to use a collection of value objects instead
of component objects in your jsp.

guo

 --- Steven Nakhla <[EMAIL PROTECTED]> 的正文:> I am
still learning about EJBs, Struts, and a whole
> host of other things.  I'm writing a simple web app
> to manage my product license keys.  I have 3 CMR
> EJBs that I'm working with:  ProductVendor, Product,
> and LicenseKey.  The beans are created such that a
> ProductVendor can have multiple Products, each of
> which can have multiple LicenseKeys.  
>  
> In my web app, I would like to be able to list all
> of the entries in my database.  In my Struts Action,
> I perform a findAll() to return a Collection of
> ProductVendors, and then call
> request.setAttribute("vendorList", vendors); so it
> can be referenced from my JSP.
>  
> In my JSP, I have the following to iterate over the
> list and display the entries:
> 
> 
> 
> 
> 
> 
> 
>  property="products">
> 
>  />
> 
> 
> 
> 
> 
> 
> 
>  
> 
> Everything looks like it is in order.  However, when
> I try to display the JSP I get the following
> exception:  org.apache.jasper.JasperException: A CMR
> collection may only be used within the transction in
> which it was created.
> 
> Can anyone explain to me what the problem is?  Does
> anyone know how I could go about displaying the list
> like I would like?  I'd really appreciate any help
> you could give this poor newbie.  Thanks in advance!
> 
>  
> 
> Steve Nakhla
> 
> 
> 
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: I webshpere Struts

2003-09-18 Thread guo yingshou
"java:comp/..." is a component's logical name,In order
to use this naming context prefix to look up your
component,you usually have to do 2 things:
  1,declare your component in standard dd using
ejb-ref or resource-ref,depending on what it is.
  2,mappping the name to the real jndi name using
vendor specific dd.

I prefer to write a simple jsp page as following to
have a look at the real naming context structure of my
application server.


<%
  Context ctx = new InitialContext();
  String dir = request.getParameter("dir");
  dir = (dir == null) ? "" : dir.trim();
  NamingEnumeration enu = ctx.list(dir);
  while(enu.hasMoreElements()){
out.print(enu.nextElement() + "");
  }
%>

Use dir query to switch to the jndi context you want
to  list. 
For example,
To have a look at what got bound under root entry,just
point to the above jsp.

To look at what got bound under "java:",browse like
this: http:///../...jsp?dir=java:

Hope it helps.

 --- Ruben Carvalho <[EMAIL PROTECTED]>
的正文:> I think everything is configured properly.
When I
> ask for a JNDI name starting with java:comp/env/---
> I always get that --- wasn't found. Can I ask you
> for a bit of your web.xml where you define an entity
> and a session bean and a bit of your ejb.xml with
> the same?
>  
> Thanks a lot.
>  
> R煤ben
> 
>   -Mensagem original- 
>   De: Kazda Juraj [mailto:[EMAIL PROTECTED] 
>   Enviada: qui 18-09-2003 12:09 
>   Para: Struts Users Mailing List 
>   Cc: 
>   Assunto: RE: I webshpere Struts
>   
>   
> 
>   I'm using this architecture and everything works...
> What kind of JNDI name it can't find? Bean or
> Datasource? Do you really have declared in web.xml
> and implemented corresponding interfaces (ie. local
> reference vs local interface)?
>   
>   In case of local, are you using in your code
> "java:comp/env" namespace?
>   
>   -juraj.
>   
>   
>   
>   
>   -Original Message-
>   From: Ruben Carvalho
> [mailto:[EMAIL PROTECTED]
>   Sent: Thursday, September 18, 2003 12:48 PM
>   To: Struts Users Mailing List
>   Subject: RE: I webshpere Struts
>   
>   I've just started developing a new project using
> Websphere IDE but the application will run on
> Weblogic. We're using the TestServer that comes with
> Websphere and we're having the same problem with the
> Database access, using entity beans. Eventhough the
> server has the JNDI names configured properly, I
> keep getting an exception saying that the JNDI name
> can't be found. I manage to call the session beans
> in my web module but no entity beans.
>   
>   Is there anybody using this arquitecture?
>   
>   Thanks
>   
>   R煤ben Carvalho
>   
>   -Mensagem original-
>   De: Abhijeet Mahalkar
> [mailto:[EMAIL PROTECTED]
>   Enviada: qui 18-09-2003 11:29
>   Para: Struts Users Mailing List
>   Cc:
>   Assunto: I webshpere Struts
>  
>  
>   
>   Is there anybody working on struts --
> websphere server architecture i have few queries
> regarding deploying the complete module using JSp--
> structs -- sessionbeans --- entitybeans --- Database
> architecture it's not getting deployed properly...
>   can anyone guide me to get the proper link
> on this...
>  
>   thanks
>   abhijeet
>  
>  
>   - Original Message -
>   From: "Andrew Hill"
> <[EMAIL PROTECTED]>
>   To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
>   Sent: Thursday, September 18, 2003 2:56 PM
>   Subject: RE: calls each method twice ,
> logging everthing twice?
>  
>  
>   I had a similar bug in IE6 where I had a
> submit button that invoked a js
>   method that did some stuff and then called
> form.submit(). In IE5 Id only
>   have one submission, but in 6 it would do
> the submission from my call to
>   submit() AND do the submit buttons submit
> as well.
>  
>   -Original Message-
>   From: Raju, Saravanan
> [mailto:[EMAIL PROTECTED]
>   Sent: Thursday, 18 September 2003 16:09
>   To: Struts Users Mailing List
>   Subject: RE: calls each method twice ,
> logging everthing twice?
>  
>  
>   please check that you are not submitting
> the form twice using java script or
>   so.
>  
>   one in onSubmit handler and other
> progrmatically using form.submit();
>  
>  
>   > Thanks,
>   >
> --
>   > Saravanan Raju
>   > Sr.Analyst
>   > SYNTEL (India) Ltd.
>  

Re: question on heavy load website design using struts

2003-07-18 Thread guo yingshou
Sure! Only a little bit patience,please.It may take me
one or two weeks to go over the test.I used to meet a
problem on container managed security using jboss
cluster.That is,jboss'clusterring feature works fine
except when I use declarative security model to
protect my page,the authenticated principal will not
get replicated across the members in the cluster.At
this time,I want to find a work around to that too.

Again,thaks for your info.

Guo Yingshou
 --- Nicolas De Loof <[EMAIL PROTECTED]>
的正文:> Please could you send me feedback if you
experiment
> this jdbc-cluster-driver ?
> 
> Nico
> 
> 
> 
> > Nico,
> >
> > Great! That is exactly what I'm looking for.Maybe
> I'll
> > have some hard time to setup a testing environment
> and
> > write some code to see what will happen.
> >
> > Thanks a lot!
> >
> > Guo Yingshou
> >
> >  --- Nicolas De Loof <[EMAIL PROTECTED]>
> > 的正文:> You could look at this :
> > >
> > > http://c-jdbc.objectweb.org/
> > >
> > > this intermediate JDBC driver allow you to
> cluster
> > > databases. Notice I never used it, use it at
> your
> > > own risk ;-)
> > >
> > > Nico.
> > >
> > >
> > > > Hi,
> > > >
> > > > I am sure that someone here must have worked
> on a
> > > > large website with heavy load using struts and
> I
> > > > wonder if you'll be kindly enough to give me
> some
> > > > suggestions in this occasion.
> > > >
> > > > I am using tomcat+jboss as application
> server.I
> > > have
> > > > setup several tomcat_jboss instances in a
> cluster
> > > > environment and of course I use struts in my
> > > > application.HttpSession created in one
> instance
> > > will
> > > > get replicated across all members in the
> > > cluster.It's
> > > > just what I want.The problem is how should I
> > > connect
> > > > the app servers with the backend db server(s)?
> If
> > > I
> > > > use only one db instance,all app server can
> > > connect to
> > > > it without any problem,but here lies the
> > > bottleneck.I
> > > > want to use several db instances(preferrably
> > > > mysql).How can I do that?
> > > >
> > > > Thanks in advance!
> > > >
> > > > Guo Yingshou
> > > >
> > > >
> > >
> >
>
_
> > > > Do You Yahoo!?
> > > > 国内电邮用户反垃圾调查拉开帷幕
> > > >
> > >
> >
>
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
> > > >
> > > >
> > >
> >
>
-
> > > > 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!?
> > 国内电邮用户反垃圾调查拉开帷幕
> >
>
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
> >
> >
>
-
> > 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!? 
国内电邮用户反垃圾调查拉开帷幕
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

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



Re: question on heavy load website design using struts

2003-07-18 Thread guo yingshou
Nico,

Great! That is exactly what I'm looking for.Maybe I'll
have some hard time to setup a testing environment and
write some code to see what will happen.

Thanks a lot!

Guo Yingshou

 --- Nicolas De Loof <[EMAIL PROTECTED]>
的正文:> You could look at this :
> 
> http://c-jdbc.objectweb.org/
> 
> this intermediate JDBC driver allow you to cluster
> databases. Notice I never used it, use it at your
> own risk ;-)
> 
> Nico.
> 
> 
> > Hi,
> >
> > I am sure that someone here must have worked on a
> > large website with heavy load using struts and I
> > wonder if you'll be kindly enough to give me some
> > suggestions in this occasion.
> >
> > I am using tomcat+jboss as application server.I
> have
> > setup several tomcat_jboss instances in a cluster
> > environment and of course I use struts in my
> > application.HttpSession created in one instance
> will
> > get replicated across all members in the
> cluster.It's
> > just what I want.The problem is how should I
> connect
> > the app servers with the backend db server(s)? If
> I
> > use only one db instance,all app server can
> connect to
> > it without any problem,but here lies the
> bottleneck.I
> > want to use several db instances(preferrably
> > mysql).How can I do that?
> >
> > Thanks in advance!
> >
> > Guo Yingshou
> >
> >
>
_
> > Do You Yahoo!?
> > 国内电邮用户反垃圾调查拉开帷幕
> >
>
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
> >
> >
>
-
> > 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!? 
国内电邮用户反垃圾调查拉开帷幕
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

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



question on heavy load website design using struts

2003-07-17 Thread guo yingshou
Hi,

I am sure that someone here must have worked on a
large website with heavy load using struts and I
wonder if you'll be kindly enough to give me some
suggestions in this occasion.

I am using tomcat+jboss as application server.I have
setup several tomcat_jboss instances in a cluster
environment and of course I use struts in my
application.HttpSession created in one instance will
get replicated across all members in the cluster.It's
just what I want.The problem is how should I connect
the app servers with the backend db server(s)? If I
use only one db instance,all app server can connect to
it without any problem,but here lies the bottleneck.I
want to use several db instances(preferrably
mysql).How can I do that?

Thanks in advance!

Guo Yingshou

_
Do You Yahoo!? 
国内电邮用户反垃圾调查拉开帷幕
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

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



Re: logic:iterate problems

2003-06-17 Thread guo yingshou
_jsp.java:147)
>   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.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>   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.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(CoyoteAdapter.java:223)
>   at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
>   at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
>   at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
>   at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>   at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> 
> --- guo yingshou <[EMAIL PROTECTED]> wrote:
> > try something like:
> > 
> > <%
> >   Collection c =
> >
>
org.ellism.tir.util.DatabaseConstantsAdapter.getInstance().getProductLines();
> > 
> >   request.setAttribute("colName",c);
> > %>
> > 
> > and then:
> > 
> >  > 
> > 
> > 
> > you can alse put your collection into the jsp
> scope
> > variable somewhere in your action.
> > 
> > hope it helps.
> > 
> > guo
> > 
> >  --- Matt E <[EMAIL PROTECTED]> 的正文:> Hello
> > All!
> > > 
> 
=== message truncated === 

_
Do You Yahoo!? 
流连网络世界的“你”是谁?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003

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



Re: logic:iterate problems

2003-06-16 Thread guo yingshou
try something like:

<%
  Collection c =
org.ellism.tir.util.DatabaseConstantsAdapter.getInstance().getProductLines();

  request.setAttribute("colName",c);
%>

and then:



you can alse put your collection into the jsp scope
variable somewhere in your action.

hope it helps.

guo

 --- Matt E <[EMAIL PROTECTED]> 的正文:> Hello All!
> 
> I'm running into some problems getting the
> logic:iterate tag to work.
> 
> I have a class who's full name is
> org.ellism.tir.util.DatabaseConstantsAdapter.  It
> has
> a public method, getInstance() that returns an
> instance of itself (The class itself is a
> singleton). 
> This class has a method getProductLines() that
> returns
> an ArrayList full of
> org.ellis.tir.util.ProductLineToken objects.  I'd
> like
> to iterate over this collection and print some stuff
> out.
> 
> I've tried this:
> 
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld"
> prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld"
> prefix="logic" %>
> 
> ...Lots of HTML code...
> 
> 
> The name is:  property="name"/>.
> 
> 
> However this doesn't seem to work, I get this error:
> 
> org.apache.jasper.JasperException: Cannot create
> iterator for this collection
> ..Stack Trace
> 
> I'm not sure why this happens?  The object returned
> by
>
org.ellism.tir.util.DatabaseConstantsAdapter.getInstance().getProductLines()
> is of type ArrayList, and I thought that was a valid
> collection to iterate over?
> 
> Any insights would be wonderful.
> 
> Cheers!
> 
> __
> 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]
>  

_
Do You Yahoo!? 
流连网络世界的“你”是谁?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003

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



Re: Populating Value Objects for the Business Tier

2003-05-29 Thread guo yingshou
I prefer the 3rd choise. As far as I known, it's the
recommended struts-way to go. One of the reasin is
that your bussiness logic is framework independent. In
case you need another kind of client instead of
browser or your boss like something other than
STRUTS,what should you do to your exisiting work?

 --- Jordan Reed <[EMAIL PROTECTED]> 的正文:>
All,
> 
> I'm on a team that's trying to decided on a best
> practice for passing on
> populating our value objects that get passed to our
> business layer.  We
> currently have three techniques we've though up and
> I'm wonderful if anyone
> has a strong opinion on which one may be the "best"
> and why.
> 
> The basic problem is that the user enters
> information into a form.  The form
> is a presentation object, and should not be passed
> to the business layer.
> So it's information needs to be in a
> presentation-agnostic interface before
> being passed to the data layer.
> 
> 1) Have the action class copy information from the
> form to a value object.
> Have a view helper copy information from the value
> object into the form (for
> pre-population)
> 
> 2) Have the form implement a value-object-like
> interface.  The business
> layer accepts objects with these business
> interfaces.  This way it is
> possible to pass the form objects to the business
> layer without the business
> layer knowing that they are presentation objects.
> 
> 3) Have the form simply include value objects as
> properties.  Then use the
> nested taglibs to populate the value objects.  This
> way the Action can just
> pull the value object off directly and pass to the
> business layer.  A view
> helper can just set the value object on the form.
> 
> 
> -jdr
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

_
Do You Yahoo!? 
流连网络世界的“你”是谁?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003

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



RE: Submit Value

2003-05-29 Thread guo yingshou
form.get...() will return the parameter if your
formbean have the corresponding get/set method.

 --- "Kamholz, Keith   (corp-staff) USX"
<[EMAIL PROTECTED]> 的正文:> Ok... Does anyone have a
good alternative then?
> 
> 
> 
> -Original Message-
> From: Phillip Qin [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 1:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Submit Value
> 
> 
> Don't bother trying it. Only Mozilla gives you the
> value, while IE doesn't.
> 
> -Original Message-
> From: Kamholz, Keith (corp-staff) USX
> [mailto:[EMAIL PROTECTED] 
> Sent: May 28, 2003 1:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: Submit Value
> 
> Quick question...
> 
> I'm using 2 submit buttons in the same form, so that
> I can do 1 of 2 things,
> with the same input data.
> (You can do that, right?)
> I have the value attribute for one of them set to
> 'delete'.  What I'm
> wondering is how to get the value of the submit
> button that was clicked from
> within the action class.
> 
> Thanx a million.
> 
> - Keith
> 
> www.buffalo.edu/~kkamholz
> 
> 
>
-
> 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!? 
流连网络世界的“你”是谁?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003

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



Re: iterate tag question

2003-05-29 Thread guo yingshou
try to assign  element's "id" attribute
to another name.Actually it is a local variable name
which  will be used by  element's name
attribute.

 --- Per Lovdinger <[EMAIL PROTECTED]> 的正文:> 
> Hi there,
> I'm Struts newie and have a question about the
> iterate
> tag.
> When I'm creating an ArrayList with 2 objects. For
> some reason only one show up.
> What am I doing wrong ?
> I've attached the jsp page.
> thanks in advance
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to
> Outlook(TM).
> http://calendar.yahoo.com> <%@ page
contentType="text/html;charset=UTF-8"
> language="java" import=diffent classes..." %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld"
> prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld"
> prefix="logic" %>
>
><% 
>ArrayList users = new ArrayList();
>UserProfile user1 = new
> UserProfile("First1","Last1");
>users.add(user1);
>UserProfile user2 = new
> UserProfile("First2","Last2");
>users.add(user2);   
>request.setAttribute("usersAttrib",users);   
> 
>%> 
>   
>
> First nameLast Name
>
>  name="usersAttrib"  />
>  
>property="firstName"/> 
>property="lastName"/>
>
>  
> 
> 
> >
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED] 

_
Do You Yahoo!? 
流连网络世界的“你”是谁?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003

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