• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Front Man and Maven

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I'm having trouble understanding front man framework, I have my my web.xml mapped like the docs says:


and two questions:

How do I call the commands from the html? action"commandname" on the forms?
And how do I setup my index page ? I tried doing it with the welcome files list but it does not work...

And also, is it easy to make a template in maven myself to setup projects exactly like this one when I need a new one ? (Im also using eclipselink but thats another story...)

Any input is welcome, thank you.

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vitor Hugo wrote:
How do I call the commands from the html? action"commandname" on the forms?


That depends on how you have configured the path for the servlet, which you did not include.

If you followed conventions, mapping it to /command/*, then the action URL for forms would be:
for the WhateverCommand.

And how do I setup my index page ? I tried doing it with the welcome files list but it does not work...


That has nothing to do with FrontMan. Just make sure that the URL you specify in the deployment descriptor is valid.

And also, is it easy to make a template in maven myself to setup projects exactly like this one when I need a new one ?


I am not a fan of maven so cannot answer this question.
 
Vitor Hugo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much for the quick reply Bear Bibeault,
yes, the mapping is the convention /command/* one, thank you very much...

That has nothing to do with FrontMan. Just make sure that the URL you specify in the deployment descriptor is valid.



I had a feeling that would be the case, but asked anyway because I was putting my index.jsp on the /WEB-INF/pages that I mapped to the views...
Moved it to web-inf only but even then it did not work, but i'll take another look. thanks !!

:EDIT: the web-inf was pure lazyness, it is uppercased as it should be

I am not a fan of maven so cannot answer this question.



Im researching here, and it does not seem to be hard work, any input from a more experienced maven user is welcome.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WEB-INF, not web-inf.
 
Vitor Hugo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


So this is the welcome file and then:



And I have taken it out of the pages but still does not work...

description The requested resource (/mything/) is not available.
description The requested resource (/mything/index.jsp) is not available.



Any idea whats going on?

EDIT: CAN anyone please delete this post? I took it out of the web-inf and it just worked...
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic