Announcement Announcement Module
No announcement yet.
access diferent scopes from .jsp files Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • access diferent scopes from .jsp files

    Hi, i have a very simple question, i have the following view state, that is part of a subflow.
    When the state is entered i execute a pojo action, and want the result to be exposed to the .jsp.
    At first the .jsp coludn't acces the method-result (${expediente}) , as it was request scoped.
    Then i changed the scope to flow, and i works.
    What is the diference between diferents scope to the .jsp? And how do you access the diferent scopes in the jsp?


    		<input-attribute name="idExpediente"/>
    		<input-attribute name="unidad"/>
    	<start-state idref="verExpediente" />
    	<view-state id="verExpediente" view="verExpediente">
    				<bean-action bean="moverExpedienteFacade" method="getExpediente">
    						<argument expression = "flowScope.idExpediente" parameter-type="long"/>
    					<method-result name="expediente" scope="flow"/>

  • #2
    You can access request scoped variables from jsp's.

    Problem is that you are putting a request scoped variable in the entry action, which get's lost during the redirect.

    Use Flash scope if you want to 'survive' the redirect, or do put the request scoped variable on the scope during render actions.


    • #3
      I tried with different scopes an you are right!
      Thanks for you answer