|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.dbforms.taglib.AbstractScriptHandlerTag org.dbforms.taglib.AbstractDbBaseHandlerTag org.dbforms.taglib.DbLinkURLTag
public class DbLinkURLTag
the 3 examples below produce all the same result
<linkURL href="customer.jsp" table="customer" position="1:2:12-3:4:1992" />
<linkURL href="customer.jsp" table="customer" position="<%= currentKey %>" />
<linkURL href="customer.jsp" table="customer" /> <position fieldName="id" value="103" /> <position fieldName="cust_lang" value="2" /> </linkURL>
result (off course without the line feeds)
/servlet/control? ac_goto_x=t& data_ac_goto_x_fu=/customer.jsp& data_ac_goto_x_destTable=17& data_ac_goto_x_destPos=103~2
Use it like this:
some text
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
DbLinkURLTag()
|
Method Summary | |
---|---|
void |
addPositionPart(Field field,
String value)
to be called by DbLinkPositonItems |
int |
doBodyEndTag()
DOCUMENT ME! |
int |
doEndTag()
DOCUMENT ME! |
void |
doFinally()
DOCUMENT ME! |
int |
doStartTag()
DOCUMENT ME! |
String |
getChildField()
Returns the childField. |
String |
getDestPos()
DOCUMENT ME! |
String |
getHref()
DOCUMENT ME! |
String |
getKeyToDestPos()
Returns the keyToDestPos. |
String |
getKeyToKeyToDestPos()
Returns the keyToKeyToDestPos. |
String |
getParentField()
Returns the parentField. |
String |
getPosition()
DOCUMENT ME! |
String |
getSingleRow()
DOCUMENT ME! |
Table |
getTable()
DOCUMENT ME! |
protected String |
makeUrl()
DOCUMENT ME! |
void |
setChildField(String childField)
Sets the childField. |
void |
setDestPos(String position)
DOCUMENT ME! |
void |
setHref(String href)
DOCUMENT ME! |
void |
setKeyToDestPos(String keyToDestPos)
Sets the keyToDestPos. |
void |
setKeyToKeyToDestPos(String keyToKeyToDestPos)
Sets the keyToKeyToDestPos. |
void |
setParentField(String parentField)
Sets the parentField. |
void |
setPosition(String position)
DOCUMENT ME! |
void |
setSingleRow(String string)
DOCUMENT ME! |
void |
setTableName(String tableName)
DOCUMENT ME! |
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag |
---|
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTitle, prepareEventHandlers, prepareStyles, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally |
---|
doCatch |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext |
Constructor Detail |
---|
public DbLinkURLTag()
Method Detail |
---|
public void setChildField(String childField)
childField
- The childField to setpublic String getChildField()
public void setDestPos(String position)
position
- DOCUMENT ME!public String getDestPos()
public void setHref(String href)
href
- DOCUMENT ME!public String getHref()
public void setKeyToDestPos(String keyToDestPos)
keyToDestPos
- The keyToDestPos to setpublic String getKeyToDestPos()
public void setKeyToKeyToDestPos(String keyToKeyToDestPos)
keyToKeyToDestPos
- The keyToKeyToDestPos to setpublic String getKeyToKeyToDestPos()
public void setParentField(String parentField)
parentField
- The parentField to setpublic String getParentField()
public void setPosition(String position)
position
- DOCUMENT ME!public String getPosition()
public void setSingleRow(String string)
string
- public String getSingleRow()
public Table getTable()
public void setTableName(String tableName)
tableName
- DOCUMENT ME!public void addPositionPart(Field field, String value)
field
- DOCUMENT ME!value
- DOCUMENT ME!public int doBodyEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- thrown when error occurs in processing the body of
this methodpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- thrown when error occurs in processing the body of
this methodpublic void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
doFinally
in class AbstractDbBaseHandlerTag
TryCatchFinally.doFinally()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- thrown when error occurs in processing the body of
this method
IllegalArgumentException
- thrown when some parameters are missing.protected String makeUrl() throws UnsupportedEncodingException
UnsupportedEncodingException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |