This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Sanjay Kannan

Greenhorn
+ Follow
since Nov 25, 2007
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 Sanjay Kannan

Try Websphere portal 6.1 beta from ibm site. Not sure if you will be able to download websphere portal for evaluation.
12 years ago
1. Can you check whether the portlet war is available on the server. Just to verify that its installed. Like in WebSphere portal, you look into <PORTAL_HOME>/installedApps for the exploded war file.
2. Check the portlet.xml file for what name you have given to the portlet and do a search based on that.

I hope you should have done all these... ;-)
12 years ago
"The cache holds various exceptions which are sent to different exception buckets on screen."

What data does the cache contains. You might want to do lazy initialization. Load the cache with data which has been used, so you can prevent the loading of huge data when the servlet starts up.

But i am not sure if you need all the data for display or something that sort.
12 years ago
First thing is you won't be able to dispatch to a servlet based on your business logic in portlet. you'll have to follow the portlet lifecycle. My suggestion would be to reuse (if possible) whatever you have written and write a fresh portlet.
12 years ago
If you add any libraries, you'll have to restart the portal server. There is no round about way. But for your jsp's you can enable the re-load property in the server so that it compiles again if you make any changes to the jsp in your portlet app. There is another way for development purpose only, by keeping all the dependent jar files in your portlet lib folder and through the WAS admin console, restart the portlet application. But the question is in case of standalone install of portal 5.1, whether you can access the WAS admin console of portal server instance. In wps6.0 you can access the WAS admin console of server1 and WebSphere_Portal instance separately.
12 years ago
I don't think you can do a portlet to portlet communication with a WSRP portlet. If its possible let me know.
12 years ago
You cannot push binary in portlet like you do in web application. What you have to do is to generate the PDF on the server and pass the path info to the portlet so that it can read the pdf as a normal client.
you might have to use the <EMBED> tag to display the pdf in the portlet.

<EMBED TYPE="application/pdf" SRC="<%=filename%>" WIDTH='<%=width%>' HEIGHT='<%=portletRequest.getAttribute("height")%>' HREF='<%=filename%>' PLUGINSPAGE="http://www.adobe.com/products/acrobat/readstep.html"; ></EMBED>

If you had used WebSphere portal, the document viewer portlet comes out of the box, but looks like you are using liferay. But its easy, you should be able to achieve the functionality.
[ December 01, 2007: Message edited by: Sanjay Kannan ]
12 years ago
The problem looks to be ClassNotFound issue. How are referring those jar files. Did you try putting it in the war itself.
12 years ago
Were you able to solve it.. I can give a try if you still have problem.. mail me your requirement and what you tried till now..
12 years ago
Avoid using iframes in portlet, cause they have other issues along with them. If you are in the habit of using frames to organize, try thinking to use portlet to portlet communication.
I mean you can split the tasks which you do in a frame to a portlet.
What exactly are you doing with the frames?
12 years ago
Do you want to store the values returned from select box , i mean persist it. Can you elaborate your requirement. i can suggest you the best option.
12 years ago
What exactly is your functionality. Are you using websphere portal. Does all your portlets need the same parameter and from where??
12 years ago
Doing any DB operation in jsp is not a good solution. The other alternative for you would be to construct the string with some delimiter from the resultset in the action phase and build the string array and set in the renderresponse. In the view jsp retrieve the string array and parse the delimited data and display in the jsp

e.g. the data can be

bookid | bookdesc | bookamt

parse the delimited string and display in the jsp
12 years ago
Popup is not a right solution in case of any portal inplementation cause maintaining state of the portlet in a popup is not possible. Best way to implement your functionality would be to use the portlet to portlet communication feature wherein you can have another portlet which would display the details of the records.
[ November 26, 2007: Message edited by: Sanjay Kannan ]
12 years ago