• 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

Is there anyway to pass the parameters from java class to html page

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one URL and i have to pass some parameters to that URL dynamically. I have those parameters available in a core java class.
I have created some index.html and from there i am trying to redirect to that particular URL. But i do not know how to get the params from java class and pass to index.html.
Can anyone help me on this.

The requirement is, our's is a java standalone application and from there we are displaying URLs in IE browser within our standalone application using Jacozoom tool. We do not have any issues if the URL is static. But when we have to post parameters and if the URL is secure(https), then the problem arises. I tried to using below code. But the problem with this code is i cannot display the urls if it has https protocol. Java is expecting certificate in order to access the URL.
But we wanted to make it generic so that we dont need to keep every certificate in our libraries to access https urls. So we thought of creating index.html where it will redirect to required portal without certificate. Now the problem is it is not asking for any certificate, but how to pass the URL information(URL is dynamic, i should be able to display any https URL) to the html page? Because i have the URL information in my standalone application. how to make a relation between a core java file and a html file.

 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To start with, what is the relation between the java class and the html? Is the java class (and html) on the server? Please TellTheDetails
 
Sri Palem
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The requirement is, our's is a java standalone application and from there we are displaying URLs in IE browser within our standalone application using Jacozoom tool. We do not have any issues if the URL is static. But when we have to post parameters and if the URL is secure(https), then the problem arises. I tried to using below code. But the problem with this code is i cannot display the urls if it has https protocol. Java is expecting certificate in order to access the URL.
But we wanted to make it generic so that we dont need to keep every certificate in our libraries to access https urls. So we thought of creating index.html where it will redirect to required portal without certificate. Now the problem is it is not asking for any certificate, but how to pass the URL information(URL is dynamic, i should be able to display any https URL) to the html page? Because i have the URL information in my standalone application. how to make a relation between a core java file and a html file.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic