m
Tag query
Perform M query. This is the way to get tabular data from M and iterate over it (e.g. parse it into an HTML table).
The output expacted from the M code is in the following format:
- List of columns, each one in a line of the format: NAME=column_name,TYPE=column_type (type can be "E" for English, "N" for number, and "H" for Hebrew).
- >>>DATA
- A line for each table row with the column values separated by underscore ('_') character.
For example, to print a table with 4 columns, generate this output from the M code:
NAME=id,TYPE=N
NAME=first,TYPE=E
NAME=last,TYPE=E
NAME=address,TYPE=E
>>>DATA
1_sidney_Levy_Rechasim
2_Yishai_Pinchover_Haifa
3_Uri_Schor_Zichron Ya'akov
Tag Information |
Tag Class | com.cav.taglibs.mumps.MumpsQueryTag |
TagExtraInfo Class | com.cav.taglibs.mumps.QueryTagExtraInfo |
Body Content | JSP |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
expr | true | true | java.lang.String |
The M query to perform.
|
varName | false | true | java.lang.String |
The name of the JSP variavle that the number of columns in the query result will be set to.
Default is "_colCount".
|
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.