Re: copyrighted documents in Struts package

2004-03-09 Thread Kevin Wang

If those files are part of Struts package, but copyrighted as netscape's property, is it still legal to use Struts to develop commercial software?


Paul Stanton <[EMAIL PROTECTED]>










Paul Stanton <[EMAIL PROTECTED]>
03/08/2004 05:46 PM
Please respond to "Struts Users Mailing List"




	
	To:	Struts Users Mailing List <[EMAIL PROTECTED]>
	cc:	
	Subject:	Re: copyrighted documents in Struts package



the rss spec is owned by netscape. the dtds are therefore netscapes property

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






copyrighted documents in Struts package

2004-03-08 Thread Kevin Wang




Hi,

I found two documents copyrighted by Netscape in struts package.

org\apache\commons\digester\rss\rss-0.91.dtd
and
org\apache\commons\digester\rss\rss-0.9.dtd

I believe I am using struts 1.1... did anyone notice this before?? isn't
struts supposed to be "open source"?


kevin


Kevin Wang
IBM Database Technology Institute for e-Business
[EMAIL PROTECTED]
phone: (512)-838-4815 or t/l 678-4815


RE: Can I use action path instead of form name in in validation.xml?

2003-11-13 Thread Kevin Wang




Thanks Robert! Right now my forms are extending ActionForm. Can I just make
them extend DynaValidatorActionForm without changing anything else? What do
I need to change if I do need to?

Kevin



   

  "Robert Taylor"  

  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>  
  .com>cc: 

   Subject:  RE: Can I use action path 
instead of form name in  in
  11/13/2003 11:19  validation.xml?

  AM   

  Please respond to

  "Struts Users

  Mailing List"

   





Yes. You can do this, but you have to use or subclass
DynaValidatorActionForm.
It uses the "path" attribute of the action mapping to determine validation
rules
for the request.

robert

> -Original Message-
> From: Kevin Wang [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 12:13 PM
> To: [EMAIL PROTECTED]
> Subject: Can I use action path instead of form name in 
> in validation.xml?
>
>
>
>
>
>
>
> I can't use the form names  because in our application all the
> forms are by
> the same session attribute.
> I read from somewhere that I can do something like,
>
> 
>   
>   
>   
> 
>
>
> But I haven't been successful...Please advice, Thanks!
>
> Kevin
>
>
> -
> 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]



Can I use action path instead of form name in in validation.xml?

2003-11-13 Thread Kevin Wang





I can't use the form names  because in our application all the forms are by
the same session attribute.
I read from somewhere that I can do something like,


  
  
  



But I haven't been successful...Please advice, Thanks!

Kevin


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



RE: Show validation error messages next to the corresponding inpu t fields

2003-11-12 Thread Kevin Wang




Thanks Vishu,

But my question is that how to put the error messages in the location next
to their input fields. Something like this:


User name: (input box for user name)

First name: (input box for first name)

*Error: Last name can't be empty.
Last name:(input box for last name)


*Error: invalid credit card number.
Credit Card Number (input box for credit card number)

..

Thanks,
kevin



   

  "Ghanakota,  

  Vishu"   To:   "'Struts Users Mailing List'" 
<[EMAIL PROTECTED]>
  <[EMAIL PROTECTED]cc:
 
  stam.com>Subject:  RE: Show validation error 
messages next to the corresponding inpu t fields
   

  11/12/2003 08:26 

  PM   

  Please respond to

  "Struts Users

  Mailing List"

   





use the "errors" tag under html taglib. When you instantiate an ActionError
and add it to ActionErrors, you can specify a key, which can be linked to
an
entry in ResourceBundle. "errors" tag will pick that up. you can also use
html formatting around the entry in ResourceBundle, so it can go with rest
of your formatting.

-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 6:23 PM
To: Struts Users Mailing List
Subject: Show validation error messages next to the corresponding input
fields






Does anybody know how to do this? I know I can get ActionErrors which is an
array of messages.. but is there a way I can put the messages in place with
their input fields?

Thanks.




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


"MMS " made the following
 annotations on 11/12/2003 06:26:48 PM
--

"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED
SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN
CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE
ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS
MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE
THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS
MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS
MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."
==



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



Show validation error messages next to the corresponding input fields

2003-11-12 Thread Kevin Wang




Does anybody know how to do this? I know I can get ActionErrors which is an
array of messages.. but is there a way I can put the messages in place with
their input fields?

Thanks.




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



RE: Need a RegExp mask for: all charactors except for "\", "/" and "?"

2003-11-12 Thread Kevin Wang




Thanks Dan.

It's for an input field for user's name that can't have "/","\" or "?" in
it. I use it in Strut's validation.xml

So it should be [^\\/?]* then?

