Struts TLD problem

2005-10-23 Thread Koon Yue Lam
Hi, Assume I have 2 jsp(s), header.jsp and content.jsp In header.jsp, I have: <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/tld

Re: Strange Struts tld problem

2005-10-19 Thread Koon Yue Lam
sorry, the include in my first mail was wrong, it should be: <%@ include file="../common/header.jsp" %> and it still can't locate those tld On 10/20/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: "Koon Yue Lam" <[EMAIL PROTECTED]> > &g

Strange Struts tld problem

2005-10-19 Thread Koon Yue Lam
Hi, Assume I have 2 jsp(s), header.jsp and content.jsp In header.jsp, I have: <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/tld

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

Struts 1.1 UTF-8 problem

2005-01-09 Thread Koon Yue Lam
Hi, here is the situation: Tomcat 5.25 MySQL 4.1 Struts 1.1 when I use Struts form to get some form data submited by a webpage, it is encode in latin but not utf-8. I have already set the page encoding to UTF-8 in my JSP. I need to new a String specific the encoding to UTF-8 in order to save unic

Re: About *.do

2004-11-11 Thread Koon Yue Lam
ok, I got it, thanks a lot ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About *.do

2004-11-11 Thread Koon Yue Lam
so I need to map all actions of my webapp? something like /login map to /login.do ??? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

About *.do

2004-11-11 Thread Koon Yue Lam
Hi ! How can I access an action of its name instead of its "name.do" ? eg. localhost/MyApp/login I don't want the ".do" at all thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About Action Form

2004-10-17 Thread Koon Yue Lam
ok, I get your point now, ^^ thank for help ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About Action Form

2004-10-17 Thread Koon Yue Lam
thanks to Frank ! and Michael: what u mean an application level multi-threaded program? is it a background deamon / process to store data that likely to be store by session ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: About Action Form

2004-10-16 Thread Koon Yue Lam
oh, so I need some way to store data in the respond object I know session can be help, is it a right way to do? It is not very big object but it would be an array of String (which contains user's multiple selection) thanks for your help, ^^

About Action Form

2004-10-15 Thread Koon Yue Lam
Hi, suppose I have 2 actions which each has its own action form A1 will have F1 A2 will have F2 and we have JSP1, JSP2 and JSP3 it is like a 2 steps wizard, user first access JSP1 and when submit, A1 is executed and populate F1, it then forward to JSP2 user will select some data in JSP2 and whe

Re: never, ever bury an exception!

2004-09-02 Thread Koon Yue Lam
Hi !! I agree with all of you but still have a question. If my application is divided into a few layers, say: Web <---> BizDelegate --- <---> EJB |__<--> DAO / server side program My practice is catch all SQLException in DAO(s), but never throws excepion from m

Re: how not to use actionform and pass things around

2004-08-18 Thread Koon Yue Lam
Hi ! I don't see a good reason that you are not going to use action form. Since Action form is just a Java bean, which is pretty much the same as the "Object" that you want to pass around and about this: "use an ActionForm I have to write the entities of my ActionForm into the JSP for it to be pic

Re: About Tiles

2004-08-17 Thread Koon Yue Lam
thanks for the help ! I will spend some time on the above links ! Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About Tiles

2004-08-17 Thread Koon Yue Lam
thanks David ! after reading the doc. in Struts, Tiles site, I found very little resource talking about Tiles... I know I need a template, a definition etc... but I still can't figure out how to glue them together ! The problem go worse if I want to use Tiles with Struts, I just don't know how.

About Tiles

2004-08-16 Thread Koon Yue Lam
Hi, I want to build a webpage using tiles, the structure is: Header Body Footer super classic layout but I have one question, if the content in Header and Footer are read only and will be nearly the same throughout entire user session. How can I just reload the body part? and keep the Header and

Re: Struts, checkbox and optionally displaytag

2004-08-08 Thread Koon Yue Lam
Hi ! >From your question, I guess that you need a multiple of checkboxes, so you need instead of for your reference: http://struts.apache.org/userGuide/struts-html.html#multibox and a wonderful example: http://j2ee.lagnada.com/struts/multibox-example1.htm you would need an action form, which

Re: not quite struts: handling Images

2004-07-27 Thread Koon Yue Lam
Hi all ! I have similar problem to ron1 and these mails really help ! However if I want to extract the exif metadata of JPEG, can it be done in Java without third party component? Regards - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
yeah, I think so, thanks for advice ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
Oh! thanks for all of these help ! I don't expect over 10 mails in one night to this issue~~ Maybe becasue the timezone because I am from Hong Kong, ^^ [About Struts] After some testing, I prove myself wrong ! The delay wasn't cause by Struts, it is cause by JSP instead. The delay time is the time

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
some drawbacks I can see: 1. longer server start up time (but it is OK) 2. If the application scale up to cluster, this design seems can't deal with it (because the client always invoke remote object that was downloaded to cache, which is not dynamically locate by app. server in a cluster environme

Re: About Struts + JBoss preference issue

2004-07-22 Thread Koon Yue Lam
Thanks ! It seems like a great solution and I will try that out tonight, thanks for help ^^ Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

About Struts + JBoss preference issue

2004-07-21 Thread Koon Yue Lam
Hi ! My application has change from Struts + Tomcat to Struts + Jboss 3.X I create various struts Actions to deal with incoming request, in the Action class, it preform remote lookup of session bean's home interface and create, destory ... it. My session bean has an DAO attach to it to preform da

Re: Datasource problem again..

2004-07-20 Thread Koon Yue Lam
yes, clearly a context file for each web app is a better / wiser choice, thanks for the advice ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-20 Thread Koon Yue Lam
Tthanks for the help for all of u ! Finally I get it done, I create a element and nest a with details of MySql in server.xml and it just work smoothly~~~ Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
thanks for the help ! I will give it a try - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Thx !! I will try it out tonight after work !! and let u know if I sucess or not, ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Thx ! Since I am using Tomct 5 with auto-depoly, my Webapp DOESN'T has a element in server.xml. I think I will has a try to setup in , or should I manually all a element of my Webapp in server.xml?? Regards - To unsubscribe, e-

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Yes, it helps and I know I can get it done if I set the context element in server.xml, but if I set the datasource in server.xml, do I need to set the in struts-config.xml again?? If I am right, I think if datasource is setup in server.xml, it has the scope of entire Tomcat, that means all webapp

Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Hi ! I have try the follow to retrieve a datasource from Struts using JNDI: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); DataSource ds = (DataSource) envCtx.lookup("jdbc/kiss_web_news"); but it doesn't work it is my struts-config,xml:

