Advertisement

05.27.2008 at 02:25AM PDT, ID: 23434198
[x]
Attachment Details

I need to convert scriplet on the page to JSTL tag based code

Asked by srinvang in Java Server Pages (JSP)

Tags: ,

the below code is working fine on the JSP, this code is to check weather the userId is available in the session or not, if in session then display "change password" link in the header.
Now my problem is, i was asked to change this code into JSTL (by using <C:if kind of tags). can u help me

<%
UserSession userSession = (UserSession)request.getSession().getAttribute(Constants.USER_SESSION);
IUserProfile userProfile = null;
 if (userSession != null) {
            userProfile = userSession.getUserProfile();
        if (userProfile!= null &&  userProfile.getUserId() != null) {
                  chkSessionFlag = true;
                  %>
<a href='changepassword.htm' class='loginhd'>Change Password</a> <% }} %>
Start Free Trial
 
Keywords: I need to convert scriplet on the page t…
 
Loading Advertisement...
 
[+][-]05.27.2008 at 06:11AM PDT, ID: 21651549

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Server Pages (JSP)
Tags: JSP, JSTL
Sign Up Now!
Solution Provided By: rrz@871311
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.27.2008 at 06:45AM PDT, ID: 21651787

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.27.2008 at 07:53AM PDT, ID: 21652333

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 08:36AM PDT, ID: 21652786

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 12:10PM PDT, ID: 22338618

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 07:30AM PDT, ID: 22360685

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628