Kevin



   
  
  "Daniel Lipofsky"
  
  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>  
  icsnet.com>cc:   
  
 Subject:  RE: Need a RegExp mask for: 
all charactors except for "\", "/" and "?"
  11/12/2003 04:45 PM  
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  





Do this
[^\\/?]  (one char)
[^\\/?]* (zero or more chars)

Also if in a java string don't forget to escape
the backslashes again like
"[^/?]*"

- Dan

> From: Saul Q Yuan [mailto:[EMAIL PROTECTED]
>
> Try this,
>
> ^[\\|\/|\?]
>
> or (^[\\|\/|\?])* for 0 or more matches
>

> From: Kevin Wang [mailto:[EMAIL PROTECTED]
> Subject: Need a RegExp mask for: all charactors except for
> "\", "/" and
> "?"

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



Need a RegExp mask for: all charactors except for "\", "/" and "?"

2003-11-12 Thread Kevin Wang





Thanks in advance!



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



Internationalization and file uploads with multipart/for-data

2003-03-21 Thread Kevin Wang




Hi all,

I am working on internationalization for our web application.By setting <%@
page contentType="text/html; charset=UTF-8"%> and using a filter to set
request's characterset to "UTF-8", I am able to get user's input in Chinese
and send it back to the browser correctly.

However I found that whenever I need to upload a file and add the attribute
"enctype=multipart/form-data" to , I couldn't get user's input
in Chinese correctly. Is it a struts limitation or something I might have
done wrong?

Thanks!

Kevin Wang
IBM Database Technology Institute for e-Business
[EMAIL PROTECTED]
phone: (512)-838-4815 or t/l 678-4815



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



RE: file upload

2002-04-05 Thread Kevin Wang


Yes, Jenniffer, It does speed up when accessing from a different box!

But who knows the reason?

Thank for your reply.

Kevin


-Original Message-
From: FISHKIN-LEVAS,JENNIFER (HP-NewJersey,ex2)
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:52 AM
To: 'Struts Users Mailing List'
Subject: RE: file upload


Kevin,

I ran into the same issue, not just with Struts File Upload, but also with
the O'Reilly servlet as well.  Are you uploading from the same box as your
server?
What I found is that if your client is on a different box than the server,
the file upload is speedy.

--Jenn

-Original Message-----
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: file upload



Hi,

Now I am testing the 'upload' sample shipped with Struts.  I found it
becomes very slow when the file size is big - say above 3M.

Why? Have you guys run across the same problem?

Thanks
Kevin



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




file upload

2002-04-05 Thread Kevin Wang


Hi,

Now I am testing the 'upload' sample shipped with Struts.  I found it
becomes very slow when the file size is big - say above 3M.

Why? Have you guys run across the same problem?

Thanks
Kevin



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




what will happen if I have Data Types other than java.lang.String in my formbean - say java.util.date?

2002-02-08 Thread Kevin Wang

I have a formbean which include a field its type is java.util.Date, and I
have two methods to get and set
like these :
Date getMyField() { return dateVar; }
void setMyField(Date date ){ dateVar = date ;}

Now I use  to display this field, it displays the Date with the
'-mm-dd' format, I am wondering can I change the format?

Another big issue is I can not submit my form, when I submit my form
exception happens:

java.lang.IllegalArgumentException: argument type mismatch  at
java.lang.reflect.Method.invoke(Native Method)  at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:98
8)  at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:90
4)  at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)at
org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)   at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772) at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563) at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)at
org.apache.tomcat.core.Handler.service(Handler.java:287)at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)


I know if I change the getter and setter method to String everything is OK,
but can struts supports java.util.Date in formbean?

thanks in advance
Kevin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Adding/Modifying parameters in the Request object

2002-01-25 Thread Kevin Wang


But, Is there any method of HttpRequest call getParameterMap? or need write
by myself?

-Original Message-
From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 12:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object


Here is a more concrete example:

Map params = request.getParameterMap();

Foo myData = new Foo(); // assume this is your large data

params.put("BigMoFoObject", myData);

// now myData is a parameter of the HttpServletRequest object

// forward the request to your new Action

Tim

-Original Message-
From: Elena Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object


