This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes reading a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "reading a JSP page" Watch "reading a JSP page" New topic
Author

reading a JSP page

Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
Hi everybody,

This is some code on a page , please help me read it

<c:if test="${ExtraParams['sideBarExisted'] == 'true'}">
<div id="sidebar">
<c:if test="${(!empty ExtraParams['sideBar1'])
<!-- Some url here -->
</c:if>


I have to add more content to sideBar
where do i start looking where we are specifying value of sideBar1



Mary
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Without knowing what "ExtraParams" is, who can say?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
Bear Bibeault wrote:Without knowing what "ExtraParams" is, who can say?

i need to modify question... Where do i look for ExtraParam :D

its not defined on this page and there is only one include ( jspf ) which i search has nothing called extraparam
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

How are we supposed to know? You're the one that has the code. Look in the code for the page controller. If it's not there, it may have been added to the session or app context somewhere along the line. Have you done a project-wide search for that text?
Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
hmm 1600 results... well i'll see where it is getting set "before" my page is called.
Thanks anyways
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

From the code you have posted, I'd guess that it's a Map that collecting entries to be used on the page (instead of using scoped variables) -- not an approach I'd recommend.

I suspect you need to fetch a reference to this Map and add an entry that turns into the sidebar.

But all that is just a guess.
Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
Nothing in Websphere Commerce environment is straightforward.
i wont be surprised if it turns up in database!( just sayin)
Thanks for tryna help. i'll see.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Mary Chellapa wrote:Nothing in Websphere Commerce environment is straightforward.

Eesh. I feel your pain.
Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
I did a project wide search 'sidebar' .. found it in struts-config

getting warmer ..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: reading a JSP page
 
Similar Threads
JSTL if tag question
Wanted: Vertical Swing Sidebar like Outlook
Can I combine the 2 <c:if> EL expressions?
wild card in EL?
c:if and c:choose