Skip to Content
author's profile photo Former Member
Former Member

MVC - Stateless

Hi @ all,

I have a problem to solve... I've got a BSP application with MVC which is in

stateful mode at the moment but I have to made it stateless now.

So does anyone have some tips for me f.e. how to hold the hole view data

over some requests or anything else I have to attend?

Greetz Matthias

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2004 at 12:25 PM

    Hi Matthias,

    to me it seems very strange to use MVC in stateless mode -

    You could store youre data (fields, structures, tables) in a complex structure and set this structure in a server cookie when your coding is finished.

    Use the static set/get methods of class cl_bsp_server_side_cookie.

    Before you start to react on the user input you call the cookie via the get-method.

    Regards, Bernd

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Bernd,

      I did it like that at the moment, you could store your data with export/import from/to memory in an xstring which you could save as a server cookie.

      But if you use controller and modell classes then the model reference also will be destroyed after user action - it's tricky but it seems to works now. Thanks for your help

      Regards Matthias

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.