Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

struts action servlet interaction with jsp files

Fabio Miranda Hamburger

2006-12-09

Replies:


Hello,

I am migrating some PHP application to struts to take advantage of MVC.

Check this situation:

I have a struts action in fooBarStrutsAction.java. After a request, this
action perform a database transaction and arrange the final result in an
array. Now I want to display this array in a browser.

How can I 'send' this array from fooBarStrutsAction.java, and its method:
public ActionForward execute(...) TO a jsp file, let's say display.jsp?
and by the way, how to access that array within the JSP file.

I think I am missing a crucial concept here, thanks for clarify this.

Best regards,

---
Fabio Andres Miranda
Ingenieria de sistemas informaticos
Universidad Latina - Costa Rica
http://ns.isi.ulatina.ac.cr/~fabmirha

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.