Hi,
Thank you very much.
I could not get the same context by adding my application name to the
path. But as you said, i have my actions scope is "request". The same scope
i am using for all the pages. All are working fine. Only with the frames, i
am not getting the same session.. Can you please explain me with samples,
how your stuff is working..
thanks a lot.
"Mouratidis,
Georg" To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
<GMouratidis@h cc: (bcc: Kamal Konduru/AFS/CAPITAL)
eiler.com> Subject: RE: Struts with frames problem
11/20/2002
12:18 AM
Please respond
to "Struts
Users Mailing
List"
HI Kanal,
if you want do call an action from your frameset you have to use the
following syntax:
<frame name="treeframe" scrolling="Yes" noresize src
="/YourApplicationName/frame1.do" >
Please pay attention to the src-Attribut.
You can ommit the ApplicationName in the src attribut only the in action
attribute in the <html:form>.
You also have to be aware of the scope attribut in the appropriate action
in struts-config.xml.
If you use scope="request" then you will get new instances.
Be aware of to forward to your jsps, not to redirect if you want to keep
your request-parameters.
I have many frames in my application at they work all well.
The main think is to think in "actions".
i hope i could help you.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 19. November 2002 21:33
To: 'Struts Users Mailing List'
Subject: Struts with frames problem
HI,
I have problem with using frames in struts. I am using a frameset which
has two frames, and i am including src for example
frameset rows="80,*" frameborder="NO" border="0" framespacing="0" onResize
="if (navigator.family == 'nn4') window.location.reload()">
<frame name="topFrame" scrolling="NO" noresize src="Top.jsp" >
<frameset cols="190,*" frameborder="NO" border="1" framespacing="0" rows
="*">
<frame name="treeframe" scrolling="Yes" noresize src ="frame1.do" >
<frame name="basefrm" src ="frame2.do">
</frameset>
</frameset>
In the frame1.do, i am calling frame1.jsp., in frame2.do i am calling
frame2.jsp. These are in same direcotry. When i see this in action servlet.
These two calls creating new sessions, rather taking from the existing
session.
Other than frames, other includes are not creating the sessions.
it is creating lot of problems in my application. If anyone came across,
please help me.
thanks in advance.
kamal
--
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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>