Using a servlet for each view

Hi,
Is the following architecture a good one?
JSP View1 ------> FrontControllerServlet ----> Servlet1 -----> JSP View2
JSP View2 ------> FrontControllerServlet ----> Servlet2 -----> JSP View3
JSP View7 ------> FrontControllerServlet ----> Servlet5 -----> JSP View4
In other words, all the views that have Forms have their own controllers (servlets). The task of all the Servlets is to do validation and decide on the next view to display.
Any input is highly appreciated.

The simple answer already provided is:
Use struts.
Some comments about the other posts:
1. You should have only one controler servlet, not more then one as sugested. It serves as the single entry point to your application and it decides what actions to take. If you have more then one servlet you are forced to take at least part of the decision already in the href linking to it, which would be a clear violation of the seperation of logic and display.
2. Actions in Struts are NO servlets. They have a reference to the Controlservlet invoking them in order to access the session object and the like. If they would be servlet you could address them directly from a webpage which doesn't make sense since they are supposed to get invoked by the controller servlet. For the same reason serlvetN in your design really shouldn't be servlets.
3. I don't agree to the steep learning curve thing. It took me about a day to get the concepts of struts, another day to make a little workshop with the rest of the team and after a week or so everybody was deeply involved in working with struts ...
regards
Spieler
just my two cents

