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
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
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
** 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
unic
ok, I got it, thanks a lot !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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]
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 additio
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, 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
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
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
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]
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.
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
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
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
yeah, I think so, thanks for advice !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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]
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
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]
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
thanks for the help ! I will give it a try
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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-
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
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:
^^ 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, 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
Thanks so much !!
u really helps and quick response !!
-
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 po
ok then , I try to figure out myself
thanks a lot, ^^
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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 ??
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
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
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
41 matches
Mail list logo