Skip to Content
Former Member
Nov 28, 2006 at 08:16 AM

Retrieving Vector from a bean and display the vector elements in a JSP Page


Hi. ALL..,

i have created JspDynPage that dispaly a Vector data obtained from a bean.

My code is :

  • JspNavigation.jsp****************************


Vector vec = new Vector();

vec = jnBean.getOutput();

int len = vec.length();

for(int i=0;i<=len;i=i+2)


String s = vec.elementAt(i).toString();

String ss = vec.elementAt(i+1).toString();


<hbj:textView id="<%=i%>" text="<%=ss%>" design="HEADER1">






public void doProcessAfterInput() throws PageException


IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();

IPortalComponentContext myContext = request.getComponentContext();

jnBean = new JspNavBean();

((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("jnBean", jnBean);

read myRead =new read();

output = myRead.getMenu();




Vector output = new Vector();

public Vector getOutput()


return this.output;


public void setOutput(Vector output)


this.output = output;




<property name="PrivateSharingReference" value=""/>


<component name="JspNavigation">


<property name="ClassName" value="com.sirapu.JspNavigate.JspNavigation"/>



<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>




I could able to create PAR file but when execute the application, its giving

Portal Runtime Error

An exception occurred while processing a request for :

iView : NewParProject.JspNavigation

Component Name : NewParProject.JspNavigation

Error occurs during the rendering of jsp component.

Exception id: 01:11_28/11/06_0012_7690950

See the details for the exception ID in the log file

Can u plz help me regarding this.

Regards .


Message was edited by:

Eben Metilda