wood burning stoves 2.0*
The moose likes Struts and the fly likes How to do pop-up window in a form? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to do pop-up window in a form?" Watch "How to do pop-up window in a form?" New topic
Author

How to do pop-up window in a form?

michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
I have a form with 1 textfield and a button. When I click on the button, the system will base on the input of the textfield to search for result. The search result will be displayed in a pop-up window and the parent window does not change.
I need to do nullable validation for the textfield.
Now my code the function can work, but the search result display in the same parent window.How to make it to be a pop-up window?

<html:form action="/action/CreateInvoiceRefQuotationAction" method="POST">
<logic:messagesPresent message="true">
<ul>
<html:messages message="true" id="msg">
<li><bean:write name="msg"/></li>
</html:messages>
</ul>
</logic:messagesPresent>

<table>
<tr>
<td>Quotation Reference No.</td>
<td><html:text property="ufQuotationID" size="25" maxlength="20" styleClass="normal"/></td>
<td><html:submit styleClass="buttons">View Quotation</html:submit></td>
</tr>
</table>
</html:form>


michelle Wang <br />SCJP 1.4
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Specify target="_blank" in the html:form tag.


A good workman is known by his tools.
michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
Hi, thanks ! I change the validation from display error msg to display a error pop-up page, it works.
[ December 07, 2005: Message edited by: michelle Wang ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to do pop-up window in a form?
 
Similar Threads
server side validation errors
headache with validation framework
Validation framework is not working
why after validation&#65292;return zero&#65311;
messagesPresent problem for displaying actionMessage