Display the Results
hai,
i am having nearly 10,000 records to display to client ( 10 records to each page.) in JSP. here, i stored all the records in a vector (vector is assigned in the session) for the first time. after the first time request, i will contact only the vector session, not to the database.
but my problem is, for the first time request, results are coming very slowly because of the database query. i want to reduce the execution time for the first time request. is there any other way to do this...
thanks in advance
sankarjune14
Any database can be used, didn't get your question which database should be used, for example take MySQL
import java.sql.*;
public class getResults{
public static void main(String [] args){
Connection con;
PreparedStatement pstmt;
ResultSet rs;
try{
Class.forName("org.gjt.mm.mysql.Driver");
}catch(java.lang.ClassNotFoundException e){
e.printStackTrace();
try{
con = DriverManager.getConnection("jdbc:mysql:///senji");
pstmt = con.prepareStatement("select fname from mytable where count > ? and count < ?");
pstmt.setInt(1,10);
pstmt.setInt(2,20);
rs = pstmt.executeQuery();
while(rs.next()){
System.out.println(rs.getString(1));
}catch(SQLException ex){
ex.printStackTrace();
}you can convert this in to a bean and use it in your jsp page, the above program gets first names from a table where count > 0 and count < 10 where count is a column in the mytable of type integer.
</ksenji>
Similar Messages
-
How to display the results in order by based on search value
Hi All,
how to display the results in the below order.
CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200))
INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0
output:
SONGID TITLE
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
11 CICCONE, MADONNA (CA)
12 DALLIN, MADONNA LOUISE/STOCK
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
16 MIRWAIS AHMADZAI, MADONNA
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
18 MADONNA (CA),CICCONE
Expected output :
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
Please let me know is it possible to display the results in that order.
Regards,
RajasekharThis may be a bit more accurate:
SQL> SELECT *
2 FROM TEST
3 WHERE INSTR (TITLE, 'MADONNA') > 0
4 ORDER BY INSTR (TITLE, 'MADONNA')
5 ,TITLE
6 ;
SONGID TITLE
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
12 DALLIN, MADONNA LOUISE/STOCK
11 CICCONE, MADONNA (CA)
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
16 MIRWAIS AHMADZAI, MADONNA
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) -
I want a stamp to write to the file metadata and be able to display the result in windows explorer. I have read PDF Stamp Secrets and can write to Custom Metadata but don't know how to display that custom field in explorer. Can I have the stamp write to a standard (non-custom) metadata field? Or, how do it get the custom field to display in explorer? Windows is pretty stingy with the file details it displays for PDF files, in fact there are no editable fields provided (like are available for Office files). I want this to work for multiple users hopefully without having to get the IT group involved to make (or allow) system modifications to make this work. Any ideas? Thank you.
Metadata for Windows Explorer is tagged with different names than the metadata for PDFs. Acrobat cannot copy the metadata to the tagged items of the file header.
There are tools like EXIFTool that can manipulate the data as necessary. Phil Harvey also provides the details about the file types and their metadata tags and values so you should be able to map the tags that need to be updated. -
How to display the result of excutions(insert/update/delete rows)
Hello.
Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
In additional, I also like to show the hierarchy of scenario in the same view.
So, I need the query using the information of the ODI repository.
If it is possible, I also like to have the decription of the tables in the ODI repository.
Can anyone tell me how can I get the information of the counts of excution?
Thanks in advance.Hi,
You can get that information from the API getPrevStepLog. Does it work for you?
Download the last API reference manual from:
http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs -
SQL*plus not displaying the result of XMLELEMENT
HI,
I am using SQL*Plus: Release 10.1.0.4.2
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
When I run the following query in SQL*PLUS, I get nothing displayed. However when I run the same query connecting to the same database using SQL Developer then I get the result
SQL> select XMLELEMENT("form_id",form_id)
2 FROM collections;
XMLELEMENT("FORM_ID",FORM_ID)
In SQL developer
<form_id>101</form_id>
I set long and longchuncksize to 32K , and I change linesize, pages, but nothing helped
Is there any configuration that I have to do, so that SQL*plus display the result of “ select XMLELEMENT("form_id",form_id) query.
Appreciate you help, thanksFrom a fresh start ;) :
SQL*Plus: Release 10.1.0.4.2 - Production on Fri Feb 26 15:29:04 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select xmlelement("value", a.object_name )
2 from all_objects a
3 where rownum <= 5;
XMLELEMENT("VALUE",A.OBJECT_NAME)
SQL> select xmlelement("value", (select b.object_name
2 from all_objects b
3 where b.object_name = a.object_name
4 )
5 )
6 from all_objects a
7 where rownum <= 5;
XMLELEMENT("VALUE",(SELECTB.OBJECT_NAMEFROMALL_OBJECTSBWHEREB.OBJECT_NAME=A.OBJE
<value>ICOL$</value>
<value>I_USER1</value>
<value>CON$</value>
<value>UNDO$</value>
<value>C_COBJ#</value>
SQL> show all
appinfo is OFF and set to "SQL*Plus"
arraysize 15
autocommit OFF
autoprint OFF
autorecovery OFF
autotrace OFF
blockterminator "." (hex 2e)
btitle OFF and is the first few characters of the next SELECT statement
cmdsep OFF
colsep " "
compatibility version NATIVE
concat "." (hex 2e)
copycommit 0
COPYTYPECHECK is ON
define "&" (hex 26)
describe DEPTH 1 LINENUM OFF INDENT ON
echo OFF
editfile "afiedt.buf"
embedded OFF
escape OFF
FEEDBACK ON for 6 or more rows
flagger OFF
flush ON
heading ON
headsep "|" (hex 7c)
instance "local"
linesize 80
lno 9
loboffset 1
logsource ""
long 80
longchunksize 80
markup HTML OFF HEAD "<style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:blac
newpage 1
null ""
numformat ""
numwidth 10
pagesize 14
PAUSE is OFF
pno 1
recsep WRAP
recsepchar " " (hex 20)
release 1002000300
repfooter OFF and is NULL
repheader OFF and is NULL
serveroutput OFF
shiftinout INVISIBLE
showmode OFF
spool OFF
sqlblanklines OFF
sqlcase MIXED
sqlcode 0
sqlcontinue "> "
sqlnumber ON
sqlpluscompatibility 10.1.0
sqlprefix "#" (hex 23)
sqlprompt "SQL> "
sqlterminator ";" (hex 3b)
suffix "sql"
tab ON
termout ON
timing OFF
trimout ON
trimspool OFF
ttitle OFF and is the first few characters of the next SELECT statement
underline "-" (hex 2d)
USER is "HR"
verify ON
wrap : lines will be wrapped
SQL>
{code} -
Some methods are displaying the result on the server instead on the client.
When I test (form SeatReservationClient class) the method sri.showReservations() located in SeatReservationClient class the results are being displayed on the server side instead on the client but the method sri.numReservations() is displaying the result as i want it i.e. on the client. Please can anyone help me (as always on this forum) find a solution to this problem and display the results correctly?
I have 5 classes:
Interface
public interface SeatReservationInterface extends java.rmi.Remote
public boolean isReserved(int row, int seat) throws java.rmi.RemoteException;
public boolean reserve(int row, int seat) throws java.rmi.RemoteException;
public boolean cancel(int row, int seat) throws java.rmi.RemoteException;
public int numReservations() throws java.rmi.RemoteException;
public void showReservations() throws java.rmi.RemoteException;
Implementation
public class SeatReservationImpl extends java.rmi.server.UnicastRemoteObject implements SeatReservationInterface
private Seat[][] theatre;
* Implementations must have an explicit constructor in order to declare the RemoteException
* exception.
* Theatre constructor makes a new movie theatre with numRows rows and numSeats
* seats (chairs) in each row. All seats are unreserved (unoccupied) in the beginning.
public SeatReservationImpl(int numRows, int numSeats) throws java.rmi.RemoteException
theatre = new Seat[numRows][numSeats];
for(int row = 0; row <theatre.length; row++)
for(int col = 0; col<theatre[row].length; col++)
theatre[row][col] = new Seat();
* The method returns true if the seat at location (row, seat) is reserved.
* The method returns false in all other cases.
* Be careful that row numbers run from 1 to numRows, and seat numbers from
* 1 to numSeats.
public boolean isReserved(int row, int seat) throws java.rmi.RemoteException
return theatre[row-1][seat-1].isOccupied();
* Books the seat at location (row, seat) and returns true if that seat is available.
* Returns false if that seat is already reserved.
public boolean reserve(int row, int seat) throws java.rmi.RemoteException
return theatre[row-1][seat-1].occupy();
* Cancels a seat reservation at location (row, seat) is that seat was booked, and returns
* true in that case. The method returns false if that seat had not been reserved.
public boolean cancel(int row, int seat) throws java.rmi.RemoteException
return theatre[row-1][seat-1].release();
* Returns the number of reserved seats.
public int numReservations() throws java.rmi.RemoteException
int count = 0;
for(int i = 0; i < theatre.length; i++)
for(int j = 0; j < theatre[j].length; j++)
if(theatre[i][j].isOccupied())
count++;
return count;
* Prints an overview over all reservations. Reserved seats are shown as "*", available seats
* as "-". For each row the row number is shown, then a couple of blanks, and then the
* reservations. An example is
* 8 -----****----
* 7 ---**---**---
* 6 ----***------
* 5 -------------
* 4 -------------
* 3 ----------***
* 2 **-------
* 1 -------------
public void showReservations() throws java.rmi.RemoteException
for(int row = theatre.length-1; row>=0; row--)
System.out.print((row+1) + "\t");
for(int j = 0; j<theatre[row].length; j++)
if(theatre[row][j].isFree())
System.out.print("-");
else
System.out.print("*");
System.out.println();
return;
[i]Server import java.rmi.Naming;
public class SeatReservationServer
public SeatReservationServer()
try
SeatReservationInterface sri = new SeatReservationImpl(10, 5);
Naming.rebind("rmi://localhost:1099/SeatReservationService", sri);
catch (Exception e)
System.out.println("Trouble: " + e);
public static void main(String args[])
new SeatReservationServer();
Client
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
public class SeatReservationClient
public static void main(String[] args)
try
SeatReservationInterface sri = (SeatReservationInterface) Naming.lookup("rmi://localhost/SeatReservationService");
/* Make two reservations */
System.out.println("Reservations:");
System.out.println("1,2");
System.out.println("1.3");
System.out.println("1,4");
sri.reserve(1,2);
sri.reserve(1,3);
sri.reserve(1,4);
System.out.println("The Seat is occupied - " + sri.isReserved(1,2));
System.out.println("The Seat is occupied - " + sri.isReserved(1,3));
System.out.println("The Seat is occupied - " + sri.isReserved(1,4));
/* Show the theatre */
sri.showReservations();
/* Release a seat that had been booked */
System.out.println("Release seat row 1 seat 2");
sri.cancel(1,2);
System.out.println("The Seat is occupied - " + sri.isReserved(1,2));
/* Show the number of total reservations and the theatre */
System.out.println("Number of reservations: " + sri.numReservations());
sri.showReservations();
catch (MalformedURLException murle)
System.out.println();
System.out.println("MalformedURLException");
System.out.println(murle);
catch (RemoteException re)
System.out.println();
System.out.println("RemoteException");
System.out.println(re);
catch (NotBoundException nbe)
System.out.println();
System.out.println("NotBoundException");
System.out.println(nbe);
catch (java.lang.ArithmeticException ae)
System.out.println();
System.out.println("java.lang.ArithmeticException");
System.out.println(ae);
Class containing instance methods
public class Seat
private boolean occupied;
* Constructors:
Seat()
Seat(boolean o)
occupied = o;
* Instance methods:
public boolean isFree()
return !this.occupied;
public boolean isOccupied()
return this.occupied;
public boolean occupy()
if(occupied)
return false;
else
occupied = true;
return true;
public boolean release()
if(!isOccupied())
return false;
else
occupied = false;
return true;
}Your code is working as expected. The server executes System.out.println in showReservations() and this comes out on the server console. The client executes System.out.println() after calling numReservations and this comes out at the client. Any other expectations are misplaced.
-
Display the results with a delay between each
I am very new to java and using NetBeans 5.
I want to display the results of different methods in a JtextArea with a delay between each output to the JtextArea.
I have tried Timer with no success.
Please could some one point me in the right direction
ThanksI have tried Timer with no success.Such a vague description of the problem its to recommend an approach.
Using a Timer is always a good approach.
Otherwise make sure you execute the long running code in a Separate Thread and then use SwingUtilities.invokeLater(..) when you need to update the GUI. Here is a simple example using this approach:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=621226 -
How to Read the one Source Column data and Display the Results
Hi All,
I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
Ex:
Pr_ProjectType
AD,AM
AD
AM
AD,AM,TS,CS.OT,TS
AD,AM
like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
4.AD,AM,TS,CS.OT,TS in this string we need AD,AM only.
this logic we need we have thousand of data in the table.Please help this is urgent issue
vasuHi Vasu,
Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
are two approaches for your reference:
Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
for the custom function is as follows:
CREATE FUNCTION dbo.udf_GetNumeric
(@strAlphaNumeric VARCHAR(256))
RETURNS VARCHAR(256)
AS
BEGIN
DECLARE @intAlpha INT
SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
BEGIN
WHILE @intAlpha > 0
BEGIN
SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
END
END
RETURN ISNULL(@strAlphaNumeric,0)
END
GO
The SQL commands used in the OLE DB Source is like:
SELECT
ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
FROM MyTable
Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
characters to the corresponding substring. The script is as follows:
using System.Text.RegularExpressions;
Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
References:
http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/
http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html
Regards,
Mike Yin
TechNet Community Support -
How to access oracle in javabeans and display the result in jsp
In my project ,i use the javabean to access the database and do the calculations and i display the result in the jsp page,,,
any body can help me with your precious codes
kodi...any body can help me with your precious codesStepped in the wrong place, try reading something on JDBC.
-
Convert this query to ABAP and display the results
Hi Everyone,
I have a sql query in native sql (oracle). I want execute it in ABAP editor and display the results.
I need to get this to an internal table and display the results. How do i write the script any help will be great use to me.
Here is the query:
<i> select (select decode(extent_management,'LOCAL','*',' ') ||
decode(segment_space_management,'AUTO','a ','m ')
from dba_tablespaces where tablespace_name = b.tablespace_name) || nvl(b.tablespace_name,
nvl(a.tablespace_name,'UNKOWN')) name,
kbytes_alloc kbytes,
kbytes_alloc-nvl(kbytes_free,0) used,
nvl(kbytes_free,0) free,
((kbytes_alloc-nvl(kbytes_free,0))/
kbytes_alloc)*100 pct_used,
nvl(largest,0) largest,
nvl(kbytes_max,kbytes_alloc) Max_Size,
decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100) pct_max_used from ( select sum(bytes)/1024 Kbytes_free,
max(bytes)/1024 largest,
tablespace_name
from sys.dba_free_space
group by tablespace_name ) a,
( select sum(bytes)/1024 Kbytes_alloc,
sum(maxbytes)/1024 Kbytes_max,
tablespace_name
from sys.dba_data_files
group by tablespace_name
union all
select sum(bytes)/1024 Kbytes_alloc,
sum(maxbytes)/1024 Kbytes_max,
tablespace_name
from sys.dba_temp_files
group by tablespace_name )b
where a.tablespace_name = b.tablespace_name order by 1;
</i>
Thanks,
Prashant.Hi Prashant,
Native SQL commands in ABAP are placed between EXEC SQL and ENDEXEC. You can place all your statements in between these EXEC SQL and ENDEXEC in a report.
EXEC SQL [PERFORMING <form>].
<Native SQL statement>
ENDEXEC.
Check this link to know about Native SQL
http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm
Thanks,
Vinay -
How to display the results of the grouping horizontally
Hello,
I still cannot understand what am I doing wrong when trying to display the results of the grouping horizontally. Here is the original thread: How to group report vertically
In the Section expert, for Detail section, I check the box Format with Multiple columns. Under the Layout tab, I check Format groups with multiple columns and set the width of the column at 3.3 in. This should give me 3 columns for Landscape orientation.
Now if I select Printing direction Down then Across, I just have the regular vertical grouping.
If I check Across then Down, then I do get 3 columns, but all the records in the Detail section are also spread across first instead of staying in the column.
There should be something else that I should do to get the display like this:
Header1 Header2 Header3
record11 record21 record31
record12 record22 record32
record13 record23 record33
etc. etc. etc.
Thank you.I'm not at all sure columns are gonna help here, as there is no way that I am aware of to tell Crystal to start a new column.
The only way that I can think of to achieve what you are trying to accomplish is to do something like this:
In your group header's Suppress formula, keep track of the first (/ next) three groups that you want to print, using something like (basic syntax):
global grouplist(3) as string
global groupcount as number
groupcount = groupcount + 1
grouplist(groupcount) = {db.GroupingField}
' The NextIsNull below implies End-of-Data...
if groupcount = 3 or NextIsNull({db.GroupField}) then
formula = false ' print the group header
else
formula = true ' suppress the group header
end if
Then, create three formula fields to get each value in grouplist(). The group header format will then show the three formula fields. Underneath these three formula fields, add subreports, which will show the details for one specific group. The subreports should have a parameter for which group's details to show. Use the three formula fields as the link to the three subreports.
In the group footer, clear out the grouplist() array, and set groupcount to zero.
This report will take a while to run, because having three subreports next to each other makes it difficult for Crystal to determine page formatting.
HTH,
Carl -
Display the result of a query in descending order.
Hello Experts,
How can I display the result of a query in descending order?
Thanks much in anticipation.
Regards.Hi Kumar,
If you want to display char in descending order, in the query designer set the sorting setting as desceing for that particular characteristics, or if you want to see the KF in descending order, create a condition on that KF and set as TOP N and set N as 999999, that would display your KF in descending order.
- Danny. -
When i search for something it displays the results in babylon search
my firefox displays the results of babylon which is too slow and in diffrent languages
Try to change your deafault search provider on settings or download another firefox that is on yahoo so that your results will be viewed on yahoo + yahoo theme.
-
Displaying the result of the TOP N query
Hi all,
we are facing a challenging task were we are going to build a query that gives the answer on the question:
How many different materials (of the top sold) represent 80% of the total sales in quantity?
The result should of the query should be very short:
2002 2003 2004
Nr of materials
reps 80% 432 453 499
The query is build on a CO-PA based cube, where each line corresponds to a billing item with material and quantity.
By using a Top 80% condition on the quantity sold keyfigure we get out the top 80% materials sold:
Year Material QTYSold QTYSold-Ranked
2002 Mtr0323 10000 1
Mtr0262 9000 2
Mtr0243 8700 3
Mtr0763 600 423
Result 932000 423
2003 Mtr0123 9700 1
Mtr0332 9100 2
Mtr0243 8700 3
Mtr0763 543 453
Result 912000 453
We would like to supress the materials and only show the result row (or the raked position of the last material).
The problem is that the 'Calculate Single Value As' properties of a formula (or keyfigure) only applies on Displayed Data values. All tests we have done so far with 'supression of zeros' & 'always hide' has messed up or counting / ranking functions.
Is there any function in within formulas that have same functionality like Count,Rank etc?
Is there any other way to supress materials and only show results?
Any suggestions are welcome!Irina,
Should be achievable using exception aggregation and pre-query.
Create a query that gives the list of material that account for 80% of the sales using condition on the sales column.
In the second query, using exception aggregation, count the number of materials that make up this set for the year. Create a new calculated key figure with the formula as qual to sales key figure. In the properties window, press the enhance button and select count of all values in the first drop down and material in the second drop down. Filter the query on material with a characteristic variable with processing as replacement path. In the variable point it to the first query. Drilldown for this will be year.
This will give you number of materials for one year. If you want comparitive for three years, then three pre-queries and three variables with the calculated key figure restricted to a variable pointing to one years query.
You can use pre-calculated value sets to improve the run for the result query.
Cheers
Aneesh -
KE5Z - Actual Line Item report freezes before displaying the result
Hi,
We have a situation. We have a Z report in Finance. We have linked KE5Z to this Z report using the Report Painter along with 15 others. When we run the Z report it works fine and displays result. In the displayed result, if we futher drill down for the actual line items for a particular profit center, system freezes. It does not display any result even after a long wait.
We did our analysis and found that the program takes the profit center number range from the least available in the profit center group to highest available in the profit center group and starts checking for every line item in it. This happens when the profit center group has more than 50 profit centers in them. When we run KE5Z tcode individually, it runs fine.
We are not sure how to go about finding a way out of it.
Has anyone faced such issue? Do you know of any OSS note that can help us? or If anyone of you can think of a solution or a way to go about it?
Your help on this is much appriciated.
Regards,
Mukund SHi,
Any pointers to this will be appriciated...
Regards,
Mukund S -
Call a JSP from applet and display the results in the browser
Hello All,
I have written an applet which performs some functionality at the clinets browser. When the applets method finishes exectution, I would like to call
a jsp. The results of the JSP should be displayed like a normal page in the browser.
I tried creating a HttpURLConnection and calling the jsp but two things happened
1. The jsp call failed because the applet doesn't have a valid session id.
2. even if I disable the valid user check at the jsp, the results of the jsp are returned as a set of bytes to the applet. They are not displayed in the browser window.
Then I tried applet.getAppletContext().showDocument()... However with this api I cannot do a POST operation on the JSP with some input data because this takes only a URL as an input parameter.
Please help me in this problem and I will be very gratefull to you.
1. applet uses the same session id as the browser so that when applet makes a request to the jsp it does not get user invalid exception.
2. the results of the jsp are displayed on the browser and not given to the applet.
Thank you so much for your help.
regards,
Abhishek.I hope this can help you
I made a package calls fun
and a clsss calls JspTestingFun
package fun;
public class JspTestingFun{
private String sample = "welcome to jsp";
//Access sample property
public String getSample() {
return sample;
//Access sample property
public void setSample(String newValue) {
if (newValue!=null) {
sample = newValue;
}then I make a jsp file
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
<%@ page import = "fun.JspTestingFun"%>
<html>
<head>
<title>
jspTest
</title>
</head>
<jsp:useBean id="mytest" scope="session" class="fun.JspTestingFun" />
<jsp:setProperty name="mytest" property="*" />
<body bgcolor="#ffffff">
<%
mytest.getSample();
%>
<h1>
Just for testing
</h1>
<form method="post">
<br>Enter anything : <input name="sample"><br>
<br><br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
<br>
this what we get<jsp:getProperty name="mytest" property="sample" />
</form>
</body>
</html>
Maybe you are looking for
-
Can not drop enterprise manager.
when i issue the following command i get the error below in the emca logs. emca -deconfig dbcontrol db -repos drop CONFIG: SQLEngine connecting with SID: I21PREP, oracleHome: /oracle/product/10.2.0.4, and user: SYS 20/01/2010 10:58:00 oracle.sysman.e
-
Use of GUID to Access Crystal Report on BW Server
Hi, In the iView we have an option to select the "BusinessObjects Enterprise Report Type" = bw_id. As I understand this allows us to add a Crystal Report to the portal which are held on the BW Server as long as we enter the GUID in "BusinessObjects E
-
Command tab - window doesn't switch
I use Command+tab to switch between windows. But many a times the window doesn't switch to, rather I get the options at the toolbar. This is exactly the problem reported here: https://discussions.apple.com/thread/3458920?start=0&tstart=0 How can I re
-
I'm getting scammed as i type this!
I messed up big time by sending pictures of myself to someone on here now like most of you they are saying they will post it on FB and gave me my sisters name auntys cousin(who is only 15 mind you) will post those pics to them. SKYPE NAME: Julia.dav
-
OMS, Repository, Agent Grid upgrade
Newbie here and will try to explain as best as I can. So I installed Grid 10.2.0.2 on Windows XP system. I have used the patchset 12.0.4.0 to upgrade OMS, repository and agent. I have followed the documentation on how to do this. First I patched OMS