How to use the method getParameterValues() of request object in JSP?
I'm trying to use the method
String a[]=request.getParameterValues("ch_box");
to retrieve the values from the form
but it gives the error
"Method getParamaterValues(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest."
so plz tell me how to overcome this hurdle?
thanx
Well, just one note... either you have a typo in your code, or else in your post.
If you cut and pasted the error message (which it looks like you did), then the method getParamaterValues() should be getParameterValues() instead (notice the spelling difference), so you probably just have a typo in your code.
Similar Messages
-
How to use the method "getChildrenRemoved()" declared in ElementChange?
How to use the method "getChildrenRemoved()" declared in DocumentEvent.ElementChange?
I have tried to use it,but the code below alway say "Yes"....
I really have no ideas about why ec is always a null.
public void removeUpdate(DocumentEvent ee) {
DocumentEvent.ElementChange ec = ee.getChange(doc.getDefaultRootElement());
if(ec == null)
System.out.println("Yes");
} -
How to call the method of a Business Object?
Hi,
Can someone guide me how to call the method of a business object?
For example, I want to use the method SalesDocument.Copy of the Business Object VBAK. How can I do that? If you are familiar with any similar scenario please help.
Regards,
Renjith Michael.Hi
double click on the copy and
go to abap tab
there u can get functionmodule name
u can call that
Rewards if helpful -
How to use the method for field-exit to trigger the workflow?
Dear all,
I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
Thanks and regards,
S.SureshHi
You want to place your method which is defined for particular filed.right?
For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI. So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
Regards,
Hemalatha. -
Interface/Method question (how to use the method insert_table)
Hi people!
I'm working with DOI (desktop office integration).
So far I've been able to reflect flat variables from my ABAP program into a Word Doc, but when it comes to internal tables I'm not sure how to achieve this.....
I find out in the interface i_oi_word_processor_document the method insert_table, but I can't find a single simple example on how to use it....
If no one knows how to use this method, does anyone know how to reflect an internal table fron my program into a Word Doc by another mean?
Thanks in advance!!!
Regards,
LauraHi Laura
If you want you can use direct OLE calls. For this, you can refer to the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a> published at SDN.
Kind Regards
*--Serdar
[email protected] -
How to use the method setReadTimeout(int longtimes) in HttpUrlConnection?
I have to use the HttpUrlConnection to download files ,sometimes the speed is very slow or just blocked for no reason.(no Exception was throw and I can't see any changes from my swing Interface)
It seems the thread is dead. I try to use setReadTimeout() to control the read . but it isn't working ,
Now I have to questions?
one how to use the setReadTimeout() so it can throw the SocketTimeoutException like the API said
second how to solve the problem I metioned before : sometimes the speed is very slow or just blocked for no reason
Please somebody help me !!!That is not true. For example ajax continuous, http monitor or media streaming in client side is unusable without nio http client (or implementation is much simple and better). All logic is coming to client side from server. Modern client are very powerful and same time servers are overloaded.
-
How to use the Calculated attibute in view object
Hi,
I have a view object query with the calculated attribute name as 'TRANCODE' in the below sql.This query works for the initial page loading.
After the page gets loaded, there is a search section in the same page at the top.
Here i will have to build the whereclause to the same query and retrieve the values.
i am using jDeveloper 10.1.3.1, with adf and jHeadstart.
Can some one tell as how to use the calculated attribute TRANCODE in whereclause?
SELECT /*+ first_rows(10) */
BatchCntl.FILE_CNTL_ID,
CASE WHEN chk_bit(Entry.ENTRY_FLAGS, 2)='Y' OR Entry.ENTRY_SUBSTATUS = 'D' OR Entry.ENTRY_SUBSTATUS = 'J'
THEN
CASE eeh.TRAN_CODE
WHEN '21' THEN 'C'
WHEN '22' THEN 'C'
WHEN '31' THEN 'C'
WHEN '32' THEN 'C'
WHEN '26' THEN 'D'
WHEN '27' THEN 'D'
WHEN '36' THEN 'D'
WHEN '37' THEN 'D'
ELSE eeh.TRAN_CODE
END
ELSE
CASE Entry.TRAN_CODE
WHEN '21' THEN 'C'
WHEN '22' THEN 'C'
WHEN '31' THEN 'C'
WHEN '32' THEN 'C'
WHEN '26' THEN 'D'
WHEN '27' THEN 'D'
WHEN '36' THEN 'D'
WHEN '37' THEN 'D'
ELSE Entry.TRAN_CODE
END
END AS TRANCODE,
FROM Batch_Cntl BatchCntl, Entry, ENTRY_EDIT_HIST eeh
WHERE (BatchCntl.BATCH_TYPE = 'E')
AND (BatchCntl.BATCH_STATUS in ('A','D','R','P'))
AND entry.in_batch_cntl_id = BatchCntl.BATCH_CNTL_ID
and Entry.fi_rt = eeh.fi_rt (+)
and Entry.entry_id = eeh.entry_id (+)
AND (Entry.ENTRY_STATUS in ('A','D','R','P'))
ORDER BY BatchCntl.BATCH_CNTL_ID, Entry.entry_id
regards
Raj.Let's say your application module is com.yourcompany.someapp.services.MyService, and let's say you authored a method like the following in the MyServiceImpl.java file:
public void doSomething(int i, String s) {
}and you exposed this AM custom method using the AM editor.
BC4J design time will automatically create you the com.yourcompany.someapp.services.common.MyService interface that will look like this if you go look at the source code:
package com.yourcompany.someapp.services.common;
import oracle.jbo.ApplicationModule;
public interface MyService extends ApplicationModule {
public void doSomething(int i, String s);
}To use your custom method from a client, just cast your ApplicationModule to your custom interface like this:
import com.yourcompany.someapp.services.common.MyService;
MyService mySvc = (MyService)yourAM;
mySvc.doSomething(1,"foo"); -
How to use the method calendar.getTimeInMillis() and setTimeInMillis(bb)
I have met some problems in writing my programme,I want to know what the time is after every 20 minutes so have written some codes as below ,but the compilar warned me that there are some errors in them ,and I don't know how to use them correctly ,can you help me?
Thank you very much!
the code is:
begin=datime+" 00:00:00";
Calendar calendar=Calendar.getInstance();
DateFormat df = DateFormat.getDateInstance();
Date start=df.parse(begin);
calendar.setTime(start);
long aa=calendar.getTimeInMillis();
calendar.setTimeInMillis(aa);Hopefully the following snippet of code will help you out (note that the Date class seems more appropriate for what you need to do):
import java.util.*;
import java.text.*;
String begin="00:00:00";
SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
df.setTimeZone(TimeZone.getTimeZone("GMT"));
Date start=new Date();
try {
start=df.parse(begin);
} catch (Throwable e) {
System.out.println("Invalid time format");
long aa=start.getTime(); // to get the time in milliseconds
System.out.println(aa); // just to see what the answer is (should be zero)
start.setTime(aa); // to set the time in milliseconds
...V.V. -
How to use the method finalize () ? It has protected access...
Here is the program : the structure is the way I would write in Pascal.
I need new object question at each turn in the loop ! But question is already defined outside the loop. So, I thought to the method finalize (). But the compilator doesn't agree.... It would be a good thing however to destroy objects wich are obsolete !
public class MM {
public static void main (String [] args) {
Base base = new Base ();
base.demanderNbCouleurs ();
base.demanderNbPions ();
Combi solution = new Combi ();
solution.demander ();
Combi question = new Combi ();
question.cueillir ();
question.afficher ();
Reponse reponse = new Reponse ();
reponse.demander ();
boolean trouve = reponse.getBP () == base.getNbPions ();
boolean erreur = false;
while (! trouve & ! erreur) {
question.enregistrer (reponse.getBP (), reponse.getMP ());
question.finalize ();
Combi question = new Combi ();
question.cueillir ();
while (! question.compatible () & ! question.getVide ()) {
question.cueillir ();
if (question.compatible ()) {
question.afficher ();
reponse.demander ();
trouve = reponse.getBP () == base.getNbPions ();
} else {
erreur = true;
conclusion (trouve);
}So, I did ;
question = new Combi ();And it's magical ! The program works...
Now, I would like to give colors to my researcher Mastermind :
1 2 3 4
4 4 1 1 ... BP MP : 0 2
1 1 6 5 ... BP MP : 1 0
1 3 4 3 ... BP MP : 1 2
1 2 3 4 ... BP MP : 4 0
Trouve !
I want the 1 to be red, the 2 be yellow, the 3 be green and so on...
Is there any procedure " textColor " ?
here is my method afficher () :
public void afficher () {
// Affiche le tableau 'combi'.
for (int i = 0; i < NB_PIONS; i++) {
// textColor (couleur [combi );
System.out.print (" " + combi [i]); -
How to use the SQL 'union' in Business Objects???
Post Author: tatun
CA Forum: Data Integration
Hi eveyone. I have to write the following SQL code in Business Objects.The code has some 'union' inside the same query. I have tried to make some unions in the Data Provider, but I can just do 8 unions, and I need to do much more.
How could I do it?
SELECT '20 ERRORES' TIPO, COUNT() NUM, CONCAT (TO_CHAR(ROUND((count()*100)/8023,2)),' %') PORCENTAJE
FROM PALETS
WHERE posicion is not null
and PALET NOT IN
-- MATERIAS PRIMAS
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.tipo_producto = 'ROH'
and (p.cod_producto like '%QA%' or p.cod_producto like 'E00%' or p.cod_producto like 'PU%')
and p.estado_m not in ('E','P','F','M','A','B','C')
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- GRANELES
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and ((p.tipo_producto = 'ROH'
and (p.cod_producto not like '%QA%'
and p.cod_producto not like 'E00%'
and p.cod_producto not like 'PU%'))
or p.tipo_producto = 'HALB')
and p.estado_m not in ('E','P','F','M','A','B','C')
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- MATERIAL DE ACONDICIONAMIENTO
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.tipo_producto = 'VERP'
and p.estado_m not in ('E','P','F','M','A','B','C')
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- PRODUCTO TERMINADO PLANTA 0008
select P.PALET
from palets p, estanteria e, license l
where p.posicion = e.posicion
and p.palet = l.single_plate
and p.tipo_producto = 'FERT'
and p.estado_m not in ('E','P','F','M','A','B','C')
and p.posicion is not null
and e.estado = 'O'
and l.ctry_code = '0008'
and p.clase_palet = 'P'
union
-- PRODUCTO TERMINADO PLANTA 0012
select P.PALET
from palets p, estanteria e, license l
where p.posicion = e.posicion
and p.palet = l.single_plate
and p.tipo_producto = 'FERT'
and p.estado_m not in ('E','P','F','M','A','B','C')
and p.posicion is not null
and e.estado = 'O'
and l.ctry_code = '0012'
and p.clase_palet = 'P'
union
-- PALETS ASOCIADOS A ORDENES DE EXPORTACIONES
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.estado_m = 'E'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- PALETS ASOCIADOS A ORDENES DE EMPAQUETADO
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.estado_m = 'P'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- PALETS ASOCIADOS A ORDENES DE FABRICACION
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.estado_m = 'F'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- PALETS DE MANTENIMIENTO
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.estado_m = 'A'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- MUESTRAS DE RETENCION
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.estado_m = 'B'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- MISCELANEO DE SUSTANCIA CONTROLADA
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.estado_m = 'C'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- MISCELANEOS
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.tipo_producto = 'NONI'
and p.estado_m = 'M'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- PALETS VACIOS
select P.PALET
from palets p, estanteria e
where p.posicion = e.posicion
and p.tipo_producto = 'NONI'
and p.estado_m = 'D'
and p.posicion is not null
and e.estado = 'O'
and p.clase_palet = 'P'
union
-- UNIDADES DE TRANSPORTE
select p.palet
from palets p, estanteria e
where p.posicion = e.posicion
and p.clase_palet = 'T')
ThanksPost Author: bhofmans
CA Forum: Data Integration
In Data Integrator we provide UNION functionality via the MERGE transform. However, it looks like your question is related the the IDD product line (Business Objects Enterprise), so please post your question to the appropriate sub-forum to get answers for BOE.
Thanks, -
How do use the method record(int score) in this code?
how do i use record(int score) from the class Stats to record a new score?
public class ScoreInfo {
private int score;
private int numStudents;
public ScoreInfo(int aScore){
score = aScore;
numStudents=1;
public void increment(){numStudents++;}
public int getScore(){return score;}
public int getFrequency(){return numStudents;}
import java.util.ArrayList;
import java.*;
public class Stats
private ArrayList<ScoreInfo> scoreList;
public boolean record(int score)
int k=0;
while(k<scoreList.size() && score > scoreList.get(k).getScore()){
k++;
boolean found = k<scoreList.size() && score == scoreList.get(k).getScore();
if(found){scoreList.get(k).increment();}
else{scoreList.add(k,new ScoreInfo(score));}
return found;
public void recordScores(int[] stuScores)
static int score = 50;
public static void main(String[] args) throws Exception
Stats stats = new Stats();
ScoreInfo thestat = new ScoreInfo(score);
stats.scoreList.add(thestat);
}hiwa wrote:
In your main() method, or in any code which tries to create a new score, below is wrong:
ScoreInfo thestat = new ScoreInfo(score);
stats.scoreList.add(thestat);They should be:
stats.record(thestat); // record() method creates a new ScoreInfo
// and add it to the scoreList, see your own posted code
stats.record(thestat); will not work because record has a parameter that needs an integer not an object
i tried public static void main(String[] args) throws Exception
Stats stats = new Stats();
ScoreInfo thestat = new ScoreInfo(7);
stats.record(7);
but i get this error Exception in thread "main" java.lang.NullPointerException
at Stats.record(Stats.java:13)
at Stats.main(Stats.java:39) -
How to use the method substituion in variable ODI
Hi folks,
I have a variable that run the follow query;
select GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
GER_LOT_EXEC_ODI is a function, and i need to pass the data shema name before this:
I'd like that stay this:
select data_shema_user.GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
I tryed with the follow method and not worked:
select <%=odiRef.getInfo( <"SRC_SCHEMA"> )%>.GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
Error log
900 : 42000 : java.sql.SQLException: ORA-00900: invalid SQL statement
java.sql.SQLException: ORA-00900: invalid SQL statement
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026)
at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.execStdOrders(SnpSessTaskSqlV.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTaskTrt(SnpSessTaskSqlV.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
what is wrong?
Thanks in advance
BovoliniHi,
use <%=odiRef.getSchemaName("D")%>
D as parameter if it is the Data Schema or W if you need the schema from Work Schema
Your command will be like:
select <%=odiRef.getSchemaName("D")%>.GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
Works?
Cezar Santos
http://odiexperts.com -
How to use a method in sequence diagram from a class diagram
Hello, can someone tell me how to use the method from class diagram in sequence diagram? so far i only can add a classifier to the object lifeline but i still cannot add the method from the class...
thxNow that Web Services is around, I'd look at possibly implement a Web Service call in your applet, which can then be given back any object(s) on return. Set up your server side to handle Web Service calls. In this way, you can break the applet out into an application should you want to (with very little work) and it will still function the same
-
How to use addPasswordToPasswordHistory method
Hi
Can some one please tell me how to use the method addPasswordToPasswordHistory from the class WSUser.I have a requirement to add user password to password history whenever user changes his password through my custom password change workflow.Custom workflow changes the password in idm but it will not add the previous password to the password history.
It will be helpfull if you paste the code to use this method
Regards
Karthik PHi Amar
Thanks for the reply
I tried setting the password through setPassword method but its giving an exception ==>java.lang.NoSuchMethodException: java.lang.String.setPassword(com..waveset.util.EncrypteData)
Then I decrypted the password but no luck getting ==>java.lang.NoSuchMethodException: java.lang.String.setPassword() exception.
Am i missing something here.do i need to pass the encrypted password in byte array format? if yes how to do that.
Here encrypted password is coming from a form.
regards
karthik p
. -
How to use the result from a taglib?
Hi people.
I've been looking arround for some feedback on how to use the output generated by a taglib on jsp code but I haven't been able to find any.
Could somebody tell me how to do that please?It works something like this:
The tab library consists of a class library and a tag libraray descriptor file. In your jsp header you include a taglib directive which associated athe TLD with a particular name prefix. Then you can include XML tags with that prefix and the tag library class to which they are connected will be invoked from the servlet that is generated from the JSP. This tag code can do pretty much anything, but usually what it mostly does is write HTML to the response stream. Opening tags and closing tags can both add whatever text they like to the stream which is sent to the client.
So including the tag in you JSP will usually suffice to cause generated output, it's up to the taglib.
Maybe you are looking for
-
"Disk cannot be read from or written to" when syncing iPod
HELP!!! I've an I-Pod 20Gb (just over 1 yr old) that has developed the above message in I-Tunes whenever I try to sync it now. Usually between starting and up to 1GB of files. I have done the 5 R's. I've managed to find my way into the diagnostics me
-
Adapter module Transform.Class error
Hello, I have a sender jdbc adapter which is calling the xslt transform class with no errors but its obvious that the xsl is not being invoked as my xml is not transformed, but I don't see any error in the audit log. When I purposely use a non exist
-
How Do You Stop a Function (k)
I have this code placed in the second frame of my timeline. It is there to pause the playhead for 4 seconds before moving onto the next frame. Problem with the code is that once the statement is true it keeps jumping ahead doing a perpetual nextFrame
-
What do I need to display whatever I call up on my MacBook running OSX 7.5 on a TV with a USB port?
-
there exist a method to make total header line in tableview