jueves, 5 de febrero de 2009

a personal problem with struts...

I do almost all my work in a j2ee big portal application. Sometimes my work consist in developing portlets using among other things, struts, jsp, etc. Here is something about struts that i'm always unsure of:

in a struts action file, if you invoque


this will be like if the user navigates to that url, first execute the correspondent struts action, and the show the user the related page

another different thing is doing a

setForward(req, page_name)

this will inmediately show the user the indicated jsp without invokling the correspondent action

This note is only for me, i always get confused about which one of these two use ...

No hay comentarios: