Re: Base Path for Page Resources Incorrect

2010-05-16 Thread Paweł Wielgus
Hi Dane, are You calling resources with absolute path? img src=/absolute/path/to/image.jpg / or relative? img src=relative/path/to/image.jpg / If relative then it is working like You described, if absolute then post your code. Best greetings, Paweł Wielgus 2010/5/14 Dane da...@mate1inc.com:

Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-16 Thread Fabio Perfetti
Hi! I am having problems with struts 2.1.8 and the plugin for integrate hibernate. this is the error: java.lang.NullPointerException at it.tesina.model.DipendenteService.getByUsername(DipendenteService.java:42) at it.tesina.action.Login.authenticate(Login.java:35) at

Re: Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-16 Thread Dale Newfield
On 5/16/10 1:13 PM, Fabio Perfetti wrote: Hi! I am having problems with struts 2.1.8 and the plugin for integrate hibernate. java.lang.NullPointerException at it.tesina.model.DipendenteService.getByUsername(DipendenteService.java:42) public Dipendente getByUsername(String username){

RE: Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-16 Thread Martin Gainty
EntityManager em = factory.createEntityManager(); snip //create the query from the EntiryManager Query q = em.createQuery( select i from + Item.class.getName() + i where i.name like :itemName ); String itemName=foobar; //itemName cannot be null q.setParameter( names, itemName );