Passing value with request.setAttribute does not work in struts 1.3 -


i working in project in struts 1.3. have action in have set variable test. mapping.findforward() redirects page log.jsp. want pass value of test action class jsp page.

in action class have passed follows :

public actionforward execute(actionmapping mapping, actionform form, httpservletrequest request, httpservletresponse response) throws exception {      request.setattribute("test", "hello world!!!");      return mapping.findforward("success");  } 

now in jsp page tried access follows: not print value :

<%    logger logger = logger.getlogger("ipname");    logger.debug("value of test : ");    logger.debug((string)request.getattribute("test")); %> 

how can solve problem ?


Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

python - multiprocessing pool with map -

python - Poor performance of db. inserts using django-mssql -