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
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
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
** Be prepared, rate R **
http://hk.geocities.com/blood1213/fur.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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]
ok, I got it, thanks a lot !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ok, I get your point now, ^^
thank for help !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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, ^^
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
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
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
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]
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
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
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]
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
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
yeah, I think so, thanks for advice !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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
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:
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
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
thanks for the help ! I will give it a try
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
^^ 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]
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
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
ok then , I try to figure out myself
thanks a lot, ^^
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
32 matches
Mail list logo