Maruli Lee

Greenhorn
+ Follow
since Dec 09, 2004
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 Maruli Lee

I am developing a webservice using Restlet, Spring & Hibernate using JBoss 9.1.0 (EAP 6.4). After starting up the service and navigate to http://localhost:9090/fwd-PMAP/pmap/client/1/campaign/1/staffCat/EXA1(A)/isp/10 I will get java.lang.IncompatibleClassChangeError. I've been stuck with this error for 3 weeks now. Hope someone can figure out what's wrong and point me in the right direction.

Entity manager class


The application class


The resource class


DAO


DAO Implement


POM


Error
6 years ago
I've written a simple reporting application which will generate a report in Excel format. Upon completion the page (ReportList.jsp) will then forward a URL to another page (ReportSuccess.jsp) where user have to right click and choose "Save as" to retrieve the report.

On the development environment (XP SP2 with MS Office installed) there is no problem encountered. However, when I ported over the codes to the server (Windows Server 2003 with Open Office installed), when user right click and "Save as" the type is changed to HTML by default.

I've set the file association of .XLS files to be opened by Calc but still that does not solve it. Any other idea?

Additional info: When I right click on the link to view the properties it showed up correctly as "http://<myIP>:8185/SnetReport/REPORT/Gymboree.xls"
14 years ago
JSP
I have modified my code to avoid using OutputStream since it will cause a lot of problem. Now my modified code looks like this:



After I ran through this code my JSP page will refresh and show me this screen:



In addition, Tomcat shows following message:

Nov 29, 2007 10:44:38 AM org.apache.jasper.runtime.PageContextImpl release
WARNING: Internal error flushing the buffer in release()
14 years ago
JSP
No no no. The codes are within the JSP tags <% %>

Actually my JSP will be calling a Java program which will generate a report in Excel (Using JExcel API). After the report is created it will be stored in C:\tomcat\webapps\SnetReport\REPORT

What I am trying to do is to pop up a save file dialog box so that the user can retrieve the file from the web instead of having to go into the folder to get it manually.
14 years ago
JSP
Hi Ben,

It's in JSP, that's why I posted it under the JSP forum.

Additional info, this chunck of codes are embedded within

<form name="frm" method="POST">
//Code goes here
</form>
[ November 27, 2007: Message edited by: Maruli Lee ]
14 years ago
JSP
I had a previous program which is working fine so I just copied the chunk of code and paste it on the new program which I am building. Basically my program will generate a report using JExcel API and then I will try to display it on the web so that user can Open/Save/Cancel it (the normal IE notification window). Furthermore, there is no error message on the tomcat log.



[ November 27, 2007: Message edited by: Maruli Lee ]
[ November 27, 2007: Message edited by: Bear Bibeault ]
14 years ago
JSP
Stuart Ash: No, this is not a homework. This is the last part of a project I am working on (report generation)

Thomas Drew: Thanx for the link. Actually, I am using that API for my report generation.

Jesper de Jong:
Input String is:


Expected Output is:


Executed Output is:


P.S: Results are based on int iAllowedChar = 138

[ November 21, 2005: Message edited by: Maruli Lee ]

[ November 21, 2005: Message edited by: Maruli Lee ]
[ November 21, 2005: Message edited by: Maruli Lee ]
16 years ago
Dear Java programmer,

I am building a string manipulator function in java. A list of long string will be sliced into a few parts before adding them into excel's cell.

Basically, I have defined the width of the cell in the excel template that i created. A cell will be able to show up to 160 characters, the 161st character would be shown on the next row

However there are a few rules:
1. If there is a carriage return, the next string after it will be put in the next row.
2. If the 160th character is part of a word, that word should be put in the next row. For example: "Manipulation" and the 160th char is "p", the whole word Manipulation will be inserted into the next row.

I have wrote the code but it is still not perfect yet. Anyone who can help me to correct it?

16 years ago
Dear Tomcat users,

I'm developing a JSP application with MS SQL as the database. During the process of certain pages the tomcat suddenly just crash and the application comes to a halt. The crash didn't happen on just that pages, it can happen on any page in the application and it happen intermittently.

Does anyone has any idea what i should check on in order to combat this?

P.S: I am running on Tomcat 4.1.29 and Windows XP SP2

Regards,
Mar
[ January 20, 2005: Message edited by: Maruli Lee ]
17 years ago
Hi guys,

Hashtable solved my problems. Neways, thanx for all of your suggestion. Really appreciate that.
17 years ago
JSP
My apologies for not describing the matter well enough. Here it is with more details.

What i want to establish is:
===========================================================================
I have a .java file which establish connection to the database, retrieve data and store them into a Result Set.

Over to the JSP page, I would like to use this Result Set for comparison. Basically i am doing a translation from English to Other language. If there is a text "Password" on the login page, I have to get the text "Password" and look for it in the database, retrieve the translated words and displays it on the page.
===========================================================================

I have tried doing that by opening up the result set each time i need to translate (recalling the function in the .java file). However, the page loads much slower and therefore i would like to try other alternative.
17 years ago
JSP
Dear Java programmers,

I just started my first project on java and there are so many questions i would like to know the answer. However, the main priority is whether it is possible to create a public result set which is shared by all the JSP pages.

Regards,
Mar
17 years ago
JSP