• 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

Url masking

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do i mask the url that is been printed in the print out sheet .

My scernario is that when i take a print out the url of that machine is being printed . Instead of that i need my message to be dispalyed at that position .
How can i do this with java coding ?
Is there any syntax for that ?
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please supply more details of what you are doing.

Question too difficult for us beginners. Moving.
 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you referring to printing a webpage using a browser ??
 
Prashanth Vijayai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
salvin francis im trying to print a report that i have generated . The report that i have generated is using java , after i have generated that

im taking a printout of that report then at the bottom im getting the url as i have mention above .
 
Prashanth Vijayai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
salvin francis im trying to print a report that i have generated . The report that i have generated is using java , after i have generated that

im taking a printout of that report then at the bottom im getting the url as i have mention below.

http://localhost:9005/abc/action/commonlogin.jsp.

 
Sheriff
Posts: 7134
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Prashanth Vijayai wrote:salvin francis im trying to print a report that i have generated . The report that i have generated is using java , after i have generated that

im taking a printout of that report then at the bottom im getting the url as i have mention below.

http://localhost:9005/abc/action/commonlogin.jsp.



It depends on the web browser. Web browser prints the URL of the page, as it appears on the address bar. If you don't like your current url, you can purchase a domain name for your web application site (after the web site is hosted on a server), so it would be printed on that location. In this case, there are nothing to do with Java.

Example:

http://www.yourname.com/action/commonlogin.jsp

 
Prashanth Vijayai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not a web application , It is a desktop application . with out purchase a domain name for my web application site can i customise the

name that is printed in the bottom at the page ....
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So this is a Java desktop application that prints something? If so, shouldn't the printing code be under your control? But if it's a desktop app, where do URLs fit in - does it have an embedded browsing component?
 
salvin francis
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solution:

1. Save yourself the headache and use a Third Party Reporting tool
2. PDFs !!! User can print it in whtever manner he wants to or keep the report as a file backup [no need to cut down trees for paper] !!



I would like to point out:
On one hand you say its a Desktop application, one the other you are referring to JSP. Either your terminologies are mixed up
or, as Ulf Dittmer pointed out:

Your application could be pc based but uses the browser or some component to show the result
or your application is web based (Not a Desktop application).

If you are indeed using a web based alternative, You have no control over the browser's print mechanism [Other than showing print dialog]
You can show the user instructions on how to print the result in his browser, etc.



Happy to help

Salvin Francis
reply
    Bookmark Topic Watch Topic
  • New Topic