[OT] For those who love fur, please take a look

2005-02-16 Thread Koon Yue Lam
** Be prepared, rate R **
http://hk.geocities.com/blood1213/fur.html

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



Re: JSP under /WEB-INF folder

2004-12-28 Thread Koon Yue Lam
Hi Hassan ,
yes, the .js and .css are externally-accessible, but the .jsp aren't 
so my jsp can't refer to those .js and .css

and after viewing this thread, I think I would take QM approche but u
mentioned I can put all jsp into one folder and protect it. How? Is it
a web container level or OS level protection ?

Regards


On Sun, 26 Dec 2004 08:45:00 -0800, Hassan Schroeder
[EMAIL PROTECTED] wrote:
 Koon Yue Lam wrote:
  Hi, I want to protect my JSP from direct access, so they can only
  access by Struts action.
  but
 
  If I want to include some Javascript or CSS to a JSP, I can't !
  Because .js and .css needed to place directly under WebRoot
 
 I'm afraid I don't understand the issue.
 
 If you're putting your JS and CSS in an externally-accessible place
 (maybe /scripts and /styles) then the standard HTML references for
 external resources:
 
link rel=stylesheet type=text/css href=/styles/example.css/
style type=text/css@import /styles/example.css;/style
script type=text/javascript src=/scripts/example.js/script
 
 :: will work fine.
 
 The client UA can access them directly (and cache them, which is
 usually a desirable behavior).
 
 HTH,
 --
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
 
dream.  code.
 
 
 -
 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]



Re: JSP under /WEB-INF folder

2004-12-28 Thread Koon Yue Lam
Thanks for all the reply, I will try it out tonight and let u all know
the result ^^

Regards


On Tue, 28 Dec 2004 18:52:37 +0200 (EET), [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 
 Laba diena.
 
 Dkojame, kad mums parate.
 
 Js atsista inut isaugota ms duomen bazje.
 
 -
 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]



Re: JSP under /WEB-INF folder

2004-12-28 Thread Koon Yue Lam
ok, it is really strange that I need to specify full path 
/myApp/js/myJS.js
rather then just
js/myJS.js

but if I use full path , everything works fine

I am using Tomcat 5.028 with Struts 1.1

thanks for all the help

Regards


On Wed, 29 Dec 2004 01:08:31 +0800, Koon Yue Lam [EMAIL PROTECTED] wrote:
 Thanks for all the reply, I will try it out tonight and let u all know
 the result ^^
 
 Regards
 
 
 On Tue, 28 Dec 2004 18:52:37 +0200 (EET), [EMAIL PROTECTED] [EMAIL 
 PROTECTED] wrote:
 
  Laba diena.
 
  Dkojame, kad mums parate.
 
  Js atsista inut isaugota ms duomen bazje.
 
  -
  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]



JSP under /WEB-INF folder

2004-12-26 Thread Koon Yue Lam
Hi, I want to protect my JSP from direct access, so they can only
access by Struts action.
but

If I want to include some Javascript or CSS to a JSP, I can't !
Because .js and .css needed to place directly under WebRoot

My solution is to use jps:include to include all those Javascript
and CSS to JSP, but then the JSP will look very ugly and fill up with
long long non HTML stuffs .. which is not so nice

Is there any any to solve this or I just need to accept this trade-off?

Any help would be appreciated

Regards

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



How to secure my webapp under Tomcat?

2004-11-10 Thread Koon Yue Lam
Hi, I have developed a webapp using Tomcat and MySQL

Now I DON'T want my client browse my JSPs, servlets and database
structure etc ..

I want the entire webapp (and database) deployed only by me and not by others.

Is there any methods that I can secure my webapp to ensure my client
won't deploy it to somewhere else by someone else??

Regards

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



Re: DataSource -- help please

2004-07-28 Thread Koon Yue Lam
Hi, 

I think the exception already told you what going wrong
according to:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

the url should be:
 parameter
  nameurl/name
  valuejdbc:HypersonicSQL:database/value
/parameter

so if your database call testDB

the url would become:
jdbc:HypersonicSQL:testDB

hope this help

Regards

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



Re: Why does nobody never answer my question ??

2004-07-26 Thread Koon Yue Lam
Yes ! I am also new in here and have meet a lot of nice people !
My question always got reply in a day or two, but the replys are always helpful

also the fastest, greatest way to find solution is www.google.com,
just ask him before anything, ^^

Regards

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



Re: EJB Support

2004-07-20 Thread Koon Yue Lam
Hi, Tomcat is a web container, so it can't handle EJB in normal case
unlesss you use some 3rd party program.
If you need EJB, the most obvious way is to get a J2EE Application
Server like JBOSS, WebSphere, WebLogin...

Regards

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



Help on tomcat 5.0 connection pool

2004-07-19 Thread Koon Yue Lam
Hi, I am using Tomcat 5.0 and Stuct 1.1 to develop a web base application
and I want to create some prepareStatement and execute it multiple times
but since the connection is retrieved from the pool upon request, I
may get a number of connections, how can I create a prepareStatement
to a specific connection??

code like this:

PreparedStatement pstmt = con.prepareStatement(UPDATE EMPLOYEES
 SET SALARY = ? WHERE ID = ?);
   pstmt.setBigDecimal(1, 153833.00)
   pstmt.setInt(2, 110592)


Regards

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



Re: Help on tomcat 5.0 connection pool

2004-07-19 Thread Koon Yue Lam
ok, i will have a try, thanks

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



Tomcat 5.0 server.xml Context problems

2004-07-19 Thread Koon Yue Lam
Hi, I am using Tomcat 5.0 with auto-depoly set to true. The server.xml
DOESN'T contain a context of my webapp and I want to setup a MySql
datasource to my webapp. I know I get nest a Context under Host
according to
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

but what if I using auto-depoly? Do I need to manually add a Context
of my webapp in server.xml?

thanks ^^

Regards

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



Re: Tomcat 5.0 server.xml Context problems

2004-07-19 Thread Koon Yue Lam
yes, just think about it after I send this question... ^^
also I will try create a default-context element in server.xml

let's see what happen

Regards

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



Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Koon Yue Lam
Yes, I can't agree with this more
u need to do sdome testing, use JUnit if u can
But I would prefer not only use String.equals, but actually print out
the HEX value of the string
u need to print out the HEX value in:
Just before the JSP form start submit
when the action start process the form
just before any database process
after that, goto Mysql console and print out the HEX value that u just
insert of update

and do the same when u retrieve that value from database

in any case, all the above HEX values should be the same

I know it is ignoring but many people go throught this, sometimes ago
I have the exact problem like this when I use Mysql + PHP + SQL Server
to do database sync.

Regards

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



Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-13 Thread Koon Yue Lam
Hi, I am not en expert, just some piece of advice
I know from MySql 4.01, u can define the character encoding on each
database, table and column. Are u sure your column is encoded in
unicode?

Because the GUI client may smart enought to auto convert the encoding,
so u can view the character properly but becomes boxes when retrieve.

Regards

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



Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-13 Thread Koon Yue Lam
http://dev.mysql.com/doc/mysql/en/Charset-defaults.html

in your case, u just define everything as unicode, so just set the
database encoding to unicode

hopes this help

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



Newbie Tomcat download problem

2004-07-11 Thread Koon Yue Lam
Hi, I use a Tomcat mirror download site and I know I must verify the file.
But how??

I see a KEY file, MD5 and PGP file beside the Tomcat binary, what
should I do to these files?
How can I verify a Tomcat binary??

and for last, I have created a keystore using keytool in jdk1.4, does
it mean I have a private key and really to sign my code? How can I
distribute the public key to client??

thanks

Regards

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



About servlet-mapping

2004-07-10 Thread Koon Yue Lam
Hi, I place member.jsp in my webapp root folder, which is 
TOMCAT_HOME -- webapp --myWebApp/

and part of web.xml :
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

