[OT] I'm tired of restarting tomcat!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, this is somewhat off-topic but I don't know why I have this behaviour. I deployed my struts application on tomcat 4.1.18 and randomly, it stops serving requests (it waits forever on index.jsp). In the log files I always notice an exception: 003-05-27 16:30:09 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.net.SocketException: Connection reset at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuff ... The only way to restore the normal behaviour is to restart tomcat. Does anyone know why I get this behaviour? A presto, Fabio - -- - --- Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED] Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel Universita' dell'Aquila - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Made with pgp4pine 1.75-6 iD8DBQE+04t76dsQbk2R3cMRAgHrAKCjXY+NqIChZrIhZsCNw7/923Fb+ACghEFq +/DiCrnBlm2xQCZarq9gr+A= =Yu0y -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XEN] Simple question: forward and redirect
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 13 Mar 2003, Ian Hunter wrote: Are you redirecting or forwarding to your JSP from that Action? What is the exact difference between forwarding and redirecting? What are their implications? I searched the Servlet and JSP specs but I haven't found nothing about that. A presto, Fabio - -- - - Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED] Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel Universita' dell'Aquila - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Made with pgp4pine 1.75-6 iD8DBQE+ca7A6dsQbk2R3cMRAruyAKDTfVtCqtF13uyg+oDHw8NpfSIWrgCfa8RB FKSGdLso4sReqYrbCO2fkcE= =aSQr -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [XEN] Simple question: forward and redirect
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 14 Mar 2003, Simon Kelly wrote: When you forward, you pass control to another class within your current application root context. When you redirect, you can pass in or out of the context. What do you mean? Aren't we talking at the HTTP protocol level? When you say another class do you mean another WEB object? I mean, it should be possible to forward/redirect also to a PHP page, shouldn't it? The forward/redirect semantics is tied to the Java Framework that we are using or is it more general? And what are the effect of enabling the redirect property of a struts action? A presto, Fabio - -- - - Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED] Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel Universita' dell'Aquila - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Made with pgp4pine 1.75-6 iD8DBQE+cbSO6dsQbk2R3cMRAmFZAKCjwio1kbnIRqz5oW4bw0g+q0d0pACgmO9m H+VuLhfCBUUgNi9l0m5D3WA= =U+8j -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles problems (Building complex pages)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Sorry for this lengthy mail but I am getting crazy! I am working with Struts and Tiles and I am developing a small site to test (and stress this technology) I reused some layouts taken from the tiles documentation. The standard page layout with the classical header, body, footer attributes and, in particular I took the vboxLayout: % Iterator i = list.iterator(); while(i.hasNext()) { String name = (String)i.next(); % tiles:insert name=%= name % flush=true/ % } % What I want is a page with the standard layout whose body is a vboxLayout with some tiles. To do this I have to write the following files: main.jsp mainBody.jsp t1.jsp t2.jsp Where main is a page which uses the standard layout, mainBody is a simple .jsp with only a tiles:insert page=vboxLayout.jsp tiles:putList name=list tiles:add value=t1.jsp/ tiles:add value=t2.jsp/ ... t1, t2 are .jsp tiles. Now my questions are: 1) The mainBody contains a list of tiles some of which might be text-only. I would like to do something like this: tiles:insert page=vboxLayout.jsp tiles:putList name=list tiles:add value=t1.jsp/ tiles:add type=stringThis is an embedded text only tile/tiles:add ... In this way I would get rid of all the .jsp which contains only text/html and are peculiar to a single page. But this doesn't work. 2) Another problem is when a tile, let's say t1.jsp, needs some attributes to be passed in order to be instantiated. Let's suppose that the tile t1 needs a title. How do I pass that attribute in the previous example? tiles:insert page=vboxLayout.jsp tiles:putList name=list tiles:add value=t1.jsp tiles:put name=title value=Yupi/ /tiles:add tiles:add value=t2.jsp/ ... Doesn't work. I tried to write a local definition before actually inserting the tile: tiles:definition id=instantiatedT1 page=t1.jsp tiles:put name=title value=Yupi/ /tiled:definition tiles:insert page=vboxLayout.jsp tiles:putList name=list tiles:add value=instantiatedT1/ tiles:add value=t2.jsp/ ... But this doesn't work too. I tried also to specify different scopes for the definition (even the application one!) and different types for the tiles:add tag (namely type=definition and also beanName=instantiatedT1). The only way I've found to make this work is to put the definition inside the tiles-config.xml, but this would be equivalent in having a separate t1.jsp with no parameters. I suppose the problem is in the vboxLayout but I cannot figure out how to write a layout which supports what I said in 1). The problem in 2) still has no solution (to me). A presto, Fabio - -- - - Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED] Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel Universita' dell'Aquila - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Made with pgp4pine 1.75-6 iD8DBQE+ZKrs6dsQbk2R3cMRArgjAKCcW4oqazE/lbRwXBnOEA7odtvTyACgzw9p oSPR57Gl6YLcMAA6B08KZbo= =BmVa -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles problems (Building complex pages)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 4 Mar 2003, Cedric Dumoulin wrote: Hi, It looks like your unlucky using Tiles ;-). Thank you for your answers. I admit that some of my questions were a bit brain-damaged :) Anyway passing a definition to the vboxLayout via the add beanName=.../ doesn't work because all the passed attributes are inserted in the vboxLayout by using a insert name=.../ I made it work by modifying the vboxLayout in this way: ... % Iterator i = list.iterator(); while(i.hasMoreElement()) { String name = (String)i.next(); % logic:present name=%= name % %--A bean is present with the attribute name so it should be a definition--% tiles:insert beanName=%= name %/ /logic:present logic:notPresent name=%= name % %--Standard tiles insertion-- tiles:insert name=%= name %/ /logic:notPresent % } % So, when I insert that tile I alway use add name=.../ regardless if I am passing a definition (local or tile-config defined) or a path to another tile.This is necessary, I think, because add beanName doesn't work at all. Do you think this is a reasonable solution? However this solution fails for adding normal strings, but I agree with you (Cedric) that you should not compose body tiles with a list of small strings packed in a vboxLayout! :) So the lack of support for normal strings isn't really an issue! A presto, Fabio - -- - - Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED] Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel Universita' dell'Aquila - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Made with pgp4pine 1.75-6 iD8DBQE+ZRG96dsQbk2R3cMRAhwpAKDE6JedQaXKz6I4sg4SjMVovJ2OOgCfb1HE URKleHqTlaYkxtJS5p7izZg= =PdU8 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]