Kevin Zhang

Greenhorn
+ Follow
since Dec 09, 2008
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 Kevin Zhang

Hi

I'm looking for an open source which can be used to build a micro blog application as twitter.

It should be Java based.

Any idea?

Kevin Zhang
Menus can be defined in an XML file and displayed through the use of JSP tags.

I tried struts-menu. But it doesn't work well with Spring MVC

Any idea?
14 years ago
Hi, there

Actually I'm looking for an Open Source Automated testing tool. Something like winrunner or QTP , but it should be open source.

Any idea?


Kevin Z
14 years ago

Ulf Dittmer wrote:You're in luck - an article in the JavaRanch Journal covered this.



Thanks, Ulf

I found the free solution is like "IP to country". What I really want is "IP to city".

For example, I want to tell the user is from NY according to his/her IP address.

BTW, Is there any vendor solution for this issue?

kevin

14 years ago
Hi, there

I'm developing a location based service app. One function is to provide local information based on user's current area.

My question is :

How to get user's location with user's IP address? Any Java APIs ?


Kevin Z
14 years ago
I need to display a pdf document within a frame in a JSP page.

In this JSP page, the left frame is a navigation menu.

The right frame is pdf content.

I use struts 1.3 and tiles to implement frames.

To generate pdf ,I use itext.

Here is the sample code

public ActionForward doGenerateLeterPDF(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse response) throws WebException {
try{
Document document = new Document();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfWriter writer = PdfWriter.getInstance(document, baos);
document.open();
document.add(new Paragraph("Hello World"));
document.close();

response.setContentType("application/pdf");
response.setContentLength(baos.size());
ServletOutputStream out = response.getOutputStream();
baos.writeTo(out);
}catch(Exception e)
{
logger.error("Exception: " + e);

}

return null;

}

However, after I execute this action class, the pdf displayed in full screen

My request is pdf content only staying in one frame

Any clues on how to implement this?

Thanks,
15 years ago