jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [jstl] setting a datasource
Date Tue, 22 Apr 2003 20:27:20 GMT

I've modified:


to remove the check for 'hasDanglingScope', and this code starts to work,
allowing me to choose a default DataSource.

Obviously just removing the hasDanglingScope line is not the best
solution, as it's probably still wanted for other tags than setDataSource
(?), but I don't see a reason for setDataSource to have to have a var
attribute [unless there is a DEFAULT token of some kind].

It's line 158->159 in the STANDARD_1_0_BRANCH.


On Fri, 18 Apr 2003, Henri Yandell wrote:

> I'm trying to reset the default DataSource. At first I just used:
> <sql:setDataSource dataSource="${param.datasource}"/>
> But this has a problem that the default scope is 'page' and I want it for
> session. So I moved up to:
> <sql:setDataSource dataSource="${param.datasource}" scope="session"/>
> But this has a problem that if you set the scope attribute and not the var
> attribute it throw an exception.
> So I moved to:
> <sql:setDataSource dataSource="${param.datasource}" var="javax.servlet.jsp.jstl.sql.dataSource"
> But this has a problem as well, you can't set things to a var with dots in
> (?).
> Is there a way around this at all?
> Hen
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org

View raw message