public class StrutsUtil extends Object
| Constructor and Description |
|---|
StrutsUtil(ValueStack stack,
HttpServletRequest request,
HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
Object |
bean(Object aName) |
String |
buildUrl(String url) |
Object |
findString(String name) |
Object |
findValue(String expression,
String className) |
String |
getContext() |
String |
getText(String text) |
String |
include(Object aName) |
boolean |
isTrue(String expression) |
List |
makeSelectList(String selectedList,
String list,
String listKey,
String listValue) |
int |
toInt(long aLong) |
long |
toLong(int anInt) |
long |
toLong(String aLong) |
String |
toString(int anInt) |
String |
toString(long aLong) |
String |
toStringSafe(Object obj) |
String |
translateVariables(String expression) |
String |
urlEncode(String s) |
public StrutsUtil(ValueStack stack, HttpServletRequest request, HttpServletResponse response)
public boolean isTrue(String expression)
public Object findValue(String expression, String className) throws ClassNotFoundException
ClassNotFoundExceptionpublic String getContext()
public List makeSelectList(String selectedList, String list, String listKey, String listValue)
public int toInt(long aLong)
public long toLong(int anInt)
public long toLong(String aLong)
public String toString(long aLong)
public String toString(int anInt)
Copyright © 2022. All rights reserved.