RE: Help with framesets

2003-11-04 Thread Jose Ramon Diaz

 I think the framesStruts question is a bit more complicated. I write here
what I told in another message several days ago. (nobody tells me what they
think... so I continue posting it... :) if you use frames, please tell me
what you think)
 Imagine if one action may load the same frame set but you have to  load
hundred of different pages inside each frame.

 We use Frames in our application. We have had this problem a we use
different approach.
 We suppose the form data is ONLY needed for the action, so the action
executes and change the model as needed. The action decides which is the
next page, and if it can have frames it sets a variable next in session,
which indicates what the frames that must be loades in this way:

 Every frame in frameset is redirected to an special action frames.do with
two parameters: the place where the frame is loaded and the next variable.
For example:

frameset ID=vis cols=261,* border=0 framespacing=1
frame name=bottomLeft
src=frames.do?position=frameBottomaction=session:attribute
name=next/
frame name=bottomRight
src=frames.do?position=frameTopaction=session:attribute name=next/
/frameset

  And we have implemented the frames.do action to know which JSP must be
loaded, with parameters position and next. In fact, the page that must be
loaded is written in struts-config.xml in this way:

   action path=/frames type=package.FramesAction name=framesForm
scope=request
  forward name=frameTop-next1 contextRelative=true
path=/WEB-INF/jsp/jsp1.jsp/
  forward name=frameTop-next2 contextRelative=true
path=/WEB-INF/jsp/jsp2.jsp/c



So the frames.do makes a forward to the String created with position+next
(the two parameter of frames.do) and we can establish the JSP in the xml
file...

   Regards

 Jose R. Diaz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with framesets

2003-11-03 Thread javen fang
your frames have names: header / left / right

so when you action mapping, you may use target tag.

Example, if left , an action is a query data,and view
it in right,just:

target = right.   

form and href both have target attribute.

Good luck.
javen


--- Vijay Kandy [EMAIL PROTECTED] wrote:
 Hello,
 
 Could some one point me to a frameset based web
 application or war file? I
 am having trouble understanding the flow in a
 frameset situation. I am
 trying to redesign an existing non struts based
 webapp. The current layout
 is that there is frameset within frameset containing
 menu and content
 area as frames, like so:
 
 frameset rows=72, 100% border=1 framespacing=0
 topmargin=0
 leftmargin=0 marginheight=0 marginwidth=0
html:frame frameborder=1 frameName=header
 scrolling=no noresize
 action=header.do/
frameset cols=147, * framespacing=0 border=0
 frameborder=0
   html:frame frameborder=1 frameName=left
 action=menu.do/
   html:frame frameborder=1 frameName=right
 action=content.do/
/frameset
 /frameset
 
 I am not sure how to forward actions now. I will be
 grateful for any help.
 
 -Vijay 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with framesets

2003-11-03 Thread Rajat Pandit
http://localhost:8080/struts-documentation/userGuide/struts-html.html#link
in the html:link ... use the target attribute.
quote
target - The window target in which the resource requested by this 
hyperlink will be displayed, for example in a framed presentation.
(RT EXPR)

/quote

in your case target=left|right|put_your_frame_name_here
Vijay Kandy wrote:
Hello,

Could some one point me to a frameset based web application or war file? I
am having trouble understanding the flow in a frameset situation. I am
trying to redesign an existing non struts based webapp. The current layout
is that there is frameset within frameset containing menu and content
area as frames, like so:
frameset rows=72, 100% border=1 framespacing=0 topmargin=0
leftmargin=0 marginheight=0 marginwidth=0
   html:frame frameborder=1 frameName=header scrolling=no noresize
action=header.do/
   frameset cols=147, * framespacing=0 border=0 frameborder=0
  html:frame frameborder=1 frameName=left action=menu.do/
  html:frame frameborder=1 frameName=right action=content.do/
   /frameset
/frameset
I am not sure how to forward actions now. I will be grateful for any help.

-Vijay 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--

Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Help with framesets

2003-11-03 Thread Vijay Kandy
Javen,

Thank you for your response. So you are saying action tag in
struts-config.xml has a target attribute or does it go in the JSP? I
looked in the struts-config.dtd but couldnt find target. 

If its not too much to ask, could you explain with a sample action?

--Vijay