I'm also running into a similiar problem, but need to add parameters with
large chunks of data in a redirect call.  Is there another way to do this
besides adding it in the url (which doesn't work because of the data size) ?

Thanks!

-Original Message-
From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 9:32 AM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object


You can call request.getParameterMap() which returns a Map object that you
can manipulate.

Tim

-Original Message-
From: Freek Segers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 11:34 PM
To: Struts Users Mailing List
Subject: Adding/Modifying parameters in the Request object


Hi,

Does anyone know how you can add a parameter to the Request object in an
Action?

I can find no interface for it in HTTPServletRequest or ServletRequest.

What I want to do is forward a request in one Action to another Action (by
returning an ActionForward that's configured in struts-config), but add a
new parameter to the request.

Thanks,

Freek


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts & Tiles & JBuilder 6

2002-01-14 Thread Kevin Wang


Hi,

I am just begin to write an application based on Struts and Tiles. I have
written some code and can run very well without JBuilder.

Now I want to use JBuilder6 to do the development. But something happaned,
the structs parts of the application runs very well, while the parts use
Tiles'definition can not run. The error message listed below(I just copied
from Jbuilder):


Anyone can help?

Thanks in advance
Kevin



Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call the
'setErrorHandler' method to fix this.

Error: URI=null Line=2: Element type "web-app" is not declared.
Error: URI=null Line=3: Element type "servlet" is not declared.
Error: URI=null Line=4: Element type "servlet-name" is not declared.
Error: URI=null Line=5: Element type "servlet-class" is not declared.
Error: URI=null Line=6: Element type "init-param" is not declared.
Error: URI=null Line=7: Element type "param-name" is not declared.
Error: URI=null Line=8: Element type "param-value" is not declared.
Error: URI=null Line=30: Element type "load-on-startup" is not declared.
Error: URI=null Line=40: Element type "servlet-mapping" is not declared.
Error: URI=null Line=42: Element type "url-pattern" is not declared.
2002-01-14 18:09:58 - Ctx( /MIROPA ): Exception in: R( /MIROPA +
/mainFrame.jsp + null) - javax.servlet.ServletException at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)at
org.apache.tomcat.core.Handler.service(Handler.java:287)at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)  at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484) Root cause:
java.lang.NoSuchMethodError at
org.apache.crimson.tree.XmlDocumentBuilder.startDTD(XmlDocumentBuilder.java:
615)at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1131)   at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)   at
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)   at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)   at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
85) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
at org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(JspUtil.java:162) at
org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:138)at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:346) at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java
:233)   at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)  at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at
org.apache.jasper.compiler.Parser.parse(Parser.java:1077)   at
org.apache.jasper.compiler.Parser.parse(Parser.java:1042)   at
org.apache.jasper.compiler.Parser.parse(Parser.java:1038)   at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)  at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)at
org.apache.tomcat.core.Handler.service(Handler.java:287)at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)  at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:

RE: POST and GET method

2001-03-01 Thread Kevin Wang



The 
current ActionServlet passes both doGet() and doPost() to 
process(request, response). if you want your entire application to handle 
doGet() with an error.jsp, ActionServlet is a good place to do so (assuming each 
webapp get its own ActionServlet). If you want to handle them per Action 
basis, you can find out HttpMethod with request.getMethod(), the 
request object is passed to Action.perform() by 
ActionServlet.

  -Original Message-From: Spencer Smith 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 01, 2001 8:35 
  AMTo: [EMAIL PROTECTED]Subject: Re: POST 
  and GET method
  That's a good question.  If you guys find 
  out let me know and I will do the same.  I actually have to deal with 
  that today in a multi-part form.  I am not sure, but I think the answer 
  is by adding struts hidden form fields.  I'll let you know later 
  today.
  
- Original Message - 
From: 
kiatkin 

To: [EMAIL PROTECTED] 

Sent: Thursday, March 01, 2001 12:05 
AM
Subject: POST and GET method

Hi,
 
Anyone know how to set an action class to 
process the POST request only. So that when user try to access www.abc.com/action.do?action=doGET. 
It can redirect user to error page. Or put in this way, how do 
action class react differently for each doGet and doPost 
request?
 
regards,
Kiat 
Kin 


RE: Using expressions as attribute values in

2001-02-28 Thread Kevin Wang

I don't have the latest html dtd but a peek into _form.dtd confirms that you
CAN use expression for the href attribute.


link
org.apache.struts.taglib.form.LinkTag

href
false
true


assuming same is true for _html.dtd, a possible work around is that you
construct the entire url expression first and then assign to the
. something like, 
<%
String url = "http://localhost:8080/internal/"+jsp;
%>

 />

kevin

