Garret O'Keeffe

Greenhorn
+ Follow
since Nov 27, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Garret O'Keeffe

Hi - I have some DWR Java methods called via js calls in our Portal JSPs.
I need to be able to access the portlet session data (but not at Application Scope) from these DWR Java methods. {This data has been set in the Spring Controllers}.

I do not wish to go to the Application Scope but within our framework (which also includes SpringMVC), some user specific data is stored in the portal session.

In the DWR methods, I can access Apllication Scoped data but If I could somehow pass the 'portal session key' used by portal through to the DWR method, perhaps I could access the portal session data? - At the moment, I only care about read access to this data.

I know the solution may be portal specific here - I am using WebSphere Portal Server 6.1 - any ideas would be appreciated
~/
G
14 years ago
Cool - That works great and nice & clean too. Tha
14 years ago
JSP
Hi - here is my dilema,
I need to display items in a html table from a Map using JSTL. Every odd table row should have a grey colour and every even should be white (so it looks nice).
My data is nested in HashMaps. The first map provies a key to the second map. However the second map may have differnt sizes for its different keys.
I want to display all the data from the second map for all the data in the first. At the moment I am testing for odd/even by checking if the count % 2 = 0 for the first map but because of the varying length of the second map however this is wrong. I need some means of getting the total index and then I can use the module against this.

My constrains are; I can't change the way the maps are and I cannot use scriptlets. How can I do this using JSTL?

Here is a snippet of my current code, I have commented the bad test:-

Any help would be greatly appreciated as I know this is possible but its baffling me

14 years ago
JSP
Tha for the reply Paul - I moved the question to the portal section as its not really a servlet question.
FYI portals setup the context dynamically on startup - my issue is retrieving this dynamic value.
15 years ago
I need to call one portal from another (IBM to JSR 168). Both Portals are in different WAR modules. I would like to save the Context-Root of the target to some common area which both portlets may reach e.g. DynaCache. However determining the context root of the target portal is my problem.
I tried using a servlet which loaded on startup but the init() is called and with access to the ServletConfig object I don't see how I can get it as such info is not available.
Ideally, I want to do something like request.getRequestURI() but first I'd have to force the doGet() to be called - not sure how this can be done. Alternatively, using MBeans, perhaps I could query the container for the context root.
My understanding is wiring is not supported for this.

So - any ideas on how I can get the Context Root of another portal?
15 years ago
Hi, I need to call one portal from another (IBM to JSR 168). Both Portals are in different WAR modules. I would like to save the Context-Root of rhe target to DynaCache. However determining the context root is my problem.
I tried using a servlet which loaded on startup but the init() is called and with access to the ServletConfig object I don't see how I can get it. Ideally, I want to do something like request.getRequestURI()

So - any ideas on how I can get the Context Root of another portal?
15 years ago