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


Can I use action path instead of form name in form name=xxx 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,

formset
  form name=/logonaction
  
  /form
/formset


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

Kevin


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



RE: Can I use action path instead of form name in form name=xxx 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]  
  .comcc: 

   Subject:  RE: Can I use action path 
instead of form name in form name=xxx 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 form name=xxx
 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,

 formset
   form name=/logonaction
   
   /form
 /formset


 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]



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]



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.comcc:   
  
 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]



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: 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.comSubject:  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 firstam.com 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]



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 html:form, 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]



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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[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]




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 html:text 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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




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.init(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:416)
at

RE: POST and GET method

2001-03-01 Thread Kevin Wang



The 
current ActionServletpasses 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 setan action class to 
process the POST request only. So that when user try toaccess www.abc.com/action.do?action=doGET. 
It can redirect user toerror page.Or put in this way, how do 
action classreact differently for each doGet and doPost 
request?

regards,
Kiat 
Kin


RE: Using expressions as attribute values in html:link

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.

tag
namelink/name
tagclassorg.apache.struts.taglib.form.LinkTag/tagclass
attribute
namehref/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute

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
html:link. something like, 
%
String url = "http://localhost:8080/internal/"+jsp;
%

html:link href=%= url % /

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 html:link
 
 
 I am still unclear as to the solution to this problem.  I am using
 html:link 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 html:link
 
 
 while bean:write / 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);
   % 
 
  a href=/jsp/form.do?action=viewnextUrl=/jsp/detail_commd_%=
 clazzName.toLowerCase().trim() %.jspobjectType=%=clazz
 %primaryKey=bean:write name="obj" property="primaryKey" 
 / bean:write
 name="obj" property="name" //a 
 
 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 html:link
  
  
  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:
  
  a href="http://localhost:8080/internal/lt;%= jsp %gt;.do ... 
  
  Does this feature work a different way?  Is there an 
  alternative to using
  jsp expressions to dynamically generate these href links?
  
  Thanks,
  Jessica
  
 



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


 jsp:useBean id=3D"item" scope=3D"page" 
 class=3D"com.mycomp.SomeData"/


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

 table
 logic:iterate id=3D"item" name=3D"someList"
   tr
 td align=3D"left"
   bean:write name=3D"item" property=3D"name"/
 /td
 td align=3D"left"
   bean:write name=3D"item" property=3D"manager"/
 /td
   /tr
 /logic:iterate
 



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: 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:\orionjava -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-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