> -Original Message-
> From: Anderson, Jessica [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 10:04 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Using expressions as attribute values in 
> 
> 
> I am still unclear as to the solution to this problem.  I am using
>  tags and there seems to be an issue with using 
> jsp expressions.
> I have taken all extra spaces out, I removed the quotes as 
> Kevin suggested,
> but had parsing problems - the attribute value must be in 
> quotes.  Is there
> anyway to pull in a variable as the page attribute value?
> 
> Thanks,
> Jessica
> 
> -Original Message-
> From: Kevin Wang [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 9:53 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Using expressions as attribute values in 
> 
> 
> while  works fine inside pair "s, <%= %> does 
> not. you need to
> take away the pair of "s here. in this case, you also need to 
> make sure that
> no spaces would appear in the entire query string.
> 
> here is my example:
> 
>   <%
>   String clazz = obj.getClass().toString();
>   clazz = clazz.substring(clazz.indexOf(" ")+1); 
>   String clazzName =
> clazz.substring(clazz.lastIndexOf(".")+1);
>   %> 
> 
>   clazzName.toLowerCase().trim() %>.jsp&objectType=<%=clazz
> %>&primaryKey= />>  name="obj" property="name" /> 
> 
> kevin wang
> 
> > -Original Message-
> > From: Anderson, Jessica [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 28, 2001 9:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: Using expressions as attribute values in 
> > 
> > 
> > I have tried to use a jsp expression as the value for the 
> > page attribute
> > (page=<%= jsp %>) but the < and > translate as less than 
> greater than
> > symbols.  I have also tried using the escape character \ 
> > before and after
> > the < and >, but I get the same result in my source HTML:
> > 
> > 

RE: Using expressions as attribute values in

2001-02-28 Thread Kevin Wang

while  works fine inside pair "s, <%= %> does not. you need to
take away the pair of "s here. in this case, you also need to make sure that
no spaces would appear in the entire query string.

here is my example:

<%
String clazz = obj.getClass().toString();
clazz = clazz.substring(clazz.indexOf(" ")+1); 
String clazzName =
clazz.substring(clazz.lastIndexOf(".")+1);
%> 

 .jsp&objectType=<%=clazz
%>&primaryKey=>  

kevin wang

> -Original Message-
> From: Anderson, Jessica [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 9:41 AM
> To: [EMAIL PROTECTED]
> Subject: Using expressions as attribute values in 
> 
> 
> I have tried to use a jsp expression as the value for the 
> page attribute
> (page=<%= jsp %>) but the < and > translate as less than greater than
> symbols.  I have also tried using the escape character \ 
> before and after
> the < and >, but I get the same result in my source HTML:
> 
> 

RE: Dynamic properties

2001-02-21 Thread Kevin Wang



You 
basically need to add a Hashtable to ActionForm (or its subclass) to hold 
dynamic properties ; PropertyUtils provides set/get methods 
to set/get dynamic properties to the Hashtalbe; and BeanUtils makes usre 
such methods get called before throwing 
a "NoSuchMethodFoundException". I've got it working for simple property with 
12/07/00 nightly built. It should be easy (though time comsuming) 
to do the same for indexed/nested properties.
 
Kevin

  -Original Message-From: Craig R. McClanahan 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 21, 
  2001 11:33 AMTo: [EMAIL PROTECTED]Subject: 
  Re: Dynamic propertiesAllan Schweitz wrote: 
  

Can anyone tell me if the forms struts 
supports dynamic properties? If so is there an example available on how this 
works?I have a html form that 
builds up dynamically creating a table with checkboxes, text input and 
selectboxes. But since this form is dynamically generated there is no form 
class that reflects the dynamically generated form and struts cannot handle 
it. If anyone knows how to 
solve this in struts please let me know. Thanks in advance, Allan Schweitz[EMAIL PROTECTED]Struts 
  1.0 does not support dynamic properties, but this is on the TODO list for 
  Stuts 1.1.  Given the number of questions about it, I expect it to be 
  fairly high in the priorities. 
  Craig   


Double actions observed on "post" to ActionServlet

2001-02-15 Thread Kevin Wang



I got 
two entries added to the database when submitting one adding request through 
Struts. Got the same on loginAction, ie. logged in twice. However, when I made 
the request via GET (using "/jsp/login.do?user=xx&password=xx" directly), 
only one login action took place. Any explanation?
 
We are 
running Struts 1.0 (12/07/00 built) on Orion 1.4.0.
 
 

Kevin X WangSr. Software 
Developer[EMAIL PROTECTED](512) 
439-2146
"Find a job you love and never work a 
day in your life." - Confucius


RE: Wanted: Translator For JSP Book

2001-02-08 Thread Kevin Wang

david,

i can translate ... from english into chinese for you.

kevin

> -Original Message-
> From: David Geary [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 8:02 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Wanted: Translator For JSP Book
> 
> 
> I'm looking for somebody that can translate some English
> phrases into a CJK (Chinese-Japanese-Korean) language.
> 
> This is for my Advanced JSP book; please reply to this email for
> details.
> 
> 
> david
> 
> (Sorry for this off-topic message to struts-user)
> 



RE: Dynamic properties

2001-01-29 Thread Kevin Wang

check out http://archive.covalent.net/jakarta/struts-user/2000/12/0481.xml
for my previous post on handling dynamic properties with Struts.
unfortunately, it is not working with the latest nightly builds as changes
are significant.

indexed/nested properties were not "dynamically" supported.

> -Original Message-
> From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 3:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Dynamic properties
> 
> 
> Hi there,
> 
> this is a very interesting question Bram raised and I would 
> very urgently need
> this feature in my current application, too. So I would 
> really like to know if
> this can be achieved with Struts. Does anybody know, how a 
> form bean could be
> dynamically equipped with properties, so it could be used for 
> multiple forms,
> not just a single one?
> 
> So what I am looking for are the following two things:
> 
> 1. The form bean which is associated to a struts form should 
> be instantiated by
> a factory which decides depending on a cgi parameter which 
> form bean to use.
> 
> 2. The form bean can contain indexed properties which are 
> accessed by methods
> which conform to the JavaBeans specification, e. g. setter(int index,
> PropertyType value).
> 
> If I am getting it right, there is currently no way to 
> accomplish this, because
> Struts only allows static mapping between the form elements' 
> names and the form
> bean elements' names. And you can only define a static 
> mapping from jsp forms to
> form beans in struts-config.xml.
> 
> I would be glad if I were wrong and it is relly an easy thing 
> to do something
> like that. So any suggestions would be very welcome.
> 
> Thanks,
> 
> --- Matthias
> 
> Matthias Bauer +++ [EMAIL PROTECTED] +++ LivingLogic AG +++ 
www.livinglogic.de


> bram wrote:
> 
> Hi,
> 
> Is there any way to dynamicly add properties to a bean?
> 
> The problem is that I have a recordset and want to use the colomn names as
a
> property (indexed) without writing a bean for every possible recordset so
I
> can use it with Struts.
> 
> Bram



RE: problems with the logic:iterate tag

2001-01-26 Thread Kevin Wang


>  class=3D"com.mycomp.SomeData"/>
>

you might want to check whether "someList" is empty or not.

> 
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 



Nested and indexed attributes with the latest builds?

2001-01-25 Thread Kevin Wang

Just wondering whether anyone has successfully used nested/indexed
attributes in Struts. Sample codes?

Thanks.



Automatic/extended properties in Struts

2000-12-21 Thread Kevin Wang


I've made some changes in three files (attached and virus free :-) to let
Struts handle automatic/extended properties, ie properties that appears on
jsp but not defined by the actionForm bean. 

It is based on 12/16 nightly build. Only simple properties are supported at
this time, as was the original nightly build. Tested on Orion 1.4. Watch
your server's System.out for extended properties... (printed from
ActionForm).

Let me know if you have problem getting them to work.


 ActionForm.java
 BeanUtils.java
 PropertyUtils.java


RE: Article on JavaWorld

2000-12-04 Thread Kevin Wang

I did something similar in our project to handle "extended properties",
which include "automatic properties" as a special case when not a single
property (and methods) is defined in the ActionForm bean. I tried extend
Struts as much as posible and had to only change BeanUtils in a similar
fashion. Details at
http://archive.covalent.net/jakarta/struts-user/2000/11/0516.xml

Kevin Wang

-Original Message-
From: Thor Kristmundsson [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 9:02 AM
To: [EMAIL PROTECTED]
Subject: RE: Article on JavaWorld


You have a point, the article doens't make use of all of Struts feature. I
was simply trying to convey the experience I got during a recent project of
using the Struts JSP tag libraries. This project didn't lend itself to using
the rest of Struts so I had nothing to report there. IMHO the methods
presented do add value to Struts and could perhaps be incorporated. I cant
see anything inherently wrong with changing the Struts code to accomodate
these features.
Thor Kristmundsson

-Original Message-
From: Jean-Baptiste Nizet [mailto:[EMAIL PROTECTED]]
Sent: Montag, 4. Dezember 2000 16:06
To: [EMAIL PROTECTED]
Subject: Article on JavaWorld


Hi all,

I just noticed that there is an article talking about Struts on JavaWorld,
at
http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts.html, written
by
Thor Kristmundsson, from ATG. This shows, once again, that Struts is more
and
more used and recognized in the Java community.
Unfortunately, the article, IMHO, shows exactly what should NOT be done with
Struts. The MVC pattern is broken (no real form bean, controller code in the
JSP
page, direct forwards to JSP pages, ...), the validation process of Struts
is
bypassed and re-invented, the error management is also re-invented, and this
is
done by modifying the Struts sources, instead of trying to enhancing it by
adding or extending classes.

What do you all think about it?

I personnally think that someone knowing Struts perfectly (Craig, are you
here?), should react to this article and show how all this could be done
using
Struts in a smart way, and explain what the real Struts is able to do.

JB.
--
Jean-Baptiste Nizet
[EMAIL PROTECTED]

R&D Engineer, S1 Belgium
Kleine Kloosterstraat, 23
B-1932 Sint-Stevens Woluwe
+32 2 200 45 42




How to make ActionForm handle extended properties

2000-11-27 Thread Kevin Wang

Currently, every form field has to have equivalent field in ActionForm bean,
with both getter and setter method. This requires that a new ActionForm be
generated for each new Struts form (with additional fields).

Our applicaiton requires 'extensibility', ie. HTML/JSP designer should be
able to add new fields to the form without breaking serverside Java code,
including Struts. 

I've made some minor changes to Struts 0.5 to achieve such extensibility.
Basically, it use a Hashtable to save and retrieve extra fields that do not
appear in the ActionForm.

1. Add (Hashtable) properties to BaseActionForm which implements
ValidatingActionForm, with getter and setter methods like,

public String get(String name);

public void set(String name, String value);

  All my ActionForm classes will extend this BaseActionForm.

2. Added a new util class that has two methods that will call the above
methods with the following interface:

public static String getPropertyValue(Object bean, String name)
throws IllegalAccessException, InvocationTargetException,
NoSuchMethodException;

public static void setPropertyValue(Object bean, String name, Object
value)
throws IllegalAccessException, InvocationTargetException,
NoSuchMethodException;

3. Modify org.apache.struts.util.BeanUtils' get/setPropertyValue() to call
my custom get/setPropertyValue() above whenever NoSuchMethodException was
thrown.


This approch worked so far but not very elegant. The need to modify
BeanUtils.java is, of cause, troublesome. Any suggestions?

Thanks.

Kevin



RE: org.apache.struts.action.MESSAGE exception with orion 1.4

2000-11-20 Thread Kevin Wang

Struts 1.0 example (11/15 nightly) is not working on Orion (1.2.9) either.
It seems something is wrong with 'jndi' as it use jndi to resolve
'struts-config_1_0.dtd'. 

Here is a common exception ...

java.net.MalformedURLException: unknown protocol: jndi
at
org.apache.struts.digester.Digester.resolveEntity(Digester.java:619)
at
com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)
at com.sun.xml.parser.Parser.pushReader(Parser.java:2768)
at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2504)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
at org.apache.struts.digester.Digester.parse(Digester.java:754)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java,
Compiled Code)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:393)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at com.evermind.server.http.HttpApplication.vt(JAX)
at com.evermind.server.http.HttpApplication.vc(JAX)
at com.evermind.server.http.HttpApplication.tp(JAX, Compiled Code)
at com.evermind.server.http.d5.rx(JAX, Compiled Code)
at com.evermind.server.http.d5.rw(JAX, Compiled Code)
at com.evermind.util.f.run(JAX, Compiled Code)

-Original Message-
From: Denis Hanson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 19, 2000 4:12 PM
To: [EMAIL PROTECTED]
Subject: org.apache.struts.action.MESSAGE exception with orion 1.4



Hi all,

I've encountered the ever-popular Missing resources attribute
org.apache.struts.action.MESSAGE error when trying to access the
struts-example application using Win NT, orionserver 1.4, jdk1.3 and struts
from 13Nov.  I've searched through the struts message archives and tried all
the suggestions I could find, but still no luck.  (I was able to deploy the
example on JRun 3.0, but not on orionserver.)

Any help will be greatly appreciated because I definitely want to use
orionserver instead of JRun.


Here's the error:

javax.servlet.jsp.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:232)
at /index.jsp._jspService(/index.jsp.java:39) (JSP page line 8)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xa(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)

