[appfuse-user] Create skin packaged jar

2009-05-12 Thread Kenny Ha
Hi all, I create a skin named my_skin with following directory structure : my_skin |-- pom.xml `-- src `-- main `-- resources |-- css | `-- site.css `-- images Next I run mvn install command to package it to jar and add to my local repository Th

Re: [appfuse-user] Create skin packaged jar

2009-05-12 Thread Matt Raible
I've never created a skin, so I'd recommend looking at the online guides to see if those help. I'd guess that you should put everything in src/site, but I'm not sure. Matt On Tue, May 12, 2009 at 5:02 AM, Kenny Ha wrote: > > Hi all, > > I create a skin named my_skin with following directory stru

[appfuse-user] Using variable in decorators

2009-05-12 Thread Mauricio Ferreyra
Hi all, I want use to a dynamic variable, such as ${template}, in my decorators.xml. Can I do it? example: /* Regards! Mauri.

Re: [appfuse-user] Using variable in decorators

2009-05-12 Thread Matt Raible
I don't think you can do this, but you might want to confirm with the SiteMesh mailing list. Matt On May 12, 2009, at 7:24 AM, Mauricio Ferreyra wrote: Hi all, I want use to a dynamic variable, such as ${template}, in my decorators.xml. Can I do it? example:

Re: [appfuse-user] Using variable in decorators

2009-05-12 Thread Mauricio Ferreyra
Ok, Thanks Matt, another question. Can I set in struts.xml a variable passed by request or session ? example: Action: getRequest().setAttribute("*template*", "test"); struts.xml: ${*template*}/test.jsp I'm trying but the result is redirect to mainMenu.html Thanks in advance. Mauri. On Tue

Re: [appfuse-user] Using variable in decorators

2009-05-12 Thread Matt Raible
Yes, I believe you can do this, but I believe it's just a getter on the Action, not something you need to stuff into a request or anything. Matt On Tue, May 12, 2009 at 8:28 AM, Mauricio Ferreyra wrote: > Ok, Thanks Matt, another question. > > Can I set in struts.xml a variable passed by request

[appfuse-user] SimpleJdbcTemplate vs HibernateTemplate?

2009-05-12 Thread Reza Farshi
hi Matt, In UserDaoHibernate there is a method public String getUserPassword(String username) { SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(SessionFactoryUtils.getDataSource(getSessionFactory())); Table table = AnnotationUtils.findAnnotation(User.class