Include common javascript file with relative path

2004-05-19 Thread Ding Lei
Hello folks, There is a common jsp file named common_header.jsp used throughout the system, under PROJECT_ROOT/js/ directory, and various function jsp files are under different subdirs of PROJECT_ROOT, for example, appEdit.jsp,appRemove.jsp under PROJECT_ROOT/app directory. Now t

[URGENT] Dynamic form elements generation with struts ...

2004-05-20 Thread Ding Lei
Hello folks, I am working on a User Permission Management form, each permission record composed of operation type, target type and target ID. When editing a user's permission, it should able to let the user add unlimited count of new permissions and also edit original one

Re: Include common javascript file with relative path

2004-05-20 Thread Ding Lei
Paul, It works! Thank you! Yours, Ding Lei On Thu, May 20, 2004 at 09:55:22AM +0100, Paul McCulloch wrote: > Look at the tag. > > Paul > > > -Original Message----- > > From: Ding Lei [mailto:[EMAIL PROTECTED] > > Sent: 18 May 2004

How to get length of an array(collection)

2004-05-24 Thread Ding Lei
Hello all, There is an array(dsmccList) obtained by a self-defined tag, and I wanna to send the length of the array as an hidden property, as following: But this causes exception: javax.servlet.jsp.el.ELException: The "." operator was supplied with an ind

Re: Include common javascript file with relative path

2004-05-24 Thread Ding Lei
thy > > -Original Message- > > From: Paul McCulloch [SMTP:[EMAIL PROTECTED] > > Sent: Thursday, May 20, 2004 4:55 AM > > To: 'Struts Users Mailing List' > > Subject:RE: Include common javascript file with relative path > > > > Look at t

Re: How to get length of an array(collection)

2004-05-25 Thread Ding Lei
Joe, Henrique & Robert: Thank you for replies, they all works :) yours, lei On Mon, May 24, 2004 at 03:38:54PM -0500, Joe Germuska wrote: > At 1:44 PM +0800 5/22/04, Ding Lei wrote: > >Hello all, > > There is an array(dsmccList) obtained by a self-defined tag, >

Re: How to get length of an array(collection)

2004-05-25 Thread Ding Lei
Joe, Henrique & Robert: Thank you for replies, they all works :) yours, lei On Mon, May 24, 2004 at 03:38:54PM -0500, Joe Germuska wrote: > At 1:44 PM +0800 5/22/04, Ding Lei wrote: > >Hello all, > > There is an array(dsmccList) obtained by a self-defined tag, >

Re: How to get length of an array(collection)

2004-05-25 Thread Ding Lei
Joe, Henrique & Robert: Thank you for replies, they all works :) yours, lei On Mon, May 24, 2004 at 03:38:54PM -0500, Joe Germuska wrote: > At 1:44 PM +0800 5/22/04, Ding Lei wrote: > >Hello all, > > There is an array(dsmccList) obtained by a self-defined tag, >

implementation of permission subsystem

2004-06-04 Thread Ding Lei
Hello folks, I am working on a DVB(Digital video broadcasting) content management webapp, which is based on the struts framework. It mainly includes application, service,network, user,broadcasting management & etc. The system is originally designed almost without considering security issues

Re: implementation of permission subsystem

2004-06-04 Thread Ding Lei
One more thing, the system stores all user & group information in database So storing role information in a tomcat/struts configuration isn't really possible. On Sat, Jun 05, 2004 at 08:59:41AM +0800, Ding Lei wrote: > Hello folks, > I am working on a DVB(Digital video broadc

Urgent help needed on struts!

2004-07-01 Thread Ding Lei
since several ago they are fine, and the only possible changes are configuration file or sth. else. Thanks! Ding Lei - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Urgent help needed on struts!

2004-07-01 Thread Ding Lei
Hello, I'v searched all the recent 800 messages, and found no similiar messages .. Would any one of you kindly tell me what might causes the problem? Thank you! Ding Lei On Thu, Jul 01, 2004 at 12:25:50PM -0400, Robert Taylor wrote: > There was a recent thread

Re: Urgent help needed on struts!

