回复: [WEB-SERVICES ]

2006-05-24 Thread Kyle Wu
this would help
  
  http://www.roseindia.net/webservices/webservices.shtml

temp temp [EMAIL PROTECTED] 写道:  Web services.  How web services are 
written in java. Are there any tutorials to understand the  concept of web 
services?
  Several  application servers provide tools which builds web service on a 
button click.
  This way I can create a web service but I cannot understand what files  are 
needed and how to write them on my own without the help of any  application 
servers?
 Apache axis has its own tools to generate  dependent class files and apache 
axis as per the example it self is a  web application and I deploy my web 
services into this application. I  want the basic understanding to create a web 
service.
 For example  developing a enterprise bean involves creating interfaces,  
implementation classes, deployment descriptors and packing them into a  jar 
file.
  All  tutorials tell what an enterprise bean consists of and how write 
them. 
  But in case  of web services all api's has its own tools to generate 
dependent classes,  config files. 
  Is there a  java standard way to create web service?
Thanks  Regards
  
  
-
How low will we go? Check out Yahoo! Messenger�s low  PC-to-Phone call rates.


-
 雅虎免费邮箱-3.5G容量,20M附件

re: File upload using html:file tag fails.. java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
mayby you forgot to set the enctype attribute in the  html:form ... tag, 
it should be
  
  html:form ... ... enctype=multipart/form-data
  
kommineni Anita [EMAIL PROTECTED] 

Hi,
Trying to upload a file using 
property=primaryFile.
In my Action form I have the property defined as 
org.apache.struts.upload.FormFile and have appropriate
getter and setter.
It gives me this exception
 E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
java.lang.IllegalArgumentException: Cannot invoke
com.strykercorp.e3s.stellent.forms.CheckInNewForm.setPrimaryFile
- argument type mismatch.

Appreciate any thoughts..
Thanks
--- Jakub Milkiewicz  wrote:

 As far as i remember d means digit, but not digits
 ...
 try to add + or *.
 
 
 2006/5/10, temp temp :
 
 
 
  Note: forwarded message attached.
 
  --
  Blab-away for as little as 1锟�/min. Make
 PC-to-Phone

Callsusing
 Yahoo! Messenger with Voice.
 
 
 
  -- Wiadomo锟斤拷 oryginalna --
  From: temp temp 
  To: [EMAIL PROTECTED]
  Date: Wed, 10 May 2006 09:08:49 -0700 (PDT)
  Subject: [java.util.regex ]using Regular
 Expressions
  I am having problems with Regular Expressions
 usage.
  I want to ensure that the user enters only digits
 and no other characters.
  For this I am using the code below.
  I create a Pattern Object to which I pass a
 regular expression and when I
  call matches method I always get false. What am I
 doing wrong?
 
  Pattern p=Pattern.compile(\\d);
  System.out.println(p.matcher(456).matches());
  Thanks  Regards
 
 
 
 
  --
  How low will we go? Check out Yahoo! Messenger's
 low PC-to-Phone call
  rates.
 


 
 
 

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


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




-
 雅虎免费邮箱-3.5G容量,20M附件
 雅虎助手-搜索、杀毒、防骚扰  

re: re: re: html:options collection design question

2006-05-10 Thread Kyle Wu
I am not sure if there's better idea than writing your own JavaScript to do 
that..

Stanislav [EMAIL PROTECTED] :  Hi!

That is fine if i want to set bgcolor to ALL text, but i want to set different 
bgcolor for different
choices in drop down menu.

Tnx,
Stanislav


- Original Message Follows -
 maybe css would be one solution, edit your css class, and use styleClass 
 attribute to ref it

   

 Stanislav  写道:  Hi!

 I want to set background color in drop down menu that is generated with 
 html:options collection.
 Is there any way to do that?

 Here is code sample:





 Tnx,
 Stanislav

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




 -
  雅虎免费邮箱-3.5G容量,20M附件
  雅虎助手-搜索、杀毒、防骚扰

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




-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

re: Basic Logic:iterate question

2006-05-10 Thread Kyle Wu
why not use logic:match tag instead? 

josh t [EMAIL PROTECTED] wrote:  Greetings everyone:
   
  Objective: Retrieve an object from the session that contains a  Collection of 
String for userRoles. Iterate through userRoles, and if  one of the roles 
equals SUPER include a href.
   
   
  So this is what I have, but doesn't seem to be correct:
   
  
   
  
 name=%=LookupConstants.SESSION_OBJECT%
 property=userRoles scope=session 
   
   
  test

 
   
   
  .
   
  Note: I can get the session value just fine, when i do the following:
  
  Can you please let me know what I'm doing wrong within the iterte block? 

  
-
Get amazing travel prices for air and hotel in one click on Yahoo! FareChase 


-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

re: File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
as far as I know, file upload issue just require commons-fileupload.jar  which 
is already included in the struts-blank demo, why don't you just  do as what  
is  demostrated in the file upload demo?
  
  just a guess...

kommineni Anita [EMAIL PROTECTED] 写道:  David,
U are right...But If I change that to post I get
java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream,
though I have the necessary jar's in place.

Thanks,
/Anita

--- David Evans  wrote:

 Just a guess, as i don't use the struts html tags,
 but shouldn't that
 method=get be method=post? you can't get a multi
 part form.
 
 dave



-
 雅虎免费邮箱-3.5G容量,20M附件

re: html:options collection design question

2006-05-09 Thread Kyle Wu
maybe css would be one solution, edit your css class, and use styleClass 
attribute to ref it
  
  options ... ... styleClass=.mycssclass /

Stanislav [EMAIL PROTECTED] 写道:  Hi!

I want to set background color in drop down menu that is generated with 
html:options collection. Is
there any way to do that?

Here is code sample:





Tnx,
Stanislav

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




-
 雅虎免费邮箱-3.5G容量,20M附件
 雅虎助手-搜索、杀毒、防骚扰