1

I am trying to create a browser based application that can access Java Objects that I have created as part of another project:

For example, say I have created a Book Class that contains the parameter author and isbn:

public class Book
{
    public String author;
    public int isbn;
}

and I would like to be able to access say Book.author from an html page.

Would greatly appreciate a link to a tutorial on this type of code integration.

7
  • Can't be done unless your code is on the server. Commented Apr 5, 2011 at 20:02
  • 1
    You already tagged this with jsp ... is there something specific you don't understand? Commented Apr 5, 2011 at 20:04
  • I was told that JSP was the way to go on this, however I cant find a good tutorials that exemplifies this type of information flow Commented Apr 5, 2011 at 20:09
  • JSP = Java server pages. As tjameson says, this is a server thing. Can't really be done on the client. Commented Apr 5, 2011 at 20:11
  • 1
    @user691839 - Use the guide I've provided to setup Tomcat locally. Commented Apr 5, 2011 at 20:15

3 Answers 3

1

Here is a good guide to setting up Tomcat and Eclipse to develop and deploy servelets and Java Server Pages (JSP): http://www.coreservlets.com/Apache-Tomcat-Tutorial/eclipse.html

The tutorial includes importing and testing a sample app, which should show you everything you need.

Good luck.

Sign up to request clarification or add additional context in comments.

Comments

0

For a local solution, you might use an JApplet (more modern version of Applet). Search for tutorials for JApplet. JSP is a server side thing.

Comments

0

If you are an absolute beginner in JSP, take a look at this quick tutorial to get a first impression on the technology: http://www.easywayserver.com/blog/simple-programs-in-jsp/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.