This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.

RoshaniG Gopal

Ranch Hand
+ Follow
since May 15, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by RoshaniG Gopal

Hi all,
I want to check my xml files through a tool. Can someone please guide me to the same.
Hi all,
I want to search and display records from the Oracle DB using Hibernate for a particular search criterion like 'first_name'. There may be multiple records for the same as there is no primary key in the table. I want to use the Hibernate API for doing so. I am using JSF as view here.
===================================
public ArrayList getEmp(){

SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
Session session =sessionFactory.openSession();
Query query = session.createQuery("from Employee where first_name = :nameJsf");
query.setParameter("nameJsf", getFirst_name().toString());
ArrayList listRecords = (ArrayList) query.list();
return listRecords;

}
If I use the above approach, I get the same record iterated over the number of times it exisits in the DB. For eg, if i have 5 records by first_name of XYZ in DB but with diff last_name, I get the 1st record iterated 5 times. (There is no primary key in the table).

I have tried to use load() but i face an exception. Please guide me the approach to solve this issue. Thanks in advance.
Hi all,
I have a customised application server that is created as a plugin and integrated in the eclipse 3.3.1.1 build 20071023. After installing the plugin, I can view the app server in the server view. I can select the server, create a new server instance and also run it correctly.
1) The problem comes when I try to run it on Dynamic web project> Run on Server; I do not get a option of running it on the existing server. The dialog box asks me to create a new server instance. 2) If I select the new server (any app server)from the dialog box, and point the application server directory to the my application server; it works perfectly fine. The plugin for the app server was developed and tested successfully on Eclipse 3.1 with WTP 0.7 version. But on upgrade to Eclipse Europa (Eclipse 3.3.1 build 20071023), i am facing this problem.
Is it due to the different WTP versions or some configuration files missing at my end that were required for the Eclispse 3.3 plugin envoirnment. (PS: I have already checked for the plugin migration guides).
Kindly help me resolve this issue.
Kind regards,
Roshani
Hi all,
I am using a third party server in eclipse europa(3.3.1). Though I am able to add this server from the server view, I am unable to view that server in the "Run As.." menu.
Please let me know where I am wrong. Its urgent please...
Hi all,
I am trying to retrieve an attribute stored in the HttpSession in a portlet. But I always get a value as "null". I am using Jboss portal 2.6.1 with JDK 5. Please help. Here is the code snippet.
====================
servlet:

HttpServletRequest httpServletRequest=(HttpServletRequest)pageContext.getRequest();
HttpSession httpSession=httpServletRequest.getSession();
String testString="jjksdhfadhs";
//httpSession.getServletContext().setAttribute("test", testString);
httpSession.setAttribute("test", testString);

==============================
portlet in doView)

PortletSession portletSession=request.getPortletSession();
Object attributeFromPortletRequest=portletSession.getAttribute("test");
============================
On checking the portletSession.isNew(), I find it is a new object so what i have stored in the httpSession is not avialable here.

The Jboss reference guide =It is possible to have access to a portion of the portal session to store objects. The org.jboss.portal.api.session.PortalSession interface defines its API and is similar to the javax.servlet.http.HttpSession except that it does not offer methods to invalidate the session as the session is managed by the portal.
16 years ago
Hi all,
I am a newbie to portals and portlets. I want to create a custom portal tag that works in portal envoirnment as the existing custom JSP tag handler cannot handle pagination.
I found that org.jboss.portal.portlet.impl.jsr168.taglib.PortalTag is what you can use, but found no example that can start me.. .
I am using Jboss portal 2.4.please help
16 years ago
Hi all,
I have developed a new help plugin and after udpating Eclipse Europa (Eclipse 3.3.1)and open the Help Contents,I face the foll. error.
HTTP ERROR: 500
Internal Server Error
RequestURI=/help/index.jsp
Powered by Jetty://
The problem is when i update the same help plugin used in a different update site it works fine.But on integration in the original update siteI face this problem.
The help plugin is using the foll extensions.
1)org.eclipse.core.resources.builders
2)org.eclipse.core.resources.natures
3) org.eclipse.ui.popupMenus
4) org.eclipse.core.resources.markers
5) org.eclipse.help.toc

I am not using any Tomcat specific thing knowingly. (It was suggested at a site to remove the tomcat specific listing in the plugin.)
Please help.
Hi all,
In Jboss, I need to generate the tags in conf files (like jboss-web.xml). Is there any API that can create the above tags?
For eg: <security-domain>java:/jaas/jmx-console</security-domain>

I need to programatically generate the <security-domain> tag.
I have an API with which i can set/get the above tags, but i want to generate the above tags using an API.

Please help.
17 years ago
Hi Jesper,
Thanks for your reply adn apology if I was not clear in my question.
I have a FileOutputStream object adn I want to convert it to a BufferedImage as the new encode() takes BufferedImage instead of FileOutputStream (that was used earlier).

FileOutputStream fos = null;
fos = new FileOutputStream(actualImagePath,false);
if (fos != null) {customBean.encode(<BufferredImageRequired> ;
I cannot change the approach to maintain backward compatibility.

Is there a way we can do this?
17 years ago
Hi All,
i want to get a BufferedImage but I have a FileOutputStream Object with me. Can anyone tell how do I get it?
17 years ago
Hi all,
I wanted to know if there is a way to create a chart in Jasper Reports using Jasper API? In the API, there are packages like net.sf.jasperreports.charts.
Jasper Reports uses JfreeChart to create charts internally, then can someone please explain how to do using its API?
Any example/pointer would be appreciated.
I understand the usage of JasperAssistant, iReports.
Hi Jeanne,
Thanks for the reply. I was using the QTP (tool for testing). It was acting as an interface and just generating reports. The point is that we are not utilizing any property of the QTP tool which is not justified.
I am not really concerned about the report formatting, as all i want is the data.
Thanks for your answer..
17 years ago
Hi all,
I want to generate reports using oracle database server.
Reqirement:
After a table update in Ora(event) a report should be generated.Currently a third party tool is being used to do so. I want to remove the 3rd party tool and exploit oracle for the same.
1) Please let me know how to do that?
2) Can i call some java program on the update? (considering no java, web connection)
I tried with the spool in sql. But i was thinking to get a better report.
I read oracle reports, but i think that is part of Oracle app server (not a part of ora database server.Please correct if wrong.
Please excuse my limited knowledge on the subject.
17 years ago
Hi sivakumar,
You may use DynaActionForm for that. Here you will need to define it in the struts-config.xml file instead of creating a java class for the same. The foll links will help you.
1) http://www.roseindia.net/struts/DynaActionForm.shtml
2) http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/action/DynaActionForm.html
17 years ago