• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Frontman2 HttpSession  RSS feed

 
Ranch Hand
Posts: 67
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



// ??? Am I setting up session wrong for frontman ???



/*
* At this point I have two choices to set a session value
* not including - import org.bibeault.frontman.ScopedContext;
*
* It makes me think I should not need -
* import javax.servlet.http.HttpSession;
*
* But, I can not make it work any other way
*
*/

 
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't matter. The session is the session and which you get it is immaterial.
 
Howard Watson
Ranch Hand
Posts: 67
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

// ??? Am I setting up session wrong for frontman ???



So I do need (import javax.servlet.http.HttpSession;)

I thought I was missing something in utilizing Frontman.
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Frontman is a very lightweight addition to, not replacement for, the normal Servlet environment. Everything about the servlet environment stays the same and can be used as normal.
 
Howard Watson
Ranch Hand
Posts: 67
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then it is working as advertised. Thank you for your time.


From doc:

No hiding or getting in the way of how the servlet API works.
Generally usable, but designed with Model 2 applications using scriptless JSP 2 pages in mind.
No required on-page impact: no required declarations, directives or tags.
No unnecessary bells and whistles.

 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!