On 11/28/2003 09:36 PM Timo wrote:
Because Internatilization is a big concern, I am using the struts localization technique to resolve labels, texts etc.
But now, I am using the tiles-defs.xml to display the pages.
one problem is to replace the title property, I know if I am using a regular jsp I
Hi,
We need to show a set of buttons at the bottom of a form activated or
deactivated according to the role of the login user. Now the html:form
closes after the set of buttons in the page. How are parts of the same page
composed like this ?
Help appreciated.
Mohan
Hi
The following
UserContainer user = ( UserContainer )session.
getAttribute(
Constant.USER_KEY );
user.setPassCode( Test );
session.setAttribute( user );
is
From home page of Struts you can get to Tiles API here:
http://jakarta.apache.org/struts/userGuide/struts-tiles.html#insert
See the role option?
That will optional display or not display a tile. There are many
variations on role with other tags.
.V
Mohan Radhakrishnan wrote:
Hi,
We need to
There's nothing wrong with using a filter, if that works for you.
Within the Struts framework, you can either extend the RequestProcessor
or use a base Action.
Extending the RequestProcessor ensures that the task will be performed
for each request, but some developers shy away from extending
hello gurus,
i have an terrible terrible problem with my application, after hosting
this application it stops to work after 8-10hrs of idle state. then the
server has to restart and then its fine again.
i learnt that the mysql driver disconects after 8hrs of an idle
connection so i addred
Rajat,
I've had that type of disconnect problem using Hibernate (a product roughly
like Ibatis). My problem was one of the DBCP settings: minIdle. MySQL
wasn't seeing any activity on some pool connections overnight, so it was
disconnecting them. Lowering the minIdle setting seemed to cause
hello david,
thanks for the quick reply, could u pls mail me the extract of the
data-source which worked fr u. along all with the settings. (u can
ofcourse remove the l/p :P )
this would be a great help! and have u have the kind of sucess with DBCP
in dealing with connection pool and idle
Rajit,
I don't use the Struts DataSource because I had to much trouble with it a
few months ago. However, the commons DBCP expains all parameters here:
http://jakarta.apache.org/commons/dbcp/configuration.html
You should be able to set any of them in your struts-config.xml data-source
entry
hey david,
thanks a lot!, just one last question, what kind of troubles did u have
with DBCP. coz this will be used in production so i want to know what to
expect, however a refactoring is schedule anyway but not anytime sooner.
thanks once again!
David Friedman wrote:
Rajit,
I don't use the
My ArrayList is a collection of bean object. The
ArrayList is created this way:
public Collection findEditors( String userrole, String
category )
{
..
EditorBean editorBean = null;
ArrayList editors = new ArrayList();
// database access code
while( rs.next() )
{
11 matches
Mail list logo