<% String qDescription = null;
if (questionList == null || questionList.isEmpty()){
System.out.println("Empty");
}else{
System.out.println("Retrieval successful");
SurveyQuestionBean questionBean= (SurveyQuestionBean)questionList.get(0);
qDescription = questionBean.getQuestionDescription();
System.out.println("qDescription HERE: " + qDescription);
}
%>
<td>
<textarea name="q_description" id="q_description" class="mlselect" cols='100' rows='5' ><%=qDescription%></textarea>
</td>
I am trying to display the qDescription variable from the Scriptlet to the textarea. The system.out println grabs the correct data, however when i do the assignment it displays null. i understand that Scriptlet is not advisable, but i have to implement it this way. Any help will be appreciated, thank you in advance.
<textarea name="q_description" id="q_description" class="mlselect" cols='100' rows='5' value="${qDescription}" />- SparkOn