Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Frontman: how to reference a boring normal HTML page

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add a simple HTML page for the "about" link.

Something like:

  • about the company




    org.bibeault.frontman.CommandNotFoundException: Command with verb about.html not found

    How do I tell Frontman that this is a simple HTML href and not one that needs special processing?

    Thanks
    Pat
  •  
    D. Ogranos
    Ranch Hand
    Posts: 214
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Well you wouldn't put simple HTML pages into the WEB-INF/views folder I guess, but instead somewhere at the top of your .war file structure. Then you can simply address it with a relative path (to your context path). That's what I would do probably.

    If you really want to put it into the WEB-INF/views folder too, I suppose you need to go through a command to display the page, as you can't access pages under WEB-INF directly. In this case your command can do a context.forward("/WEB-INF/views/.../mypage.html").
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64843
    86
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Right, because an HTML page needs no command controller, I'd just place it outside WEB-INF and use a direct URL to it.
     
    Pat Farrell
    Rancher
    Posts: 4678
    7
    Linux Mac OS X VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Bear Bibeault wrote:Right, because an HTML page needs no command controller, I'd just place it outside WEB-INF and use a direct URL to it.

    Can you be more specific?

    I've got it above the WEB-INF and can't find it.
    Its in a marketing directory, specifically in


    None of these work.





     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64843
    86
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Like any other server-relative reference, the URL should start with the context path.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic