Solved

How to get visotr ip address in web devlopment using struts j2ee project

Posted on 2011-02-16
2
554 Views
Last Modified: 2012-05-11
I want to get visitor ip address into struts action class to save into the DB.

Provide me some sample code .
0
Comment
Question by:bowebell
2 Comments
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 500 total points
ID: 34913576
java.net.InetAddress.getLocalHost().getHostAddress(); in java u can use this in ur JSP
0
 

Author Closing Comment

by:bowebell
ID: 34916380
I USED THE request.getremoteAddress() and solved the problem
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bigHeights  challenge 13 62
strCopies  challenge 17 87
java 8 lambda expresssions exception handling 3 90
starter POM and spring-boot-starter,  spring-boot-web 2 54
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question