Similar Messages

  • HTTPService request for each View inside a ViewStack

    Can someone point me in the right direction to have a
    httpservice request for each view inside my viewstack?
    <mx:ViewStack id="views">
    <mx:Canvas id="view0">
    </mx:Canvas>
    <mx:Canvas id="view1">
    </mx:Canvas>
    </mx:ViewStack>
    Can someone whip together a quick example or just point me in
    the right direction?
    Thanks

    Ahh, don't do that.
    Use a central HTTPService instance, and use AsyncToken to
    keep track of which result goes where. Some code snippets below.
    Tracy
    Sample code using HTTPService, e4x, handler function to
    populate a list item.
    Also shows usage of AsyncToken.
    The DataGrid tag:
    <mx:DataGrid id="dg" dataProvider="{_xlcMyListData}"
    .../>
    The HTTPService tag:
    <mx:HTTPService id="service" resultFormat="e4x"
    result="onResult(event)" fault="..../>
    Script block declaration:
    import mx.rpc.Events.ResultEvent;
    [Bindable]private var _xlcMyListData:XMLListCollection;
    Invoke send:
    var oRequest:Object = new Object();
    oRequest.Arg1 = "value1";
    var callToken:AsyncToken = service.send(oRequest);
    token.callId = "myQuery1";
    Result Handler function:
    private function onResult(oEvent:ResultEvent):void {
    var xmlResult:XML = XML(event.result); //converts result
    Object to XML. can also use "as" operator
    var xlMyListData:XMLList = xmlResult.myListData; //depends
    on xml format, is row data
    _xlcMyListData = new XMLListCollection(xlMyListData); //wrap
    the XMLList in a collection
    trace(_xlcMyListData.toXMLString()); //so you can see
    exactly how to specify dataField or build labelFunction
    var callToken:AsyncToken = oEvent.token;
    var sCallId = callToken.callId; //"myQuery1"
    switch(sCallId) {
    case "myQuery1":
    doQuery2();
    break;
    }//onResult

  • Seperate window for each view

    hi friend.
    In my application(TestApp) i have two dirrernt view, i want to see both two view one by one when i run my application. For this i created two windows for each view. when i set the second viewwindow in the Interface property of my Application(TestApp) then not able to run and not even able to set first one again..
    Plz suggest me for this..
    thanks
    Narpal

    Hi
    You can made it by using plugs and navigation
    See this Samples and help
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">web Dynpro Sample Applications and Tutorials</a>
    Kind Regards
    Mukesh

  • Can i use a servlet for as a

    the SDN,
    I need to create a middleware server that reads requests from a database then forwards these requests to the "real" servers. The reason i referred to the app as a "middleware SERVER" is because this app will be started once and will run forever, (if no problems come up), but actually the "middleware server" that i need to create will be a "client" to the "real servers" which will process the requests - so i shall refer to the system that i need to design as a "forwarding client" instead of "middleware server" - to avoid confusion.
    After my "Forwarding Client" reads a request from the DB it wil forward the request to the servers using XMLRPC (over http).
    I would like to know from those who know more : which is the better approach to solving this problem.
    According to me these are the closest options to designing the "Forwarding Client":
    1) create a java application that uses the "custom networking" packages of java to forward the data to the server, see packages here: http://java.sun.com/docs/books/tutorial/networking/TOC.html#sockets
    2) develop the functionality of my "Forwarding Client" in a servlet. This is easier since forwarding of the data (using HTTP POST) is very easy in servlets.
    But there is a problem that could arise, and this brings out my main question:
    -> since this application will need to run for a very long time (probably perpetually) - are there any limitations of having a servlet run for a very long period of time? any memory issues or any other potential issues? What about container issues? Are servlet engines such as tomcat designed for such kinds of servlets?
    To help understand the scenario, this is an overview of the logic:
    <code>
    do
    select one unprocessed request from the DB
    process the request -by forwarding the request to the server
    receive and read the response from the server
    save the response in the DB
    while(true)
    </code>
    Any suggestions will be appreciated.
    Faz

    I will try to answer in english for all readers (I am french). It's a very complex problem. If you want to use a servlet as a proxy it will not be "invisible" for end-user. All your calls will look like this :
    http://www.foo.com/ProxyServlet?realURL=http://www.foo.com/RealServlet
    Did you accept this kind of solution? If not, can you explain me what exactly you have to do.
    For the second question : you have to re-write all your request using HTTPURLConnection.
    Simon Pierre NOLIN

  • Can I use local SLD for each system?

    Hi!
    Our company is a big SAP outsourcing with hundreds of SAP systems.
    We plan to use the local SLD for each new system (>640).
    Is this a possible and good solution?
    Point guaranteed.

    Jenni,
    Please have a look at the below doc on how to place SLD in your landscape, its worth reading and you can decide your dimensions of placing the SLD.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/29b1f3ea-0c01-0010-2dae-cc64bb381c97
    Best regards,
    raj.

  • How To Use OSB's For Each to do this example?

    Hi All Friend:
    My XML From Assign . it SOAP Response Body variable is : RequestBussiNo. The Document is :
    <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <DownloadBusinessNOResponse xmlns="http://www.taiji.com.cn/">
    <DownloadBusinessNOResult>
    <BusinessNO>
    <string>150100110262188</string>
    <string>150100110280225</string>
    <string>150100110284768</string>
    </BusinessNO>
    <ArraySize>3</ArraySize>
    <Result>true</Result>
    <ReturnCode>0000-Interface execute successed!</ReturnCode>
    </DownloadBusinessNOResult>
    </DownloadBusinessNOResponse>
    </soap:Body>
    I Don't Know How to Use For Each Function to each this Document Get the "string" tag text;
    my friend Please help me. thanks.

    Check the below thread and let us know if it helps
    Re: OSB:for-each action working procedure with a sample.
    Re: Assign activity erros with XPath query string returns multiple nodes.
    Regards,
    Ramesh

  • Fill table using different statements for each field (newbie question)

    Hi all, I'm about to fill table table1 (field1, field2, etc.) using different statements (and maybe variables) for each field.
    My statements are too different to combine them into one query, but my example is simple:
    statement 1:
    SELECT ttt AS field1 FROM dual
    statement 2:
    SELECT yyy AS field2 FROM dual
    Each statement returns one value. Maybe I need some variable for each value, so var_field1 = field1, var_field2 = field2, etc.
    As a result I have to fill table table1 using my variables, so it must be some procedure.
    I know I can do it using one statement below, but I have more than 100 queries, so they should be executed one by one.
    with t1 as(
    select (SELECT 'ttt' FROM dual) field1, (SELECT 'yyy' FROM dual) field2 from dual
    select * from t1;
    Could you please show me some example, how this procedure should be written?
    Thanks ahead.

    This hasn't got anything to do with Oracle Reports, but here we go anyway. Your query can simply be:
    with t1 as(
    select 'ttt' field1, 'yyy' field2 from dual
    select * from t1;
    FIE FIE
    ttt yyy
    1 row selected.But maybe your example was an over simplification of your problem.

  • How to use multiple classes for each form

    Hi,
    I have created two forms using screen painter and now i want to use different classes for these two forms .
    I have declared the Sbo Connection in main class i.e. Set Application ,Connection Context() but while connecting to other classes
    for executing the code for that form SAP is not connected to that class.How to use multiple classes functionality i don't able to
    do that.Please provide some sample codes for that as it will be more helpful for me to understand.
    Thanks & Regards,
    Amit

    Hi Amit,
    In fact, its more advisable to use separate classes for every form that you use.  Have one common class, say, for eg., clsMain.cs which has all the connection and connectivity to other classes, wherein, the menu event and item event of this main class, will just be calling the menu / item event of other classes.
    The individual functionality of the child classes will be called from the item / menu event of the respective classes.
    Item event in clsMain.cs will be as below.
    private void oApplication_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                SAPbouiCOM.Form oForm;
                BubbleEvent = true;
                try
                    if ((pVal.FormTypeEx == "My_Form1Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
                        oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
                        NameSpace.Repots.ClsForm1.ClsForm1_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
                    if ((pVal.FormTypeEx == "My_Form2Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
                        oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
                        NameSpace.Repots.ClsForm1.ClsForm2_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
    Now, in the individual classes, you can have their respective item events, which will be called from the main class, and the respective functionalities will occur.
    Hope this helps.
    Regards,
    Satish.

  • Is it possible to create a multitiered numbered list using specific stiles for each level, such as in MS Word?

    I intended to write a long document, with sections and subsections, using Pages. The title of each section / subsection should be numbered, such as:
    1. First Title (style: title 1)
    text text text
    2. Second Title (style: title 1)
    more and more text
         2.1 First Subtitle (style: title 2)
              text and  text
         2.2 Second Subtitle (style: title 2)
              text text
    3. Third title (style: title 1)
    even more text, and so on
    Is that possible? Is it simple?
    Thanks

    Do you know that Pages User Guide was not written to help helpers to help you ?
    They are also for your own use !
    Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 14:28:45
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to get LR using unique names for each file?

    Hey there,
    I see LR does modify the name of the File when there is already one file with the same name in the folder of import, but once you choose a different folder it does import the File with the original name. I just realized that over the years using Folders such as Pictures 2009, Pictures 2010 and so on, I have three or four times Files with the same Name. Is there a way to tell LR to always use unique names when it imports?

    Use a date-description-sequence.ext naming template for renaming as you import [or if you prefer after you import]. This means you never have duplicates unless you for some bizarre reason use same name description for two sets of files on same day. And if you need to do just that, simply make the start number of second/third lot of files be one number greater than previous batch from same day.
    You can set up what ever naming format you desire in file rename dialogue and have that as your default.
    Leaving files names as they come out of the camera is asking for big trouble as invariably they will duplicate, which is not a good idea even if in different folders.
    F2 gets you renaming dialogue when in Library.

  • Syncing 1 BB with 2 PC's using different folders for each

    I have a BB Tour and want to sync it with 2 PC's - one at work and one at home. Neither PC uses Exchange, BES, etc. My primary syncing is with my home PC. However, I'm wanting to do a 1-way sync from my office PC to the BB, and have info saved in separate folders (I think I need separate folders to be able to have my work contact info and calendar available to me when out of the office). Also, I don't want all of my work data to transfer to my home PC when I do a home sync. 
    Can anyone help? Thanks.

    Hello cohenville,
    Welcome to the BlackBerry Support Community Forums.
    You can certanly sync with multiple computers. However the BlackBerry Smartphone will not difirentiate between the data and combine it all into one contact list. Meaning that if you have 1 way sync set up at work and then sync 2 ways at home, all of the work contacts will go over to your home PC. The only way is to have 1 way sync enabled at both places and only sync to the device. This however would mean that any information you enter on the BlackBerry will not sync to any of the PC’s.
    When it comes to the calendar sync, as long as you have more than 1 email integrated on your BlackBerry Smartphone it is possible to synchronize to different calendars separatly. This is a tricky process and I am attaching a knowledge base article that explains how it would work. (Keep in mind that if the default calendars are not switched back and forth between different PC’s, there is a big chance that you will run into issues with duplication of calendar appointments and deletion of appointments.)
    Link: http://www.blackberry.com/btsc/KB17992
    Please make sure you backup your BlackBerry Smartphone prior to trying any of the steps.
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • My Digital personna addon is not working in Firefox 7.o....I use fingerprint login for each and every website....plz help.

    Hi,
    I have finger print reader on my laptop. This reader use Digital personna software to authenticate. I use fingerprint authentication in most of the websites. But unfortunately when I upgraded to Firefox 7.o the extension got disabled. Please help me in fixing this issue.!!!

    You can try using this tool to first remove all traces of Reader from your computer:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you can download the full offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

  • Using SPAU_ENH transaction for webdynpro view enhancements

    Hi All,
    We have enhanced a standard web dynpro component by adding a new view to it. We are now doing an upgrade and have to adjust the modification since SAP has overwritten this webdynpro in the new version. How will i be able to adopt the modification i had previously done.
    I had gone to transaction SPAU_ENH and found the component within the Webdynpro had a status of yellow (meaning Semi-automatic adjustment)....... I tried many times, but could not find a way to adopt the changes in a split screen editor similar to SPAU transaction. Will i be able to do this? or will i have to change the whole webdynpro manually by adding the view all over again.
    Please Help.
    Best Regards,
    Mazin

    Im Afraid i had to change the webdynpro manually

  • SAS Token failed with 403 error while generating for each request using ARR module

    Hi,
    We are doing an e-Learning application, which plays a course on the browser (inside a div control). The course contains list of static contents such as html, js, css etc., and media files .mp4. We are hosting the static contents (.html, .js, .css etc) into
    Azure blob storage and media files into Media Service and CDN.
    When user triggers to take a course, the browser first request the Web Role with landing page (Ex: FirstPage.html) and with Course Unique Id - Ex:
    https://cloudservice1.cloudapp.net/course/courseid/firstpage.html. We have written a custom ARR Module (http://www.iis.net/learn/extensions/url-rewrite-module/developing-a-custom-rewrite-provider-for-url-rewrite-module),
    which receives the request, parse it and generate blob storage url with SAS token using C# code for each file. Then route to blob storage. (we have already passing storage account details to ARR Module using Web.config)
    For single user, the course plays fine. But we do the load testing with > 400 user load (with 5 instances), we are getting many 403 errors (and not all files). If the load is less than 200, we don’t get such issue.
    Also, we are using REST code to generate the SAS token. When the SAS token expiration time extending more than 60 min, getting error “Access without signed identifier cannot have time window more than 1 hour”. As the code is exist in ARR Module, unable to
    refer the Storage Client assembly. This 60 min time interval is for each file request – so there could not be an issue on expiration, but feeling this might be an issue?
    Can you please point me what could be the issue and how to solve this. Is the ARR Module caching the SAS token and providing the same even after the expiration time?
    Many Thanks, Thirumalai M

    hi,
    There is a similar thread (http://stackoverflow.com/a/17572316 ), I recommend you could refer to it.
    And I'd like to know how to set the expiry time in your code, and you could see this page (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [Beginner] build a calendar app for each team using out of the box calendar app

    Hi all,
    First of all, I'm a beginner in sharepoint and need some advice in the following case:
    We want to to create a calendar for different teams. Each team has it's own calendar to schedule a standby (all day event) for each day. In the overall view we want to see for each team the schedule who's standby (overlay). My preferred solution is to create
    a new site and use the calendar app and customize this a little bit.
    I tried to do this by creating a new calendar app and adding different views for each team. I have set the group calendar option on true so we can add users to each team calendar view. Unfortunately, I have understand that it is not possible to set default
    users for each view. I´m also looking how I can set a default title filled with the name of the view when you add a schedule, I tried to do this with a calculated value but I can´t get that working. An other question is, can I set permissions on each team
    view who can edit the schedule or is it better to create for each team an own list? For example, I want to disable that team members can edit schedules in the past, only schedules in the future is editable.
    I'm not not sure if the out of the box calendar app is suitable for my case or I have to look futher in other solutions. Any advice is welcome!

    Hi,
    According to your description, my understanding is that you want to build a calendar app which can add default users for each calendar view and set default title when adding schedule.
    For adding default users in each group calendar view using custom JavaScript, here is a detailed code demo for your reference:
    SharePoint Group Calendar, Adding default users
    For adding default title when adding schedule, I suggest you can add some Jquery to fill the title textbox when the schedule new form loading. You can add the Jquery under PlaceHolderMain tag of calendar new form page.
    Set Textbox value-using JQuery 
    For setting permission in the each team view, I suggest you can check the schedule end time in the edit form, if the schedule time is before the current date time, then you can set all the fileld read only using Jquery.
    More information:
    Jquery function to compare date with current date
    Jquery set read only
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • REDUCTION of family plan from 3 to 2?

    Would like to reduce family plan from 3 to 2, what are the fees, if any, for 1400 minute family plan? Is there any kind of early cancellation fee involved, if so how much?

  • Tiff to jpg conversion

    I'm using Adobe Photoshop Album Starter Edition 3.0. I've had the camera for only 2 days now. I've downloaded quite a few pictures off of it and it is saving them as tiff files. For the purpose of me downloading the pictures to my camera, I need them

  • WBS User Status issue

    Hi All, I have configured WBS User status with one user status as LFI - Locked for Financial posting. For this user status following buiness transactions are forbiddesn: Create billing document --> Forbidden Create sales document --> Forbidden I have

  • How to mend iphone 3g when it keeps turning itself off

    My Iphone 3gs keeps freezing and turning itself off.  How do I fix this?  I've restored, turned on/off, synched bla bla bla nothings working.  Please help as no one who actually works in a phone store knows what to do.

  • Enable tracing

    hii.. i m using OAS10g,want to enable tracing through form level...ie trace a particular user. i made the user to use the following link to load his application so that i can creat a trace file in my $ORACLE_HOME/forms/trace... ie http://ip adddress: