This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes FrontMan - Getting GET Parameters 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 - Getting GET Parameters" Watch "FrontMan - Getting GET Parameters" New topic
Author

FrontMan - Getting GET Parameters

Michael Lynch
Greenhorn

Joined: Dec 21, 2011
Posts: 5
I'm trying to simply retrieve a GET parameter in a URL, and I can't seem to figure out how it's done using FrontMan.

I've got a link on a page to http://localhost:8888/command/ViewPool?id=98f97c30-398b-11e1-b86c-0800200c9a66

In an attempt to retrieve the value of id, I make the following call:



var is always null, regardless of which ScopedContext enum value I use, so I don't think that's the problem. I would assume that GET request parameters should be in the REQUEST ScopedContext. In any case, what am I doing wrong? Why can't I get the value?

Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Parameters are not scoped variables. You get parameters from the request instance with getParameter() just like anywhere else. Remember, the whole idea of FrontMan is to help you do the tough stuff more easily -- not to replace the standard ways of doing things with just another proprietary way of doing it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: FrontMan - Getting GET Parameters
 
It's not a secret anymore!