part of struts-config.xml:
action-mappings 
action
path=/Index
type=com.kiss.web.news.actions.Index
unknown=false
validate=true
forward
name=member
path=/Member.jsp
redirect=false
contextRelative=false /
/action
/action-mappings

I call http://localhost:8080/Index.do and member.jsp is shown
but when I change the 
url-pattern*.do/url-pattern
to
url-pattern/*/url-pattern

then I call http://localhost:8080/Index

Index has been called with this error msg:
Invalid path /Member.jsp was requested

How can I fix it? I don't want to type some .do or .action sort of
thing in my url, I type want the url like :
http://localhost:8080/Index

with no extension

Any help?

Regards

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



Re: About servlet-mapping

2004-07-10 Thread Koon Yue Lam
Hi Jarl !
sorry, I still don't get what u mean
I try to place 

welcome-file-list
welcome-file/Member.jsp/welcome-file
/welcome-file-list

in web.xml and keep the mapping as :
servlet-mapping
   servlet-nameaction/servlet-name
   url-pattern/*/url-pattern
/servlet-mapping

but I still got the 
Invalid path /Member.jsp was requested
error message...

can u please help me a little deeper?
I want to use the URL like:

http://localhost:8080/Index
rather than:
http://localhost:8080/Index.do

any help will be appreciated
Regards

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



Re: Tomcat 5 Context problem

2004-07-08 Thread Koon Yue Lam
thanks, u really help!
I will try that out tonight and maybe some posts will raise out tomorrow...
^^

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



Re: Tomcat 5 Context problem

2004-07-08 Thread Koon Yue Lam
yes, I agree with u because I have notice this from Tomcat doc

and I know from the mailing-list that some poeple are having problem
when they put the extra context in server.xml. Since once u do this,
Tomcat 5 (but NOT 4.X) will create a XXX.xml file under
conf/engine/host/. XXX is the name of the web app and it contains just
one Context element that reflects the extra Context in server.xml.

Since you need to restart Tomcat if u modify server.xml, but if the
context is place under /conf/engine/host, Tomcat will dynamically
depoly and load the new webapp without restart

Seems so nice~~ and the problem comes when u delete the context in
server.xml, Tomcat WON'T delete the context file in /conf/engine/host.
Which cause an incomplete undepoly.

I don't think this is a bug but just a feature that we need to know.

So the best way to put your context is in
TOMCAT_HOME/webapp/your_web_app/META_INF/
according to Tomcat doc.

great to discuss with u guys, ^^

Regards

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



Tomcat 5 Context problem

2004-07-07 Thread Koon Yue Lam
Hi, it really not a problem because I got everything work. I just
curious WHY it will work ... ^^

I am using Esclipse 3.0 + Lomboz 3.0RC2 and I develop a webapp,
details as follow:

WebApp name: FirstWebApp
Servlet name and class : FirstServlet, FirstServlet.class (package-less)
web.xml: has a servlet mapping element of /FirstServlet

after I depoly the webapp to Tomcat using Lomboz, I can access the
servlet at http://localhost:8080/FirstWebApp/FirstServlet

However I know Tomcat need a Context element in order to find the
path of a webapp, and I can't find this Context element of
FirstWebApp throughout Tomcat. Not in server.xml, not in
conf/engine/host, not in /webapp/FirstWebApp/WEB-INF/web.xml

Tomcat just depoly it automatically and it is great, do this mean i
don't need to care about the Context element? If i do care, where
should I put this Context element?

new in here, greeting to everybody, hope someone can help me out

Regards ^^

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



Re: Tomcat 5 Context problem

2004-07-07 Thread Koon Yue Lam
Thx for the help !
But I would also want to know how to undepoly an webapp? I try ro
undepoly using Lomboz and it just build an undepoly.xml script. All
files relate to that webapp are still under tomcat home/webapp/
folder. How can I depoly an webapp by using lomboz or using Tomcat
manager??

If I use Tomcat manager to undepoly, will this affect my lomboz project??

Regards

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