Question about Http Transaction in Servlet
If I want to use the http connection to send some data to the servlet.
But not all the data are encoded in English (maybe some are in Chinese), then how can I set do it?
This is because when I use request.getParameter("some parameter name") and the value of this parameter is in Chinese. Then the string is not properly encoded.
Do I need to set the CharacterEncoding to support unicode?
First make sure that data you are sending over is encoded in UTF-8 by setting the encoding of the html form to utf-8.
Then is your servlet do that following
before getting any parameters form the request object call
request.setCharacterEncoding("UTF-8");
then get the request parameters as usual.
request.getParameter("parameter name");
That should do it. By the way this should work with any character encoding just make sure they are consistent between you html form and what you set in your servlet.
Similar Messages
-
Peter: A question about XA transactions across weblogic servers
Peter,
I just read your article about "javax.transaction.HeuristicMixedException"
problem on WDJ.
In the article, you said this case applies to WLS 6.1.
I'd like to know does this applies to WLS 7.0?
If not, what is the mechanism in WLS7.0 to cope with such problem?
Thanks,
William
William,
The same arguments that I ran through in the article apply to WLS 7. The
solution is diferent, however since WLS 7 has no "system" user per se.
Take a look at http://edocs.bea.com/wls/docs70/adminguide/managetx.html#1050458
for the description of what you need to configure to get cross domain
transactions with WLS 7.0
Regards,
Peter.
william lee wrote:
> Peter,
>
> I just read your article about "javax.transaction.HeuristicMixedException"
> problem on WDJ.
> In the article, you said this case applies to WLS 6.1.
>
> I'd like to know does this applies to WLS 7.0?
>
> If not, what is the mechanism in WLS7.0 to cope with such problem?
>
> Thanks,
>
> William
>
>
>
-
Question about HTTP Server and 9iAS
I am kind of new to Oracles 9is products. I installed Oracle 9i Rel. 2 recently and it installed HTTP Server and other stuff as part of that install. I am trying to write a small web application. Is this install good enough to do basic servlet's, jsp's and may be EJB's etc ... or do I need to install 9iAS. I am confused on the fact that I know 9iAS will give me j2ee container, web container, clustering, etc ..., what functionality is included in the 9i databases web server piece.
Also, can anyone point me to a good documentation that explains directory structure of 9i Rel. 2. I am familiar with the database part fairly well(oracle 7 release). However, I am confused as to new web related stuff (Apache, bc4j, etc..) in 9i Rel. 2.
Thanks.Hi,
No, you cannot run EJB's in the Apache installation. For that you might want to download OC4J.
Basic Http pages and Servlets can run but I dont think it is advisable to use it for that. For any kind of development, I would suggest you to use OC4J.
Oracle9i Database is web enabled and you can access the table, etc.. from a browser too. This is the reason Apache is provided with the basic installation. Oracle9i Rel 2 has XML DB in it which again can be accessed from the Web.
For more help on any of these check http://otn.oracle.com/documentation/oracle9i.html
You will be able to get all the related Developer's Guide here.
Hope this helps,
Rajat -
Security question about Admin transaction: BDLS
Hello Experts,
i have a question regarding BDLS transaction: Conversion of Logical Systems. My former supervisor gave me the task to remove the BDLS transaction from all user profiles because of its critical matter. It should not be performed on Productive systems.
As i checked SAP Notes and documentations, i found this line:
"It is not possible to convert logical system names in a productive systemu201D
Based on common sense, it is not possible to perform the transaction in the Productive systems and not because of Authorizations but because SAP Standard it is so defined.
Do you have any experience with this? There are a few people that have this Transaction in our Systems but if its not possible to perform it, then i dont need to remediate it.
Thank you, for your feedback,
Cheerz,
david
Edited by: David Damaskinos on Dec 28, 2010 1:47 PM
Edited by: David Damaskinos on Dec 28, 2010 1:48 PMAs i checked SAP Notes and documentations, i found this line:
"It is not possible to convert logical system names in a productive systemu201D
Were there any condition given on the same? If so then check if the same satisfy in your production system or not. However I am in favour of removing the transaction anyway. I am not so familiar with this transaction but there might be many other way (may be program, FM etc) through which some undone might be done.
Regards,
Arpan Paik -
Question about 'copy transactions'
In the standard training book, there is a saying that 'When you copy transactions, the system produces a copy an ddisplays it for processing. When the copied transaction is saved, the document flow is not updated, that is, the copied transaction has no connection to the orginal transaction.'
But how can I see the original transaction in the document flow?
Regards,
AndersHi,
The feature you are talking about here is known as Copy Control. You can get the whole reference of it from the following link
http://help.sap.com/saphelp_crm60/helpdata/en/5b/e4f53911cac83ce10000000a114084/frameset.htm
You will get the subsequent and preceding document which will be highlighted to show you the difference.
Hope this helps.
Thanks,
Samantak. -
Question about VF03 transaction / billing document
on VF03 transaction, does Billing document number need to be always invoice number?
Please clarify.
Thanks,
KrishenIn most scenarios yes.
You create a billing document and it generates a invoice number. You can also say billing invoice number.
Hope you are taking about the billing & invoice in your system. The invoice number in the bill from your vendor will not be found in VF03 in your system.
-Vishal -
Dumb question about Thread Safety in Servlets
Hi all
I wrote this Client API for sending requests and receiving responses to / from a multivalue database. The API is called by my Servlet. Now it seems my API is not thread safe because when several people open up the servlet at the same time, the API gets totally confused. When the API calls are inside a synchronized(){} it works just fine, but obviously at a big performance hit. Is that the wrong way of doing it??
However when I was doing the ACID test locally on my machine, by opening two command prompts and excuting the same java program (with the same code in it as the servlet, but standalone) my API worked just fine. How come?
Any insights appreciated as I am just learning about thread safety now (the hard way :-( )
cheers
DejanDoes this help
Are you using one connection to the database shared by all instances
of your servlet
And is this connection create in the init method of the servlet and stored
in the servlet context.
Problem 4 people try and use your servlet at the same time, each servlet trys to
create a connection to the database and then store it in the servlet context and
this causes a problem.
Solution create a listener to create the connection and store it in the servlet context
when the servlet is created.
If this is your problem it is not advisable to use only one connection to the db
try using db pooling -
Hi,everybody:
I'm testing a project building on oas4.0 and solaris system.After I installed OAS,I did some setting about site.I create a new http listener,and then start,but failed.The error is:"Error: you must specify a root directory mapping before all other mappings.see (DirMaps).The Server could not initialize."
But I've set the root directory,what's the meaning of it,and how to improve it? If U know,pls tell me.
Thanks.Hi Wei,
I could be wrong here, but as far as I know, OAS is a pretty old product
and -- if I remember correctly -- quite buggy. That's why Oracle replaced
it with 9iAS. I would imagine that OAS is probably de-supported now.
Perhaps you should consider upgrading to 9iAS (if possible)?
Good Luck,
Avi. -
Question about domain name/JSP, servlets
I have a web host which publishes my pages, say www.zzz.com. I want to use JSP/Servlets on my machine which is using Apache Tomcat. Here's the problem, if I link a JSP/Servlet from www.zzz.com, the user will see my IP, i.e. 37.28.18.102/servlets/Calculations
Is there a way where the people's browser's URL text field will always be www.zzz.com even if the page is located on my server?Try using Frameset where top frame is always www.xxx.com and child frame can be anywhere
-
Questions about https and os version
Hi,
we are installing 2 s160
OS Version
same machine, same license feature, but after last os upgrade we have 2 different version v7.1.1-033 and v7.1.1-027
Why ?
https,
for the moment customer don't want enable https proxy, but user must access to https site.
Actually when tryng access https site doesn'work, because unable to match any access policy.
Have you some idea ?
Thanks in advance for help
LucaHello Luca,
There will be a version of 7.1.1, that will be made available to allow you to upgrade and have the same version for your WSA. There is some work that is being done on the 7.1.1 line code, that is why you can not upgrade further from where you are now.
With regards to the https, if you say you have not enabled https proxy, the proxy will not really do anything on the ports you did not configure it to proxy for.
http://tinyurl.com/q3bord
It may help to do packet captures on the client, and see what is happening to the traffic, and also check for access logs on the WSA, to see if the WSA has any logs for the clinet https traffic.
http://tinyurl.com/6ekeec
I hope this information helps you.
Regards,
Eric -
Question about WLE transaction
Hi,
I have develop a system using WLE 5.1 for Corba C++,the database is oracle
8.1.6.
I developed two corba servers: ServerA and ServerB,both of them connect to
the database using XA but not the same openinfo.
Now,one method of ServerA "updateA" need call one method of ServerB
"updateB" as a corba client, both "updateA" and "updateB" update the
database using XA.
I want to ask can I write the code:
"tp_begin();
ServerB.updateB;
tp_commit();" in ServerA's "updateA" method?
If I implement the method like that , When a remote corba client to call the
serverA's method ,I write the code:
"tp_begin();
ServerA.updateA;
tp_commit();"
Is it nested transaction?See my answer in the weblogic.developer.interest.weblogicenterprise newsgroup.
Fu Ming wrote:
Hi,
I have develop a system using WLE 5.1 for Corba C++,the database is oracle
8.1.6.
I developed two corba servers: ServerA and ServerB,both of them connect to
the database using XA but not the same openinfo.
Now,one method of ServerA "updateA" need call one method of ServerB
"updateB" as a corba client, both "updateA" and "updateB" update the
database using XA.
I want to ask can I write the code:
"tp_begin();
ServerB.updateB;
tp_commit();" in ServerA's "updateA" method?
If I implement the method like that , When a remote corba client to call the
serverA's method ,I write the code:
"tp_begin();
ServerA.updateA;
tp_commit();"
Is it nested transaction? -
hi,
can anyone explain me how a browser know the end of a requested ressource send by a server, if the
content-length http header wasn't included inside the response (http response i mean) ? is there a blank line at end or somethingelse ??
thanks for your helpProbably either an EOF gets sent from the server or the server closes the connection
-
I'm just over 6 months on the job and am new to the IronPort. Found that users can still get to facebook and other web sites by using https. Not sure if I need to enable the HTTPS proxy. I don't really care to monitor the SSL session. Our policy is just to limit access to certain web pages. Can anyone advise. We're using WCCP from an ASA firewall. Thanks.
To add on to what Eric is saying:
The decryption policies have a few different actions. To block facebook HTTPS traffic, there are a few different ways to do it, depending on your needs.
Add facebook.com and .facebook.com to a custom category
Or if you want to block all social networking sites, just modify the action for the "social networking" category.
In the decryption policies, here are your options for blocking:
Set the category to Drop. This means that the SSL connection will be abruptly terminated - NO BLOCK PAGE. Just a generic browser error will show up.
Set the category to Decrypt and then the access policies will apply. So if your access policies block facebook, facebook will be blocked.
One key thing to understand is that cookie surrogates won't provide auth credentials for HTTPS traffic, so if you're using cookie surrogates, your decryption policies will be for all users matching a "no auth" Identity. In short, this means that you can only "drop" HTTPS facebook traffic for EVERYONE, you can't pick and choose by user / group, unless you use IP surrogates.
This is due to technical limitations in how HTTPS proxies work with authentication.
Hope this helps.
Cheers,
Josh -
Question about CLMM transaction
Hi All,
More than 1.000 Functional locations are sitting with an incorrect Attribute/Characteristic of “Indoor” instead of “Outdoor”, would it be possible to have these updated in bulk with CLMM transaction?.
Could anyone write here an example of use of the transaction CLMM, i.e., trying to change a Functional Location (or equipment) Characteristic?.
Thank you so much!
RegardsGo to CLMM. Click on Set and Change Values push button.
Select the class type in "Header", class in "Assignments" tab & characteristics in "CHARS" tab.
Click on "Target Objects" tab. Click Find Object push button.
By giving that characteristics value as INDOOR, click on Find in Initial Class.
It will list all the Functional locations. Select all the locations.
Do Test Mass Change initially before doing Carry out a Mass Change which has actual effects. -
Question about OMSF transaction
Hi,
Is it possible change Material Group description with this transaction in a massive mode ?
If I can't use this transaction, Is there an other way ?
The system is an ECC 6 (not retail system ... I can't use transacvtion WG22).
Are there
Thanks a lot
IvanHi,
Do refer the below OSS Note, which explains different FAQ'S on material group changes.
359940 - FAQ: How do I maintain material groups?
Check the below OSS Note which explains how to activate the T-code WG21 and WG22 in standard system.
863907 - Composite SAP Note: Maintaining material groups
Maybe you are looking for
-
Converting Time Machine back into an External Hard Drive?
before i got my macbook, i used my 320GB external hard drive on a windows XP-run computer. i transferred all my files to my new mac, before using it as my time machine drive. it's now incompatible with windows though. is there any way to either -allo
-
Duplication of invoice from EDI Inbound interface
Frnds we are receiving EDI invoices form one of the vendor, so he just sends a file of the invoice and it get posted in SAP But the issue is that for one invoie,two invoices are generated with all the same inforamtion. I mean one invoice is poste 100
-
Deploying standalone FPGA application using CVS-1457RT
Hi all, I want to make a stand alone real time Vision application using CVS-1457 RT and Gige vision camera. My present code looks like this: 1. NI-CVS 1457RT. 2. FPGA Target with 5 FIFo in and FIFO out for images 3. Host Vi (with subvi's in it which
-
Creating group and setting owner
Hello, When I am trying to create a group, FIM is picking up the my account (in which I am logged in) and setting that as the owner of a group unless I manually delete that and put another user as the owner. Can we change the settings somewhere
-
Time Capsule by default backup only data files and excludes program files like Photoshop, Lightroom, and MS Office, etc... right since if crash I can reinstall and not want to take up disk space for applications that I have CD to reinstall? Or do I