× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ash,

Saying "I am not trying to use it in web application, but in RPG application" is similar to saying "I'm not trying to drive up Hwy 41, I'm trying to drive in my car."

RPG is a programming language. Web applications are something you can *do* with a programming language. They are not mutually exclusive to each other.

I stand by what I said before. If your RPG program is invoked from a web application, it can be invoked in a separate job on each call and can therefore have a different QTEMP.

Unless you are working in some sort of environment that ensures that it will always be invoked in the same job?


Ashish Kulkarni wrote:
HiI am not trying to use it in Webapplication, but in RPG application, i
would like to save some user settings or pass parameters from one screen to
other or save some temporary information, if i am doing web development i
would use HttpSession for this, when developing in RPG i would like to use
QTEMP library as i would use HttpSession.
HttpSession has methods to add or remove objects, i would like to do some
thing similar in QTEMP a service program to add or delete objects

Ash

On Thu, Aug 13, 2009 at 1:02 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

hi Ash,

The HTTP server can potentially serve each request from the browser from
a separate job. And since separate jobs have separate QTEMP libraries,
QTEMP doesn't work well in a web application.

HTH


Ashish Kulkarni wrote:
HiIf i am doing web development i can use HttpSession to
store temporary objects, i can use setAttribute to save object and
getAttribute to get this saved object back. I can store any kind of
information to pass along to different web pages etc.

Can i use QTEMP in same way, off course there are no methods to do so, i
was
thinking like creating a table with key and value, but this would not
handle
various data types, i wont be able to save char, or decimal into to.

But this would be still useful to save all information as char and then
write and read from this table using a service program or copy book
function.

Any suggestions, has anyone done some thing like this before?

Ash
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.