Re: About datasource

2004-07-16 Thread Koon Yue Lam
^^ thanks so much ! I am going to have a try and let see what will happen (maybe somemore question, ^^) Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About datasource

2004-07-16 Thread Koon Yue Lam
Hi, after some thinking, I have another problem, ^^ If I am using an Action (which extent the Struts' Action class), I can get the Datasource by calling getDataSource() But now I want to write my own data assess object which shouldn't extent Action, I don't know what way I can get the datasource fr

Re: About datasource

2004-07-15 Thread Koon Yue Lam
Thanks so much !! u really helps and quick response !! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

About datasource

2004-07-15 Thread Koon Yue Lam
Hi ! I have successfully use struts to connect MySql but I wonder do I using the database connection pool, or just a new connection for each request?? All I did is very simple stuffs and I follow strict to the database How-To section of struts doc. How can I know I am actually using a connection po

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
ok then , I try to figure out myself thanks a lot, ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
thanks for your kind reply For example, for a classic online shop, 1 BD for customer (for check-in, check-out, list product etc...) 1 BD for admin (for update product price, stock etc...) 1 BD for normal user (for web forum, enquiry, feeback etc...) does it looks good? so if my BD doesn't map t

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
Hi, me again, ^^ I want to know if I implement business delagate as POJO singleton, can u give me some advice on how to multi-thread this business delagate to various request ??? and how about caching ?? How to cache the handler of a business service ??

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
sorry, one more question.. I have read the business delagate pattern a while but still have little confuse Do the system has only one business delagate to control the mapping of request to business service OR the system has the same number of business delagate and business service?? so one service

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
Thanks for the reply and I want to know more... ^^ I know what means by Business delegate Factory, but what is "a plugIn for your factory" ?? Do I need to implement Business delegate Factory by myself? Will Struts help me in some way?? Regards

Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
Hi, I am very new in Struts. Can anyone give me some suggestion on the design of a Service Locator ?? I use ActionServlet as a front controller, and dispatch request to various Action, then I want all the Actions access my business tier only by the Service Locator, which return an interface of the