Tanmoy Palodhi

Greenhorn
+ Follow
since May 21, 2007
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 Tanmoy Palodhi

This has worked for me in Eclipse3.4.2 (Ganymede):
Goto project properties -> Select Project Facets -> Check the Java version, if it is other than java 5.0 then selected 5.0 from the drop down.

Thanks
Tanmoy
This has worked for me:
Goto project properties -> Select Project Facets -> Check the Java version, if it is other than java 5.0 then click on Add/Remove Project Facets.


Thanks.
13 years ago
I want to implement pagination in my JSP without using the displaytag.
Also, I dont want to use LIMIT in my SQL query and hitting the database all the time.

Can anyone tell me how I can implement by storing my List object in session and iterate for the page numbers depending upon the parameters passed?
Is that possible anyhow? Will it be a good idea to keep it in session?

Thanks in advance.
Tanmoy
13 years ago
JSP
I am also looking for some kind of solution to this problem. I want to keep my .properties files outside the web-app. I have created a new env variable and set the classpath in the server's Startup.sh batch file.
I called the .properties file by using the below code:

InputStream inputStream = getClass().getResourceAsStream("abc.properties");
logger.info("InputStream is: " + inputStream);

The value printed is 'null'.

Can anyone help?

Thanks.
Tanmoy
14 years ago
Anyone who is working on SunONE portal?
Anyone who has implemented JSR 168 portlets which available for free?

Please reply as I need help.

Thanks.
Tanmoy
14 years ago
Can anyone tell me where I can find JSR 168 portlets for free to download so that I can incorporate those in my portal?

Thanks.
Tanmoy
14 years ago
Can anyone tell me where I can find JSR 168 portlets for free to download so that I can incorporate those in my portal?

Thanks.
Tanmoy
Thanks Ulf for reminding me of the policies.

On the JFreeCharts side...I have commented most of the code to identify the problem zone. The code I writing now is:

<%
out.println("Creating the 3D bar chart...");

DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.setValue(7, "Science", "Mike");
dataset.setValue(18, "Science", "Craig");
dataset.setValue(9, "Science", "Casey");

out.println("Debug 1");

JFreeChart chart1 = ChartFactory.createBarChart3D("Comparison between Students","Students", "Marks",
dataset, PlotOrientation.VERTICAL, true,true,false);

out.println("Debug 2");

chart1.setBackgroundPaint(Color.yellow);
chart1.getTitle().setPaint(Color.blue);
CategoryPlot p = chart1.getCategoryPlot();
p.setRangeGridlinePaint(Color.red);

out.println("Debug 3");

ChartUtilities.saveChartAsJPEG(new File("chart_03March09.jpg"), chart1, 300, 300);

%>

The code above works till midway... I am getting the value printed "Debug 1" but not the "Debug 2" and neither the "Debug 3"!!

Any guesses whats causing the problem?

Thanks
Tanmoy


Thanks Ulf for replying.

On the more easier note, I have been trying to render this 3D barchart in channel using JSP Provider.
I have put the code below that I have written in the JSP. The code contains the hard coded values only.
This code works good when run in the local tomcat server but doesnt in the portal server. When run in portal as a channel it gives an error: "Content not available".

I tried to debug and found that the method createBarChart3D() is not getting called but it doesnt throw any exceptions.

Would it been an issue with the img src, it would have created the jpg file atleast which is not happening.

Ulf, hope you are able to understand the problem. Please help.


<%
out.println("Creating the 3D bar chart...");

DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.setValue(7, "Science", "Mike");
dataset.setValue(18, "Science", "Craig");
dataset.setValue(9, "Science", "Casey");
dataset.setValue(6, "Science", "Tanmoy");
dataset.setValue(16, "Science", "Kathy");
dataset.setValue(6, "Science", "Ben");

JFreeChart chart1 = ChartFactory.createBarChart3D("Comparison between Students","Students", "Marks",
dataset, PlotOrientation.VERTICAL, true,true,false);

chart1.setBackgroundPaint(Color.yellow);
chart1.getTitle().setPaint(Color.blue);
CategoryPlot p = chart1.getCategoryPlot();
p.setRangeGridlinePaint(Color.red);

ChartUtilities.saveChartAsJPEG(new File("chart_03March09.jpg"), chart1, 300, 300);

%>
Anybody used JFreeCharts?
I have been trying to use the JFreeCharts for rendering a bar chart in my JSR-168 portlet and deploy in Sun ONE portal. But I havent got success yet. Its not throwing any kind of specific error but the graph is not been getting displayed !!

Can anybody help?

- Tanmoy
Thanks Remko. Probably I'll go for Enthuware.
Anyone out there working on SunONE portlets? I am having problems in using JFreeCharts in portlets.
I'll appreciate your help.

Thanks.
Tanmoy
15 years ago
Which one is good to buy? Whizlab simulator or Enthuware for SCWCD?

-Tanmoy