2004-07-01 Thread Ding Lei
org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 cacheControl com.embisoft.embicast.servlets.CacheControlFilter action *.do .. Thank you. Ding Lei On Thu, Jul 01, 2004 at 06:56:31

Re: Urgent help needed on struts!

2004-07-01 Thread Ding Lei
Hi Mark, Thank you very much for your fast reply. I was told that there are much differences between 2.4 and 2.3, and I would like to use 2.4 > the 2.4 spec has a way of doing this in the web.xml Would you please tell me how to do this? > > What does the rest ofit look like? > T

Re: Urgent help needed on struts!

2004-07-01 Thread Ding Lei
t element: > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > > robert > > > -Origin

Browser's refresh problem

2004-07-12 Thread Ding Lei
Hi all, There's a UserAddAction, which adds the user record to the database, and when it's done it redirects the user index page. the problem is that everytime the user clicks refresh at the user index page, the same record is added again. I know that unique check is required, but I also ho

Re: Browser's refresh problem

2004-07-12 Thread Ding Lei
> > Cheers. > Guillermo. > > -Original Message- > From: Ding Lei [mailto:[EMAIL PROTECTED] > Sent: Lunes, 12 de Julio de 2004 10:38 a.m. > To: Struts Users Mailing List > Subject: Browser's refresh problem > > > Hi all, > > There's a UserAd

Re: Browser's refresh problem

2004-07-12 Thread Ding Lei
econd time. Thanks. On Mon, Jul 12, 2004 at 08:40:22PM -0700, Craig McClanahan wrote: > Ding Lei wrote: > > >Hello ... > > > > > >On Mon, Jul 12, 2004 at 10:50:46AM -0300, Guillermo Meyer wrote: > > > > > >>Use Struts isTokenValid

Re: Browser's refresh problem

2004-07-12 Thread Ding Lei
Hi Hubert, Thanks for your reply first .. but: On Mon, Jul 12, 2004 at 09:32:45PM -0700, Hubert Rabago wrote: > This is really how it's designed to work. For a form to be resubmitted, the > user will have to regenerate the form, maybe by going back two pages, to the > page that was shown *before*

Re: Browser's refresh problem

2004-07-13 Thread Ding Lei
Hi Hubert, Thanks for your reply first .. but: On Mon, Jul 12, 2004 at 09:32:45PM -0700, Hubert Rabago wrote: > This is really how it's designed to work. For a form to be resubmitted, the > user will have to regenerate the form, maybe by going back two pages, to the > page that was shown *before

Re: Browser's refresh problem

2004-07-13 Thread Ding Lei
On Tue, Jul 13, 2004 at 08:12:23AM -0700, Hubert Rabago wrote: > --- Ding Lei <[EMAIL PROTECTED]> wrote: > > > > Hi Hubert, > > Thanks for your reply first .. but: > > > > On Mon, Jul 12, 2004 at 09:32:45PM -0700, Hubert Rabago wrote: > > > This

NoClassDefFoundError on a class file that does exists

2004-07-14 Thread Ding Lei
Hello all, I am working on a Web application on Jboss 3.2.4 with Struts 1.1. It reports NoClassDefFoundError on class com/embisoft/dvb/user/DVBUser,which stays in a jar file under WEB-INF/lib. I'v double checked the jar file, and sure that the class file is just fine. the problem doesn't occurs

Accessing index properties in javascript validator

2004-07-22 Thread Ding Lei
Hi list, Some JSP pages uses Strut's indexed properties, like: And it could be accessed by the corresponding Action correctly through a customized Form. The problem is that I would like to add javascript validation before the user submits the form to check if the file box is not null & valid

DBCP Connection full

2004-07-22 Thread Ding Lei
Hi list, I know that it's little off-topic ... but since we are using struts here, I am not sure if the problem might be related to struts ... The system is OK before, but recently: 2004-07-23 11:08:59,723 INFO [org.apache.struts.legacy.GenericDataSource] releaseConnection(), activeCount=10

Struts Path problem

2004-08-13 Thread Ding Lei
Hello List, I encountered problems on displaying images in JSP pages which belongs to a specified Struts module. If we include an image file in a JSP page, say "A.jsp", and we we define an action forward that points to it, and access through that action forward in browser, the image is a