We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71669a commit ee22c02Copy full SHA for ee22c02
tomcat7-jsp-actions.md
@@ -14,6 +14,22 @@ You can import a Java bean (a getter and setter object with an empty constructor
14
<%@ page import="thing.Hello" %>
15
<jsp:useBean id="bean" class="thing.Hello" />
16
17
+The actual bean is this is simple enough:
18
+
19
+ package thing;
20
+ public class Bean {
21
22
+ private String thing = "";
23
24
+ public String getThing() {
25
+ return thing;
26
+ }
27
28
+ public void setThing(String thing) {
29
+ this.thing = thing;
30
31
32
33
Now you can access it using a scriptlet using the variable 'bean'. You can also use the getProperty and setProperty action:
34
35
<jsp:setProperty name="bean" property="thing" value="SAAATTAAAN" />
0 commit comments