Hello SERVLET-INTEREST,

hi every body.
i'm a newbie of this mail list.
I'm a web programmer.
sth. bother me for a week.
+====================================+
+              Begin with a framework           +
+====================================+
i've began to learn xml 4 weeks ago.
during this period,a mind was bubble up.
Is that i can use xml to control the web flow?
I use a servlet named [ Main ] to be the only frontend interface.just like j2ee model 
2.
It collected all clients' request and redispatch them to the framework controller
,named Manager.
every request will include a [WWCOMMAND] key to carry the command into framework.
via the WWCOMMAND u can invoke the specified view to display,or invoke the specified 
model to
deal with the request form info.
an Object called Commander will deal with the WWCOMMAND.
Commander parse the WWCOMMAND and then it'll invoke the Context Object to find the 
right View(be a Interface)
or Action(be a Interface) Model through the xml config.
then Commander will newInstance() the View or Action object and invoke the correspond 
method that specified in
xml config file.
+====================================+
+                               Puzzle                   +
+====================================+
it is working know.
but sth. puzzled me.
for Internationalization reason,i have to dump all page to client by a representation 
tool.
[i use vilocity for my representation tool.]
there a page like this:
/////////////////////////////////////
//              index.vm
<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame name="topFrame" scrolling="NO" noresize 
src="webwin.Main?WWCOMMAND=system.top.view.display" >
  <frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
    <frame name="leftFrame" noresize scrolling="NO" 
src="webwin.Main?WWCOMMAND=system.left.view.display">
    <frame name="mainFrame" src="webwin.Main?WWCOMMAND=system.main.view.display">
  </frameset>
</frameset>

have u notice the src attr.?
<frame name="mainFrame" src="webwin.Main?WWCOMMAND=system.main.view.display">
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i'm not sure what have happend.
the expected result should be

                 top
        ------------------------
               |
         left  |      main
               |

but what i get like this:

                 left
        ------------------------
               |
         left  |      main
               |

sometimes will be


                 main
        ------------------------
               |
         main  |      main
               |

I think it's effected by thread.
so i make this :
    public synchronized void doGet(...)...
    it work now.... ��(

if there are 1000 people to visit this website,it'll work well?
How can i improve the performance???????????

thanx for your attention.

--
Best regards,
 iceant                          mailto:[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to