29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

c. Specify the name of the Java package, or accept the default.<br />

d. Click any of the check boxes that describe the characteristics of the class<br />

that you want to create:<br />

public<br />

abstract<br />

final<br />

e. Specify the name of the superclass in which the class will be created, or<br />

accept the default.<br />

f. For each interface that you want to create, click Add and type the interface<br />

name, the names of matching types, and any qualifiers.<br />

g. Click the check boxes for the method stubs that you want created, or<br />

accept the defaults. The choices are as follows:<br />

inherited abstract methods<br />

constructors from superclass<br />

reset(..., HttpServletRequest)<br />

reset(..., ServletRequest)<br />

validate(..., HttpServletRequest)<br />

validate(..., ServletRequest)<br />

h. Click Finish.<br />

JSP wizard<br />

A Struts JSP file is a JSP file that uses Struts tag libraries. If you select Struts<br />

support in the JSP wizard as described below, you can (optionally) create a form<br />

in the new JSP file that contains fields from a user-specified form bean.<br />

To create a Struts JSP file:<br />

1. In the Project Navigator of the Web perspective, right-click WebContent in a<br />

project folder.<br />

2. Click New -> JSP File.<br />

Note: There are two other ways to invoke the JSP wizard.<br />

– Double-clicking an unrealized Web Page node in the Web diagram<br />

editor.<br />

– Expanding the module folder in the Struts Explorer view, right-clicking<br />

the Web Pages folder, and selecting Add JSP File... from the context<br />

menu.<br />

3. Fill out fields on the first New JSP File page, making sure that Struts JSP is<br />

specified in the Model field.<br />

414 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!