aspose file tools*
The moose likes Other Application Frameworks and the fly likes Front Man and Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Front Man and Maven" Watch "Front Man and Maven" New topic
Author

Front Man and Maven

Vitor Hugo
Greenhorn

Joined: May 25, 2013
Posts: 7
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

Joined: Jan 10, 2002
Posts: 61413
    
  67

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vitor Hugo
Greenhorn

Joined: May 25, 2013
Posts: 7
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

Joined: Jan 10, 2002
Posts: 61413
    
  67

WEB-INF, not web-inf.
Vitor Hugo
Greenhorn

Joined: May 25, 2013
Posts: 7


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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Front Man and Maven