Re: Need good tab control for JSP.

2005-10-23 Thread emre akbas
Maybe a pure-javascript solution may work for you: http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm -- Emre Akbas -- Forwarded message -- > From: "Zsolt" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Date: Sun, 23 Oct 2005

Re: Struts and db connections :: best practice

2005-10-14 Thread emre akbas
999% of the time) have jdbc code in it. Larry On 10/13/05, emre akbas <[EMAIL PROTECTED]> wrote: > Hi all, > In a well written struts application, we assume declarative exception > handling is used. Therefore the code of the action classes will look clean > and short (and ni

Struts and db connections :: best practice

2005-10-13 Thread emre akbas
your points on this issuse. Thanks in advance. -- Emre Akbas

how to sustain the sanity of the connection pool

2005-10-11 Thread emre akbas
Hi, I have some general questions about connection pooling and exception handling. Struts suggests that developers use declarative exception handling. In declarative exception handling, there are almost no "try { } catch() {}" blocks in the Action classes. Exception occuring in Action classes are h

ActionMessage and bundle choice

2005-09-27 Thread emre akbas
Hi, We know that ActionMessage class has a field to store the key of the message but not the bundle name of the key. For (error) messages that are not in the default message-resources, we can do the trick in the jsp file by giving the bundle of the key like: So far so good. But, what we sha

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-27 Thread emre akbas
" To: user@struts.apache.org Date: Mon, 26 Sep 2005 14:31:10 -0400 Subject: Re: user Digest 25 Sep 2005 21:39:29 - Issue 6130 emre akbas wrote: > Now, I have another problem. We have written our Struts application using > prefix mappings, i.e "*.do". In order to use Dow

Re: user Digest 25 Sep 2005 21:39:29 -0000 Issue 6130

2005-09-26 Thread emre akbas
om: Laurie Harper <[EMAIL PROTECTED]> > To: user@struts.apache.org > Date: Sat, 24 Sep 2005 16:38:12 -0400 > Subject: Re: Struts action servlet mapping, getPathInfo() returns null > Did you look at the documentation on wildcard mappings yet? If you use > /do/admin/** it'll m

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-24 Thread emre akbas
rest of the URL after the action's name, in a generic manner. -- Forwarded message -- > From: Dave Newton <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Date: Fri, 23 Sep 2005 17:53:56 -0400 > Subject: Re: user Digest 23 Sep 2005 19:04:19 - Issue

Re: user Digest 23 Sep 2005 19:04:19 -0000 Issue 6127

2005-09-23 Thread emre akbas
chapter1/1.html request.getPathInfo() always returns null. -- Forwarded message -- > From: Dave Newton <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Date: Fri, 23 Sep 2005 11:34:38 -0400 > Subject: Re: Struts action servlet mapping, getPathInfo() returns nu

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-23 Thread emre akbas
r.do?file=/chapter1/images/1.jpg > > Perhaps you could explain the reasons why the above won't work, this will > help us > understand the problem better. > > Kind regards > mc > > > On 23 Sep 2005 at 15:15, emre akbas wrote: > > > > > Sorry, but I

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-23 Thread emre akbas
me answers... > > http://wiki.apache.org/struts/StrutsFileDownload > > Kind regards > mc > > > On 23 Sep 2005 at 11:41, emre akbas wrote: > > > Hi, > > I want to do sth like the following: > > When a user clicks the link: > > http://myhost:8080/myapp/

Re: Storing DataSource and ServletContext in the service layer

2005-09-23 Thread emre akbas
Yes, to me too, getting datasource and then connection and passing this connection object to the service layer does not seem to be a good pattern. I said, by storing the datasource and servletcontext statically in the service layer may make life easier. I want to know various opinions about this to

Struts action servlet mapping, getPathInfo() returns null

2005-09-23 Thread emre akbas
Hi, I want to do sth like the following: When a user clicks the link: http://myhost:8080/myapp/server.do/chapter1/images/1.jpg I want to get the "/chapter1/images/1.jpg" part of the request and then serve the requested file. "server.do" is a downloadaction. As Laurie Harper stated in one of his pre

Storing DataSource and ServletContext in the service layer

2005-09-23 Thread emre akbas
Hi all, I sometimes need to access the datasource within the service layer and by default only Action classes have access to it. In order to solve this issue, I plan to write a plugin which will get the datasource and the servletcontext at startup and store them in the service layer as static varia

downloadaction, flexible url mapping, file server

2005-09-18 Thread emre akbas
Hi, I want to implement a "secure file server" using Struts. By "secure" I mean, when a file is requested by a user, a "checkAccess" method will be called and it would check if the user has right to access that file (datasource will be used for this check) If checkAccess return true the file wi

Validation :: best practice?

2005-09-09 Thread emre akbas
Hi, I want to know what the state-of-the-art practices about Struts validation are. It is well-known that there are some problems in automatic validation. Here is a good article: http://www.reumann.net/struts/articles/request_lists.jsp Are the ideas in this article obsolete? As far as I under