• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Frontman: how to reference a boring normal HTML page

 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • 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
  •  
    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").
     
    Sheriff
    Posts: 67269
    170
    Mac Mac OS X IntelliJ IDE jQuery Java
    • 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: 4686
    7
    Mac OS X VI Editor Linux
    • 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
    Sheriff
    Posts: 67269
    170
    Mac Mac OS X IntelliJ IDE jQuery Java
    • 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.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!