Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

pulijala hari

Ranch Hand
+ Follow
since May 14, 2005
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 pulijala hari

Hi,

I am trying to implement the copy to clipboard functionality using javascript.
Here is my function :
function copyText(field)
{
if(document.all){
var content = eval("document."+field)
content.focus()
content.select()
range = content.createTextRange()
range.execCommand("Copy")
window.status="Contents copied to clipboard"
setTimeout("window.status=''",1800)
}else{
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var gClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"];
const setClbHelper=gClipboardHelper.getService(Components.interfaces.nsIClipboardHelper);
setClbHelper.copyString("<%=urlBuffer%>");
}
}

Where the parameter field is myForm.txtBox and i am having my text in this box which has to be copied.
When i work on the Firefox, this works fine but it does not work on IE.
But when i invoke only IE related part, it works fine on IE.
The issue comes up when i use if and else to check for the browser and IE does not copy when i have the Firefox related code in the else.
Could any one help me point the error.

Thanks,
hari
Hi,
I am trying to export a value from DB to excel.
The problem is related to float value in excel sheet. The value displayed are applied precision and lost the exact value.
But i want to display the exaclty the same value.

Please guide.

regards,
hari
12 years ago
Hi,

We are extracting data from database tables and displaying that data in Table format on JSP page. We need to export that data to Excel file in the same format.

I tried setting the response to "application/vnd.ms-excel" in a plain JSP which is working but when it comes to Portal JSP, the same is throwing an error saying java.lang.IllegalArgumentException: application/vnd.ms-excel.

Can any one help in exporting a jsp data to excel file in websphere portals?(JSR 168,though)

Regards,
hari
12 years ago
Hi,

I am also getting the same error?
Can you pls post how you were able to solve this issue?

regards,
hari
12 years ago
Hi,

Does the book cover anything on java 5.0 new concepts and Web 2.0?

Thanks..,
regards,
hari
12 years ago
Hi,

Does the book "Java Programming cookbook" cover the latest java concepts from java 5 .0?
Any additions on Web 2.0 etc?

Regards,
hari
12 years ago
Hi..,

Does any one share good developing practices for calling an EJB from a JSR Portlet in IBM WPS?

regards,
hari
12 years ago
Hi,

I am following http://www.ibm.com/developerworks/websphere/techjournal/0406_barcia/0406_barcia.html to develop a faces portlet which calls an EJB.
Although i followed all of the steps given , I am getting NameNotFoundException when i try to get the data from EJB thru portlet.

Can any one guide properly as how to call a HelloWorldEJB from a portlet in IBM Websphere?
Really appreciate the help
12 years ago
why dont you get the css file using the getContextPath() method?
12 years ago
JSP
Dear Authors,

I love the Head First series.
I read HF Java,Servlets and JSP,EJB and they are very much useful for the beginners.
As i am planning for PMP and i am just starting up on this, would you suggest this book?

Thanks,
hari
Try to reinstall RAD.., and select Portelt Tools while installing...
Or execute the launchpad and it asks for customization where you can select Portlet Tools..
12 years ago
Hi,

What i mean is that i want to have inter portlet communication between a JSR 168 portlet sitting on WPS and a WSRP portlet sitting on WAS while conusmed on WPS.
Does any body have an idea..
12 years ago
Hi,

I have a JSR 168 portelt residing on WPS 6.0 and a JSP residing on WAS.I would like to share some data between these two. Is there any mechanism where the data will be shared between these two servers using Dynacache or any session replication mechanism.., please do let me know
12 years ago
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?
YES--You are correct.
1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?
It is visible across all pages of the portal.
2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?
Yes-they are only accessible for that portlet.
2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?
Yes.
12 years ago
Try to keep the portlet related info Portlet scoped session instead of Application scoped Session.
12 years ago