Here's my application.xml entry:



Here's my default-web-site.xml entry:



Orion is at d:\orion and struts is at d:\struts.

Thanks,

Denis Hanson



RE: ApplicationResources in Struts 1.0

2000-11-16 Thread Kevin Wang

This error might be the for Orion. There is an exception relating to jndi
when(?) ApplicationResources is being bundled.

>java.net.MalformedURLException: unknown protocol: jndi
>   at
org.apache.struts.digester.Digester.resolveEntity(Digester.java:619)
>   at
com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: ApplicationResources in Struts 1.0


"Rautenberg, Stefan" wrote:

> Hi all,
> We are using Struts 0.5 in an application which runs under Jrun
3.0.
> The ApplicationResources.properties was always found in the
> directory /WEB-INF/libs which is automatically added to the classpath by
> Jrun.
>

Does the unmodified Struts example application work for you?  It loads
application resources from a resource bundle named
"org.apache.struts.example.ApplicationResources" -- which ends up being
populated by a properties file
"WEB-INF/classes/org/apache/struts/example/ApplicationResources.properties".

I do not believe there have been any changes in how this is handled since
0.5.

>
> Now that we have updated using Struts 1.0 (the nightly build of
> 30.10.2000), Jrun can't find the properties file anymore.
> We've tried all possible location (each time with changing the
> web.xml) and we compared the 0.5- and the 1.0 ActionServlet, if there are
> any changes made.
>
> I guess Jrun can't be the problem, because everything worked fine
> with the 0.5 version.
>
> Does anyone know if changes were made to the handling of
> ApplicationResources.properties ?
>
> Thanks in advance for any help.
>
> And by the way: Is there an actual schedule for release 1.0 ?
>

