wood burning stoves*
The moose likes Other Application Frameworks and the fly likes Frontman: how to reference a boring normal HTML page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Frontman: how to reference a boring normal HTML page" Watch "Frontman: how to reference a boring normal HTML page" New topic
Author

Frontman: how to reference a boring normal HTML page

Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

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

    Joined: Feb 02, 2009
    Posts: 214
    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

    Joined: Jan 10, 2002
    Posts: 60782
        
      65

    Right, because an HTML page needs no command controller, I'd just place it outside WEB-INF and use a direct URL to it.


    [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
    Pat Farrell
    Rancher

    Joined: Aug 11, 2007
    Posts: 4646
        
        5

    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

    Joined: Jan 10, 2002
    Posts: 60782
        
      65

    Like any other server-relative reference, the URL should start with the context path.
     
    Don't get me started about those stupid light bulbs.
     
    subject: Frontman: how to reference a boring normal HTML page
     
    Similar Threads
    Front Man Examples?
    license question: Bear's Front Man
    Want to use OOP on my website
    FrontMan doesn't call usual bean-style setters
    Spring Requirements