Is it possible to change status code within a serlvet filter
I tried to update the HTTP status code within a filter's do filter method, but it doesn't work,
public void doFilter(ServletRequest request, ServletResponse response, FilterChain, chain){
chain.doFilter(request, response);
((HttpServletResponse)response).setStatus(HttpServletResponse.SC_OK);
Did I do anything wrong
Hi, sorry I did not get the relevance of the posted link. It refers to standard customisation, which I think is opposite to what Neil asks. Normally you can execute a GPS on changing the status in STS. But Neil is wanting to do the opposite, if I am not mistaken,: change the status in the STS by running a sequence in the planning.
I don't have a solution; but my question would be why use the STS if not using for status control? One can see issues arising, like when the current status in not what you are expecting, or if a sequence should be run when the status changes, and maintaining the fields that change (status history log). I guess it may be doable, but is it worth it?
Stephen
Similar Messages
-
I live in the UK but visit the US regularly. I plan to buy a MacBookPro in the US but have read that it will not play UK DVD's. Is this so? If so, is it possible to change the codes?
All modern & new Macs can play both PAL and NTSC DVDs. I do it all the time and it works perfectly.
The DVD drive is set to its first region code when you first play a DVD in it. So when you buy a Mac, whatever type of DVD you play first will determine the initial region code that is set. If it's a PAL/Region 2 DVD it will set the DVD drive to region 2.
The only thing you have to watch out for is if you have a collection of DVDs that have different region codes. In those cases you may be faced with changing the region code in the DVD drive in order to play one or more of the DVDs; and as others have noted there is a limit to the number of times you can change the region code (most modern DVD drives allow up to 5 changes; the 5th change becomes the permanent change). This is due to industry licensing practices.
If you have DVDs that are Region 0 or All Regions you don't have to worry about region codes. -
Is it possible to change a color within a PDF using Acrobat?
I would like to change a color within a large batch of PDFs.
The color should have been changed in Quark, but now that I'm well into the PDF production cycle, I'm wondering if it's possible to edit the PDF directly.
Apart from color photos, there is only one spot color to be adjusted.The color in the PDF file is a Pantone color created in Quark. I want to replace it with a different Pantone color. Is that what you mean by an "arbitrary replacement"?
The entire document is black and white plus this color. The file was exported as a composite process black plus a spot color.
I can open the PDF as a text file and I see that "CustomColors: (PANTONE 267 C)" appears twice, as does "CMYKCustomColor: .842 .987 .002 0 (PANTONE 267 C)" but replacing them with their counterparts in a document that is the same except for a different spot color has no effect.
Any suggestions? -
Is it possible to change Company Code in Cost center, once postings done?
Hello Friends - We have Cost center created in CoCd 0001 and made the postings and this year beginning CoCd in Cost center was changed from CoCd 0001 to 0002 for some business reasons. Now, User says that he needs to post one journal to this Cost center in CoCd 0001. As this Cost center is in another CoCd, It cannot be used in CoCd 0001.
Please suggest me that if it is possible to change and the process to change the CoCd in 0001. Once journal is posted, we will put it back 0002.
ThanksHi Hoysala,
Please refer to the following note Note 62716. These three prerequisites must be met:
1. The change interval is set to period limits
2. There is no dependent actual transaction data in the change interval or afterwards.
3. There must already be an analysis period for the respective cost center which starts on the first day of the chosen period. If this is not the case, you can create one with 'Change cost center' - KS02
(for example, by changing the cost center manager).
You may use transaction code rkacshow to check the transactional data that exists on the affected cost center, in order to change the company code, all these data should not exist for the time
interval.
Regards,
Jose -
Advice needed for changing code within the Web IC...
Hi,
I need to change some code within the GET_QUERY_RESULT Method, which is found:
BSP->Z_CRM_IC
View->AuiSearch
Controller class ZL_CRM_IC_AuiSearch_impl
Method do_handle_event
Method eh_onsearch
Method get_query_result
At present the method get_query_result belongs to class CL_CRM_AUI_QUERY_SERVICE.
I can create a subclass from this and call it ZL_CRM_AUI_QUERY_SERVIC, then redefine the method get_query_class, and then make the appropriate changes. But that may be all uneccessary. What I don't know is how to ensure this modified code can be called.
I have already made changes for method DO_INIT_CONTEXT, hence the reason the controller class ZL_CRM_IC_AUISEARCH_IMPL is identified. But this was simple because the view linked directly to this whereas you can see the code I need to change is further down in process chain.
I know that method get_query_result calls a number of BADI's, but these BADI's are too low for the information that I need and therfore really need to make my code changes in the get_query_result method.
I have been reading as much as I can on this subject, but without much success and therefore really count on experienced developers like yourselves to steer me in the right direction, or give advice.
JasI will not suggest to put your Enhancements into CL_CRM_AUI_QUERY_SERVICE.
Rather in Component BT -> Class CL_CRM_BTIL . AUi Query Service will Internally call the BOL Component ( get query result )
In your Framework Profile Config , you specify the Component Set . Ex: ALL
Component set have a List of Component Ex BP , BT .
SPRO-> CRM -> CRM Cross Application Components -> Generic Interaction layer -> Basic Settings
Now you can have your Custom , Component Set ( Ex : ZALL ) and Component ( ( Ex ; ZBT , Totally advisable for CIC Development Framework )
Have BT Copied into ZBT and Specify ZL_CRM_BTIL ( Inherited from CL_CRM_BTIL )
And in your Custom Component Set , Specify ZBT instead of BT .
Now Specify your Custom Component Set in your Framework Profile .
Now you got the Enhancement Spot in ZL_CRM_BTIL->GET_QUERY_RESULT
Let me know if it make sense -
Change status(Active/Inactive) of file adapter by the external command
Hi, all.
Is it possible to change status(Active/Inactive) of file adapter by the external command?
Let's say, like
"$ switch_file_adapter_status.sh <File Adapter name> <active|inactive>"
or something like that.
Actually, we have the following requirement for the file adapter.
For example, we have many "file adapter to R/3" scenarios and we only want to allow data transfer between 9:00 a.m. to 9:00 p.m.(R/3 service time).
In order to achieve this requirement, one option would be to switch file adapter status between active and inactive by external command line.
And this command will be controlled by the job scheduler(like Tivoli).
Does XI(3.0 or above) have this kind of feature?
Best Regards.Hi,
I don't think that this is possible.
But one Solution for your problem could be a job on xi who execute the Queue.
So that Adapter work the hole time and send the Message to XI Queue which process them not automatically.
And the XI Queue you can trigger with a Job like normal R/3 Jobs.
Hope that helps,
Regards,
Robin -
hi all,
Is it possible to change user code ?
User has done more than a year transactions.
JeyakanthanHi,
You will be no problem to lock user code & remove license tick in license administration &
create new user code & apply license.
What is your real issue?
Thanks,
Gordon -
When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the searchTerms and IF statements that change the URL depending on the searchTerms? Every time I try to add something firefox doesn't want to add it as a search plugin. I need to create a more powerful search tool for personal use.
I've found some external software applications that will do it, so that leads me to believe its not possible within ID CC.
-
Possible to Change the Order Status
Hai
When i am booking the sales order the status is showing the Booked is it possible to change the Booked status according to the customer requirement ....
thanks in advance
M.Meenashi SundaramHai its possible to change the order status from the
setup>quick codes>order management>
type --flow status
we can able to change it
thanks
M.Meenashi Sundaram -
Is it possible change status of a object?
Hi!
I'm currently learning AS3 to develop my own game but my previous experience in game development is with LUA script. Within Lua script, you can write/script objects with different statuses with IF statements. For an example,
Code:
if(ObjGet(ObjFind(1001),O_STATUS)==1)
This will happen
else
if(ObjGet(ObjFind(1001),O_STATUS)==2)
This will happen
In other words if object 1001 (for an example, a key) mets the criteria of status 1 = this will happen or if it mets the status 2 = another triggered event. I was wondering if this is possible to do this with AS3 code?
Let me explain what I want to achieve, I want script a event when you kill enemy, it turns to block which the player push around. I thought to do via frames of the enemy object - frame 1 = enemy, frame 2 = block.
Code:
if (player.hitTestObject(enemy))
health.meter.width--; ///reduce health of enemy
Collision.block(player, enemy); ///enemy bounces off player
if (enemy!= null)
if (enemy.hitTestPoint(bullet.x, bullet.y,true))
enemy.meter.width -= 5;
enemy.gotoAndStop(2); //// frame 2 - block
removeChild(bullet);
if(enemy.gottoAndStop(2)) /// if frame 2 enemy
Collision.block(enemy, player); /// player can push f2 enemy
I've attempted this code, it doesn't work and also tried the status code above from my Lua experience as well, no luck. Any suggestions? Any help would be greatly appreciated.
P.S - Random question - How you do any sites/books that share script files to look at to reference to and learn from?It usually best to include the complete error messages you are getting along with some indication of line numbers for the code.
The code you show appears to have one brace too many... which might lead to the problem you are encountering...
if (player.hitTestObject(enemy)) {
if (player.currentFrame == 1) {
health.meter.width--;
player.gotoAndStop(2);
} else {
player.gotoAndStop(1);
Collision.block(player, enemy);
} <--------- No home for this brace
if (player.hitTestObject(enemy)){
if (player.currentFrame == 3){
health.meter.width--;
player.gotoAndStop(4);
} else {
player.gotoAndStop(3);
You can likely reduce all that code to...
if (player.hitTestObject(enemy)) {
if (player.currentFrame == 1 || player.currentFrame == 3) {
if (player.currentFrame == 1) {
Collision.block(player, enemy);
health.meter.width--;
player.nextFrame(); -
Apps 11i change product status code from "Installed" to "Shared"
Hi All,
is it possible to change product status code from "Installed" to "Shared"?
Reg
chirag PatelWhy would you need to do this?
Generally, it is not possible (not supported). However, you can do that for certain modules (like HR/Payroll). Refer to the following note for more details:
Note: 461063.1 - HR and Financials Applications Installed as Full Instead of Shared
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=461063.1
Note: 461063.1 - Changing Oracle Human Resources Installation from FULL HR/FULL Payroll Install to SHARED HR/SHARED Payroll Install
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=461063.1 -
Is it possible to change text colour in code view?
Hi all,
Not sure if this is possible as never seen it myself, but is it possible to change the text colour in the code of the html?
A site I am building at the moment is for a school who want to be able to edit text / links occasionally, and as they will only be using something like notepad and have no html knowledge between them whatsoever, I thought if I could highlight bits in the code which are 'not to be played with' it would make everyone's job a lot simpler!
Possible or not?cs6_noob wrote:
Can the comments only go at the beginning of a line, or can they, for example go after say a <p> tag but before the page text? (If you get my meaning!)
Eg <p><!--edit from here--!>welcome to our website<!--up to here--!></p>
Yes, you can, but you need to make sure the HTML comment tags are correct. What you have done won't work, but this will:
<p><!--edit from here-->welcome to our website<!--up to here--></p>
Notice that the exclamation mark is only in the opening comment tag. Not in the closing one.
Opening tag for comment:
<!--
Closing tag:
--> -
Is it possible to change the user status of a TECO Order
Hello Folks
Is it possible to changes the user status of a TECO Order?
I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
I need to change the user status from NFBK to FBK.
Please provide some inputs for the same.
Thanks n Regards
RameshThe simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?
-
Possible to have if statement within filters code?
Hi
I have some filters set up, and have assigned some global vars to them, which I then use in my Filters code to display the filters:
myText:Filters [globals.data.glow1, globals.data.stroke1, globals.data.shad1]
Works perfectly.
Now I want to assign a global var to each global filter var to determine if it should be shown or not. So...
globals.data.glow1On = true;
globals.data.stroke1On = true;
globals.data.shadOn = true;
... and then somehow incorporate these new vars into an if conditional to determine if the filter global vars get included in the myText:Filters code.
However, I cannot seem to code the if conditional into the myText:Filters code correctly.
I even tried seperating it out like so:
if (globals.data.glow1On = true) {myText:Filters [globals.data.glow1];
if (globals.data.stroke1On = true) {myText:Filters [globals.data.stroke1];
if (globals.data.shad1On = true) {myText:Filters [globals.data.shad1];
But Flash only makes the last filter true (kinda makes sense to me now why).
Is there a way to do it without having to make an if conditional with 7 permutations?
Cheers
Shaun
You are not coding the conditional properly. "=" is for assignment, "==" is for comparing equality.
if (globals.data.glow1On == true) {myText:Filters [globals.data.glow1];
if (globals.data.stroke1On == true) {myText:Filters [globals.data.stroke1];
if (globals.data.shad1On == true) {myText:Filters [globals.data.shad1];
Also, a conditional evaluates whether or not something is true, so for Boolean values you do not need to explicitly compare them...
if (globals.data.glow1On) {myText:Filters [globals.data.glow1];
if (globals.data.stroke1On) {myText:Filters [globals.data.stroke1];
if (globals.data.shad1On) {myText:Filters [globals.data.shad1];
Lastly, for what I see that you showed, the conditionals are all missing their closing brackets, and while you can use them, the brackets are not needed for single command conditionals...
if (globals.data.glow1On){ myText:Filters [globals.data.glow1]; }
if (globals.data.stroke1On){ myText:Filters [globals.data.stroke1]; }
if (globals.data.shad1On){ myText:Filters [globals.data.shad1]; }
OR
if (globals.data.glow1On) myText:Filters [globals.data.glow1];
if (globals.data.stroke1On) myText:Filters [globals.data.stroke1];
if (globals.data.shad1On) myText:Filters [globals.data.shad1];
You are not coding the conditional properly. "=" is for assignment, "==" is for comparing equality.
if (globals.data.glow1On == true) {myText:Filters [globals.data.glow1];
if (globals.data.stroke1On == true) {myText:Filters [globals.data.stroke1];
if (globals.data.shad1On == true) {myText:Filters [globals.data.shad1];
Also, a conditional evaluates whether or not something is true, so for Boolean values you do not need to explicitly compare them...
if (globals.data.glow1On) {myText:Filters [globals.data.glow1];
if (globals.data.stroke1On) {myText:Filters [globals.data.stroke1];
if (globals.data.shad1On) {myText:Filters [globals.data.shad1];
Lastly, for what I see that you showed, the conditionals are all missing their closing brackets, and while you can use them, the brackets are not needed for single command conditionals...
if (globals.data.glow1On){ myText:Filters [globals.data.glow1]; }
if (globals.data.stroke1On){ myText:Filters [globals.data.stroke1]; }
if (globals.data.shad1On){ myText:Filters [globals.data.shad1]; }
OR
if (globals.data.glow1On) myText:Filters [globals.data.glow1];
if (globals.data.stroke1On) myText:Filters [globals.data.stroke1];
if (globals.data.shad1On) myText:Filters [globals.data.shad1];
Is it possible to change the status from Bid Rejected to Bid submitted?
Hi there.
We are working in SRM 4.0.
One user rejected a bid, but it was a mistake. Is it possible to change the status from Bid Rejected to Bid submitted?
We would like to modify the status from Bid Rejected to Bid submitted or Awaiting Approval to Bid submitted in order to solve errors.
Thanks and regards.
Raúl Moncada.
Hi ,
Use Function Module : BBP_PD_BID_STATUS_CHANGE
Supply Activity = 'QOSU' .
Regards,
Sachin S M
Maybe you are looking for
-
Problem with application connection
Hello, I use Oracle APEX online environment, I develop an application and I export this application. I install APEX on my PC Win7 64bit, I upgrade it to 4.2 version. I try the "Sample" application and I have no problems. If I create a new application
-
If your P.C. does not reconize your ipod video read this !!!
Scroll down to see solution My story:I just got a new ipod video 60 gb a few days ago. i installed everything and it was up to date. I have a pc with windows xp home edition. when i pluged it in all it did was make a sound like it reconized it. I spe
-
Hi, I am looking for a Vendor Statistics report developed by an ABAPER which basically shows how late a PO was, If full quantity was GR etc basically a Vendor Evaluation report, Points will be awarded any Vendor Evaluation Type report will be helpful
-
Selective color partial de-saturation (both specific area AND specific color)
Hi All, I searched a little both here and Google and am now convinced this is not possible in LR. Please let me know your thoughts. I want to select a specific area, say bottom half of the image, and then desaturate blue by 50% and aqua by 25%, witho
-
JavaScript File calling JavaScript File
How can I make a JavaScript function in a file call another JavaScript function in another file ? I am currently achieving this by specifying both JS files in the ApEx page header, but this is a clumsy approach and I am hoping that someone can tell m