I'm hoping to have a beta release by the end of November, with a final as
soon
as we're satisfied that any critical bugs have been squashed.

>
> Stefan
>

Craig McClanahan




RE: Problems with example app, and cookie & match tests, in WebLogic 5.1

2000-11-16 Thread Kevin Wang

I got the same error trying running struts-example (latest nightly) on
Orion. However, other apps (struts-template, struts-test) run well for me.
Example seemed loaded on server startup  with some extra message about
"...1.0_dtd". 

Here's my server startup log...

D:\orion>java -jar orion.jar
New org.apache.struts.example.User
Set org.apache.struts.example.User properties
New org.apache.struts.example.Subscription
Set org.apache.struts.example.Subscription properties
Call org.apache.struts.example.Subscription.setUser(User[username=user,
fullName=John Q. User])
Pop org.apache.struts.example.Subscription
New org.apache.struts.example.Subscription
Set org.apache.struts.example.Subscription properties
Call org.apache.struts.example.Subscription.setUser(User[username=user,
fullName=John Q. User])
Pop org.apache.struts.example.Subscription
Call org.apache.struts.example.DatabaseServlet.addUser(User[username=user,
fullName=John Q. User])
Pop org.apache.struts.example.User
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jndi://D_/jakarta-struts/webapps/struts-exa
mple/WEB-INF/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dt
d'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/
struts-config_1_0.dtd')
 Resolving to alternate DTD
