Re: Problem with iterator and images

2010-06-21 Thread Fabio Perfetti
Thanks Brian!! I resolved!! " width="50" /> Thanks a lot!! 2010/6/19 Brian Thompson > " /> > > Brian > > On Jun 19, 2010 5:01 AM, "Fabio Perfetti" wrote: > > Hi all, before to start, i want say sorry for my bad english.

Problem with iterator and images

2010-06-19 Thread Fabio Perfetti
Hi all, before to start, i want say sorry for my bad english. I am developing an easy social network for a university project Every User has an image for the profile. I want to list all friends, and i want display Name, Surname and the image. So i have an action that retrieve the list of friends:

Problem with parameter

2010-06-09 Thread Fabio Perfetti
Hi all, i have this jsp: ... Mostra ${_paziente.nome} ${_paziente.cognome} ${_paziente.luogoNascita} ... and this is the method for the action show: public String show() throws Exception { try { paziente = pazienteDao.get(paziente.getId()); System.out.println("PAZIENTE:" + pa

Re: Confusing model with controller

2010-05-25 Thread Fabio Perfetti
so? what is the model? the beans? public class Employee{ private String name; private String surname; public setter/getter ... } 2010/5/25 Antonio Petrelli > 2010/5/25 Fabio Perfetti : > > I am wondering if the actions belongs to the model layer or to the > > c

Confusing model with controller

2010-05-25 Thread Fabio Perfetti
Hi all, I am wondering if the actions belongs to the model layer or to the controller layer. All the example on the web are simple! Anyone can explain me? (with an example please) Thanks

Looking for help with my project

2010-05-23 Thread Fabio Perfetti
Hi all, I am looking for someone that can help me. This is the source of my project and I am not sure if all is correct. svn checkout *http*://gestioneps.googlecode.com/svn/trunk/gestioneps-read-only Thanks to all

Re: Linking page

2010-05-21 Thread Fabio Perfetti
If anyone want see my code this is the svn url. it's a exercise for the university. thanks all svn checkout *http*://gestioneps.googlecode.com/svn/trunk/gestioneps-read-only 2010/5/21 Fabio Perfetti > denis can you explain me with an example? > > > 2010/5/21 > >

Re: Linking page

2010-05-21 Thread Fabio Perfetti
denis can you explain me with an example? 2010/5/21 > Is that strictly true? > > For forms specifically you can be (and I do) using Struts form tags. You > do not loose Struts benefits as the struts2 filter by default maps the url > pattern /* which means all JSP pages get filtered through. If

Re: Linking page

2010-05-21 Thread Fabio Perfetti
there isn't any logic! only show the form... so how can i do? 2010/5/21 > You do not need to go through an action before your form unless there is > some logic you wish to perform first. > > Chris > > > Hi all, > > i am wondering what is the best way for link a page to other. > > Imagine this sc

Linking page

2010-05-21 Thread Fabio Perfetti
Hi all, i am wondering what is the best way for link a page to other. Imagine this scenario: Index Page with a menu: - Search - Insert if i click on search, must show a form. so I use Search in my struts.xml i have an action formSearch.jsp now i fill the form and on submit, i call the actio

Struts2 + Authorization

2010-05-17 Thread Fabio Perfetti
Hi all, anyone can suggest me how implement a simple authorization process? I looked for Shiro but i am looking for something simple simple simple...an interceptor? Have a nice day

Re: More action in one view

2010-05-17 Thread Fabio Perfetti
; > You can call it on jsp like this: (extra space is added!) > > < s:property value="%{#session.loggedDipendiente.firstName.nome}" /> > > Mabe only #session.loggedDipendiente.firstName.nome will work too, > you have to try it. > > Best greetings, > Paw

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

2010-05-16 Thread Fabio Perfetti
ndente = (Dipendente) queryResult; } catch (Exception e) { e.printStackTrace(); } return dipendente; } Please help me!!! Thanks Fabio Perfetti

More action in one view

2010-05-15 Thread Fabio Perfetti
record about a patient ... but any page must show the information of the nurse! How can i do? The principal problem is choose the action class. Thanks Fabio Perfetti

Re: More action in one view

2010-05-14 Thread Fabio Perfetti
very secure page (so after the login). Now how can i do that? i think that isn't correct put in every action the variable Dipendente dipendente, implements DipendenteAware, override setDipendente and implement getDipendente!!! I repeat the same code in every action!!!! I think to write an actio

More action in one view

2010-05-14 Thread Fabio Perfetti
record about a patient ... but any page must show the information of the nurse! How can i do? The principal problem is choose the action class. Thanks Fabio Perfetti