about Jakarta Struts, Jsp's and Tomcat.... problem iterating in a jsp
Hello:
I am building a little web application under struts and tomcat. I have managed to understand the things on web.xml and struts-config.xml. I also have a login screen so the user is authenticated.... the jsp would create a LoginAction populated by a LoginForm, go to the business delegate and check the database for authentication, in order to forward the user to the next page... So bassically I can use the interaction between a form in html (jsp) to fill an ActionForm and trigger an Action in the serverside..... But I have trouble in doing the same thing without the form in html (jsp) The thing is that once the user is logged int, there should be an screen with some info about him/her.... let's say, some news generated by the system. I've googled for it but I believe it's quite too specific so I can't find the answer... I also believe it should be something quite simple, as a single line or something... I hope :) I've reading the ORelly Programming with Jakarta Struts but I couldn't figure it out :( please anyone be so kind to help me I think about those news as an array of objects wrapping just an String with the content of the new. So I have in the login Action in struts-config.xml the following mapping: Code:
<action Code:
<action Code:
<form-bean inside GetWelcomeInformationAction.execute(): Code:
((DynaActionForm)form).set( "news", news ); so far. I have this welcome.jsp Code:
<%@ page contentType="text/html; charset=utf-8" %> Thanks a lot for even reading this large post :) Poeta |
along the same lines...
here's a couple of vendors that offer intergrated debugging for struts and jsps, anybody know of other providers?
Eclipse add-ons for struts and jsps Nitrox struts and jsps editors/debuggers would love to know a cheaper alternative (free is good) anybody know of anything "free" along these lines thanks much - perry |
You should have read more about jsp/jstl/struts:
you can use bean:write or jstl, see for example :http://technology.amis.nl/blog/index.php?p=133 |
All times are GMT -5. The time now is 10:03 PM. |