struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harshal D <>
Subject RE: Submitting to the same JSP
Date Fri, 13 Dec 2002 20:27:46 GMT

Yes I am doing:
JSP-1 -> Action-1 -> JSP-1
Action handler class:

ProductVO pv = new com.openstack.struts.testapp.ProductVO();


request.setAttribute("pv", pv);


<logic:present parameter="pv">

<bean:define id="pv" name ="pv" scope="request" type="com.openstack.struts.testapp.ProductVO"/>




And then 



<logic:present parameter="pv">

<h3><bean:write name="pv" property="productName"/></h3>

<h3><bean:write name="pv" property="productID"/></h3>





The action forwards to the same page but the ProductVO  is NOT defined as a form bean.


Where am I going wrong ?

 Sri Sankaran <> wrote:Can you please elaborate? Are you saying
that the following works

JSP-1 -> Action-1 -> JSP-2


JSP-1 -> Action-1 -> JSP-1

doesn't. Make sure that you are referring to the bean with the same id under which you have
saved it (to request/session). Can you post the relevant JSP (both JSP-1 and JSP-2), the action
class (how the bean being persisted, how the user is forwarded/re-directed to next view) and
the struts-config (the action mapping).

Please post only the relevant portions.


-----Original Message-----
From: Harshal D [] 
Sent: Thursday, December 12, 2002 11:07 PM
Subject: Submitting to the same JSP 

In my app when I create a bean in action class and display it in the next JSP (forwarded)
it works.

But if I try to display in the same JSP (at the bottom of original form) - it does not work,

I am using tags to make sure bean is created (submit has happened) before displaying its properties.
But that part never gets displayed.

Any thoughts ?

- Harshal.

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

To unsubscribe, e-mail: 
For additional commands, e-mail: 

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message