This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes iframe in struts? help me out... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "iframe in struts? help me out..." Watch "iframe in struts? help me out..." New topic
Author

iframe in struts? help me out...

sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
Hi Ranchers,

earlier before using struts,in my jsp pages for date selection ,i am using date picker

for which i m using iframes.

code like...
------------------------------------------------------------------
<form name="form1" method="post" action="">
<input name="pdob" type="text" class="textborder" size="18" value="<%=

pddto.getDateOfBirth()%>" tabindex="14">


<div

align="center"><a href="javascript:void(0)"

onKlick="if(self.gfPop)gfPop.fPopCalendar(document.form1.pdob);return false;"

HIDEFOCUS><img src="../../images\calbtn.gif" alt="" width="20" height="15" border="0"

align="middle" class="PopcalTrigger"></a></div>

<iframe width=174 height=189 name="gToday:normal:agenda.js"

id="gToday:normal:agenda.js" src="ipopeng.htm" scrolling="no" frameborder="0"

style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;">
</iframe>
</form>

----------------------------
now in struts i am using in this way...
----------------------------------
<html:form method="post" action="/patientRegistration" focus="firstName">
<html:text property="dateOfBirth" size="15" styleClass="formtext-1" disabled="true"/>
<a href="javascript:void(0)"

onKlick="if(self.gfPop)gfPop.fPopCalendar(document.forms[0].dateOfBirth);return

false;" hidefocus><img src="<%=root%>/images/calbtn.gif" alt="Pick Date" width="20"

height="15" border="0" align="middle" class="PopcalTrigger"></a>

<iframe width=174 height=189 name="gToday:normal:agenda.js"

id="gToday:normal:agenda.js" src="ipopeng.htm" scrolling="no" frameborder="0"

style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;">
</iframe></html:form>

------------------------------

what wrong i am doing? can i use iframes in struts?

Help me out...

Thanks
Sreenivas

[ March 26, 2007: Message edited by: sreenivas jeenor ]
[ March 26, 2007: Message edited by: sreenivas jeenor ]
sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
I have solved the above problem.
[ March 26, 2007: Message edited by: sreenivas jeenor ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: iframe in struts? help me out...
 
Similar Threads
Having trouble with javascript ...
movable scroll pane with iframe
how to set position for iframe?
loadrunner complain error on iframe BLOCKED SCRIPT
iframe src='BLOCKED SCRIPT'