|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
cmu.survey.jsp.tags.TagSupportAndMore
cmu.survey.jsp.tags.QuestionTagStub
cmu.survey.jsp.tags.Question
cmu.survey.jsp.tags.QuestionWithVariable
cmu.survey.jsp.tags.TextQuestion
cmu.survey.jsp.tags.PasswordQuestion
public class PasswordQuestion
A password entry box where the password shows up as "****" instead of text.
If you use it like this:
<%@ taglib uri="/WEB-INF/SurveyTags.tld" prefix="survey" %>.
It will show up in the page looking like this:
<survey:survey databaseName="<%=databaseName%>" table="tbladmin" >.
<%survey:passwordQuestion question="Password" dbField="passwordField"/>.
</survey:survey>.
|
Password |
|
type are "string", "stringKey", "password" or "passwordKey". (For internal security purposes, the "string" and "stringKey" labels are changed to "password" and "passwordKey" -- this is how the server identifies it as a password and checks the value coming in from the client to make sure it's not the default value -- see below as to why this is more secure).
DefaultPasswordValue, so that a user examining someone else's password page can change it but not see what it is. This also prevents snooping on outgoing server packets from getting passwords.Survey, which does the comparison to make sure the password is right when the user is entering it to get into the site.
| Field Summary | |
|---|---|
static java.lang.String |
DefaultPasswordValue
|
| Fields inherited from class cmu.survey.jsp.tags.TextQuestion |
|---|
inputType |
| Fields inherited from class cmu.survey.jsp.tags.QuestionWithVariable |
|---|
dbField, FieldTypeIsKey, FieldTypeIsNumeric, FieldTypes, type |
| Fields inherited from class cmu.survey.jsp.tags.Question |
|---|
blankImageLocation, endQuestion, helpText, imageDirectory, question |
| Fields inherited from class cmu.survey.jsp.tags.TagSupportAndMore |
|---|
dateFormatAmerican, dateTimeFormatAmerican, DAYS_OF_THE_WEEK, debug, MONTHS_OF_THE_YEAR, timeFormatAmerican |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
pageContext |
| 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 | |
|---|---|
PasswordQuestion()
|
|
| Method Summary | |
|---|---|
void |
reinit()
|
void |
setType(java.lang.String newType)
|
| Methods inherited from class cmu.survey.jsp.tags.TextQuestion |
|---|
doQuestion, hasVariable |
| Methods inherited from class cmu.survey.jsp.tags.QuestionWithVariable |
|---|
getAnswer, getDbField, getExtraJavaScripts, getExtraJavaScripts, getFieldAndType, getFieldAndType, getTimeSpentInOnClickOrPressed, getTimeSpentInOnClickOrPressed, getType, isTypeKey, isTypeNumeric, isTypeNumeric, isValidType, printTimeSpentField, saveQuestionInfo, setDbField, setDefaultValue |
| Methods inherited from class cmu.survey.jsp.tags.QuestionTagStub |
|---|
doStartTag, getErrorInfo, getSurvey, initSurvey, saveErrorInfo |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cmu.survey.jsp.tags.HasErrorInfoAndSaves |
|---|
saveErrorInfo |
| Methods inherited from interface cmu.survey.jsp.tags.HasErrorInfo |
|---|
getErrorInfo |
| Field Detail |
|---|
public static final java.lang.String DefaultPasswordValue
| Constructor Detail |
|---|
public PasswordQuestion()
| Method Detail |
|---|
public void setType(java.lang.String newType)
setType in class QuestionWithVariablepublic void reinit()
reinit in class TextQuestion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||