mercredi 1 avril 2015

Spring tiles - Open in new window

In my app I'm using Spring MVC + tiles + jsp + jquery.


My Spring controller returns two jsp views.



  1. If result list size is 1 I return "View1".

  2. If result list size is greater than 1 I return "View2".


I call to Spring controller by form submit and I work with tiles, so the returned view is shown in the body automatically.


How can I open view2 in new window? I don't know where I can configurate this.


My tiles.xml is this:



<definition name="view1" extends="standardLayoutTemplate">
<put-attribute name="body" value="/WEB-INF/jsp/views/screens/view1.jsp" />
</definition>

<definition name="view2" template = "/WEB-INF/jsp/views/screens/view2.jsp"/>


Thank you


Aucun commentaire:

Enregistrer un commentaire