What's the actual function of resource-ref in web.xml
I was configuring JNDI datasource in tomcat and found an confusing fact.
If I have the JNDI resource configuration in the context configuration of the project, I could get access to the JNDI element with or without the resource-ref configuration in my web.xml.
Can someone tell me what exactly resource-ref does in the web application?
Thank you.
Thank you, Sunny.
But I still don't quite understand.
In Tomcat, this <resource-ref> seems to be optional, right?
Plus, there should be a virtual name and actual location in the configuration.
<resource-ref>
<description>Resource reference to a factory for java.sql.Connection.</description>
<res-ref-name>jdbc/mydb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
So, is "jdbc/mydb" the virtual name or the actual location of the resource?
Similar Messages
-
Adding resource-ref in web.xml
dos it make any difference adding
<resource-ref>
<description>Application Datasource </description>
<res-ref-name>jdbc/myDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>inside web.xml , it works with or without , please tell me the importance of thisThe optional resource-ref element defines a reference lookup name to an external resource. This allows the servlet code to look up a resource by a "virtual" name that is mapped to the actual location at deployment time.
http://www.chariotsolutions.com/geronimo/geronimo-1.1/database-mapping.html -
What is the use of security-constraint tag in web.xml
what is the use of following tag , and how to use that, and where to use that tag.
<web-resource-collection>
<web-resource-name>SecureOrderJSP</web-resource-name>
<descrip<url-pattern>/order/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name></role-name>
</auth-constraint>
</security-constraint>tion>Protect the Order JSP Pages </description>Hi,
You can refer this link
http://www.whizlabs.com/tutorial/scwcd/j-scwcd-7-5.html
give the complete description of your doubt
Thanks,
Snigdha Sivadas -
What is the actual size of an (empty) varray in a record?
what is the actual size occupied by an (empty) varray in a record?
For example, if I create my table defined as:
create or replace type XXX as object (
myRefs VARRAY(10) of REF(yyy)
create table YYY as XXX;
what is the actual size of the record of type XXX when 'myRefs' is empty? For some reason, select data_length from all_tab_cols where table_name = YYY seems always to return 3K as the length of column myrefs.... is that correct? If not, what is the correct size?A tad late here...
Storage sizes of REF attributes are described here:
[Design Considerations for REFs - Storage Size of REFs|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11822/adobjdes.htm#i452226]
The size of your REF attribute (or element, in your case) will depend on whether it is primary key-based or system-generated, whether it is scoped or not, and whether it carries with it a rowid hint. The overall size of your VARRAY attribute as it grows will also depend on whether you allow null REF values or not, but essentially will be the size of your REF multiplied times the number of elements in your VARRAY (plus a small, constant amount of storage for internal housekeeping, both for the attribute and for each element).
You could try the VSIZE function as an appromixation...
[Oracle® Database SQL Language Reference - VSIZE|http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions233.htm#SQLRF06162]
Hope it helps...
Gerard -
What is the mathematical function associated to linear, map ranges, polynomial, table scale? I'd like to use the scale of daqmx for use with other types of data.
yes, refer to the help, but only found information on the first option "linear". what I intend to is to be able to climb a number, using one of the existing scales, but don't be that mathematical function is necessary to use.
-
What are the standard functions in XI ?
What are the standard functions in XI ?
Hi,
The target field mapping is possible by using below typs of functions
1. Standard functions
2. Runtime procedure
3. User Defined functions
Standard functions are the APIs provided in Graphical mapping to process the values of the fields used for target field mapping.
Technically all these values are trated as string thus all standard functions expect strings as input argument and string as an export aurgument
Please find here with you more details about it at below link
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm
2. Runtime procedure
http://help.sap.com/saphelp_nw04/helpdata/en/3d/24e15bf9d79243b45d49b13b03de8f/content.htm
3. User Defined functions
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
Thanks
Swarup -
What is the BAPI Function to save text of a Delivery Order?
When I save a delivery order I want to to save its Texts such as Số xe, Tên tài xế,... as the below picture.
What is the BAPI Function to save text of a Delivery Order?
Please help me!!!
Thanks,
Nguyen Quang Dai.I ran 2 function (SAVE_TEXT and BAPI_TRANSACTION_COMMIT) as below:
but the text was not changed
Can you guess the reason?
Please help me!!!
Thanks,
Nguyen Quang Dai -
What is the actual cost of SAP original Software?
hi experts
<b>What is the actual cost of SAP original Software to implement in one software company.</b>
thanks in advnaceBetween $1 and $100,000,000.
Lots of variables... yearly licensing fees or full purchase, R/3 or complete NetWeaver suite, single user or multi-user, several levels of support or no support, implementation partner expenses, types of hardware, etc....
EDIT:
I just noticed you said "one software company". There are other options if you want to be a "partner". It is one thing to use the software to run your company, it is another if you want the software because your company wants to develop add-ons.
Message was edited by: Norman Salter -
What are the different functions used in sap script?
Hi,
What are the different functions used in sap script? What are the parameters used in each Function?
Regards,
Maheshhe print program is used to print forms. The program retieves the necesary data from datbase tables, defines the order of in which text elements are printed, chooses a form for printing and selects an output device and print options.
Function modules in a printprogram:
When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine forms into a single spool request use START_FORM and END_FORM.
To print textelements in a form use WRITE_FORM. The order in which the textelements are printed, is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you can also use the WRITE_FORM_LINES function module.
To transfer control command to a form use CONTROL_FORM.
Structure of a print program
Read data
Tables: xxx.
SELECT *
FROM xxx.
Open form printing - Must be called before working with any of the other form function modules.
Must be ended with function module CLOSE FORM
call function 'OPEN_FORM'.....
To begin several indentical forms containing different data within a single spool request, begin each form using START_FORM, and end it using END_FORM
call funtion 'START_FORM'.....
Write text elements to a window of the form
call function 'WRITE_FORM'.....
Ends spool request started with START_FORM
call funtion 'END_FORM'.....
Closes form printing
call function 'CLOSE_FORM'...
OPEN_FORM function
Syntax:
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = ' '
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
OTHERS = 11
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Some important parameters:
FORM Name of the form
DEVICE
PRINTER : Print output using spool
TELEFAX: Fax output
SCREEN: Output to screen
OPTIONS Used to control attrubutes for printing or faxing (Number of copies, immediate output....
The input for the parameter is structure ITCPO.
CLOSE_FORM function
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Paramerters:
RESULT Returns status information and print/fax parameters after the form has been printed. RESULT is of structure ITCPP.
WRITE_FORM function
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = ' '
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Some important parameters:
ELEMENT Specifies which textelement is printed
WINDOW Specifies which window is printed
TYPE Specifies the output area of the main window. This can be:
TOP - Used for headers
BODY
BOTTOM - Used for footers
FUNCTION Specifies whether text is to be appended, replaced or added
Example of how to use the WRITE_FORM function module together with a script.
Form layout of the MAIN window
/E INTRODUCTION
Dear Customer
/E ITEM_HEADER
IH Carrier, Departure
/E ITEM_LINE
IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
/E CLOSING_REMARK
The print program
Writing INTRODUCTION
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'INTRODUCTION'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Writing ITEM_HEADER
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_HEADER'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Set ITEM_HEADER into TOP area of main window for subsequent pages
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_HEADER'
FUNCTION = 'SET'
TYPE = 'TOP'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Write ITEM_LINE
LOOP AT .....
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_LINE'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8.
ENDLOOP.
Delete ITEM_HEADER from TOP area of main window
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_HEADER'
FUNCTION = 'DELETE'
TYPE = 'TOP'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Print CLOSING_REMARK
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'CLOSING_REMARK'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
START_FORM function
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = ' '
LANGUAGE = ' '
STARTPAGE = ' '
PROGRAM = ' '
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
END_FORM function
CALL FUNCTION 'END_FORM'
IMPORTING
RESULT =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SPOOL_ERROR = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CONTROL_FORM function
The CONTROL_FORM function module alows you to create SapScript control statements from within an APAB program.
Syntax:
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command =
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Example:
Protecting the text element ITEM_LINE
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'PROTECT'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
TEXELEMENT = 'ITEM_LINE'.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'ENDPROTECT'. -
What is the Count function in formula of Query Design?
What is the Count function in formula of Query Design? Could someone gives an example?
Thanks!Example :
COUNT of
Also, check :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af -
i have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?
What have you tried so far in terms of troubleshooting this issue? Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
What happens if you try to reset the device with it still connected to the PC?
How to reset iPod
Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
Have you carefully worked through each and every single suggestion in this Apple support document?
iPod not recognized in 'My Computer' and in iTunes for Windows
B-rock -
What is the actual range of the Airport Extreme in Metres? Can it Cover up to 50m in Radius?
What is the actual range of the Airport Extreme in Metres? Can it Cover up to 50m in Radius?
50m would be approximately the range.....if there were no walls or obstructions in the path the wireless signal must travel.
Since we know nothing about how many walls, ceilings or other obstructions there might be the path that the wireless signal would take in your home, or the construction type of those obstructions, we cannot even make a guess about whether the AirPort Extreme might provide a signal to cover your home. -
What is the actual cost of these plans?
What is the actual cost of these plans?
* $59.99 a month for 450 minutes
* $79.99 a month for 900 minutes
* $99.99 a month for 1,350 minutes
Although they will very, Answers welcome from anyone in the USA. So I can have and idea of the cost with taxes and fees. I am located in both LA and NYC. I currently have a NYC number with Verizion using the 450 minutes plan. The plan cost $39.99 before taxes and fees and $48.42 after taxes and fees.
Breakdown of Monthly Access Charges:
450 minute plan: $39.99
Verizon Wireless' Surcharges and Other Charges & Credits: $3.31
Taxes, Governmental Surcharges & Fees: $5.12
Total Current Charges: *$48.42*My plan total is $84.99/month, then with taxes and fees it comes to $93.40 each month as the total bill. The biggest fee is the state sales tax, at just over $5 on my last bill. Then the 911 fees, fed regulatory fees, and all that are a few bucks each.
My plan -
450 Minute (required) $39.99
Unlimited Data (required) $30
1500 Text msgs (optional) $15
Total = $84.99 -
Hi Folks,
I need to use the function module 'ISU_S_PAYSCHEME_ROLLIN_ROLLOUT'. what is the main functionality of this function module? there is no documentation available for this FM.
Thanks in advanceHi,
Plz follow the link below for answer of your question.
Link is: Re: how to call standard SAP method in the Custom Program ?
Thanks & Regards,
Sarita Singh Rathour -
Hi Friends what are the actual differences between AT NEW & ON CHANGE
what are the actual differences between AT NEW & ON CHANGE ? can you list some of the differences?
Hi,
At New
1. When a new record comes at new triggers. Atnew only used inside loop and endloop.
2. At new is controlbreak statment on at new the left side field change, the event
trigers and the values become 0 and *
On Change
1. On change of works same like at-new but the diff is it can be used out side of a loop,like select and endselect,case endcase.
2.. on change of is not a control break statement and we can use onchange of out side the loop
and
The Major difference between the two is that AT NEW can be used ONLY for INTERNAL TABLES, while ON CHANGE OF can be used for any loop processing i.e do..enddo, while..endwhile and loop..endloop also.
AT NEW <field>
The block will be executed when the SY-TABIX is 1 (or) when the SY-TABIX 1 value has a change with the SY-TABIX value.
With this block the field towards the right to the field are not accessable with in the block, and are shown with '*'. They can be accessed outside the block.
ON CHANGE OF <itab>-<field>
The block also works similar to the AT First. In this block all the fields are accesseble.
ON CHANGE OF triggers whenever there is a change in that particular field.
AT NEW triggers whenever there is a change in the fields before that particular field.ie. if there is a change in that combinations from the first field.
On change off' works on variabels. The 1st time the statement isreached a memory copy is made of the value. The next time the statementis reached, the current value is compared to the stored value. If thereis a difference, the coding between ON... and ENDON. is executed. Youcan use this for a table workarea field, but if you have the table loopin a routine and the routine called several times, you can get unwantedresults. (Check the value of the last loop with the value of the firstnew loop.)
The AT NEW (and others like AT END OF...) are specially for table loopprocessing. The coding between AT new FIELD and ANDAT is triggerdwhenever a the field or any field defined to the left is changed. Yourtable should be sorted by all fields from the left up to the consideredFIELD. Btw all fields to the right contain *, so it can be usefull tohave a second workarea filled to be printed or what ever you want.
REWARD IF HELPFUL
RAAM
Maybe you are looking for
-
How can I use a new Apple ID?
I have an iCloud account that I've been using for a long time (since the @mac.com days) which has everything Apple of mine asociated with it (iTunes purchases, AppleCare registrations, Cloud Storage). I don't use that email anymore. I have a gmail th
-
4.1 Beats Audio in dv76163cl not working as advertised
I recently purchased the multimedia dv7 6163cl with beats audio, 4 speakers and 1 subwoofer. From the point I purchased the computer, 3 weeks ago to now, the front two speakers have never worked. The sound clarity is great as is with the rear speaker
-
In smartform quantity field move to left side.
Hi, smartform output quantity field displaying rightside. how can i move quantity field to leftside. Regards, Suresh.
-
Hello Experts, How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead of getting it in the material master data? For example, material A has a default purchase UOM of CV, but when I create a PO using materia
-
Problem in Creating Billing Document
Dear all, I'm doing practice according to course SCM600 - Processes in Sales and Distribution. I tied to create a billing document for a delivery. But in t-code VF01, the processing status of the delivery is "Incorrect". When I tried to save that doc