The contents (arrayList) is shown in the details.jsp, even though I have directed it to searchList.jsp, as given by the "else" section of my ActionClass:
The Action looks like this: public class TopicAction extends ViewAction {
Now the target="basefrm" comes from: <iframe id=basefrm name=basefrm width=100% height=100% frameborder=0 src="<%= contextPath %>/pages/details.jsp"></iframe>
Thus the target was always set to basefrm and I see the result of the link on the wrong portion of the screen.
Can anybody please help me as to how to dynamically set this "target" parameter in the Link tag, so that if forward is "showSearchListdata" the target is "help_frame" and if the forward is "showSearchData" the target should be "basefrm". Will a javascript help in this case? Also, how will I let the link know what forward it is set to?
Please help me.
Thanks in advance, ~E
Bhaskar Reddy
Ranch Hand
Joined: Dec 17, 2002
Posts: 52
posted
0
In stead of
you could try something like this -
and set it using <html-el:link..> tag like this...
You could also set the <html-el:link.. > action dynamically in a similar fashion... [ August 28, 2007: Message edited by: Bhaskar Reddy ]
sumita mukherjee
Greenhorn
Joined: Aug 27, 2007
Posts: 22
posted
0
This helped. Thanks a lot!!:-)
~E
Bhaskar Reddy
Ranch Hand
Joined: Dec 17, 2002
Posts: 52
posted
0
Nice to know someone you helped could gain from it!!