'jndi://D_/jakarta-struts/webapps/struts-example/WEB-INF/lib/struts.jar/org/
apache/struts/re
sources/struts-config_1_0.dtd'
Orion/1.2.9 initialized
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jndi://D_/jakarta-struts/webapps/struts-exa
mple/WEB-INF/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dt
d'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/
struts-config_1_0.dtd')
 Resolving to alternate DTD
'jndi://D_/jakarta-struts/webapps/struts-example/WEB-INF/lib/struts.jar/org/
apache/struts/re
sources/struts-config_1_0.dtd'
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jndi://D_/jakarta-struts/webapps/struts-exa
mple/WEB-INF/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dt
d'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/
struts-config_1_0.dtd')
 Resolving to alternate DTD
'jndi://D_/jakarta-struts/webapps/struts-example/WEB-INF/lib/struts.jar/org/
apache/struts/re
sources/struts-config_1_0.dtd'


Kevin

-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 8:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Problems with example app, and cookie & match tests, in
WebLogic 5.1


>the mail-archieve is crowded with Struts / Weblogic problems.
>WL seems to have different problems with Struts.
>As I've switched over to Orion Appserver, I've never had the same problems
>again.

That's very interesting... when I tried the latest nightly build of struts
w/ Orion 1.4.0, I still get the "Can't find resource MESSAGE" error.  I am
deploying struts-example.war as a webapp, loading it on startup, and having
Orion expand it.  struts-example does in fact have struts.jar in its lib.  I
would think that all I have to do to get the struts-example.war to work is
point to it w/ orion's application.xml and default-web-site.xml, but I keep
getting the "Can't find resource MESSAGE" error.

Is there a trick I'm missing?

Thanks,
Seth

ps I tried the fix for Orion from the INSTALL but that didn't seem to work.



RE: EJBs with STRUTS

2000-11-03 Thread Kevin Wang

Dave,

I assume that you want me to explain why I favour Orion over Weblogic for
Struts.

Weblogic does not support Struts out-of-the-box though it might in the
future. The main problem is that  can not be resolved in
weblogic.

As for deployment, adding application to Orion is almost effortless. Just
tell Orion where you Servlet 2.2 compliant application is located in its
config/application.xml and it will take care of the rest. In Weblogic,
however, you have to fiddle with additional stuff like WEBLOGICCLASSPATH.

Thanks.
Kevin

