English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

if a button is clicked (which is in applet/frame etc) a jsp/servlet should be opened to accept form data

2006-11-04 00:10:00 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

String servletURL = "www.myhome.com/myservletURL";

//in body of ActionListener for the button
AppletContext context = getAppletContext();
context.showDocument(servletURL);

//will cause browser to open the servlet-generated form page.

If you want to open in an HTML frame or in a separate browser window, take a look at the Javadocs for AppletContext.show(url, target).

2006-11-06 12:28:06 · answer #1 · answered by vincentgl 5 · 0 0

fedest.com, questions and answers