Update DataGrid using RemoteObject
I am using a RemoteObject method call to populate an ArrayCollection used as a dataProvider in my DataGrid. I use the render() method on the datagrid to make sure the datagrid displays the updated data the RemoteObject method is returning everytime it is displayed. My problem is the datagrid displays the updated information but gets into an infinite call.
What might be the appropriate way to get the updated data from the backend?
-Thanks,
Fauzia
Hi Michael,
Thanks for your reply. The AC I use is bindable, but it doesn't get update with an initialize() method, thats why I had to use render(). This is an outline of my code...
<mx:RemoteObject id="historyService" result="onResultGetList(event)" showBusyCursor="true" fault="onFault(event)" destination="historyService">
<mx:method name="getLrcFindDetailCltn" result="onResultGetList(event)" makeObjectsBindable="true" fault="onFault(event)"/>
</mx:RemoteObject>
[Bindable]
private var ldsDetails:ArrayCollection;
public function getList():void
historyService.getLrcFindDetailCltn();
public function onResultGetList(event:ResultEvent):void
ldsDetails = event.result as ArrayCollection;
<mx:DataGrid id="usersDataGrid" dataProvider="{ldsDetails}" render="getList();">
<mx:columns>......
Thanks,
Fauzia
Similar Messages
-
Undefined error: when update datagrid in flex
I get this error when trying to update a field in my datagrid, using LCDS 2.61 with coldfusion.
Why?
undefined
at mx.data::CommitResponder/result()[C:\depot\flex\branches\enterprise_bridgeman_final_hotfi xes\frameworks\mx\data\CommitResponder.as:424]
at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
at NetConnectionMessageResponder/resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\ src\mx\messaging\channels\NetConnectionChannel.as:515]
at mx.messaging::MessageResponder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx \messaging\MessageResponder.as:199]
Thanks,
Jon KravetzTo troubleshoot this, you should add <mx:TraceTarget /> to your mxml file and then debug your application. Afterwards, reply with the trace log from the console...
-
Loading complex report data into a direct update DSO using APD
Dear All,
Recently, I had a requirement to download the report data into a direct update DSO using an APD. I was able to perform this easily when the report was simple i.e it has few rows and columns. But I faced problems If the report is a complex one. Summing up, I would like to know how to handle the scenarios in each of the following cases:
1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
key fields of DSO and the remaining to the data fields? Correct me.
2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
system and then include these in the DSO data fields to accommodate the extracted data ?
3. How do I handle the Free Characteristics and Filters ?
4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
I would appreciate if someone can answer my questions clearly.
Regards,
D. Srinivas RaoHi ,
PFB the answers.
1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
key fields of DSO and the remaining to the data fields? Correct me.
--- Yes , you can use the elements in the ROWS in the Key fields, but in case you get two records with same value in the ROWS element the data load will fail. So you basically need to have one value that would be different for each record.
2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
system and then include these in the DSO data fields to accommodate the extracted data ?
Yes you would need to create new Infoobjects for the CKF's and RKF's in the Report and include them in your DSO.
3. How do I handle the Free Characteristics and Filters ?
The default filters work in the same way as when you yourself execute the reoprt. But you cannot use the Free characterisitics in the APD. only the ROWS and cloumns element which are in default layout can be used.
4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
--- Yes you would need to create 10 different APD's. Its very simple to create, you can copy an APD. but it would be for sure a maintance issue. you would have to maintain 10 APD's.
Please revert in case of any further queries. -
How to send an updated list using batch job
Hi All,
The program displays data on the screen, if the data looks ok, then there is an option to update.
When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen. how can i send the updated list using batch job.
Ex: output of the program
1 2
there is an update button on the screen, when i press update button, my program submits in batch job, the above list becomes
1 2
3 4
but when i check the spool, it shows the o/p as 1 2 ..it is not sending the updated list.
Please suggest me how to send the updated data
Thanks,
KumarHi Krishna,
I have added a button on the alv list. when i press update button, my program updates the list, then submits the batch job. I am attaching the sample test program i am trying with, please suggest me how can i get the updated list.
*& Report ZTESTSSSSS
REPORT ZTESTSSSSS.
DATA: gt_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat type slis_t_fieldcat_alv,
gt_sort TYPE slis_t_sortinfo_alv,
g_repid LIKE sy-repid,
gt_layout TYPE slis_layout_alv.
start-of-selection.
lt_return-type = 'S'.
lt_return-message = 'test message'.
append lt_return.
CLEAR gt_fieldcat.
gt_fieldcat-fieldname = 'TYPE'.
gt_fieldcat-outputlen = '3'.
gt_fieldcat-tabname = 'LT_RETURN'.
gt_fieldcat-seltext_l = 'Type'.
gt_fieldcat-seltext_m = 'Type'.
gt_fieldcat-seltext_s = 'Type'.
APPEND gt_fieldcat TO lt_fieldcat.
CLEAR gt_fieldcat.
gt_fieldcat-fieldname = 'MESSAGE'.
gt_fieldcat-outputlen = '15'.
gt_fieldcat-tabname = 'LT_RETURN'.
gt_fieldcat-seltext_l = 'Message'.
gt_fieldcat-seltext_m = 'Message'.
gt_fieldcat-seltext_s = 'Message'.
APPEND gt_fieldcat TO lt_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_FIELDCAT = lt_fieldcat
TABLES
T_OUTTAB = lt_return
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
*& Form set_pf_status
text
-->RT_EXTAB text
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'STANDARD'.
ENDFORM. "Set_pf_status
*& Form user_command
text
-->R_UCOMM text
-->RS_SELFIELD text
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: li_count TYPE I.
IF r_ucomm EQ 'UPD'.
Adding another message
lt_return-type = 'S'.
lt_return-message = 'Another test message'.
APPEND lt_return.
rs_selfield-refresh = 'X'.
rs_selfield-col_stable = 'X'.
rs_selfield-row_stable = 'X'.
l_upd = 'X'.
LOOP AT lt_return.
WRITE: / lt_return-type, lt_return-message.
ENDLOOP.
IF sy-batch IS INITIAL.
l_upd = 'X'.
Open the Job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = w_name
IMPORTING
jobcount = w_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT ('ZTESTSSSSS') VIA JOB w_name NUMBER w_number
AND RETURN
WITH p_recnnr = p_recnnr.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = w_number
jobname = w_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "User_command
Thanks,
Kumar -
I changed my email address, which in turn, changed my Apple ID. I changed the settings of my iPad and things were fine for me, but my husband shares a few apps with me and isn't able to update or use any of those apps now. The change doesn't work for him.
Now, I got a new iPad mini and I'm having the same problem. I have purchased many apps which I can't use now. I have a lot of work documents saved to them too.
Is there anyway that both husband and I can change the setting so we can access the apps we have already purchased?You have to be signed into the correct Apple ID in order to download those purchases again for free.
Settings>iTunes & App Store. Tap the old ID and sign out, then sign in with the new/changed ID. -
I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
Anyone have an idea on other things to try to debug/resolve this?
Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
Thanks!After a week's worth of debugging, I found the issue.
The Java type returned from the call was defined as ArrayList. Changing it to List resolved the problem.
I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid. And, why it works in Debug mode and not in Release build is even stranger. Maybe someone can shed some light on the logic here to me. -
Add fields to maintenance view and update then using events
Hi experts:
I've created a table with 4 fields, one of them is userid. Also, there is a maintenance view to add new entries.
I want to display user name when typing userid using events (1 or 21). I know how to do it if username is one of the fields of the table, but there is a requirement to not store username in the table, just userid.
My question is: is possible to add a field into the maintenance view and update it using events but not store the value in DB?.
Thanks in advance for your help.
Regards,
Carlos.In the save event just clear the entries of the field(user name) in the internal table.
-
How to add a new record in updatable report using apex_item
Hi,
i am using an updatable report using the following select
select
aPEX_ITEM.POPUP_FROM_QUERY(2,emp_code,
' SELECT emp_surname, emp_code FROM hrm_employee ' ,null,null,null,null,null,'onchange="f_set_multi_items_tabular(this.value ''#ROWNUM#'''
|| ')"',null,null,null) PF_No,
apex_item.text (32,
NULL,
80,
100,
'style="width:190px" ',
'f11_' || '#ROWNUM#'
) Name,
" REST_DATE",
"REMARKS",
from "roster"
when i click on the button add row , only the column rest_date and the remarks are enable.
why is the apex_item.text and apex_item_popup_from_query is disable ? and how i can make it enable.
thanks
regards
jerryI could see that you are using the addRow() function to generate new blank row.
I guess, this function(used by the builtin tabular form s) , identifies editable columns when they are marked so at the report column attributes.
When you use apex_item API, it expects the columns to be standard report column and hence render the new rows as such.
Some one from the development team might be able to give a better answer on that.
As for avoiding this issue
<li>One method , would be to define the columns editable(and display types) in report column attributes.
<li> You can duplicate the last row using jQuery( *$('tr.highlight-row:last).after( $('tr.highlight-row:last).clone() )* ) and removing the field values, but events(for example datepicker) would remain attached to the original row , so it isn't very straightforward either.
<li>If you want to use apex_item you would have to use a pseudo union to DUAL for generating a blank row and re-render the report either by a page load or a Dynamic Action. Sounds like a nice idea for a plugin.
Now , if you want to add rows multiple times without saving them, then you would need to store the values in a collection at load and update the collection before adding the row. -
Error in updating pricing using BAPI_QUOTATION_CREATEFROMDATA2
Hi,
I am using the BAPI function module BAPI_QUOTATION_CREATEFROMDATA2. I am calling BAPI_TRANSACTION_COMMIT subsequently
I need to change an existing pricing condition ZMLT which is
automatically determined by the config while creating a sales quotation
Also I need to add ZFR1 and ZFR2 which are 2 freight condition types
(Condition Class = 'F')
Case 1
If I set the LOGIC-SWITCH-COND_HANDL = 'X', then I can correctly update
ZMLT using CONDITIONS_IN parameter, but I can't update ZFR1 and ZFR2
since they are freight condition types (as per Note 593246)
Case 2
If I set LOGIC-SWITCH-COND_HANDL = ' ', then I can correctly update
ZFR1 and ZFR2 freight condition types using the parameters
CONDITIONS_IN and CONDITIONS_INX. But when I try to update ZMLT, it
deactivates the existing line in the pricing and adds a new line with
same condition type ZMLT. Why does it do this...?
Here are the parameters that I am using as per Note 593246, Point 4
CONDITIONS_IN-ITM_NUMBER = '000010'
CONDITIONS_IN-COND_COUNT = '01'
CONDITIONS_IN-COND_TYPE = 'ZMLT'
CONDITIONS_IN-COND_VALUE = 12.00
CONDITIONS_IN-CURRENCY = ' ' (This is a percentage)
CONDITIONS_INX-ITM_NUMBER = '000010'
CONDITIONS_INX-COND_COUNT = '01'
CONDITIONS_INX-COND_TYPE = 'ZMLT'
CONDITIONS_INX-UPDATEFLAG = 'U'
CONDITIONS_INX-COND_VALUE = 'X'
CONDITIONS_INX-CURRENCY = 'X'
Please advise on this. Although the Total Value in the pricing is
correctly updated, why does it deactivate one line and insert a new one
for the same condition type.
Please note that my requirement is to add condition types ZFR1, ZFR2
and update ZMLT
Thanks and Regards,
Aditya PalekarHi!
You have very well prepared this example!
...and you analyzed it completely, this behavior is just the restriction you have to live with.
Old style condition handling couldn't change values, so workaround with adding new line and inactive existing line was done. New condition handling has restrictions, too - so no freights.
Why does it do this... it's a buggy feature or whatever you would like to call it. At least it was done by purpose, what internal reasons lead to this, I can't say.
One workaround would be possible for you: create quotation with cond_handl = A, change afterwards with cond_handl = B.
If you start with A = X and B = space or A = space and B = X should be the same in the end.
Regards,
Christian -
Error while updating data using session and call transaction method
Hi all,
i have to update data using MM01 transaction from flat file to database.i have used both session method and call transaction method to do that.in both the methods data has been transferred from internal tables to screens but while updating the data that is by clicking the ok-code at the end of the transaction iam getting a dialogue box stating
SAP EXPRESS DOCUMENT "UPDATE WAS TERMINATED" RECEIVED FROM AUTHOR "SAP".
please tell whether the problem lies and solution for that.
thanks and regards.hi,
check your recording.check whether u saved your material no in recording or not.
once again record the transacton mm01.
MATNR LIKE RMMG1-MATNR,
MBRSH LIKE RMMG1-MBRSH,
MTART LIKE RMMG1-MTART,
MAKTX LIKE MAKT-MAKTX,
MEINS LIKE MARA-MEINS,
MATKL LIKE MARA-MATKL,
BISMT LIKE MARA-BISMT,
EXTWG LIKE MARA-EXTWG,
these are the fields which u have to take in internal table.
this is the record which i took in my flatfile.use filetype as asc and hasfieldseperator as 'X'.
SUDHU-6 R ROH MATSUDHU " 001 7890 AA
i did the same.but i didn't get any error. -
Write an UPdate statement using the logic used in PL/SQL block (oracle 10g)
Hi All,
I have written the following PL/SQL block. I want to write an UPDATE statement using the logic used in the following PL/SQL block. can any one please help me out in this regards.
DECLARE
v_hoov_fag gor_gold_post.hoov_flg%TYPE;
v_b49n gor_gold_post.b49n%TYPE;
CURSOR c
IS
SELECT bs_id, loyalty_date, loyalty_period, contract_date
FROM gor_gold_post
WHERE tariff_code IN (169, 135, 136);
BEGIN
FOR rec IN c
LOOP
IF (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE) < 304
OR ( TRUNC ( ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE
) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2
THEN
v_hoov_flg := 1;
ELSE
v_hoover_flag := 99;
END IF;
IF (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE) < 121.6
OR ( TRUNC ( ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE
) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2
THEN
v_b49n := 1;
ELSE
v_b49n := 99;
END IF;
UPDATE gor_gold_post
SET hoov_flg = v_hoov_flg,
b49n = v_b49n
WHERE bs_id = rec.bs_id AND tariff_code IN (169, 135, 136);
COMMIT;
END LOOP;
END;Thank you,Using case statement.
UPDATE gor_gold_post
SET hoov_flag = CASE WHEN TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) < 304
OR
(TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2)
THEN 1
ELSE 99
END,
b49n = CASE WHEN TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) < 121.6
OR
(TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2)
THEN 1
ELSE 99
END
WHERE tariff_code IN (169, 135, 136);Note: Code not tested. -
Longtext update by using save_text F.M
Hi All ,
I am updating longtext using F.M save_text the problem is
my longtext is in the form longtext type c length 1000.
Now how do i split this longtext such that i can pass the data in save_text.
the parameter TDLINE is only 132 character.
i tried using F.M tr_split_text at 132 char but the input parameter of this F.M can only take data of certain
length
Do any bdy know hw to go about it?
Regards
BhanuHi,
If your long text is in multiple lines of an internal table use the below code and take the text into some string varaible (lv_text_string here).
Concatenate the text into a string variable
LOOP AT lt_lines INTO lw_lines.
CONCATENATE lv_text_string lw_lines-tdline INTO
lv_text_string SEPARATED BY space.
CLEAR : lw_lines.
ENDLOOP.
Split the text into 132 char lines
CALL FUNCTION 'RSDG_WORD_WRAP'
EXPORTING
textline = lv_text_string
delimiter = space
outputlen = 132
IMPORTING
out_line1 = lv_outline1
out_line2 = lv_outline2
out_line3 = lv_outline3
TABLES
out_lines = lt_text_lines
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
Now use lt_text_lines for calling save_text FM. (Here lt_text_lines should be delared as an internal table of char132).
Hope this helps you !!!
Regards,
Ganga -
Read from database (Access) and update fields using MS ADODB
Hello,
I am trying to get records from database using MS ADODB._connection & ADODB._Recordset objects (from LabVIEW 6)
I can:
1. open connection (with ADODB._connection)
2. write into tables (with ADODB._command)
I can not: gets records and update fields using ADODB._connection & ADODB._Recordset.
I do not know:
1. how to connect between the connection that was opened and the recordset object
2. where I can write the SQL text as input to the recordset
Attached is DataBase.llb with DB_read.vi that display my steps.
Thanks.
Attachments:
DataBase.llb 40 KBTry this one, after updating the names for database and the table you want.
Let me know if it's working.
p.s.: if you have problems, it could be a different adodb version ... but the sequence of methods is the same
Attachments:
EditdatabaseMe.vi 57 KB -
How can i use RemoteObject without mxml?
hi:
in my flex project , i use blazeds + puremvc , so i want to put my business code in actionscript as proxy to communicate with java code, the proxy code like :
public function requestServer(page:PageInfo):void{
userServiceRM = new RemoteObject();
userServiceRM.destination="userService";
userServiceRM.getsimpleList();
var pageResult :Object= userServiceRM.getsimpleList.lastResult;
sendNotification(UserStartupCommond.USERLIST_GOT,pageResult );
but i have a problem that pageResult is a null value .(the Configuring and the server side have no problem .)
how can i use RemoteObject without mxml?
thanks.Hi. Remote object calls are asynchronous so you can't access the result immediately after making the call. You need to wait until the server returns the result. There are a couple ways to set this up. Probably the easiest thing to do is to add an event listener that will be called when the result comes back from the server. Here is what that would look like.
public function requestServer(page:PageInfo):void {
userServiceRM = new RemoteObject();
userServiceRM.destination="userService";
userServiceRM.addEventListener("result", resultHandler);
userServiceRM.addEventListener("fault", faultHandler);
userServiceRM.getsimpleList();
public function resultHandler(event:ResultEvent) {
var pageResult :Object= userServiceRM.getsimpleList.lastResult;
sendNotification(UserStartupCommond.USERLIST_GOT,pageResult);
public function faultHandler(event:FaultEvent) {
//handle remote object fault
Look at the RPC Components section of the BlazeDS Developers guide for more information about using the RPC components. Hope that helps.
-Alex -
How to update and use the values of variables of another class
I can we update or use the values of the variables of another class. For example, if we have class A
public class A //(situated in package view)
public s0,s1;
public void runFunction()
...some coding and proceedings
s0="Hi";s1"Hello";
......some coding
RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp?alert=F");
dispatcher.forward(request, response);
ARunner.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
a.runFunction();
%>
MainUser.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
%>
A.class has some procedures and String variables which can be updated and later can be used in JSP pages. The project starts with ARunner.jsp which uses the A.class and updates the values of string variables s0 and s1of A to hi and hello respectively.And then redirects the page to MainUser.jsp.
Now what I want is ,when I call those string variables(s0 & s1 of A.class) in any another jsp likeMainUser.jsp it should give me the value of hi and hello respectively not null as it is giving right now. Could you refine the coding for this one?public class A //(situated in package view)
public String s0,s1;
public void runFunction()
...some coding and proceedings
s0="Hi";s1"Hello";
......some coding
RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp");
dispatcher.forward(request, response);
ARunner.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
a.runFunction();
%>
MainUser.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
%>
giving code again to remove the typing errors. Please guide.
Maybe you are looking for
-
License for Snow Leopard upgrade
I upgraded my Mac mini to Snow Leopard a few months ago by purchasing the $29 upgrade disk (I was previously running 10.5.8). I now want to upgrade my wife's MacBook, which is also running 10.5.8. Do I need to purchase another Snow Leopard disk? Whil
-
Failure Installing SQL Server Data Tools 2012 on Windows 8.1
I am trying to install SQL Server 2012 with SQL Server Data Tools on my laptop with Windows 8.1 standard edition. It fails each time when it gets to the SSDT installation with the same 1935 error, other features still install. The error text is as
-
How do I upload cd data in itunes 11?
In previous versions of iTunes, you could upload data to CDDB or Gracenote. Sometimes I buy obscure CDs which iTunes can find no data for. I cannot find any facility for this in iTunes 11. Am I missing something, or has the functionality been removed
-
Dear All, We are created Counter for air consumption in that mentioned counter over floew reading 99999999.We are not planning any maintenance paln againtst this counter. we start punching readings like, Our last counter reading before uploading into
-
Lost most of the library in I Tunes
I lost 12000 songs from the library on I tunes as well as all the playlists. What can I do to get that back? I still have the music files, but the songs in there are not in the library. I can put them one one by one, but that takes years. I have one