Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Scriptlets cannot use inside the tabs, html:link problem

Sony Thomas

2006-03-07

Replies:

Hi friends,

I have a problem in displaying a link. I am using tabs in one of my
jsp's. I have a link which is a property in my form bean.


<%
  TaskForm taskForm = (TaskForm) request.getAttribute("TaskForm");
  String *objectLink *= taskForm.getObjectLink();
%>
    <p align="right">
       <logic:notEmpty name="TaskForm" property="objectLink" >
          <html:link action="<%=*objectLink*%>"><bean:write
name="TaskForm" property="objectClassName" />:<bean:write
name="TaskForm" property="objectName" /></html:link>
       </logic:notEmpty>
    </p>


The above code is working. But this is outside the tabs. When I take
inside the tab it is throwing an error. The problem is I can't use
scriptlets.
<% %> inside the tab.

So I have my link value in the TaskForm, ie is my ActionForm. Is there
is any way to place the objectLink value in the form, inside the
<html:link action="">

<%=*objectLink*%> I cannot use this. Some other ways ?????? Please give
some guidance.





Thanks in advance,


Sony





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.