The following document contains the results of PMD's CPD 4.2.5.
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 37 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 37 |
public class ELSubmitTag extends SubmitTag { /** * Instance variable mapped to "accessKey" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String accessKeyExpr; /** * Instance variable mapped to "alt" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String altExpr; /** * Instance variable mapped to "altKey" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String altKeyExpr; /** * Instance variable mapped to "bundle" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String bundleExpr; /** * Instance variable mapped to "dir" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String dirExpr; /** * Instance variable mapped to "disabled" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String disabledExpr; /** * Instance variable mapped to "indexed" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String indexedExpr; /** * Instance variable mapped to "lang" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String langExpr; /** * Instance variable mapped to "onblur" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onblurExpr; /** * Instance variable mapped to "onchange" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onchangeExpr; /** * Instance variable mapped to "onclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onclickExpr; /** * Instance variable mapped to "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String ondblclickExpr; /** * Instance variable mapped to "onfocus" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onfocusExpr; /** * Instance variable mapped to "onkeydown" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onkeydownExpr; /** * Instance variable mapped to "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onkeypressExpr; /** * Instance variable mapped to "onkeyup" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onkeyupExpr; /** * Instance variable mapped to "onmousedown" tag attribute. (Mapping set * in associated BeanInfo class.) */ private String onmousedownExpr; /** * Instance variable mapped to "onmousemove" tag attribute. (Mapping set * in associated BeanInfo class.) */ private String onmousemoveExpr; /** * Instance variable mapped to "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onmouseoutExpr; /** * Instance variable mapped to "onmouseover" tag attribute. (Mapping set * in associated BeanInfo class.) */ private String onmouseoverExpr; /** * Instance variable mapped to "onmouseup" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String onmouseupExpr; /** * Instance variable mapped to "property" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String propertyExpr; /** * Instance variable mapped to "style" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String styleExpr; /** * Instance variable mapped to "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String styleClassExpr; /** * Instance variable mapped to "styleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String styleIdExpr; /** * Instance variable mapped to "tabindex" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String tabindexExpr; /** * Instance variable mapped to "title" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String titleExpr; /** * Instance variable mapped to "titleKey" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String titleKeyExpr; /** * Instance variable mapped to "value" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String valueExpr; /** * Getter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAccesskeyExpr() { return (accessKeyExpr); } /** * Getter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltExpr() { return (altExpr); } /** * Getter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltKeyExpr() { return (altKeyExpr); } /** * Getter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getBundleExpr() { return (bundleExpr); } /** * Getter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDirExpr() { return (dirExpr); } /** * Getter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDisabledExpr() { return (disabledExpr); } /** * Getter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getIndexedExpr() { return (indexedExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); setDirExpr(null); setDisabledExpr(null); setIndexedExpr(null); setLangExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUserDatabase.java | Struts Apps - Faces Example 1 | 53 |
org/apache/struts/webapp/example2/memory/MemoryUserDatabase.java | Struts Apps - Faces Example 2 | 53 |
public final class MemoryUserDatabase implements UserDatabase { // ----------------------------------------------------------- Constructors // ----------------------------------------------------- Instance Variables /** * Logging output for this user database instance. */ private Log log = LogFactory.getLog(this.getClass()); /** * The {@link User}s associated with this UserDatabase, keyed by username. */ private HashMap users = new HashMap(); // ------------------------------------------------------------- Properties /** * Absolute pathname to the persistent file we use for loading and storing * persistent data. */ private String pathname = null; private String pathnameOld = null; private String pathnameNew = null; public String getPathname() { return (this.pathname); } public void setPathname(String pathname) { this.pathname = pathname; pathnameOld = pathname + ".old"; pathnameNew = pathname + ".new"; } // --------------------------------------------------------- Public Methods /** * <p>Finalize access to the underlying persistence layer.</p> * * @exception Exception if a database access error occurs */ public void close() throws Exception { save(); } /** * <p>Create and return a new {@link User} defined in this user database. * </p> * * @param username Username of the new user * * @exception IllegalArgumentExceptionif the specified username * is not unique */ public User createUser(String username) { synchronized (users) { if (users.get(username) != null) { throw new IllegalArgumentException("Duplicate user '" + username + "'"); } if (log.isTraceEnabled()) { log.trace("Creating user '" + username + "'"); } MemoryUser user = new MemoryUser(this, username); synchronized (users) { users.put(username, user); } return (user); } } /** * <p>Return the existing {@link User} with the specified username, * if any; otherwise return <code>null</code>.</p> * * @param username Username of the user to retrieve */ public User findUser(String username) { synchronized (users) { return ((User) users.get(username)); } } /** * <p>Return the set of {@link User}s defined in this user database.</p> */ public User[] findUsers() { synchronized (users) { User results[] = new User[users.size()]; return ((User[]) users.values().toArray(results)); } } /** * <p>Initiate access to the underlying persistence layer.</p> * * @exception Exception if a database access error occurs */ public void open() throws Exception { FileInputStream fis = null; BufferedInputStream bis = null; try { // Acquire an input stream to our database file if (log.isDebugEnabled()) { log.debug("Loading database from '" + pathname + "'"); } fis = new FileInputStream(pathname); bis = new BufferedInputStream(fis); // Construct a digester to use for parsing Digester digester = new Digester(); digester.push(this); digester.setValidating(false); digester.addFactoryCreate ("database/user", new MemoryUserCreationFactory(this)); digester.addFactoryCreate ("database/user/subscription", new MemorySubscriptionCreationFactory(this)); // Parse the input stream to initialize our database digester.parse(bis); bis.close(); bis = null; fis = null; } catch (Exception e) { log.error("Loading database from '" + pathname + "':", e); throw e; } finally { if (bis != null) { try { bis.close(); } catch (Throwable t) { ; } bis = null; fis = null; } } } /** * Remove the specified {@link User} from this database. * * @param user User to be removed * * @exception IllegalArgumentException if the specified user is not * associated with this database */ public void removeUser(User user) { if (!(this == user.getDatabase())) { throw new IllegalArgumentException ("User not associated with this database"); } if (log.isTraceEnabled()) { log.trace("Removing user '" + user.getUsername() + "'"); } synchronized (users) { users.remove(user.getUsername()); } } /** * <p>Save any pending changes to the underlying persistence layer.</p> * * @exception Exception if a database access error occurs */ public void save() throws Exception { if (log.isDebugEnabled()) { log.debug("Saving database to '" + pathname + "'"); } File fileNew = new File(pathnameNew); PrintWriter writer = null; try { // Configure our PrintWriter FileOutputStream fos = new FileOutputStream(fileNew); OutputStreamWriter osw = new OutputStreamWriter(fos); writer = new PrintWriter(osw); // Print the file prolog writer.println("<?xml version='1.0'?>"); writer.println("<database>"); // Print entries for each defined user and associated subscriptions User users[] = findUsers(); for (int i = 0; i < users.length; i++) { writer.print(" "); writer.println(users[i]); Subscription subscriptions[] = users[i].getSubscriptions(); for (int j = 0; j < subscriptions.length; j++) { writer.print(" "); writer.println(subscriptions[j]); writer.print(" "); writer.println("</subscription>"); } writer.print(" "); writer.println("</user>"); } // Print the file epilog writer.println("</database>"); // Check for errors that occurred while printing if (writer.checkError()) { writer.close(); fileNew.delete(); throw new IOException ("Saving database to '" + pathname + "'"); } writer.close(); writer = null; } catch (IOException e) { if (writer != null) { writer.close(); } fileNew.delete(); throw e; } // Perform the required renames to permanently save this file File fileOrig = new File(pathname); File fileOld = new File(pathnameOld); if (fileOrig.exists()) { fileOld.delete(); if (!fileOrig.renameTo(fileOld)) { throw new IOException ("Renaming '" + pathname + "' to '" + pathnameOld + "'"); } } if (!fileNew.renameTo(fileOrig)) { if (fileOld.exists()) { fileOld.renameTo(fileOrig); } throw new IOException ("Renaming '" + pathnameNew + "' to '" + pathname + "'"); } fileOld.delete(); } } /** * Digester object creation factory for subscription instances. */ class MemorySubscriptionCreationFactory implements ObjectCreationFactory { public MemorySubscriptionCreationFactory(MemoryUserDatabase database) { } private Digester digester = null; public Digester getDigester() { return (this.digester); } public void setDigester(Digester digester) { this.digester = digester; } public Object createObject(Attributes attributes) { String host = attributes.getValue("host"); User user = (User) digester.peek(); Subscription subscription = user.createSubscription(host); String autoConnect = attributes.getValue("autoConnect"); if (autoConnect == null) { autoConnect = "false"; } if ("true".equalsIgnoreCase(autoConnect) || "yes".equalsIgnoreCase(autoConnect)) { subscription.setAutoConnect(true); } else { subscription.setAutoConnect(false); } subscription.setPassword(attributes.getValue("password")); subscription.setType(attributes.getValue("type")); subscription.setUsername(attributes.getValue("username")); return (subscription); } } /** * Digester object creation factory for user instances. */ class MemoryUserCreationFactory implements ObjectCreationFactory { public MemoryUserCreationFactory(MemoryUserDatabase database) { this.database = database; } private MemoryUserDatabase database = null; private Digester digester = null; public Digester getDigester() { return (this.digester); } public void setDigester(Digester digester) { this.digester = digester; } public Object createObject(Attributes attributes) { String username = attributes.getValue("username"); User user = database.createUser(username); user.setFromAddress(attributes.getValue("fromAddress")); user.setFullName(attributes.getValue("fullName")); user.setPassword(attributes.getValue("password")); user.setReplyToAddress(attributes.getValue("replyToAddress")); return (user); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 965 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 942 |
EvalHelper.evalString("accesskey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("maxlength", getMaxlengthExpr(), this, pageContext)) != null) { setMaxlength(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, pageContext)) != null) { setOnselect(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((bool = EvalHelper.evalBoolean("readonly", getReadonlyExpr(), this, pageContext)) != null) { setReadonly(bool.booleanValue()); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 712 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 712 |
EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 927 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 944 |
setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("maxlength", getMaxlengthExpr(), this, pageContext)) != null) { setMaxlength(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 905 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 934 |
setIdName(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/logic/ELMatchTag.java | Struts EL | 38 |
org/apache/strutsel/taglib/logic/ELNotMatchTag.java | Struts EL | 38 |
public class ELNotMatchTag extends NotMatchTag { /** * Instance variable mapped to "cookie" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String cookieExpr; /** * Instance variable mapped to "header" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String headerExpr; /** * Instance variable mapped to "location" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String locationExpr; /** * Instance variable mapped to "name" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String nameExpr; /** * Instance variable mapped to "parameter" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String parameterExpr; /** * Instance variable mapped to "property" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String propertyExpr; /** * Instance variable mapped to "scope" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String scopeExpr; /** * Instance variable mapped to "value" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String valueExpr; /** * String value of expression to be evaluated. */ private String expr; /** * Evaluated value of expression. */ private String exprValue; /** * Getter method for "cookie" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getCookieExpr() { return (cookieExpr); } /** * Getter method for "header" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getHeaderExpr() { return (headerExpr); } /** * Getter method for "location" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLocationExpr() { return (locationExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "parameter" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getParameterExpr() { return (parameterExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "scope" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getScopeExpr() { return (scopeExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "cookie" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setCookieExpr(String cookieExpr) { this.cookieExpr = cookieExpr; } /** * Setter method for "header" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setHeaderExpr(String headerExpr) { this.headerExpr = headerExpr; } /** * Setter method for "location" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLocationExpr(String locationExpr) { this.locationExpr = locationExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "parameter" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setParameterExpr(String parameterExpr) { this.parameterExpr = parameterExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "scope" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setScopeExpr(String scopeExpr) { this.scopeExpr = scopeExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Returns the string value of the expression. This value will be * evaluated by the JSTL EL engine. */ public String getExpr() { return (expr); } /** * Sets the string value of the expression. This expression will be * evaluated by the JSTL EL engine. */ public void setExpr(String expr) { this.expr = expr; } /** * Returns the evaluated expression. */ public String getExprValue() { return (exprValue); } /** * Sets the evaluated expression. */ public void setExprValue(String exprValue) { this.exprValue = exprValue; } /** * Releases state of custom tag so this instance can be reused. */ public void release() { super.release(); setCookieExpr(null); setHeaderExpr(null); setLocationExpr(null); setNameExpr(null); setParameterExpr(null); setPropertyExpr(null); setScopeExpr(null); setValueExpr(null); setExpr(null); setExprValue(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Evaluates the condition that is being tested by this particular tag, * and returns <code>true</code> if the nested body content of this tag * should be evaluated, or <code>false</code> if it should be skipped. * * @param desired Desired value for a true result * @throws JspException if a JSP exception occurs */ protected boolean condition(boolean desired) throws JspException { boolean result = false; if (getExprValue() != null) { result = ELMatchSupport.condition(desired, getExprValue(), value, location, messages, pageContext); } else { result = super.condition(desired); } return (result); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; if ((string = EvalHelper.evalString("cookie", getCookieExpr(), this, pageContext)) != null) { setCookie(string); } if ((string = EvalHelper.evalString("expr", getExpr(), this, pageContext)) != null) { setExprValue(string); } if ((string = EvalHelper.evalString("header", getHeaderExpr(), this, pageContext)) != null) { setHeader(string); } if ((string = EvalHelper.evalString("location", getLocationExpr(), this, pageContext)) != null) { setLocation(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("parameter", getParameterExpr(), this, pageContext)) != null) { setParameter(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) { setScope(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/struts/faces/application/FacesRequestProcessor.java | Struts Faces | 171 |
org/apache/struts/faces/application/FacesTilesRequestProcessor.java | Struts Faces | 185 |
} // Override default processing to provide logging protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException { if (log.isTraceEnabled()) { log.trace("Performing standard action create"); } Action result = super.processActionCreate(request, response, mapping); if (log.isDebugEnabled()) { log.debug("Standard action create returned " + result.getClass().getName() + " instance"); } return (result); } // Override default processing to provide logging protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) { if (log.isTraceEnabled()) { log.trace("Performing standard action form processing"); String attribute = mapping.getAttribute(); if (attribute != null) { String name = mapping.getName(); FormBeanConfig fbc = moduleConfig.findFormBeanConfig(name); if (fbc != null) { if ("request".equals(mapping.getScope())) { log.trace(" Bean in request scope = " + request.getAttribute(attribute)); } else { log.trace(" Bean in session scope = " + request.getSession().getAttribute(attribute)); } } else { log.trace(" No FormBeanConfig for '" + name + "'"); } } else { log.trace(" No form bean for this action"); } } ActionForm result = super.processActionForm(request, response, mapping); if (log.isDebugEnabled()) { log.debug("Standard action form returned " + result); } return (result); } // Override default processing to provide logging protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException { if (log.isTraceEnabled()) { log.trace("Performing standard action perform"); } ActionForward result = super.processActionPerform(request, response, action, form, mapping); if (log.isDebugEnabled()) { log.debug("Standard action perform returned " + (result == null ? "NULL" : result.getPath()) + " forward path"); } return (result); } // Override default processing to provide logging protected boolean processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException { if (log.isTraceEnabled()) { log.trace("Performing standard forward handling"); } boolean result = super.processForward (request, response, mapping); if (log.isDebugEnabled()) { log.debug("Standard forward handling returned " + result); } return (result); } // Override default processing to provide logging protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException { if (log.isTraceEnabled()) { log.trace("Performing standard forward config handling"); } super.processForwardConfig(request, response, forward); if (log.isDebugEnabled()) { log.debug("Standard forward config handling completed"); } } // Override default processing to provide logging protected boolean processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException { if (log.isTraceEnabled()) { log.trace("Performing standard include handling"); } boolean result = super.processInclude (request, response, mapping); if (log.isDebugEnabled()) { log.debug("Standard include handling returned " + result); } return (result); } /** * <p>Identify and return the path component (from the request URI for a * non-Faces request, or from the form event for a Faces request) * that we will use to select an ActionMapping to dispatch with. * If no such path can be identified, create an error response and return * <code>null</code>.</p> * * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception IOException if an input/output error occurs */ protected String processPath(HttpServletRequest request, HttpServletResponse response) throws IOException { // Are we processing a Faces request? ActionEvent event = (ActionEvent) request.getAttribute(Constants.ACTION_EVENT_KEY); // Handle non-Faces requests in the usual way if (event == null) { if (log.isTraceEnabled()) { log.trace("Performing standard processPath() processing"); } return (super.processPath(request, response)); } // Calculate the path from the form name UIComponent component = event.getComponent(); if (log.isTraceEnabled()) { log.trace("Locating form parent for command component " + event.getComponent()); } while (!(component instanceof FormComponent)) { component = component.getParent(); if (component == null) { log.warn("Command component was not nested in a Struts form!"); return (null); } } if (log.isTraceEnabled()) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 998 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 942 |
setMultiple(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("size", getSizeExpr(), this, pageContext)) != null) { setSize(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 869 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 990 |
setCols(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/el/exercise/TestBean.java | Struts Apps - Struts EL Exercise | 43 |
org/apache/struts/webapp/exercise/TestBean.java | Struts Apps - Examples | 44 |
public class TestBean extends ActionForm { // ------------------------------------------------------------- Properties /** * A collection property where the elements of the collection are * of type <code>LabelValueBean</code>. */ private Collection beanCollection = null; public Collection getBeanCollection() { if (beanCollection == null) { Vector entries = new Vector(10); entries.add(new LabelValueBean("Label 0", "Value 0")); entries.add(new LabelValueBean("Label 1", "Value 1")); entries.add(new LabelValueBean("Label 2", "Value 2")); entries.add(new LabelValueBean("Label 3", "Value 3")); entries.add(new LabelValueBean("Label 4", "Value 4")); entries.add(new LabelValueBean("Label 5", "Value 5")); entries.add(new LabelValueBean("Label 6", "Value 6")); entries.add(new LabelValueBean("Label 7", "Value 7")); entries.add(new LabelValueBean("Label 8", "Value 8")); entries.add(new LabelValueBean("Label 9", "Value 9")); beanCollection = entries; } return (beanCollection); } public void setBeanCollection(Collection beanCollection) { this.beanCollection = beanCollection; } /** * A multiple-String SELECT element using a bean collection. */ private String[] beanCollectionSelect = { "Value 1", "Value 3", "Value 5" }; public String[] getBeanCollectionSelect() { return (this.beanCollectionSelect); } public void setBeanCollectionSelect(String beanCollectionSelect[]) { this.beanCollectionSelect = beanCollectionSelect; } /** * A boolean property whose initial value is true. */ private boolean booleanProperty = true; public boolean getBooleanProperty() { return (booleanProperty); } public void setBooleanProperty(boolean booleanProperty) { this.booleanProperty = booleanProperty; } /** * A multiple-String SELECT element using a collection. */ private String[] collectionSelect = { "Value 2", "Value 4", "Value 6" }; public String[] getCollectionSelect() { return (this.collectionSelect); } public void setCollectionSelect(String collectionSelect[]) { this.collectionSelect = collectionSelect; } /** * A double property. */ private double doubleProperty = 321.0; public double getDoubleProperty() { return (this.doubleProperty); } public void setDoubleProperty(double doubleProperty) { this.doubleProperty = doubleProperty; } /** * A boolean property whose initial value is false */ private boolean falseProperty = false; public boolean getFalseProperty() { return (falseProperty); } public void setFalseProperty(boolean falseProperty) { this.falseProperty = falseProperty; } /** * A float property. */ private float floatProperty = (float) 123.0; public float getFloatProperty() { return (this.floatProperty); } public void setFloatProperty(float floatProperty) { this.floatProperty = floatProperty; } /** * Integer arrays that are accessed as an array as well as indexed. */ private int intArray[] = { 0, 10, 20, 30, 40 }; public int[] getIntArray() { return (this.intArray); } public void setIntArray(int intArray[]) { this.intArray = intArray; } private int intIndexed[] = { 0, 10, 20, 30, 40 }; public int getIntIndexed(int index) { return (intIndexed[index]); } public void setIntIndexed(int index, int value) { intIndexed[index] = value; } private int intMultibox[] = new int[0]; public int[] getIntMultibox() { return (this.intMultibox); } public void setIntMultibox(int intMultibox[]) { this.intMultibox = intMultibox; } /** * An integer property. */ private int intProperty = 123; public int getIntProperty() { return (this.intProperty); } public void setIntProperty(int intProperty) { this.intProperty = intProperty; } /** * A long property. */ private long longProperty = 321; public long getLongProperty() { return (this.longProperty); } public void setLongProperty(long longProperty) { this.longProperty = longProperty; } /** * A multiple-String SELECT element. */ private String[] multipleSelect = { "Multiple 3", "Multiple 5", "Multiple 7" }; public String[] getMultipleSelect() { return (this.multipleSelect); } public void setMultipleSelect(String multipleSelect[]) { this.multipleSelect = multipleSelect; } /** * A nested reference to another test bean (populated as needed). */ private TestBean nested = null; public TestBean getNested() { if (nested == null) |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 772 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 743 |
setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 917 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 834 |
setErrorStyleId(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/SaveSubscriptionAction.java | Struts Apps - Faces Example 1 | 51 |
org/apache/struts/webapp/example2/SaveSubscriptionAction.java | Struts Apps - Faces Example 2 | 49 |
public final class SaveSubscriptionAction extends Action { // ----------------------------------------------------- Instance Variables /** * The <code>Log</code> instance for this application. */ private Log log = LogFactory.getLog("org.apache.struts.webapp.Example"); // --------------------------------------------------------- Public Methods /** * Process the specified HTTP request, and create the corresponding HTTP * response (or forward to another web component that will create it). * Return an <code>ActionForward</code> instance describing where and how * control should be forwarded, or <code>null</code> if the response has * already been completed. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * * @exception Exception if the application business logic throws * an exception */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Extract attributes and parameters we will need MessageResources messages = getResources(request); HttpSession session = request.getSession(); SubscriptionForm subform = (SubscriptionForm) form; String action = subform.getAction(); if (action == null) { action = "?"; } if (log.isDebugEnabled()) { log.debug("SaveSubscriptionAction: Processing " + action + " action"); } // Is there a currently logged on user? User user = (User) session.getAttribute(Constants.USER_KEY); if (user == null) { if (log.isTraceEnabled()) { log.trace(" User is not logged on in session " + session.getId()); } return (mapping.findForward("logon")); } // Was this transaction cancelled? if (isCancelled(request)) { if (log.isTraceEnabled()) { log.trace(" Transaction '" + action + "' was cancelled"); } session.removeAttribute(Constants.SUBSCRIPTION_KEY); return (mapping.findForward("success")); } // Is there a related Subscription object? Subscription subscription = (Subscription) session.getAttribute(Constants.SUBSCRIPTION_KEY); if ("Create".equals(action)) { if (log.isTraceEnabled()) { log.trace(" Creating subscription for mail server '" + subform.getHost() + "'"); } subscription = user.createSubscription(subform.getHost()); } if (subscription == null) { if (log.isTraceEnabled()) { log.trace(" Missing subscription for user '" + user.getUsername() + "'"); } response.sendError(HttpServletResponse.SC_BAD_REQUEST, messages.getMessage("error.noSubscription")); return (null); } // Was this transaction a Delete? if (action.equals("Delete")) { if (log.isTraceEnabled()) { log.trace(" Deleting mail server '" + subscription.getHost() + "' for user '" + user.getUsername() + "'"); } user.removeSubscription(subscription); session.removeAttribute(Constants.SUBSCRIPTION_KEY); try { UserDatabase database = (UserDatabase) servlet.getServletContext(). getAttribute(Constants.DATABASE_KEY); database.save(); } catch (Exception e) { log.error("Database save", e); } return (mapping.findForward("success")); } // All required validations were done by the form itself // Update the persistent subscription information if (log.isTraceEnabled()) { log.trace(" Populating database from form bean"); } try { PropertyUtils.copyProperties(subscription, subform); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); if (t == null) t = e; log.error("Subscription.populate", t); throw new ServletException("Subscription.populate", t); } catch (Throwable t) { log.error("Subscription.populate", t); throw new ServletException("Subscription.populate", t); } try { UserDatabase database = (UserDatabase) servlet.getServletContext(). getAttribute(Constants.DATABASE_KEY); database.save(); } catch (Exception e) { log.error("Database save", e); } // Remove the obsolete form bean and current subscription if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) request.removeAttribute(mapping.getAttribute()); else session.removeAttribute(mapping.getAttribute()); } session.removeAttribute(Constants.SUBSCRIPTION_KEY); // Forward control to the specified success URI if (log.isTraceEnabled()) { log.trace(" Forwarding to success page"); } return (mapping.findForward("success")); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 778 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 951 |
setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 778 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 778 |
setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 905 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 789 |
setDisabled(bool.booleanValue()); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 436 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 436 |
} /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); setDirExpr(null); setDisabledExpr(null); setLangExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUser.java | Struts Apps - Faces Example 1 | 41 |
org/apache/struts/webapp/example2/memory/MemoryUser.java | Struts Apps - Faces Example 2 | 41 |
public final class MemoryUser implements User { // ----------------------------------------------------------- Constructors /** * <p>Construct a new User associated with the specified * {@link UserDatabase}. * * @param database The user database with which we are associated * @param username The username of this user */ public MemoryUser(MemoryUserDatabase database, String username) { super(); this.database = database; this.username = username; } // ----------------------------------------------------- Instance Variables /** * The {@link UserDatabase} with which we are associated. */ private MemoryUserDatabase database = null; /** * The {@link Subscription}s for this User, keyed by hostname. */ private HashMap subscriptions = new HashMap(); /** * The username for this user. */ private String username = null; // ------------------------------------------------------------- Properties /** * The {@link UserDatabase} with which we are associated. */ public UserDatabase getDatabase() { return (this.database); } /** * The email address from which messages are sent. */ private String fromAddress = null; public String getFromAddress() { return (this.fromAddress); } public void setFromAddress(String fromAddress) { this.fromAddress = fromAddress; } /** * The full name of this user, included in from addresses. */ private String fullName = null; public String getFullName() { return (this.fullName); } public void setFullName(String fullName) { this.fullName = fullName; } /** * The password (in clear text). */ private String password = null; public String getPassword() { return (this.password); } public void setPassword(String password) { this.password = password; } /** * The EMAIL address to which replies should be sent. */ private String replyToAddress = null; public String getReplyToAddress() { return (this.replyToAddress); } public void setReplyToAddress(String replyToAddress) { this.replyToAddress = replyToAddress; } /** * Find and return all {@link Subscription}s associated with this user. * If there are none, a zero-length array is returned. */ public Subscription[] getSubscriptions() { synchronized (subscriptions) { Subscription results[] = new Subscription[subscriptions.size()]; return ((Subscription[]) subscriptions.values().toArray(results)); } } /** * The username (must be unique). */ public String getUsername() { return (this.username); } // --------------------------------------------------------- Public Methods /** * Create and return a new {@link Subscription} associated with this * User, for the specified host name. * * @param host Host name for which to create a subscription * * @exception IllegalArgumentException if the host name is not unique * for this user */ public Subscription createSubscription(String host) { synchronized (subscriptions) { if (subscriptions.get(host) != null) { throw new IllegalArgumentException("Duplicate host '" + host + "' for user '" + username + "'"); } MemorySubscription subscription = new MemorySubscription(this, host); synchronized (subscriptions) { subscriptions.put(host, subscription); } return (subscription); } } /** * Find and return the {@link Subscription} associated with the specified * host. If none is found, return <code>null</code>. * * @param host Host name to look up */ public Subscription findSubscription(String host) { synchronized (subscriptions) { return ((Subscription) subscriptions.get(host)); } } /** * Remove the specified {@link Subscription} from being associated * with this User. * * @param subscription Subscription to be removed * * @exception IllegalArgumentException if the specified subscription is not * associated with this User */ public void removeSubscription(Subscription subscription) { if (!(this == subscription.getUser())) { throw new IllegalArgumentException ("Subscription not associated with this user"); } synchronized (subscriptions) { subscriptions.remove(subscription.getHost()); } } /** * Return a String representation of this object. */ public String toString() { StringBuffer sb = new StringBuffer("<user username=\""); sb.append(username); sb.append("\""); if (fromAddress != null) { sb.append(" fromAddress=\""); sb.append(fromAddress); sb.append("\""); } if (fullName != null) { sb.append(" fullName=\""); sb.append(fullName); sb.append("\""); } if (password != null) { sb.append(" password=\""); sb.append(password); sb.append("\""); } if (replyToAddress != null) { sb.append(" replyToAddress=\""); sb.append(replyToAddress); sb.append("\""); } sb.append(">"); return (sb.toString()); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/logic/ELNotPresentTag.java | Struts EL | 38 |
org/apache/strutsel/taglib/logic/ELPresentTag.java | Struts EL | 38 |
public class ELPresentTag extends PresentTag { /** * Instance variable mapped to "cookie" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String cookieExpr; /** * Instance variable mapped to "header" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String headerExpr; /** * Instance variable mapped to "name" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String nameExpr; /** * Instance variable mapped to "parameter" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String parameterExpr; /** * Instance variable mapped to "property" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String propertyExpr; /** * Instance variable mapped to "role" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String roleExpr; /** * Instance variable mapped to "scope" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String scopeExpr; /** * Instance variable mapped to "user" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String userExpr; /** * Getter method for "cookie" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getCookieExpr() { return (cookieExpr); } /** * Getter method for "header" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getHeaderExpr() { return (headerExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "parameter" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getParameterExpr() { return (parameterExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "role" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getRoleExpr() { return (roleExpr); } /** * Getter method for "scope" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getScopeExpr() { return (scopeExpr); } /** * Getter method for "user" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getUserExpr() { return (userExpr); } /** * Setter method for "cookie" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setCookieExpr(String cookieExpr) { this.cookieExpr = cookieExpr; } /** * Setter method for "header" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setHeaderExpr(String headerExpr) { this.headerExpr = headerExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "parameter" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setParameterExpr(String parameterExpr) { this.parameterExpr = parameterExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "role" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setRoleExpr(String roleExpr) { this.roleExpr = roleExpr; } /** * Setter method for "scope" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setScopeExpr(String scopeExpr) { this.scopeExpr = scopeExpr; } /** * Setter method for "user" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setUserExpr(String userExpr) { this.userExpr = userExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setCookieExpr(null); setHeaderExpr(null); setNameExpr(null); setParameterExpr(null); setPropertyExpr(null); setRoleExpr(null); setScopeExpr(null); setUserExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; if ((string = EvalHelper.evalString("cookie", getCookieExpr(), this, pageContext)) != null) { setCookie(string); } if ((string = EvalHelper.evalString("header", getHeaderExpr(), this, pageContext)) != null) { setHeader(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("parameter", getParameterExpr(), this, pageContext)) != null) { setParameter(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("role", getRoleExpr(), this, pageContext)) != null) { setRole(string); } if ((string = EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) { setScope(string); } if ((string = EvalHelper.evalString("user", getUserExpr(), this, pageContext)) != null) { setUser(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 801 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 834 |
setErrorStyleId(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 1015 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 1038 |
setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, pageContext)) != null) { setOnselect(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((bool = EvalHelper.evalBoolean("readonly", getReadonlyExpr(), this, pageContext)) != null) { setReadonly(bool.booleanValue()); } if ((string = EvalHelper.evalString("rows", getRowsExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 778 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 806 |
setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 1038 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 1038 |
setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, pageContext)) != null) { setOnselect(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((bool = EvalHelper.evalBoolean("readonly", getReadonlyExpr(), this, pageContext)) != null) { setReadonly(bool.booleanValue()); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 806 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 778 |
setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/SaveRegistrationAction.java | Struts Apps - Faces Example 1 | 130 |
org/apache/struts/webapp/example2/SaveRegistrationAction.java | Struts Apps - Faces Example 2 | 128 |
errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionMessage("error.transaction.token")); } resetToken(request); // Validate the request parameters specified by the user if (log.isTraceEnabled()) { log.trace(" Performing extra validations"); } String value = null; value = regform.getUsername(); if (("Create".equals(action)) && (database.findUser(value) != null)) { errors.add("username", new ActionMessage("error.username.unique", regform.getUsername())); } if ("Create".equals(action)) { value = regform.getPassword(); if ((value == null) || (value.length() <1)) { errors.add("password", new ActionMessage("error.password.required")); } value = regform.getPassword2(); if ((value == null) || (value.length() < 1)) { errors.add("password2", new ActionMessage("error.password2.required")); } } // Report any errors we have discovered back to the original form if (!errors.isEmpty()) { saveErrors(request, errors); saveToken(request); return (mapping.getInputForward()); } // Update the user's persistent profile information try { if ("Create".equals(action)) { user = database.createUser(regform.getUsername()); } String oldPassword = user.getPassword(); PropertyUtils.copyProperties(user, regform); if ((regform.getPassword() == null) || (regform.getPassword().length() < 1)) { user.setPassword(oldPassword); } } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); if (t == null) { t = e; } log.error("Registration.populate", t); throw new ServletException("Registration.populate", t); } catch (Throwable t) { log.error("Registration.populate", t); throw new ServletException("Subscription.populate", t); } try { database.save(); } catch (Exception e) { log.error("Database save", e); } // Log the user in if appropriate if ("Create".equals(action)) { session.setAttribute(Constants.USER_KEY, user); if (log.isTraceEnabled()) { log.trace(" User '" + user.getUsername() + "' logged on in session " + session.getId()); } } // Remove the obsolete form bean if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) request.removeAttribute(mapping.getAttribute()); else session.removeAttribute(mapping.getAttribute()); } // Forward control to the specified success URI if (log.isTraceEnabled()) { log.trace(" Forwarding to success page"); } return (mapping.findForward("success")); } } |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java | Struts Apps - Faces Example 1 | 59 |
org/apache/struts/webapp/example2/memory/MemoryDatabasePlugIn.java | Struts Apps - Faces Example 2 | 59 |
public final class MemoryDatabasePlugIn implements PlugIn { // ----------------------------------------------------- Instance Variables /** * The {@link MemoryUserDatabase} object we construct and make available. */ private MemoryUserDatabase database = null; /** * Logging output for this plug in instance. */ private Log log = LogFactory.getLog(this.getClass()); /** * The {@link ActionServlet} owning this application. */ private ActionServlet servlet = null; // ------------------------------------------------------------- Properties /** * The web application resource path of our persistent database * storage file. */ private String pathname = "/WEB-INF/database.xml"; public String getPathname() { return (this.pathname); } public void setPathname(String pathname) { this.pathname = pathname; } // --------------------------------------------------------- PlugIn Methods /** * Gracefully shut down this database, releasing any resources * that were allocated at initialization. */ public void destroy() { log.info("Finalizing memory database plug in"); if (database != null) { try { database.close(); } catch (Exception e) { log.error("Closing memory database", e); } } servlet.getServletContext().removeAttribute(Constants.DATABASE_KEY); database = null; servlet = null; database = null; } /** * Initialize and load our initial database from persistent storage. * * @param servlet The ActionServlet for this web application * @param config The ApplicationConfig for our owning module * * @exception ServletException if we cannot configure ourselves correctly */ public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { log.info("Initializing memory database plug in from '" + pathname + "'"); // Remember our associated configuration and servlet this.servlet = servlet; // Construct a new database and make it available database = new MemoryUserDatabase(); try { String path = calculatePath(); if (log.isDebugEnabled()) { log.debug(" Loading database from '" + path + "'"); } database.setPathname(path); database.open(); } catch (Exception e) { log.error("Opening memory database", e); throw new ServletException("Cannot load database from '" + pathname + "'", e); } // Make the initialized database available servlet.getServletContext().setAttribute(Constants.DATABASE_KEY, database); // Setup and cache other required data setupCache(servlet, config); } // --------------------------------------------------------- Public Methods // ------------------------------------------------------ Protected Methods /** * <p>Cache commonly required data as servlet context attributes.</p> * * @param servlet The <code>ActionServlet</code> instance running * this webapp * @param config The <code>ModuleConfig</code> for this application module */ protected void setupCache(ActionServlet servlet, ModuleConfig config) { // Set up list of server types under "serverTypes" ArrayList serverTypes = new ArrayList(); serverTypes.add(new LabelValueBean("IMAP Protocol", "imap")); serverTypes.add(new LabelValueBean("POP3 Protocol", "pop3")); servlet.getServletContext().setAttribute("serverTypes", serverTypes); } // -------------------------------------------------------- Private Methods /** * Calculate and return an absolute pathname to the XML file to contain * our persistent storage information. * * @exception Exception if an input/output error occurs */ private String calculatePath() throws Exception { // Can we access the database via file I/O? String path = servlet.getServletContext().getRealPath(pathname); if (path != null) { return (path); } // Does a copy of this file already exist in our temporary directory File dir = (File) servlet.getServletContext().getAttribute ("javax.servlet.context.tempdir"); File file = new File(dir, "struts-example-database.xml"); if (file.exists()) { return (file.getAbsolutePath()); } // Copy the static resource to a temporary file and return its path InputStream is = servlet.getServletContext().getResourceAsStream(pathname); BufferedInputStream bis = new BufferedInputStream(is, 1024); FileOutputStream os = new FileOutputStream(file); BufferedOutputStream bos = new BufferedOutputStream(os, 1024); byte buffer[] = new byte[1024]; while (true) { int n = bis.read(buffer); if (n <= 0) { break; } bos.write(buffer, 0, n); } bos.close(); bis.close(); return (file.getAbsolutePath()); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 934 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 1026 |
setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 789 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 1026 |
setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/EditSubscriptionAction.java | Struts Apps - Faces Example 1 | 48 |
org/apache/struts/webapp/example2/EditSubscriptionAction.java | Struts Apps - Faces Example 2 | 48 |
public final class EditSubscriptionAction extends Action { // ----------------------------------------------------- Instance Variables /** * The <code>Log</code> instance for this application. */ private Log log = LogFactory.getLog("org.apache.struts.webapp.Example"); // --------------------------------------------------------- Public Methods /** * Process the specified HTTP request, and create the corresponding HTTP * response (or forward to another web component that will create it). * Return an <code>ActionForward</code> instance describing where and how * control should be forwarded, or <code>null</code> if the response has * already been completed. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * * @exception Exception if the application business logic throws * an exception */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Extract attributes we will need HttpSession session = request.getSession(); String action = request.getParameter("action"); if (action == null) { action = "Create"; } String host = request.getParameter("host"); if (log.isDebugEnabled()) { log.debug("EditSubscriptionAction: Processing " + action + " action"); } // Is there a currently logged on user? User user = (User) session.getAttribute(Constants.USER_KEY); if (user == null) { if (log.isTraceEnabled()) { log.trace(" User is not logged on in session " + session.getId()); } return (mapping.findForward("logon")); } // Identify the relevant subscription Subscription subscription = user.findSubscription(request.getParameter("host")); if ((subscription == null) && !action.equals("Create")) { if (log.isTraceEnabled()) { log.trace(" No subscription for user " + user.getUsername() + " and host " + host); } return (mapping.findForward("failure")); } if (subscription != null) { session.setAttribute(Constants.SUBSCRIPTION_KEY, subscription); } // Populate the subscription form if (form == null) { if (log.isTraceEnabled()) { log.trace(" Creating new SubscriptionForm bean under key " + mapping.getAttribute()); } form = new SubscriptionForm(); if ("request".equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), form); } else { session.setAttribute(mapping.getAttribute(), form); } } SubscriptionForm subform = (SubscriptionForm) form; subform.setAction(action); if (!action.equals("Create")) { if (log.isTraceEnabled()) { log.trace(" Populating form from " + subscription); } try { PropertyUtils.copyProperties(subform, subscription); subform.setAction(action); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); if (t == null) t = e; log.error("SubscriptionForm.populate", t); throw new ServletException("SubscriptionForm.populate", t); } catch (Throwable t) { log.error("SubscriptionForm.populate", t); throw new ServletException("SubscriptionForm.populate", t); } } // Forward control to the edit subscription page if (log.isTraceEnabled()) { log.trace(" Forwarding to 'success' page"); } return (mapping.findForward("success")); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 917 |
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 998 |
setMaxlength(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("size", getSizeExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 818 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 910 |
setSizeExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accesskey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("maxlength", getMaxlengthExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/struts/apps/mailreader/plugin/MemoryDatabasePlugIn.java | Struts Apps - Mailreader | 56 |
org/apache/struts/apps/scriptingmailreader/plugin/MemoryDatabasePlugIn.java | Struts Apps - Scripting Mailreader | 56 |
public final class MemoryDatabasePlugIn implements PlugIn { // ---- Instance Variables ---- /** * The {@link MemoryUserDatabase} object we construct and make available. */ private MemoryUserDatabase database = null; /** * Logging output for this plug in instance. */ private Log log = LogFactory.getLog(this.getClass()); /** * The {@link ActionServlet} owning this application. */ private ActionServlet servlet = null; // ---- Properties ---- /** * The web application resource path of our persistent database * storage file. */ private String pathname = "/WEB-INF/database.xml"; public String getPathname() { return (this.pathname); } public void setPathname(String pathname) { this.pathname = pathname; } // ---- PlugIn Methods ---- /** * Gracefully shut down this database, releasing any resources * that were allocated at initialization. */ public void destroy() { log.info("Finalizing memory database plug in"); if (database != null) { try { database.close(); } catch (Exception e) { log.error("Closing memory database", e); } } servlet.getServletContext().removeAttribute(Constants.DATABASE_KEY); database = null; servlet = null; database = null; } /** * Initialize and load our initial database from persistent storage. * * @param servlet The ActionServlet for this web application * @param config The ApplicationConfig for our owning module * @throws ServletException if we cannot configure ourselves correctly */ public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { log.info("Initializing memory database plug in from '" + pathname + "'"); // Remember our associated configuration and servlet this.servlet = servlet; // Construct a new database and make it available database = new MemoryUserDatabase(); try { String path = calculatePath(); if (log.isDebugEnabled()) { log.debug(" Loading database from '" + path + "'"); } database.setPathname(path); database.open(); } catch (Exception e) { log.error("Opening memory database", e); throw new ServletException("Cannot load database from '" + pathname + "'", e); } // Make the initialized database available servlet.getServletContext().setAttribute(Constants.DATABASE_KEY, database); } // ---- Private Methods ---- /** * Calculate and return an absolute pathname to the XML file to contain * our persistent storage information. * * @throws Exception if an input/output error occurs */ private String calculatePath() throws Exception { // Can we access the database via file I/O? String path = servlet.getServletContext().getRealPath(pathname); if (path != null) { return (path); } // Does a copy of this file already exist in our temporary directory File dir = (File) servlet.getServletContext().getAttribute ("javax.servlet.context.tempdir"); File file = new File(dir, "struts-example-database.xml"); if (file.exists()) { return (file.getAbsolutePath()); } // Copy the static resource to a temporary file and return its path InputStream is = servlet.getServletContext().getResourceAsStream(pathname); BufferedInputStream bis = new BufferedInputStream(is, 1024); FileOutputStream os = new FileOutputStream(file); BufferedOutputStream bos = new BufferedOutputStream(os, 1024); byte buffer[] = new byte[1024]; while (true) { int n = bis.read(buffer); if (n <= 0) { break; } bos.write(buffer, 0, n); } bos.close(); bis.close(); return (file.getAbsolutePath()); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 942 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 1015 |
setMaxlength(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 749 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 947 |
setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("size", getSizeExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 801 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 1015 |
setMaxlength(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 1003 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 749 |
setLang(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 917 |
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 1038 |
setMaxlength(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("onselect", getOnselectExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 778 |
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 1003 |
setName(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("size", getSizeExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 1003 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 778 |
setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/SubscriptionForm.java | Struts Apps - Faces Example 1 | 50 |
org/apache/struts/webapp/example2/SubscriptionForm.java | Struts Apps - Faces Example 2 | 50 |
public final class SubscriptionForm extends ActionForm { // --------------------------------------------------- Instance Variables /** * The maintenance action we are performing (Create or Edit). */ private String action = "Create"; /** * Should we auto-connect at startup time? */ private boolean autoConnect = false; /** * The host name. */ private String host = null; /** * The password. */ private String password = null; /** * The subscription type. */ private String type = null; /** * The username. */ private String username = null; // ----------------------------------------------------------- Properties /** * Return the maintenance action. */ public String getAction() { return (this.action); } /** * Set the maintenance action. * * @param action The new maintenance action. */ public void setAction(String action) { this.action = action; } /** * Return the auto-connect flag. */ public boolean getAutoConnect() { return (this.autoConnect); } /** * Set the auto-connect flag. * * @param autoConnect The new auto-connect flag */ public void setAutoConnect(boolean autoConnect) { this.autoConnect = autoConnect; } /** * Return the host name. */ public String getHost() { return (this.host); } /** * Set the host name. * * @param host The host name */ public void setHost(String host) { this.host = host; } /** * Return the password. */ public String getPassword() { return (this.password); } /** * Set the password. * * @param password The new password */ public void setPassword(String password) { this.password = password; } /** * Return the subscription type. */ public String getType() { return (this.type); } /** * Set the subscription type. * * @param type The subscription type */ public void setType(String type) { this.type = type; } /** * Return the username. */ public String getUsername() { return (this.username); } /** * Set the username. * * @param username The new username */ public void setUsername(String username) { this.username = username; } // --------------------------------------------------------- Public Methods /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.action = "Create"; this.autoConnect = false; this.host = null; this.password = null; this.type = null; this.username = null; } /** * Validate the properties that have been set from this HTTP request, * and return an <code>ActionErrors</code> object that encapsulates any * validation errors that have been found. If no errors are found, return * <code>null</code> or an <code>ActionErrors</code> object with no * recorded error messages. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((host == null) || (host.length() < 1)) errors.add("host", new ActionMessage("error.host.required")); if ((username == null) || (username.length() < 1)) errors.add("username", new ActionMessage("error.username.required")); if ((password == null) || (password.length() < 1)) errors.add("password", new ActionMessage("error.password.required")); if ((type == null) || (type.length() < 1)) errors.add("type", new ActionMessage("error.type.required")); else if (!"imap".equals(type) && !"pop3".equals(type)) errors.add("type", new ActionMessage("error.type.invalid", type)); return (errors); } |
File | Project | Line |
---|---|---|
org/apache/struts/faces/application/FacesRequestProcessor.java | Struts Faces | 352 |
org/apache/struts/faces/application/FacesTilesRequestProcessor.java | Struts Faces | 366 |
((FormComponent) component).getAction()); } return (((FormComponent) component).getAction()); } /** * <p>Populate the properties of the specified <code>ActionForm</code> * instance from the request parameters included with this request, * <strong>IF</strong> this is a non-Faces request. For a Faces request, * this will have already been done by the <em>Update Model Values</em> * phase of the request processing lifecycle, so all we have to do is * recognize whether the request was cancelled or not.</p> * * @param request The servlet request we are processing * @param response The servlet response we are creating * @param form The ActionForm instance we are populating * @param mapping The ActionMapping we are using * * @exception ServletException if thrown by RequestUtils.populate() */ protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException { // Are we processing a Faces request? ActionEvent event = (ActionEvent) request.getAttribute(Constants.ACTION_EVENT_KEY); // Handle non-Faces requests in the usual way if (event == null) { if (log.isTraceEnabled()) { log.trace("Performing standard processPopulate() processing"); } super.processPopulate(request, response, form, mapping); return; } // Faces Requests require no processing for form bean population // so we need only check for the cancellation command name if (log.isTraceEnabled()) { log.trace("Faces request, so no processPopulate() processing"); } UIComponent source = event.getComponent(); if (source instanceof UICommand) { if ("cancel".equals(((UICommand) source).getId())) { if (log.isTraceEnabled()) { log.trace("Faces request with cancel button pressed"); } request.setAttribute(Globals.CANCEL_KEY, Boolean.TRUE); } } } // Override default processing to provide logging protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws IOException, ServletException, InvalidCancelException { if (log.isTraceEnabled()) { log.trace("Performing standard validation"); } boolean result = super.processValidate (request, response, form, mapping); if (log.isDebugEnabled()) { log.debug("Standard validation processing returned " + result); } return (result); } // --------------------------------------------------------- Private Methods /** * <p>Return the used Lifecycle ID (default or custom).</p> */ private String getLifecycleId() { String lifecycleId = this.servlet.getServletContext().getInitParameter(LIFECYCLE_ID_ATTR); return lifecycleId != null ? lifecycleId : LifecycleFactory.DEFAULT_LIFECYCLE; } /** * <p>Return <code>true</code> if the specified context-relative URI * specifies a request to be processed by the Struts controller servlet.</p> * * @param uri URI to be checked */ private boolean isStrutsRequest(String uri) { int question = uri.indexOf("?"); if (question >= 0) { uri = uri.substring(0, question); } String mapping = (String) servlet.getServletContext().getAttribute(Globals.SERVLET_KEY); if (mapping == null) { return (false); } else if (mapping.startsWith("*.")) { return (uri.endsWith(mapping.substring(1))); } else if (mapping.endsWith("/*")) { return (uri.startsWith(mapping.substring(0, mapping.length() - 2))); } else { return (false); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 590 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 576 |
} /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; } /** * Setter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; } /** * Setter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; } /** * Setter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; } /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "maxlength" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setMaxlengthExpr(String maxlengthExpr) { this.maxlengthExpr = maxlengthExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnselectExpr(String onselectExpr) { this.onselectExpr = onselectExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "readonly" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setReadonlyExpr(String readonlyExpr) { this.readonlyExpr = readonlyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELRewriteTag.java | Struts EL | 421 |
org/apache/strutsel/taglib/logic/ELRedirectTag.java | Struts EL | 392 |
setAction(string); } if ((string = EvalHelper.evalString("anchor", getAnchorExpr(), this, pageContext)) != null) { setAnchor(string); } if ((string = EvalHelper.evalString("forward", getForwardExpr(), this, pageContext)) != null) { setForward(string); } if ((string = EvalHelper.evalString("href", getHrefExpr(), this, pageContext)) != null) { setHref(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { setPage(string); } if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), this, pageContext)) != null) { setParamId(string); } if ((string = EvalHelper.evalString("paramName", getParamNameExpr(), this, pageContext)) != null) { setParamName(string); } if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(), this, pageContext)) != null) { setParamProperty(string); } if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(), this, pageContext)) != null) { setParamScope(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) { setScope(string); } if ((bool = EvalHelper.evalBoolean("transaction", getTransactionExpr(), this, pageContext)) != null) { setTransaction(bool.booleanValue()); } if ((bool = EvalHelper.evalBoolean("useLocalEncoding", getUseLocalEncodingExpr(), this, pageContext)) != null) { setUseLocalEncoding(bool.booleanValue()); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 778 |
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 1043 |
setModule(string); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELImageTag.java | Struts EL | 987 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 778 |
setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), this, pageContext)) != null) { setOnblur(string); } if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), this, pageContext)) != null) { setOnchange(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 592 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 614 |
} /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); setDirExpr(null); setDisabledExpr(null); setErrorKeyExpr(null); setErrorStyleExpr(null); setErrorStyleClassExpr(null); setErrorStyleIdExpr(null); |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/EditRegistrationAction.java | Struts Apps - Faces Example 1 | 49 |
org/apache/struts/webapp/example2/EditRegistrationAction.java | Struts Apps - Faces Example 2 | 49 |
public final class EditRegistrationAction extends Action { // ----------------------------------------------------- Instance Variables /** * The <code>Log</code> instance for this application. */ private Log log = LogFactory.getLog("org.apache.struts.webapp.Example"); // --------------------------------------------------------- Public Methods /** * Process the specified HTTP request, and create the corresponding HTTP * response (or forward to another web component that will create it). * Return an <code>ActionForward</code> instance describing where and how * control should be forwarded, or <code>null</code> if the response has * already been completed. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * * @exception Exception if the application business logic throws * an exception */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Extract attributes we will need HttpSession session = request.getSession(); String action = request.getParameter("action"); if (action == null) action = "Create"; if (log.isDebugEnabled()) { log.debug("EditRegistrationAction: Processing " + action + " action"); } // Is there a currently logged on user? User user = null; if (!"Create".equals(action)) { user = (User) session.getAttribute(Constants.USER_KEY); if (user == null) { if (log.isDebugEnabled()) { log.debug(" User is not logged on in session " + session.getId()); } return (mapping.findForward("logon")); } } // Populate the user registration form if (form == null) { if (log.isTraceEnabled()) { log.trace(" Creating new RegistrationForm bean under key " + mapping.getAttribute()); } form = new RegistrationForm(); if ("request".equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } RegistrationForm regform = (RegistrationForm) form; if (user != null) { if (log.isTraceEnabled()) { log.trace(" Populating form from " + user); } try { PropertyUtils.copyProperties(regform, user); regform.setAction(action); regform.setPassword(null); regform.setPassword2(null); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); if (t == null) t = e; log.error("RegistrationForm.populate", t); throw new ServletException("RegistrationForm.populate", t); } catch (Throwable t) { log.error("RegistrationForm.populate", t); throw new ServletException("RegistrationForm.populate", t); } } // Set a transactional control token to prevent double posting if (log.isTraceEnabled()) { log.trace(" Setting transactional control token"); } saveToken(request); // Forward control to the edit user registration page if (log.isTraceEnabled()) { log.trace(" Forwarding to 'success' page"); } |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/LinkUserTag.java | Struts Apps - Faces Example 1 | 46 |
org/apache/struts/webapp/example2/LinkUserTag.java | Struts Apps - Faces Example 2 | 44 |
public class LinkUserTag extends TagSupport { // ------------------------------------------------------ Instance Variables /** * The hyperlink URI. */ protected String page = null; /** * The message resources for this package. */ protected static MessageResources messages = MessageResources.getMessageResources ("org.apache.struts.webapp.example.ApplicationResources"); /** * The attribute name. */ private String name = "user"; // ------------------------------------------------------------- Properties /** * Return the hyperlink URI. */ public String getPage() { return (this.page); } /** * Set the hyperlink URI. * * @param page Set the hyperlink URI */ public void setPage(String page) { this.page = page; } /** * Return the attribute name. */ public String getName() { return (this.name); } /** * Set the attribute name. * * @param name The new attribute name */ public void setName(String name) { this.name = name; } // --------------------------------------------------------- Public Methods /** * Render the beginning of the hyperlink. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { // Generate the URL to be encoded HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); StringBuffer url = new StringBuffer(request.getContextPath()); url.append(page); User user = null; try { user = (User) pageContext.findAttribute(name); } catch (ClassCastException e) { user = null; } if (user == null) throw new JspException (messages.getMessage("linkUser.noUser", name)); if (page.indexOf("?") < 0) url.append("?"); else url.append("&"); url.append("username="); url.append(ResponseUtils.filter(user.getUsername())); // Generate the hyperlink start element HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); StringBuffer results = new StringBuffer("<a href=\""); results.append(response.encodeURL(url.toString())); results.append("\">"); // Print this element to our output writer JspWriter writer = pageContext.getOut(); try { writer.print(results.toString()); } catch (IOException e) { throw new JspException (messages.getMessage("linkUser.io", e.toString())); } // Evaluate the body of this tag return (EVAL_BODY_INCLUDE); } /** * Render the end of the hyperlink. * * @exception JspException if a JSP exception has occurred */ public int doEndTag() throws JspException { // Print the ending element to our output writer JspWriter writer = pageContext.getOut(); try { writer.print("</a>"); } catch (IOException e) { throw new JspException (messages.getMessage("link.io", e.toString())); } return (EVAL_PAGE); } /** * Release any acquired resources. */ public void release() { super.release(); this.page = null; this.name = "user"; } } |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/RegistrationForm.java | Struts Apps - Faces Example 1 | 57 |
org/apache/struts/webapp/example2/RegistrationForm.java | Struts Apps - Faces Example 2 | 56 |
public final class RegistrationForm extends ValidatorForm { // ----------------------------------------------------- Instance Variables /** * The maintenance action we are performing (Create or Edit). */ private String action = "Create"; /** * The from address. */ private String fromAddress = null; /** * The full name. */ private String fullName = null; /** * The password. */ private String password = null; /** * The confirmation password. */ private String password2 = null; /** * The reply to address. */ private String replyToAddress = null; /** * The username. */ private String username = null; // ----------------------------------------------------------- Properties /** * Return the maintenance action. */ public String getAction() { return (this.action); } /** * Set the maintenance action. * * @param action The new maintenance action. */ public void setAction(String action) { this.action = action; } /** * Return the from address. */ public String getFromAddress() { return (this.fromAddress); } /** * Set the from address. * * @param fromAddress The new from address */ public void setFromAddress(String fromAddress) { this.fromAddress = fromAddress; } /** * Return the full name. */ public String getFullName() { return (this.fullName); } /** * Set the full name. * * @param fullName The new full name */ public void setFullName(String fullName) { this.fullName = fullName; } /** * Return the password. */ public String getPassword() { return (this.password); } /** * Set the password. * * @param password The new password */ public void setPassword(String password) { this.password = password; } /** * Return the confirmation password. */ public String getPassword2() { return (this.password2); } /** * Set the confirmation password. * * @param password2 The new confirmation password */ public void setPassword2(String password2) { this.password2 = password2; } /** * Return the reply to address. */ public String getReplyToAddress() { return (this.replyToAddress); } /** * Set the reply to address. * * @param replyToAddress The new reply to address */ public void setReplyToAddress(String replyToAddress) { this.replyToAddress = replyToAddress; } /** * Return the username. */ public String getUsername() { return (this.username); } /** * Set the username. * * @param username The new username */ public void setUsername(String username) { this.username = username; } // --------------------------------------------------------- Public Methods /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.action = "Create"; this.fromAddress = null; this.fullName = null; this.password = null; this.password2 = null; this.replyToAddress = null; this.username = null; } /** * Validate the properties that have been set from this HTTP request, * and return an <code>ActionErrors</code> object that encapsulates any * validation errors that have been found. If no errors are found, return * <code>null</code> or an <code>ActionErrors</code> object with no * recorded error messages. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // Perform validator framework validations ActionErrors errors = super.validate(mapping, request); // Only need crossfield validations here if (((password == null) && (password2 != null)) || ((password != null) && (password2 == null)) || ((password != null) && (password2 != null) && !password.equals(password2))) { errors.add("password2", new ActionMessage("error.password.match")); } return errors; } } |
File | Project | Line |
---|---|---|
org/apache/struts/faces/application/FacesRequestProcessor.java | Struts Faces | 74 |
org/apache/struts/faces/application/FacesTilesRequestProcessor.java | Struts Faces | 74 |
LogFactory.getLog(FacesTilesRequestProcessor.class); /** * <p>The lifecycle id.</p> */ public static final String LIFECYCLE_ID_ATTR = "javax.faces.LIFECYCLE_ID"; // ------------------------------------------------------- Protected Methods /** * <p>Set up a Faces Request if we are not already processing one. Next, * create a new view if the specified <code>uri</code> is different from * the current view identifier. Finally, cause the new view to be * rendered, and call <code>FacesContext.responseComplete()</code> to * indicate that this has already been done.</p> * * @param uri Context-relative path to forward to * @param request Current page request * @param response Current page response * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet error occurs */ protected void doForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { if (log.isDebugEnabled()) { log.debug("doForward(" + uri + ")"); } // Remove the current ActionEvent (if any) request.removeAttribute(Constants.ACTION_EVENT_KEY); // Process a Struts controller request normally if (isStrutsRequest(uri)) { if (response.isCommitted()) { if (log.isTraceEnabled()) { log.trace(" super.doInclude(" + uri + ")"); } super.doInclude(uri, request, response); } else { if (log.isTraceEnabled()) { log.trace(" super.doForward(" + uri + ")"); } super.doForward(uri, request, response); } return; } // Create a FacesContext for this request if necessary LifecycleFactory lf = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); Lifecycle lifecycle = lf.getLifecycle(getLifecycleId()); boolean created = false; FacesContext context = FacesContext.getCurrentInstance(); if (context == null) { if (log.isTraceEnabled()) { log.trace(" Creating new FacesContext for '" + uri + "'"); } created = true; FacesContextFactory fcf = (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); context = fcf.getFacesContext(servlet.getServletContext(), request, response, lifecycle); } // Create a new view root ViewHandler vh = context.getApplication().getViewHandler(); if (log.isTraceEnabled()) { log.trace(" Creating new view for '" + uri + "'"); } context.setViewRoot(vh.createView(context, uri)); // Cause the view to be rendered if (log.isTraceEnabled()) { log.trace(" Rendering view for '" + uri + "'"); } try { lifecycle.render(context); } finally { if (created) { if (log.isTraceEnabled()) { log.trace(" Releasing context for '" + uri + "'"); } context.release(); } else { if (log.isTraceEnabled()) { log.trace(" Rendering completed"); } } } } // Override default processing to provide logging protected void internalModuleRelativeForward |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 570 |
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 590 |
} /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; } /** * Setter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; } /** * Setter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; } /** * Setter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; } /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "maxlength" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setMaxlengthExpr(String maxlengthExpr) { this.maxlengthExpr = maxlengthExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnselectExpr(String onselectExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELImageTag.java | Struts EL | 999 |
org/apache/strutsel/taglib/html/ELLinkTag.java | Struts EL | 1089 |
setOnblur(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { setPage(string); } if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 850 |
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 965 |
EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("maxlength", getMaxlengthExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 935 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 843 |
setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 498 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 476 |
} /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); setDirExpr(null); setDisabledExpr(null); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 852 |
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 927 |
setAccept(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("maxlength", getMaxlengthExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 664 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 687 |
setIndexedExpr(null); setLangExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((bool = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 970 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 874 |
if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("multiple", getMultipleExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 546 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 630 |
} /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 855 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 874 |
if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("multiple", getMultipleExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 608 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 546 |
} /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 666 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 624 |
} /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "size" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setSizeExpr(String sizeExpr) { this.sizeExpr = sizeExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 790 |
org/apache/strutsel/taglib/html/ELLinkTag.java | Struts EL | 1089 |
setOnblur(string); } if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) { setOnclick(string); } if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) { setOndblclick(string); } if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) { setOnfocus(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 251 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 265 |
return (indexedExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 506 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 638 |
} /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); setDirExpr(null); setDisabledExpr(null); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 265 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 251 |
return (disabledExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemorySubscription.java | Struts Apps - Faces Example 1 | 39 |
org/apache/struts/webapp/example2/memory/MemorySubscription.java | Struts Apps - Faces Example 2 | 39 |
public final class MemorySubscription implements Subscription { // ----------------------------------------------------------- Constructors /** * <p>Construct a new Subscription associated with the specified * {@link User}. * * @param user The user with which we are associated * @param host The mail host for this subscription */ public MemorySubscription(MemoryUser user, String host) { super(); this.user = user; this.host = host; } // ----------------------------------------------------- Instance Variables /** * The mail host for this subscription. */ private String host = null; /** * The {@link User} with which we are associated. */ private MemoryUser user = null; // ------------------------------------------------------------- Properties /** * Should we auto-connect at startup time? */ private boolean autoConnect = false; public boolean getAutoConnect() { return (this.autoConnect); } public void setAutoConnect(boolean autoConnect) { this.autoConnect = autoConnect; } /** * The mail host for this subscription. */ public String getHost() { return (this.host); } /** * The password (in clear text) for this subscription. */ private String password = null; public String getPassword() { return (this.password); } public void setPassword(String password) { this.password = password; } /** * The subscription type ("imap" or "pop3"). */ private String type = "imap"; public String getType() { return (this.type); } public void setType(String type) { this.type = type; } /** * The User owning this Subscription. */ public User getUser() { return (this.user); } /** * The username for this subscription. */ private String username = null; public String getUsername() { return (this.username); } public void setUsername(String username) { this.username = username; } // --------------------------------------------------------- Public Methods /** * Return a String representation of this object. */ public String toString() { StringBuffer sb = new StringBuffer("<subscription host=\""); sb.append(host); sb.append("\" autoConnect=\""); sb.append(autoConnect); sb.append("\""); if (password != null) { sb.append(" password=\""); sb.append(password); sb.append("\""); } if (type != null) { sb.append(" type=\""); sb.append(type); sb.append("\""); } if (username != null) { sb.append(" username=\""); sb.append(username); sb.append("\""); } sb.append(">"); return (sb.toString()); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 277 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 271 |
return (accesskeyExpr); } /** * Getter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltExpr() { return (altExpr); } /** * Getter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltKeyExpr() { return (altKeyExpr); } /** * Getter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getBundleExpr() { return (bundleExpr); } /** * Getter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDirExpr() { return (dirExpr); } /** * Getter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDisabledExpr() { return (disabledExpr); } /** * Getter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getErrorKeyExpr() { return (errorKeyExpr); } /** * Getter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleExpr() { return (errorStyleExpr); } /** * Getter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleClassExpr() { return (errorStyleClassExpr); } /** * Getter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleIdExpr() { return (errorStyleIdExpr); } /** * Getter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getIndexedExpr() { return (indexedExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "maxlength" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getMaxlengthExpr() { return (maxlengthExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnselectExpr() { return (onselectExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "readonly" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getReadonlyExpr() { return (readonlyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 506 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 554 |
} /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } /** * Setter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } /** * Setter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } /** * Resets attribute values for tag reuse. */ public void release() { super.release(); setAccesskeyExpr(null); setAltExpr(null); setAltKeyExpr(null); setBundleExpr(null); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 357 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 259 |
return (langExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 259 |
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 343 |
return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accesskey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accesskeyExpr) { this.accesskeyExpr = accesskeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setErrorKeyExpr(String errorKeyExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 273 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 357 |
return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setErrorKeyExpr(String errorKeyExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 826 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 665 |
setLangExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 544 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 623 |
} /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; } /** * Setter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; } /** * Setter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; } /** * Setter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; } /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnselectExpr(String onselectExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 665 |
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 803 |
setNameExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accesskey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 688 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 826 |
setNameExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 211 |
org/apache/strutsel/taglib/html/ELResetTag.java | Struts EL | 211 |
return (accessKeyExpr); } /** * Getter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltExpr() { return (altExpr); } /** * Getter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltKeyExpr() { return (altKeyExpr); } /** * Getter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getBundleExpr() { return (bundleExpr); } /** * Getter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDirExpr() { return (dirExpr); } /** * Getter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDisabledExpr() { return (disabledExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 297 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 349 |
return (indexedExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUserDatabase.java | Struts Apps - Faces Example 1 | 350 |
org/apache/struts/apps/mailreader/dao/impl/memory/MemoryUserDatabase.java | Struts Mailreader DAO | 321 |
private Digester digester = null; public Digester getDigester() { return (this.digester); } public void setDigester(Digester digester) { this.digester = digester; } public Object createObject(Attributes attributes) { String host = attributes.getValue("host"); User user = (User) digester.peek(); Subscription subscription = user.createSubscription(host); String autoConnect = attributes.getValue("autoConnect"); if (autoConnect == null) { autoConnect = "false"; } if ("true".equalsIgnoreCase(autoConnect) || "yes".equalsIgnoreCase(autoConnect)) { subscription.setAutoConnect(true); } else { subscription.setAutoConnect(false); } subscription.setPassword(attributes.getValue("password")); subscription.setType(attributes.getValue("type")); subscription.setUsername(attributes.getValue("username")); return (subscription); } } /** * Digester object creation factory for user instances. */ class MemoryUserCreationFactory implements ObjectCreationFactory { public MemoryUserCreationFactory(MemoryUserDatabase database) { this.database = database; } private MemoryUserDatabase database = null; private Digester digester = null; public Digester getDigester() { return (this.digester); } public void setDigester(Digester digester) { this.digester = digester; } public Object createObject(Attributes attributes) { String username = attributes.getValue("username"); User user = database.createUser(username); user.setFromAddress(attributes.getValue("fromAddress")); user.setFullName(attributes.getValue("fullName")); user.setPassword(attributes.getValue("password")); user.setReplyToAddress(attributes.getValue("replyToAddress")); return (user); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 273 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 305 |
return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 273 |
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 277 |
return (accessKeyExpr); } /** * Getter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltExpr() { return (altExpr); } /** * Getter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getAltKeyExpr() { return (altKeyExpr); } /** * Getter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getBundleExpr() { return (bundleExpr); } /** * Getter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDirExpr() { return (dirExpr); } /** * Getter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDisabledExpr() { return (disabledExpr); } /** * Getter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getErrorKeyExpr() { return (errorKeyExpr); } /** * Getter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleExpr() { return (errorStyleExpr); } /** * Getter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleClassExpr() { return (errorStyleClassExpr); } /** * Getter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleIdExpr() { return (errorStyleIdExpr); } /** * Getter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getIndexedExpr() { return (indexedExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "maxlength" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getMaxlengthExpr() { return (maxlengthExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnselectExpr() { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemorySubscription.java | Struts Apps - Faces Example 1 | 73 |
org/apache/struts/apps/mailreader/dao/impl/AbstractSubscription.java | Struts Mailreader DAO | 70 |
private User user = null; // ------------------------------------------------------------- Properties /** * Should we auto-connect at startup time? */ private boolean autoConnect = false; public boolean getAutoConnect() { return (this.autoConnect); } public void setAutoConnect(boolean autoConnect) { this.autoConnect = autoConnect; } /** * The mail host for this subscription. */ public String getHost() { return (this.host); } /** * The password (in clear text) for this subscription. */ private String password = null; public String getPassword() { return (this.password); } public void setPassword(String password) { this.password = password; } /** * The subscription type ("imap" or "pop3"). */ private String type = "imap"; public String getType() { return (this.type); } public void setType(String type) { this.type = type; } /** * The User owning this Subscription. */ public User getUser() { return (this.user); } /** * The username for this subscription. */ private String username = null; public String getUsername() { return (this.username); } public void setUsername(String username) { this.username = username; } // --------------------------------------------------------- Public Methods /** * Return a String representation of this object. */ public String toString() { StringBuffer sb = new StringBuffer("<subscription host=\""); sb.append(host); sb.append("\" autoConnect=\""); sb.append(autoConnect); sb.append("\""); if (password != null) { sb.append(" password=\""); sb.append(password); sb.append("\""); } if (type != null) { sb.append(" type=\""); sb.append(type); sb.append("\""); } if (username != null) { sb.append(" username=\""); sb.append(username); sb.append("\""); } sb.append(">"); return (sb.toString()); } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 850 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 873 |
EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 592 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 504 |
} /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { |
File | Project | Line |
---|---|---|
org/apache/struts/taglib/html/LinkTag.java | Struts Taglib | 190 |
org/apache/struts/taglib/logic/RedirectTag.java | Struts Taglib | 153 |
} public String getName() { return (this.name); } public void setName(String name) { this.name = name; } public String getPage() { return (this.page); } public void setPage(String page) { this.page = page; } public String getAction() { return (this.action); } public void setAction(String action) { this.action = action; } public String getModule() { return (this.module); } public void setModule(String module) { this.module = module; } public String getParamId() { return (this.paramId); } public void setParamId(String paramId) { this.paramId = paramId; } public String getParamName() { return (this.paramName); } public void setParamName(String paramName) { this.paramName = paramName; } public String getParamProperty() { return (this.paramProperty); } public void setParamProperty(String paramProperty) { this.paramProperty = paramProperty; } public String getParamScope() { return (this.paramScope); } public void setParamScope(String paramScope) { this.paramScope = paramScope; } public String getProperty() { return (this.property); } public void setProperty(String property) { this.property = property; } public String getScope() { return (this.scope); } public void setScope(String scope) { this.scope = scope; } public boolean getTransaction() { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 927 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 875 |
setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 878 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 874 |
if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 369 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 343 |
return (multipleExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "size" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getSizeExpr() { return (sizeExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUser.java | Struts Apps - Faces Example 1 | 69 |
org/apache/struts/apps/mailreader/dao/impl/AbstractUser.java | Struts Mailreader DAO | 67 |
private UserDatabase database = null; /** * The {@link Subscription}s for this User, keyed by hostname. */ private HashMap subscriptions = new HashMap(); /** * The username for this user. */ private String username = null; // ------------------------------------------------------------- Properties /** * The {@link UserDatabase} with which we are associated. */ public UserDatabase getDatabase() { return (this.database); } /** * The email address from which messages are sent. */ private String fromAddress = null; public String getFromAddress() { return (this.fromAddress); } public void setFromAddress(String fromAddress) { this.fromAddress = fromAddress; } /** * The full name of this user, included in from addresses. */ private String fullName = null; public String getFullName() { return (this.fullName); } public void setFullName(String fullName) { this.fullName = fullName; } /** * The password (in clear text). */ private String password = null; public String getPassword() { return (this.password); } public void setPassword(String password) { this.password = password; } /** * The EMAIL address to which replies should be sent. */ private String replyToAddress = null; public String getReplyToAddress() { return (this.replyToAddress); } public void setReplyToAddress(String replyToAddress) { this.replyToAddress = replyToAddress; } /** * Find and return all {@link Subscription}s associated with this user. * If there are none, a zero-length array is returned. */ public Subscription[] getSubscriptions() { synchronized (subscriptions) { Subscription results[] = new Subscription[subscriptions.size()]; return ((Subscription[]) subscriptions.values().toArray(results)); } } /** * The username (must be unique). */ public String getUsername() { return (this.username); } // --------------------------------------------------------- Public Methods /** * Create and return a new {@link Subscription} associated with this * User, for the specified host name. * * @param host Host name for which to create a subscription * * @exception IllegalArgumentException if the host name is not unique * for this user */ public Subscription createSubscription(String host) { synchronized (subscriptions) { if (subscriptions.get(host) != null) { throw new IllegalArgumentException("Duplicate host '" + host + "' for user '" + username + "'"); } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 520 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 546 |
} /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTabindexExpr(String tabindexExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 944 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 990 |
setCols(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, pageContext)) != null) { setErrorKey(string); } if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), this, pageContext)) != null) { setErrorStyle(string); } if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), this, pageContext)) != null) { setErrorStyleClass(string); } if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), this, pageContext)) != null) { setErrorStyleId(string); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUserDatabase.java | Struts Apps - Faces Example 1 | 110 |
org/apache/struts/apps/mailreader/dao/impl/memory/MemoryUserDatabase.java | Struts Mailreader DAO | 107 |
} // See interface for Javadoc public User createUser(String username) { synchronized (users) { if (users.get(username) != null) { throw new IllegalArgumentException("Duplicate user '" + username + "'"); } if (log.isTraceEnabled()) { log.trace("Creating user '" + username + "'"); } MemoryUser user = new MemoryUser(this, username); synchronized (users) { users.put(username, user); } return (user); } } // See interface for Javadoc public User findUser(String username) { synchronized (users) { return ((User) users.get(username)); } } // See interface for Javadoc public User[] findUsers() { synchronized (users) { User results[] = new User[users.size()]; return ((User[]) users.values().toArray(results)); } } // See interface for Javadoc public void open() throws Exception { FileInputStream fis = null; BufferedInputStream bis = null; try { // Acquire an input stream to our database file if (log.isDebugEnabled()) { log.debug("Loading database from '" + pathname + "'"); } fis = new FileInputStream(pathname); bis = new BufferedInputStream(fis); // Construct a digester to use for parsing Digester digester = new Digester(); digester.push(this); digester.setValidating(false); digester.addFactoryCreate ("database/user", new MemoryUserCreationFactory(this)); digester.addFactoryCreate ("database/user/subscription", new MemorySubscriptionCreationFactory()); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 680 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 910 |
setSizeExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accesskey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 335 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 349 |
return (errorStyleIdExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accessKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accessKeyExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 265 |
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 251 |
return (disabledExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accesskey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accesskeyExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 737 |
org/apache/strutsel/taglib/html/ELRadioTag.java | Struts EL | 825 |
setLangExpr(null); setNameExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 271 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 310 |
return (colsExpr); } /** * Getter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDirExpr() { return (dirExpr); } /** * Getter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getDisabledExpr() { return (disabledExpr); } /** * Getter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getErrorKeyExpr() { return (errorKeyExpr); } /** * Getter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleExpr() { return (errorStyleExpr); } /** * Getter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleClassExpr() { return (errorStyleClassExpr); } /** * Getter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getErrorStyleIdExpr() { return (errorStyleIdExpr); } /** * Getter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getIndexedExpr() { return (indexedExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnselectExpr() { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 808 |
org/apache/strutsel/taglib/html/ELImgTag.java | Struts EL | 1188 |
setOndblclick(string); } if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this, pageContext)) != null) { setOnkeydown(string); } if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this, pageContext)) != null) { setOnkeypress(string); } if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this, pageContext)) != null) { setOnkeyup(string); } if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) { setOnmousedown(string); } if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), this, pageContext)) != null) { setOnmousemove(string); } if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this, pageContext)) != null) { setOnmouseout(string); } if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), this, pageContext)) != null) { setOnmouseover(string); } if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this, pageContext)) != null) { setOnmouseup(string); } if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 935 |
org/apache/strutsel/taglib/html/ELSubmitTag.java | Struts EL | 705 |
setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 688 |
org/apache/strutsel/taglib/html/ELMultiboxTag.java | Struts EL | 738 |
setNameExpr(null); setOnblurExpr(null); setOnchangeExpr(null); setOnclickExpr(null); setOndblclickExpr(null); setOnfocusExpr(null); setOnkeydownExpr(null); setOnkeypressExpr(null); setOnkeyupExpr(null); setOnmousedownExpr(null); setOnmousemoveExpr(null); setOnmouseoutExpr(null); setOnmouseoverExpr(null); setOnmouseupExpr(null); setPropertyExpr(null); setStyleExpr(null); setStyleClassExpr(null); setStyleIdExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((bool = |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java | Struts Apps - Faces Example 1 | 59 |
org/apache/struts/apps/scriptingmailreader/plugin/MemoryDatabasePlugIn.java | Struts Apps - Scripting Mailreader | 56 |
public final class MemoryDatabasePlugIn implements PlugIn { // ---- Instance Variables ---- /** * The {@link MemoryUserDatabase} object we construct and make available. */ private MemoryUserDatabase database = null; /** * Logging output for this plug in instance. */ private Log log = LogFactory.getLog(this.getClass()); /** * The {@link ActionServlet} owning this application. */ private ActionServlet servlet = null; // ---- Properties ---- /** * The web application resource path of our persistent database * storage file. */ private String pathname = "/WEB-INF/database.xml"; public String getPathname() { return (this.pathname); } public void setPathname(String pathname) { this.pathname = pathname; } // ---- PlugIn Methods ---- /** * Gracefully shut down this database, releasing any resources * that were allocated at initialization. */ public void destroy() { log.info("Finalizing memory database plug in"); if (database != null) { try { database.close(); } catch (Exception e) { log.error("Closing memory database", e); } } servlet.getServletContext().removeAttribute(Constants.DATABASE_KEY); database = null; servlet = null; database = null; } /** * Initialize and load our initial database from persistent storage. * * @param servlet The ActionServlet for this web application * @param config The ApplicationConfig for our owning module * @throws ServletException if we cannot configure ourselves correctly */ public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { log.info("Initializing memory database plug in from '" + pathname + "'"); // Remember our associated configuration and servlet this.servlet = servlet; // Construct a new database and make it available database = new MemoryUserDatabase(); try { String path = calculatePath(); if (log.isDebugEnabled()) { log.debug(" Loading database from '" + path + "'"); } database.setPathname(path); database.open(); } catch (Exception e) { log.error("Opening memory database", e); throw new ServletException("Cannot load database from '" + pathname + "'", e); } // Make the initialized database available servlet.getServletContext().setAttribute(Constants.DATABASE_KEY, database); |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 686 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 687 |
} /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnselectExpr(String onselectExpr) { this.onselectExpr = onselectExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "readonly" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setReadonlyExpr(String readonlyExpr) { this.readonlyExpr = readonlyExpr; } /** * Setter method for "rows" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setRowsExpr(String rowsExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 506 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 528 |
} /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } /** * Setter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } /** * Setter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } /** * Setter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setTitleExpr(String titleExpr) { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUserDatabase.java | Struts Apps - Faces Example 1 | 282 |
org/apache/struts/apps/mailreader/dao/impl/memory/MemoryUserDatabase.java | Struts Mailreader DAO | 250 |
yusers[i].getSubscriptions(); for (int j = 0; j < subscriptions.length; j++) { writer.print(" "); writer.println(subscriptions[j]); writer.print(" "); writer.println("</subscription>"); } writer.print(" "); writer.println("</user>"); } // Print the file epilog writer.println("</database>"); // Check for errors that occurred while printing if (writer.checkError()) { writer.close(); fileNew.delete(); throw new IOException ("Saving database to '" + pathname + "'"); } writer.close(); writer = null; } catch (IOException e) { if (writer != null) { writer.close(); } fileNew.delete(); throw e; } // Perform the required renames to permanently save this file File fileOrig = new File(pathname); File fileOld = new File(pathnameOld); if (fileOrig.exists()) { fileOld.delete(); if (!fileOrig.renameTo(fileOld)) { throw new IOException ("Renaming '" + pathname + "' to '" + pathnameOld + "'"); } } if (!fileNew.renameTo(fileOrig)) { if (fileOld.exists()) { fileOld.renameTo(fileOrig); } throw new IOException ("Renaming '" + pathnameNew + "' to '" + pathname + "'"); } fileOld.delete(); } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 735 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 758 |
EvalHelper.evalString("accesskey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), this, pageContext)) != null) { setIndexed(bool.booleanValue()); } if ((string = EvalHelper.evalString("lang", getLangExpr(), this, pageContext)) != null) { setLang(string); } if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 463 |
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 519 |
return (sizeExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accesskey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accesskeyExpr) { this.accesskeyExpr = accesskeyExpr; } /** * Setter method for "alt" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltExpr(String altExpr) { this.altExpr = altExpr; } /** * Setter method for "altKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } /** * Setter method for "bundle" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } /** * Setter method for "dir" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDirExpr(String dirExpr) { this.dirExpr = dirExpr; } /** * Setter method for "disabled" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } /** * Setter method for "errorKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; } /** * Setter method for "errorStyle" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; } /** * Setter method for "errorStyleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; } /** * Setter method for "errorStyleId" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; } /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "maxlength" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setMaxlengthExpr(String maxlengthExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 273 |
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 343 |
return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "tabindex" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTabindexExpr() { return (tabindexExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { return (titleExpr); } /** * Getter method for "titleKey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleKeyExpr() { return (titleKeyExpr); } /** * Getter method for "value" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getValueExpr() { return (valueExpr); } /** * Setter method for "accesskey" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setAccesskeyExpr(String accesskeyExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 705 |
org/apache/strutsel/taglib/html/ELPasswordTag.java | Struts EL | 935 |
setSizeExpr(null); setTabindexExpr(null); setTitleExpr(null); setTitleKeyExpr(null); setValueExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((string = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELTextTag.java | Struts EL | 1116 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 1144 |
setRows(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("size", getSizeExpr(), this, pageContext)) != null) { setSize(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/tiles/ELAddTag.java | Struts EL | 251 |
org/apache/strutsel/taglib/tiles/ELPutTag.java | Struts EL | 316 |
if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } if ((string = EvalHelper.evalString("content", getContentExpr(), this, pageContext)) != null) { setContent(string); } if ((string = EvalHelper.evalString("direct", getDirectExpr(), this, pageContext)) != null) { setDirect(string); } if ((string = EvalHelper.evalString("type", getTypeExpr(), this, pageContext)) != null) { setType(string); } if ((string = EvalHelper.evalString("beanName", getBeanNameExpr(), this, pageContext)) != null) { setBeanName(string); } if ((string = EvalHelper.evalString("beanProperty", getBeanPropertyExpr(), this, pageContext)) != null) { setBeanProperty(string); } if ((string = EvalHelper.evalString("beanScope", getBeanScopeExpr(), this, pageContext)) != null) { setBeanScope(string); } if ((string = EvalHelper.evalString("role", getRoleExpr(), this, pageContext)) != null) { setRole(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/logic/ELMessagesNotPresentTag.java | Struts EL | 40 |
org/apache/strutsel/taglib/logic/ELMessagesPresentTag.java | Struts EL | 40 |
public class ELMessagesPresentTag extends MessagesPresentTag { /** * Instance variable mapped to "name" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String nameExpr; /** * Instance variable mapped to "property" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String propertyExpr; /** * Instance variable mapped to "message" tag attribute. (Mapping set in * associated BeanInfo class.) */ private String messageExpr; /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "message" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getMessageExpr() { return (messageExpr); } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "message" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setMessageExpr(String messageExpr) { this.messageExpr = messageExpr; } /** * Releases state of custom tag so this instance can be reused. */ public void release() { super.release(); setNameExpr(null); setPropertyExpr(null); setMessageExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) { setName(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("message", getMessageExpr(), this, pageContext)) != null) { setMessage(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 504 |
org/apache/strutsel/taglib/html/ELTextareaTag.java | Struts EL | 671 |
} /** * Setter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } /** * Setter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setLangExpr(String langExpr) { this.langExpr = langExpr; } /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "onselect" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnselectExpr(String onselectExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 319 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 263 |
return (disabledExpr); } /** * Getter method for "indexed" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getIndexedExpr() { return (indexedExpr); } /** * Getter method for "lang" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getLangExpr() { return (langExpr); } /** * Getter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getNameExpr() { return (nameExpr); } /** * Getter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnblurExpr() { return (onblurExpr); } /** * Getter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnchangeExpr() { return (onchangeExpr); } /** * Getter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnclickExpr() { return (onclickExpr); } /** * Getter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOndblclickExpr() { return (ondblclickExpr); } /** * Getter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnfocusExpr() { return (onfocusExpr); } /** * Getter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeydownExpr() { return (onkeydownExpr); } /** * Getter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnkeypressExpr() { return (onkeypressExpr); } /** * Getter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnkeyupExpr() { return (onkeyupExpr); } /** * Getter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousedownExpr() { return (onmousedownExpr); } /** * Getter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmousemoveExpr() { return (onmousemoveExpr); } /** * Getter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoutExpr() { return (onmouseoutExpr); } /** * Getter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getOnmouseoverExpr() { return (onmouseoverExpr); } /** * Getter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getOnmouseupExpr() { return (onmouseupExpr); } /** * Getter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getPropertyExpr() { return (propertyExpr); } /** * Getter method for "style" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleExpr() { return (styleExpr); } /** * Getter method for "styleClass" tag attribute. (Mapping set in * associated BeanInfo class.) */ public String getStyleClassExpr() { return (styleClassExpr); } /** * Getter method for "styleId" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getStyleIdExpr() { return (styleIdExpr); } /** * Getter method for "title" tag attribute. (Mapping set in associated * BeanInfo class.) */ public String getTitleExpr() { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCancelTag.java | Struts EL | 686 |
org/apache/strutsel/taglib/html/ELHiddenTag.java | Struts EL | 732 |
setWriteExpr(null); } /** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); } /** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @throws JspException if a JSP exception has occurred */ private void evaluateExpressions() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString("accesskey", getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), this, pageContext)) != null) { setAltKey(string); } if ((string = EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); } if ((string = EvalHelper.evalString("dir", getDirExpr(), this, pageContext)) != null) { setDir(string); } if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) { setDisabled(bool.booleanValue()); } if ((bool = |
File | Project | Line |
---|---|---|
org/apache/struts/taglib/html/ImgTag.java | Struts Taglib | 254 |
org/apache/struts/taglib/html/LinkTag.java | Struts Taglib | 206 |
} public String getAction() { return (this.action); } public void setAction(String action) { this.action = action; } public String getModule() { return (this.module); } public void setModule(String module) { this.module = module; } public String getParamId() { return (this.paramId); } public void setParamId(String paramId) { this.paramId = paramId; } public String getParamName() { return (this.paramName); } public void setParamName(String paramName) { this.paramName = paramName; } public String getParamProperty() { return (this.paramProperty); } public void setParamProperty(String paramProperty) { this.paramProperty = paramProperty; } public String getParamScope() { return (this.paramScope); } public void setParamScope(String paramScope) { this.paramScope = paramScope; } public String getProperty() { return (this.property); } public void setProperty(String property) { this.property = property; } public String getScope() { return (this.scope); } public void setScope(String scope) { this.scope = scope; } public String getTarget() { |
File | Project | Line |
---|---|---|
org/apache/struts/taglib/html/ImgTag.java | Struts Taglib | 254 |
org/apache/struts/taglib/logic/RedirectTag.java | Struts Taglib | 169 |
} public String getAction() { return (this.action); } public void setAction(String action) { this.action = action; } public String getModule() { return (this.module); } public void setModule(String module) { this.module = module; } public String getParamId() { return (this.paramId); } public void setParamId(String paramId) { this.paramId = paramId; } public String getParamName() { return (this.paramName); } public void setParamName(String paramName) { this.paramName = paramName; } public String getParamProperty() { return (this.paramProperty); } public void setParamProperty(String paramProperty) { this.paramProperty = paramProperty; } public String getParamScope() { return (this.paramScope); } public void setParamScope(String paramScope) { this.paramScope = paramScope; } public String getProperty() { return (this.property); } public void setProperty(String property) { this.property = property; } public String getScope() { return (this.scope); } public void setScope(String scope) { this.scope = scope; } public boolean getTransaction() { |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/SaveRegistrationAction.java | Struts Apps - Faces Example 1 | 53 |
org/apache/struts/webapp/example2/SaveRegistrationAction.java | Struts Apps - Faces Example 2 | 51 |
public final class SaveRegistrationAction extends Action { // ----------------------------------------------------- Instance Variables /** * The <code>Log</code> instance for this application. */ private Log log = LogFactory.getLog("org.apache.struts.webapp.Example"); // --------------------------------------------------------- Public Methods /** * Process the specified HTTP request, and create the corresponding HTTP * response (or forward to another web component that will create it). * Return an <code>ActionForward</code> instance describing where and how * control should be forwarded, or <code>null</code> if the response has * already been completed. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * * @exception Exception if the application business logic throws * an exception */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Extract attributes and parameters we will need HttpSession session = request.getSession(); RegistrationForm regform = (RegistrationForm) form; String action = regform.getAction(); if (action == null) { action = "Create"; } UserDatabase database = (UserDatabase) servlet.getServletContext().getAttribute(Constants.DATABASE_KEY); if (log.isDebugEnabled()) { log.debug("SaveRegistrationAction: Processing " + action + " action"); } // Is there a currently logged on user (unless creating)? User user = (User) session.getAttribute(Constants.USER_KEY); if (!"Create".equals(action) && (user == null)) { if (log.isTraceEnabled()) { log.trace(" User is not logged on in session " + session.getId()); } return (mapping.findForward("logon")); } // Was this transaction cancelled? if (isCancelled(request)) { if (log.isTraceEnabled()) { log.trace(" Transaction '" + action + "' was cancelled"); } session.removeAttribute(Constants.SUBSCRIPTION_KEY); return (mapping.findForward("failure")); } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFrameTag.java | Struts EL | 773 |
org/apache/strutsel/taglib/html/ELLinkTag.java | Struts EL | 1155 |
setOnmouseup(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { setPage(string); } if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), this, pageContext)) != null) { setParamId(string); } if ((string = EvalHelper.evalString("paramName", getParamNameExpr(), this, pageContext)) != null) { setParamName(string); } if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(), this, pageContext)) != null) { setParamProperty(string); } if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(), this, pageContext)) != null) { setParamScope(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) { setScope(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELCheckboxTag.java | Struts EL | 608 |
org/apache/strutsel/taglib/html/ELFileTag.java | Struts EL | 666 |
} /** * Setter method for "name" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } /** * Setter method for "onblur" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } /** * Setter method for "onchange" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } /** * Setter method for "onclick" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } /** * Setter method for "ondblclick" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } /** * Setter method for "onfocus" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } /** * Setter method for "onkeydown" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } /** * Setter method for "onkeypress" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } /** * Setter method for "onkeyup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } /** * Setter method for "onmousedown" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } /** * Setter method for "onmousemove" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } /** * Setter method for "onmouseout" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } /** * Setter method for "onmouseover" tag attribute. (Mapping set in * associated BeanInfo class.) */ public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } /** * Setter method for "onmouseup" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } /** * Setter method for "property" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } /** * Setter method for "size" tag attribute. (Mapping set in associated * BeanInfo class.) */ public void setSizeExpr(String sizeExpr) { |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELLinkTag.java | Struts EL | 1155 |
org/apache/strutsel/taglib/logic/ELRedirectTag.java | Struts EL | 414 |
setName(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { setPage(string); } if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), this, pageContext)) != null) { setParamId(string); } if ((string = EvalHelper.evalString("paramName", getParamNameExpr(), this, pageContext)) != null) { setParamName(string); } if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(), this, pageContext)) != null) { setParamProperty(string); } if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(), this, pageContext)) != null) { setParamScope(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) { setScope(string); } if ((bool = |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELButtonTag.java | Struts EL | 862 |
org/apache/strutsel/taglib/html/ELSelectTag.java | Struts EL | 1036 |
setSrcKey(string); } if ((string = EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) { setStyle(string); } if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) { setStyleClass(string); } if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), this, pageContext)) != null) { setStyleId(string); } if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) { setTabindex(string); } if ((string = EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) { setTitle(string); } if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) { setTitleKey(string); } if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) { setValue(string); } } } |
File | Project | Line |
---|---|---|
org/apache/strutsel/taglib/html/ELFrameTag.java | Struts EL | 773 |
org/apache/strutsel/taglib/html/ELRewriteTag.java | Struts EL | 443 |
setName(string); } if ((string = EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) { setPage(string); } if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), this, pageContext)) != null) { setParamId(string); } if ((string = EvalHelper.evalString("paramName", getParamNameExpr(), this, pageContext)) != null) { setParamName(string); } if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(), this, pageContext)) != null) { setParamProperty(string); } if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(), this, pageContext)) != null) { setParamScope(string); } if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) { setProperty(string); } if ((string = EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) { setScope(string); } if ((bool = |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/el/exercise/TestBean.java | Struts Apps - Struts EL Exercise | 252 |
org/apache/struts/webapp/exercise/TestBean.java | Struts Apps - Examples | 253 |
return (nested); } /** * A String property with an initial value of null. */ private String nullProperty = null; public String getNullProperty() { return (this.nullProperty); } public void setNullProperty(String nullProperty) { this.nullProperty = nullProperty; } /** * A short property. */ private short shortProperty = (short) 987; public short getShortProperty() { return (this.shortProperty); } public void setShortProperty(short shortProperty) { this.shortProperty = shortProperty; } /** * A single-String value for a SELECT element. */ private String singleSelect = "Single 5"; public String getSingleSelect() { return (this.singleSelect); } public void setSingleSelect(String singleSelect) { this.singleSelect = singleSelect; } /** * String arrays that are accessed as an array as well as indexed. */ private String stringArray[] = { "String 0", "String 1", "String 2", "String 3", "String 4" }; public String[] getStringArray() { return (this.stringArray); } public void setStringArray(String stringArray[]) { this.stringArray = stringArray; } private String stringIndexed[] = { "String 0", "String 1", "String 2", "String 3", "String 4" }; public String getStringIndexed(int index) { return (stringIndexed[index]); } public void setStringIndexed(int index, String value) { stringIndexed[index] = value; } private String stringMultibox[] = new String[0]; |
File | Project | Line |
---|---|---|
org/apache/struts/webapp/example/memory/MemoryUserDatabase.java | Struts Apps - Faces Example 1 | 206 |
org/apache/struts/apps/mailreader/dao/impl/memory/MemoryUserDatabase.java | Struts Mailreader DAO | 185 |