Click here to Skip to main content
15,918,168 members
Home / Discussions / Java
   

Java

 
AnswerRe: Exposing API VS Stored procedure Pin
Richard MacCutchan31-Aug-16 4:43
mveRichard MacCutchan31-Aug-16 4:43 
QuestionCan not Access RequestAttribute in JSTL Pin
AmbiguousName26-Aug-16 0:46
AmbiguousName26-Aug-16 0:46 
Hello there. I am trying to get rid of scriptlets. I attach an object from servlet and try to access it in JSTL. But the logs say that JSP can not find the properties of this object. Here is the servlet sample
request.setAttribute("student", student);

Here is the JSTL sample, with different combinations - all producing no result at all (how ever scriptlets do)
// scriptlets work fine - I just want to use JSTL for this
<c:set var="student" value='${requestScope.student}' scope="request" />
<input type='text' value='${student.FirstName}' /> // without single quotes
<input type='text' value='${student.FirstName}' /> // with single quotes

<input type='text' value='<c:out value='${student.FirstName}' />' /> // using <c:out> - with single quotes
<input type='text' value=<c:out value='${student.FirstName}' /> /> // using <c:out> - without single quotes

As you can see, I have tried different combinations but could not get and display value of request attribute using JSTL. What is wrong? Thanks for any input.

This world is going to explode due to international politics, SOON.

AnswerRe: Can not Access RequestAttribute in JSTL Pin
rah_sin30-Aug-16 20:07
professionalrah_sin30-Aug-16 20:07 
Question[SOLVED] 'TYPE' Cannot Be Resolved To a Type in JSP Pin
Django_Untaken24-Aug-16 2:34
Django_Untaken24-Aug-16 2:34 
QuestionDrools : Exception in thread "main" java.lang.RuntimeException: Query 'results' does not exist Pin
coolSol23-Aug-16 18:37
coolSol23-Aug-16 18:37 
AnswerRe: Drools : Exception in thread "main" java.lang.RuntimeException: Query 'results' does not exist Pin
Richard MacCutchan23-Aug-16 21:02
mveRichard MacCutchan23-Aug-16 21:02 
Questionconsole output to a text file Pin
Member 1142765722-Aug-16 3:55
Member 1142765722-Aug-16 3:55 
AnswerRe: console output to a text file Pin
Richard MacCutchan22-Aug-16 4:28
mveRichard MacCutchan22-Aug-16 4:28 
Rant[REPOST] console output to a text file Pin
Richard Deeming22-Aug-16 4:31
mveRichard Deeming22-Aug-16 4:31 
QuestionShould I use Java over Python for developing web application? Pin
Rebecca199521-Aug-16 12:20
Rebecca199521-Aug-16 12:20 
AnswerRe: Should I use Java over Python for developing web application? Pin
Richard MacCutchan21-Aug-16 23:02
mveRichard MacCutchan21-Aug-16 23:02 
AnswerRe: Should I use Java over Python for developing web application? Pin
manjiriV23-Aug-16 1:56
manjiriV23-Aug-16 1:56 
GeneralRe: Should I use Java over Python for developing web application? Pin
Rebecca199523-Aug-16 4:18
Rebecca199523-Aug-16 4:18 
GeneralRe: Should I use Java over Python for developing web application? Pin
Kofi_Tommy26-Aug-16 13:44
Kofi_Tommy26-Aug-16 13:44 
AnswerRe: Should I use Java over Python for developing web application? Pin
jschell1-Sep-16 6:56
jschell1-Sep-16 6:56 
QuestionHow Android derives from Java Pin
Andy_Bell18-Aug-16 6:34
Andy_Bell18-Aug-16 6:34 
AnswerRe: How Android derives from Java Pin
Richard MacCutchan18-Aug-16 22:27
mveRichard MacCutchan18-Aug-16 22:27 
GeneralRe: How Android derives from Java Pin
Andy_Bell18-Aug-16 23:04
Andy_Bell18-Aug-16 23:04 
GeneralRe: How Android derives from Java Pin
Richard MacCutchan18-Aug-16 23:26
mveRichard MacCutchan18-Aug-16 23:26 
Questionhow to write the console output to text file? Pin
Member 1142765718-Aug-16 0:29
Member 1142765718-Aug-16 0:29 
AnswerRe: how to write the console output to text file? Pin
Richard MacCutchan18-Aug-16 0:36
mveRichard MacCutchan18-Aug-16 0:36 
Generalhow to print the fullstr string to a text file. Pin
Member 1142765716-Aug-16 0:39
Member 1142765716-Aug-16 0:39 
GeneralRe: how to print the fullstr string to a text file. Pin
Member 1142765716-Aug-16 0:44
Member 1142765716-Aug-16 0:44 
GeneralRe: how to print the fullstr string to a text file. Pin
Richard MacCutchan16-Aug-16 1:22
mveRichard MacCutchan16-Aug-16 1:22 
SuggestionRe: how to print the fullstr string to a text file. Pin
Richard Deeming16-Aug-16 2:10
mveRichard Deeming16-Aug-16 2:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.