• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

pointing HTML link to JSP page

 
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a site with html pages that I want to now set up as jsp pages. I tried creating symbolic links from the html name to the equivalent jsp page. This doesn't work because the browser doesn't know that it needs to handle the page as a jsp page since the URL doesn't have a JSP extension. Is there anyway I can go about linking the two without refreshing the html page?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems like either you do not have a JSP engine, or you didn't tell the webserver passing jsp file to JSP engine.
If your html page has no jsp involved then why would you want to change to JSP file?
 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jsp is involved and I do have a jsp engine. I just need to redirect the user somehow when they put in a html url to a page containing JSP. checkout http://www.cleanlust.com/guestbook.jsp then check out http://www.cleanlust.com/guestbook.html. One is treated as jsp while the other isn't. guestbook.html is a symbolic link to guestbook.jsp but they aren't handled the same way because of the URL entered..
 
Li Yi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry misunderstood your question, if you are trying to redirect index.html to index.jsp, instead of building symbolic link, just do this in index.html:
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=index.jsp">
The index.html would be something like this:
<html>
<head>
<title></title>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=index.jsp">
</head>
<body>
</body>
</html>
 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay now in the initial question I asked "Is there anyway I can go about linking the two without refreshing the html page?
". You just showed me how to do this by refreshing the html page. I know this but I guess there's no other way. Thanks for trying.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using frames maybe? If it adds any sense...
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think maybe you're looking for maybe mapping certain requests?

In web.xml, there are a few servlet mappings. I know that iPlanet also has this. In theory, you should be able to map any kind of request based on very simple filtering (think DOS *) to any one of number of services.. eg: you should be able to map any request that looks like: http://localhost:8080/Test*.xyz to invoke your servlet runner, and also, you *should* be able to map certain directories to serve up *.html as if they were *.jsp

So... maybe look at this?
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic