views:

37

answers:

1

hello, i want to open a new window from a button, but in this new window I retrieve an address from my servlet (Action)

<html:button property="bouton" styleId="bouton" styleClass="boutonYellow" style="border: 1px solid rgb(0, 38, 97); width:200px;cursor:default;"  disabled="true">
<fmt:message key="name"/>
</html:button>
+3  A: 
onclick="window.open(${url})"

The URL (being a request attribute in the above code) can contain GET parameters that you can use in the new page. Or it can be a servlet URL where you process the parameters and forward/redirect to a view (page).

Bozho
thx, but in this new page I need to recover some data from my servlet
Mercer
what stops you from doing it?
Bozho
I do not know how to call my servlet, retrieve my information and open new window?
Mercer
The URL can be one of a servlet, redirecting to a page.
Bozho