aspose file tools*
The moose likes JSP and the fly likes Create Web pages Dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Create Web pages Dynamically" Watch "Create Web pages Dynamically" New topic
Author

Create Web pages Dynamically

Anuj Kalra
Greenhorn

Joined: Apr 17, 2014
Posts: 10

I have a random list of links whose title I am getting from the database
I'd like to catch one of these links when the user clicks one of them and process it from a single jsp file.
Possible?



For eg: when user clicks one of these links, can I dynamically call a web page that fetches information from the click and gets values from a database and insert it on JSP page


[bestsellers.JPG]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

Yes, but not with JSP. Interacting with the page after it's displayed in the browser is the realm of JavaScript. You'd use Ajax to do what you are asking about.

Please read this article to understand JSP and why it won't help you with this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

Also please read this JspFaq entry about your use of script lets in your JSPs.
Anuj Kalra
Greenhorn

Joined: Apr 17, 2014
Posts: 10

Bear Bibeault wrote:Also please read this JspFaq entry about your use of script lets in your JSPs.


Thanks for your quick reply.

I started learning servlets and JSPs over a month ago so I have only the basic knowledge of servlets.
I want to read, understand and start writing my code using JSTL and EL but these were not explained to us when I took a course for Java.

In fact, the instructor coded the whole JSP with scriplets.(Though she did tell us it was a bad practice)

I started reading Head First Servlets and JSP by Kathy Seirra by honestly, I was a bit intimidated by the book - its really tough.

It would be so kind of you to prescribe some reading material??

I went to tutorials point (for JSTL) but I just cannot seem to install the jar files that are required.

Thanks for your help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create Web pages Dynamically