Have you taken a look at any of the user guide or docs? Have you installed/deployed the struts-example.war?
These are excellent samples/examples of doing just this. JM > -----Original Message----- > From: Yaman Kumar [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 12:13 PM > To: [EMAIL PROTECTED] > Subject: Can any one do this? > > > Hi, > Can any one help me out in defining string variables and > assigning the values to them using Jakarta string or bean taglibs. > Or I would be glad if below code converted into tag format > using string,session,bean(jakarta taglibs). > > <html> > <body> > <% > String var1=null; > String var2=""; > String var3; > MyBean mbean = (MyBean) session.getAttribute("MYBEAN"); > if(mbean!=null){ > var1= mbean.getVariable1(); > var2= mbean.getVariable2(); > }else{ > YourBean ybean=(YourBean) session.getAttribute("YOURBEAN"); > var1= ybean.getYourValue1(); > var2= ybean.getYourValue2(); > } > %> > <b> Value1is <%=var1%> </b> > </body> > </html> > > > Many Thanks, > RYK > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