-Original Message-
From: Lavin, Dave [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 9:27 AM
To: '[EMAIL PROTECTED]'
Subject: RE: EJBs with STRUTS


Kevin,

see below:
> -Original Message-
> From: Kevin Wang [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 3:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: EJBs with STRUTS
> 
> 
> 
> >if i understand you correctly, you force yourself to make a sharp
> >distinction between ejb tier and web tier: you have no 
> access to the web
> >tier from weblogic and only jndi/ejb access to the database 
> from orion - is
> 
> right. we roughly follow j2ee blue print and have clear 
> distinction between
> webtier and ejb tier. web tier is one of ejb tier's client and it is
> accessing ejb tier through their remote interfaces (jndi/rmi/...). 
> 
> >this the main reason for using 2 different products?
> >or is it because orionserver does servlets better and 
> weblogic does ejb
> >better?
> 
> the reason for using weblogic is political - it had been chosen
> the reason for using of orion is technical - weblogic does 
> not do struts well

*** Could you explain further what you mean by this? ***


> 
> i personally favour orion as it follow j2ee specification 
> much better than
> weblogic. it is much less painful to deploy to orion server. 
> there are no
> performance comparisons between the two servers available to us.
> 
> kevin
> 

Thanks,

Dave Lavin
Follett Software Company



RE: EJBs with STRUTS

2000-11-02 Thread Kevin Wang


>if i understand you correctly, you force yourself to make a sharp
>distinction between ejb tier and web tier: you have no access to the web
>tier from weblogic and only jndi/ejb access to the database from orion - is

right. we roughly follow j2ee blue print and have clear distinction between
webtier and ejb tier. web tier is one of ejb tier's client and it is
accessing ejb tier through their remote interfaces (jndi/rmi/...). 

>this the main reason for using 2 different products?
>or is it because orionserver does servlets better and weblogic does ejb
>better?

the reason for using weblogic is political - it had been chosen
the reason for using of orion is technical - weblogic does not do struts
well

i personally favour orion as it follow j2ee specification much better than
weblogic. it is much less painful to deploy to orion server. there are no
performance comparisons between the two servers available to us.

kevin




RE: EJBs with STRUTS

2000-11-02 Thread Kevin Wang

joe,

>if you add a new Action/ActionForm class and/or if you add a new Mapping in
>action.xml - do you need to restart or not? (i haven't tried yet)

i'm not sure whether the server needs to be restarted and that's why i'm not
relying on action.xml to store that changes. a navigator is put in session
that stores infomation about user id, lastURL ... etc and can be updated via
lookup service SessionBean on EJB side where  dynamic configuration is made.

>which advantages/disadvantages does the coexistence of weblogic and
>orionserver cause?

well, Craig just addressed this one. in addition, it is easier to distribute
web tier(s) if needs to.

kevin



RE: EJBs with STRUTS

2000-11-02 Thread Kevin Wang

I'm using Struts with EJB in our project. The application is required to be
configurable at runtime, ie. navigation and jsp content can be altered while
the server(s) are running. 

My current architecture is as follows:

1. EJB tier is served by Weblogic
2. Web tier is hosted by Orion Server, running Struts
3. A lookup service (Session EJB) connects Strtus with EJBs

The lookup service passes various 'business objects'(JavaBeans) betwin the
two tiers. Struts action classes are responsible for populating business
objects with Struts actionForms and vice versa.

Kevin

-Original Message-
From: Juan Gargiulo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 11:12 AM
To: [EMAIL PROTECTED]
Subject: RE: EJBs with STRUTS


Does anyone have experience with this?

Thanks,

juan

-Original Message-
From: Raj [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:13 PM
To: [EMAIL PROTECTED]
Subject: EJBs with STRUTS


Hi all,

Can you share your experiences in incorporating EJBs with STRUTS framework.
I would like to know
what design modifications you have done to the existing STRUTS framework
and also the pluses and minuses of using STRUTS with EJBs.

Thank you,

Raj




Link tag inside Iterate or Enumerate tag

2000-10-25 Thread Kevin Wang

I'm trying to use the  inside  as follows,


  
  
  

  


the  can't get property for 'primaryKey' when 'companies' is an Array
but works fine is 'companies' is an Enumeration.  works well
in both cases. 

Any work arround is appreciated.

Thanks.
Kevin

-Original Message-
From: Pierre Delisle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 7:08 PM
To: [EMAIL PROTECTED]
Subject: Re: getting arrays w/ useBean?


Seth,

Simply add the scope attribute and it should then work.

 

 -- Pierre

Seth Ladd wrote:
> 
> Hello,
> 
> I'm having a problem with referencing an array with .  I keep
> getting ClassCastExceptions, and I'm not sure how exactly to do this.
> 
> I gave the request an array of objects using request.setAttribute("id",
> myArray).  When I reference this in my JSP page, I am trying to use
> something like:
> 
> 
> 
> but it doesn't work.  I have also tried different permutations of class
and
> type using brackets or not.  The goal is to get an array, from the request
> object to the  taglib (which is really cool, btw!).
> 
> If anyone can help me out, I would really appreciate it.
> 
> Thanks very much in advance,
> Seth
> 
> ps I eventually just didn't use  and referenced the array
> directly with iterate, but now I'm really curious how to do it. :)