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/element.tld

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/element.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] Assume I have 2 jsp(s), header.jsp and content.jsp

[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

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]

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 Action Form

2004-10-18 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

About Action Form

2004-10-16 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

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, ^^

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 my

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

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

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: 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 html:multibox instead of html:checkbox 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

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

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]

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

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

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: Datasource problem again..

2004-07-21 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]

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

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

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 Context element in server.xml. I think I will has a try to setup in default-context, or should I manually all a context element of my Webapp in server.xml?? Regards

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

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]

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

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

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]