-Original Message-
From: javen fang [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:16 AM
To: Struts Users Mailing List
Subject: Re: Help with framesets


your frames have names: header / left / right

so when you action mapping, you may use target tag.

Example, if left , an action is a query data,and view
it in right,just:

target = right.   

form and href both have target attribute.

Good luck.
javen


--- Vijay Kandy [EMAIL PROTECTED] wrote:
 Hello,
 
 Could some one point me to a frameset based web
 application or war file? I
 am having trouble understanding the flow in a
 frameset situation. I am
 trying to redesign an existing non struts based
 webapp. The current layout
 is that there is frameset within frameset containing
 menu and content
 area as frames, like so:
 
 frameset rows=72, 100% border=1 framespacing=0
 topmargin=0
 leftmargin=0 marginheight=0 marginwidth=0
html:frame frameborder=1 frameName=header
 scrolling=no noresize
 action=header.do/
frameset cols=147, * framespacing=0 border=0
 frameborder=0
   html:frame frameborder=1 frameName=left
 action=menu.do/
   html:frame frameborder=1 frameName=right
 action=content.do/
/frameset
 /frameset
 
 I am not sure how to forward actions now. I will be
 grateful for any help.
 
 -Vijay 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help with framesets

2003-11-03 Thread Vijay Kandy
Thank you! I understand now.

-Vijay

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:08 AM
To: Struts Users Mailing List
Subject: Re: Help with framesets


http://localhost:8080/struts-documentation/userGuide/struts-html.html#link
in the html:link ... use the target attribute.
quote

target - The window target in which the resource requested by this 
hyperlink will be displayed, for example in a framed presentation.
(RT EXPR)

/quote

in your case target=left|right|put_your_frame_name_here
Vijay Kandy wrote:

 Hello,
 
 Could some one point me to a frameset based web application or war file? I
 am having trouble understanding the flow in a frameset situation. I am
 trying to redesign an existing non struts based webapp. The current layout
 is that there is frameset within frameset containing menu and content
 area as frames, like so:
 
 frameset rows=72, 100% border=1 framespacing=0 topmargin=0
 leftmargin=0 marginheight=0 marginwidth=0
html:frame frameborder=1 frameName=header scrolling=no noresize
 action=header.do/
frameset cols=147, * framespacing=0 border=0 frameborder=0
   html:frame frameborder=1 frameName=left action=menu.do/
   html:frame frameborder=1 frameName=right action=content.do/
/frameset
 /frameset
 
 I am not sure how to forward actions now. I will be grateful for any help.
 
 -Vijay 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 


Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help with framesets

2003-11-03 Thread javen fang
left have a query:

html:link action=customer.do?area=china
target=rigth/

then view the result in the rigth content frame.

javen


--- Vijay Kandy [EMAIL PROTECTED] wrote:
 Javen,
 
 Thank you for your response. So you are saying
 action tag in
 struts-config.xml has a target attribute or does
 it go in the JSP? I
 looked in the struts-config.dtd but couldnt find
 target. 
 
 If its not too much to ask, could you explain with a
 sample action?
 
 --Vijay
 
 -Original Message-
 From: javen fang [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 11:16 AM
 To: Struts Users Mailing List
 Subject: Re: Help with framesets
 
 
 your frames have names: header / left / right
 
 so when you action mapping, you may use target tag.
 
 Example, if left , an action is a query data,and
 view
 it in right,just:
 
 target = right.   
 
 form and href both have target attribute.
 
 Good luck.
 javen
 
 
 --- Vijay Kandy [EMAIL PROTECTED] wrote:
  Hello,
  
  Could some one point me to a frameset based web
  application or war file? I
  am having trouble understanding the flow in a
  frameset situation. I am
  trying to redesign an existing non struts based
  webapp. The current layout
  is that there is frameset within frameset
 containing
  menu and content
  area as frames, like so:
  
  frameset rows=72, 100% border=1
 framespacing=0
  topmargin=0
  leftmargin=0 marginheight=0 marginwidth=0
 html:frame frameborder=1 frameName=header
  scrolling=no noresize
  action=header.do/
 frameset cols=147, * framespacing=0 border=0
  frameborder=0
html:frame frameborder=1 frameName=left
  action=menu.do/
html:frame frameborder=1
 frameName=right
  action=content.do/
 /frameset
  /frameset
  
  I am not sure how to forward actions now. I will
 be
  grateful for any help.
  
  -Vijay 
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with framesets

2003-11-03 Thread Jim Theodoridis
Hello!

Is it possible to work with framesets with tiles?

I want to have one action and the data from that action displays in
different ways from 2 or more frame sets

I ve tried to work with frameLayout of tiles paradigms but
only 1 frame works well. 

- Original Message - 
From: javen fang [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 6:44 PM
Subject: RE: Help with framesets


 left have a query:
 
 html:link action=customer.do?area=china
 target=rigth/
 
 then view the result in the rigth content frame.
 
 javen
 
 
 --- Vijay Kandy [EMAIL PROTECTED] wrote:
  Javen,
  
  Thank you for your response. So you are saying
  action tag in
  struts-config.xml has a target attribute or does
  it go in the JSP? I
  looked in the struts-config.dtd but couldnt find
  target. 
  
  If its not too much to ask, could you explain with a
  sample action?
  
  --Vijay
  
  -Original Message-
  From: javen fang [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 03, 2003 11:16 AM
  To: Struts Users Mailing List
  Subject: Re: Help with framesets
  
  
  your frames have names: header / left / right
  
  so when you action mapping, you may use target tag.
  
  Example, if left , an action is a query data,and
  view
  it in right,just:
  
  target = right.   
  
  form and href both have target attribute.
  
  Good luck.
  javen
  
  
  --- Vijay Kandy [EMAIL PROTECTED] wrote:
   Hello,
   
   Could some one point me to a frameset based web
   application or war file? I
   am having trouble understanding the flow in a
   frameset situation. I am
   trying to redesign an existing non struts based
   webapp. The current layout
   is that there is frameset within frameset
  containing
   menu and content
   area as frames, like so:
   
   frameset rows=72, 100% border=1
  framespacing=0
   topmargin=0
   leftmargin=0 marginheight=0 marginwidth=0
  html:frame frameborder=1 frameName=header
   scrolling=no noresize
   action=header.do/
  frameset cols=147, * framespacing=0 border=0
   frameborder=0
 html:frame frameborder=1 frameName=left
   action=menu.do/
 html:frame frameborder=1
  frameName=right
   action=content.do/
  /frameset
   /frameset
   
   I am not sure how to forward actions now. I will
  be
   grateful for any help.
   
   -Vijay 
   
  
 
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]