0

my XML web is configured as follow web.xml, i don't even know why it is giving me that error,i would like to refresh my layout.tml page after that 1 minute so i added to my layout this : meta obviously tapestry doesn't know page Context. Do you have any ideas ?

M.Simon
  • 11
  • 9
  • The web.xml screenshot shows an XML validation error but not the details. What message appears when you hover over the error? – Bob Harner Dec 10 '15 at 00:52
  • The error occurred when i added the session-config: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet- mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env- entry*,ejb-ref*,ejb-local-ref*)". – M.Simon Dec 10 '15 at 02:57
  • the error was because of i removed it and replace by : – M.Simon Dec 10 '15 at 03:27

1 Answers1

0

To get access to a session object in Tapestry, just @Inject request and call request.getSession()). Do this in the Java class, perhaps in a getMaxInactiveInterval() method. See See http://jumpstart.doublenegative.com.au/jumpstart/examples/state/displaysessioncontents for an example.

Bob Harner
  • 757
  • 4
  • 6