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

serve html

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello
I have an object in a session that I am iterating over the members and printing out in a <c:for each>. It works fine except:
One member is a path to a simple html file. I cant create a properly formed href for that file with either c:url or html:link. Either it just gives me the string of the file location or it gives a very malformed url.
Q1: What is the proper syntax to create an href link to the html file that, presently, is on the same system as the server?
Q2. Do I have to do this as a URI object to properly render the link? How? tia.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Nothing to do with JSP, moving to the HTML forum.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by Bear Bibeault:



Hello
This is what I did and it still was malformed.
<td><a href="${results.reviewPathStr}">TheLink </a></td>
It was just the path name. It didnt have the http://localhost:8083. Only the "f:\path\to\file. I just want to be able to serve it to the browser as if I opened it directly.

Also what should I do if I want this to be able to source and serve this file from another server in another domain? Is that the URI object? tia
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Your question was not clear. Since it's the URL generation you have a problem with, I'll close this topic and reopen the JSP topic. Please post there with more information on how you are generating the URL.
 
    Bookmark Topic Watch Topic
  • New Topic