Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Frontman2 HttpSession

 
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
*
*/

 
Marshal
Posts: 67293
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67293
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67293
170
Mac Mac OS X IntelliJ IDE jQuery Java
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!