Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pass parameter to HTML page

 
Vikash Agarwal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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??
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic