Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context sesitive Help

 
Anant Rao
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

our application is built on struts frame work. We have common menu with help as one of the menu field. When Help is clicked it should open the help page (written in html) which contains that respestive file contents.

Can anybody help me how to write help in java or provide
any sample code

Thanks in advace
Infyniti.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a Struts question, yes -- so why not post it in the Struts forum? I will move it there for you.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no magic or rocket science involved in writing help text. Just write the text and convert it to html. Microsoft Word or most any modern word processr will do this. Then on each page, put a link to that portion of the html document that pertains to the current page. If you specify target="_blank" on the link, the help text will open in a new window, rather that overwriting the current window. If you want to control the size and position of the help window, you can use the javaScript window.open() method.
 
Anant Rao
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. But...

I am using a common menu at the navigational bar with Help as Hyperlink. The help files (html pages) are also created.

Now the problem if i am at ProjectDescription page and click at Help it should display me help page related to the ProjectDescription. I am using a Dtree with folders and subfolders.
If I test it independentely i use an url
http://localhost:9080/SampleStaticWeb/index.htm?page=projectDesc.htm

For the Help Hyperlink I have used a JavaScript
window.open("http://"+"<%=request.getServerName()%>"+":"+"<%=request.getServerPort()%>"+"/SampleStaticWeb" );
}

so, How can I pass an id or some value to the url so that it display that particular page.

Regards
Infyniti.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic