• 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

Pass parameter to HTML page

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
How can I pass a parameter to an HTML page?

Description:
I want to start an HTML page from Windows--> RUN
as "vikash.html arg1"

to open vikash.html page where i can fetch the parameter arg1 and work on it.

Alternative simple approach is to make another home page where i read a parameter and pass on to this vikash.html page... but any other way out to eliminate need of this extra page??
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTML has no such notion as command line parameters.

Alternative simple approach is to make another home page where i read a parameter and pass on to this vikash.html page...


That sound like a good alternative. You can make a request to a jsp file, passing it request parameters.
Like http://localhost:8080/myapp/vikash.jsp?arg1=hello.

but any other way out to eliminate need of this extra page??


I don't think so.
 
Do not set lab on fire. Or 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