Show us some examples of why you think you can't remove the scriptlets. Some of those cases are probably easily fixable.
However, you should probably first understand the model and framework before trying to fix your JSP pages. This is because you'll find that anything resembling "business logic" will not be in your JSP pages. Once you address that, you'll mostly just have a few scriptlet expressions left to cover cases that aren't easily covered with normal usage of Struts. Just integrating with the JSTL will also help, as you can use some JSTL tags that use the JSTL EL instead of using scriptlets. You can also move towards using the Struts-EL library (in the nightly build), which is a version of the Struts tag library which uses the JSTL EL engine to evaluate attribute values. > -----Original Message----- > From: Fernando Hernandez [mailto:fernando@;bit-bang.com] > > I am student doing an intership and i just started to learn > about Struts > because I'm currently transforming a J2EE web application composed by > servlets and old-java-embedded-JSPs so it can adopt Model 2. > > To acomplish this i found that using Struts is the prefect > answer. To reach > my goal, at first I thought that maybe the best way to do it > was to first > address the interface by taking out all the Java embedded in > all the JSPs, > and change it with Struts, JSTL, custom made taglibs. After > doing this, i > was going then to think about the Model and the framework itself... > > But i have found that to take out the embedded java from the > JSP has been > very difficult, since the objects(I'd like to say JavaBeans, > bur they 're > not exactly that, and actually that is part of the problem) which were > sended from the logic to the presentation were very complex > in nature and > the content an not be presented just by using the strut's, > JSTL or many > other libraries i have looked exhaustively. > > So, should i leave some Java embedded in the JSPs? > If the answer to the previous question is "yes", should I > maybe put the > embedded Java into custom tag libraries made by me? or maybe > use includes or > imports? > > > I please ask your help on this since I'm running out of time. > > Thanks from Madrid. > > > Fernando Hernandez. > > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>