Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Front Man and Maven

 
Vitor Hugo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WEB-INF, not web-inf.
 
Vitor Hugo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic