Expression tag in tag -- query
Hi,
Any any body let me know what's wrong with tag in the following JSP file:
<%@ taglib uri="/tlds/orlySample.tld" prefix="sample" %>
<%
String userName = request.getParameter("NAME");
%>
<HTML>
<BODY>
<sample:hello name="<%= request.getParameter("NAME")%>" >
</sample:hello>
</BODY>
</HTML>
Sameer
I dont know anything about Sample class but, there should be
defined function getName.
Or you can use
<sample:hello name="<%= request.getParameter("NAME")%>"/>
hope this help
Similar Messages
-
JSP ${} expressions in JSF tag attributes
Does anyone know why the expert group decided not to allow ${} style expressions within JSF tag attributes? I understand that a different syntax is needed to implement the 'late binding' #{} expressions used to link input controls to form beans, but not why the JSF tags actually prevent the use of immediately evaluated ${} expressions for accessing variables in the page scope in JSP 2.0.
I know there has been a lot of discussion about this and other threads mention a security loophole that would be opened up by allowing expressions like #{blah.${someProperty}}, but I'm not sure why this sort of thing would cause a problem. Is there any way to enable this behaviour, such as editing the JSF tag library descriptors to allow runtime expressions (horrible though that sounds)? Or perhaps another JSF implementation that supports both immediately evaluated and late-binding expressions? It seems a rather unnecessary restriction that is going to cause much confusion and mistyping for all...
Thanks in advance,
Keith.Thanks Adam, I see the problem now. It's a fairly obscure loophole but serious nonetheless. Of course, this problem could also be avoided by not using request parameters within JSF tags as it doesn't affect the majority of legitimate uses for expressions.
I have to disagree with you about mixing ${} and #{} expressions though. The majority of developers will be used to writing ${} expressions in JSTL and JSP text and so will expect them to do work the same in JSF tags. Judging by the number of posts in this forum about being unable to use page scope variables in JSF tags this issue is already confusing a lot of people.
As a rule of thumb, "use ${} for expressions that are output to the page and #{} for binding controls to backing beans and invoking methods" (which perform clearly distinct functions) is a lot simpler and easier to learn IMHO than the current one, which is "use ${} for expressions that are output to the page except within a JSF tag, where you use #{} for the same thing and also to update form values and invoke action methods"! (OK, I'm exaggerating a little for effect, but you get the point... :-)
I agree that mixing both types of expression in the same attribute might be a little confusing, but this is an unlikely edge case that should probably be prevented in value binding or action attributes anyway. It's more of an issue for label values where mistyping one for the other is already very common and, although not especially difficult to debug, is just another pitfall awaiting the unwary JSP developer. I'm not sure that JSP expressions would be much more difficult to debug anyway as the value and method bindings will simply not work, which is pretty obvious as soon as you try and test the thing.
Is this something that the EG would be prepared to reconsider for the next release of JSF, or perhaps getting the security loophole addressed in the next JSP spec? In the meantime, is there any reason that developers shouldn't enable runtime expressions in the TLD file provided that they're willing to live with the consequences?
(Sorry to harp on about it, but I've already had several complaints about this after recommending JavaServer Faces for a major development project at ingenta.com.)
Many thanks,
Keith. -
I have a problem with using expressions in jsf tags! I know this
topic was discussed before but it doesn`t work.
I want to use the following jsf-code:
<h:panel_data id="tab" var="vari" modelReference="Bean.varis">
<h:output_text id="Id" modelReference="vari.id"/>
<h:command_hyperlink id="hyper" href="next.jsp" label="Detail">
<f:parameter id="Param1" name="id" value="vari.id"/>
</h:command_hyperlink>
</h:panel_data>
The value of the parameter should have the value of vari.id!! Why doesn`t it work?? I also tried to use value="${vari.id}" and value=<%= vari.id %>.
I have also changed the jsf_core.tld from
<rtexprvalue>false</rtexprvalue>
to
<rtexprvalue>true</rtexprvalue>
Does anybody know what to do? Where should the .tld-files be localized when i deploy the webapplication??On May 19th, 2003 HydraD == "HD" wrote:
HD> I have a problem with using expressions in jsf tags! I
HD> know this
HD> topic was discussed before but it doesn`t work.
HD>
HD> I want to use the following jsf-code:
HD>
HD> <h:panel_data id="tab" var="vari" modelReference="Bean.varis">
HD> <h:output_text id="Id" modelReference="vari.id"/>
HD> ...
HD> <h:command_hyperlink id="hyper" href="next.jsp" label="Detail">
HD> <f:parameter id="Param1" name="id" value="vari.id"/>
HD> </h:command_hyperlink>
HD> </h:panel_data>
HD>
HD> The value of the parameter should have the value of
HD> vari.id!! Why doesn`t it work?? I also tried to use
HD> value="${vari.id}" and value=<%= vari.id %>.
HD>
HD> I have also changed the jsf_core.tld from
HD> <rtexprvalue>false</rtexprvalue>
HD> to
HD> <rtexprvalue>true</rtexprvalue>
HD>
HD> Does anybody know what to do? Where should the
HD> .tld-files be localized when i deploy the
HD> webapplication??
If you want your parameter's value to be pulled from the model, you must
use modelReference instead of value. Try that and see if it works.
Ed -
Cannot create title tag, meta tags for iWeb site, per Google requirements.
I created simple website in iWeb to meet art show deadline
www.barbaraturnertigrett.com
but when I tried to submit to search engines (via GoDaddy "Traffic Blazer" product), several issues or errors noted...no title tag, meta tags, keywords, too little text, etc. Was told by Apple, there is no fix at this time...no way to access to actual HTML code, to add title tag or meta tags, etc...since iWeb is merely a consumer, not professional enterprise, product. Researching further, I even tried to submit to Google directly, not via GoDaddy "Traffic Blazer", but could not "verify" my url site (because meta tag missing and/or could not upload entire html file, as required. I'd produced client websites in past on Adobe GoLive and was learning Dreamweaver, when someone alerted me to simplicity of iWeb. It is clean and simple, but wish I'd anticipated these other issues. Is there a solution to this with iWeb or should I finish learning Dreamweaver and start over? Thanks for any advice you can share.Both these last postings were helpful. THANKS. I could not open home.html file with "text edit", but when using Taco HTML Edit, it would open...so I dusted off (novice) HTML skills and entered the appropriate title tag and meta tag, per Google's requirements. Then, went to my GoDaddy hosting control center and (I think) I uploaded new file with new tags. Seems to be major lag time with any changes, so not sure my site is now successfully "verified", on Google. Hope I did not mess anything up, in the process. There seems to be various lag times before any changes take effect (right??).
So now...I'm very glad to find out about iMap and will buy it and watch the tutorial video, as instructed...since I am unsure if last 'fix'...fixed the problem, etc...and always eager to learn more. This is my first Apple discussion post, and certainly impressed/grateful for expert help. THX again. -
Tag 'dmnd': Tag size is not correct msg in Colorsync Utility
When I press the verify button in the Colorsync Utility, I get the path to my ICC Profile
/Library/Printers/Epson/InkjetPrinter/ICCProfiles/Pro38.profiles/Contents/Resour ces/Pro3800 3800C 3850 standard.icc
and then Tag 'dmnd':Tag size is not correct on the next line.
After that, Verify done - found 1 bad profile.
The printer works ok in Photoshop, though prints maybe come out a bit on the dark side as compared to my calibrated screen.
Is this something to be concerened about, and if so, what exactly is the course of action I should take?
ThanksSorry, I thought you asked what course of action to take.
It means the data for that "tag" in the profile is not the size expected - I know, that's obvious too. The 'dmnd' tag contains the manufacturer's description.
http://www.oyranos.org/wiki/index.php?title=DeviceSettings_in_ICC0.2
You could try opening it in ColorSync Utility and editing the tag. -
XSU and CURSOR expression in the sql query
Platform: oracle 8.X on ibm aix and java client code from
windows NT.
JDBC DRIVER: JDBC Oracle thin driver version 1.2.
when i execute a Sql satement with Cursor expression from the
java client code with XSU it returns an XML DOM But if the
CURSOR EXPRESSION IN THE SQL QUERY RETURNS EMPTY ROWS i get
back an error node with "ORA-01001 Invalid Cursor" error
message.i had aslo set the setNullAttributes(true) property
on oraclexmlquery.
Interestingly, if i exceute the same query in the SQL plus
it returns the column names with no rows.
is there any way where i can get xml document with table
structure, when there are no rows instead of ORA error message.Ok.
I assume that you have for one activity several asset PNR and for one asset several activity.
The factPNR is on this way a real bridge table. It's a way to be able to design a many-to-many relationship.
Have a look here for more detail on how to build a many-to-many relationship :
http://gerardnico.com/wiki/dw/data_quality/relationships#many-to-many
Therefore I assume that you want this design :
DimActivity -< FactActivity >- < FactPNR >- DimPNR and you will have :
DimActivity -< FactActivity >- < BridgeTable >- DimPNR How to build your bridge table ?
In the physical layer, :
* create a new table BridgeActivityPNR, open it and select "statement"
* enter your sql statement
SELECT DISTINCT A.ROW_WID ACTIVIDAD_WID, B.ROW_WID ASSET_WID
FROM W_ACTIVITY_F A,
W_ASSET_D B,
W_SRVREQ_D C,
X_S_CMPT_MTRC_F D,
X_S_ASSET_FEA_D E
WHERE A.X_SRA_SR_ID=C.INTEGRATION_ID AND
C.X_VLG_FLIGHT_ID=D.X_ROW_ID AND
D.X_ROW_ID=E.X_CM_ID AND
E.X_ASSET_ID=B.X_ROW_ID* add two columns in the column tab : ACTIVIDAD_WID and ASSET_WID
* create the physical join with the table FactActivity and DimPNR
* drag and drop in the business model your table BridgeActivityPNR
* in the BMM, create the complex join like this :
DimActivity -< FactActivity >- < BridgeTable >- DimPNR * open your logical bridge table and check the bridge table option.
And you are done if I didn't forget anything.
A complete example here :
http://gerardnico.com/wiki/dat/obiee/obiee_bridge_table -
JWSDP Custom Tags (finding tag handler class)
Hi,
ive been using the Java Web Services Development Pack
ive tried several examples of creating custom tags all seem to have different directory structures and none seem to work. Heres my setup...
rootdir -> index.jsp
rootdir -> WEB-INF -> web.xml
rootdir -> WEB-INF -> tlds -> demo.tld (the tag library descriptor)
rootdir -> WEB-INF -> classes -> demo -> tags -> Greeter.java (the tag handler class)
there are some other folders created by deploytool but they are empty.
heres demo.tld...
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>demo</short-name>
<uri>DemoTags</uri>
<tag>
<name>greeter</name>
<tag-class>demo.tags.Greeter</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>
here is the tag handler class Greeter.java...
package demo.tags;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
public class Greeter extends SimpleTagSupport {
public void doTag() throws JspException {
PageContext pageContext = (PageContext) getJspContext();
JspWriter out = pageContext.getOut();
try {
out.println("Hello World");
} catch (Exception e) {
// Ignore.
and heres the code in index.jsp...
<%@taglib prefix="t" uri="DemoTags" %>
<t:greeter />
Id love to know if these directory structures are fixed and where they are specified - its confusing the way so many examples show differences.
this is the exception i get when trying to run index.jsp through the admin page (localhost:4848)
org.apache.jasper.JasperException: /index.jsp(11,0) Unable to load tag handler class "demo.tags.Greeter" for tag "t:greeter"
----Sincere Apologies - It might be a good idea to compile my java files so i actually have classes in my classes directory !!
i think a build.xml file is needed for ant to compile everything that is needed now.
and the beat goes on ! -
HTML tag checkers don't recognize my title tags, H1 tags, etc
Hi,
I am trying to check my title tags, meta tags, etc to make sure they are recognized by google crawlers. Every HTML checker site I use says I am missing all the tags for title, keyword, H1, description etc
Yet when I view source on my site http://landscapingcalgary.org all the tags are visible. Is google seeing these tags ? why don't these free html checker sites see my tags ?
Thanks for any help you can offer.gypseas wrote:
Is google seeing these tags ? why don't these free html checker sites see my tags ?
+"iWeb websites are not made to be search engine friendly."+ ...Read more here:
_SEO For iWeb: How to get your iWeb Websites into Google & Other Major Search Engines_ -
Problem on Mac OS [ColorSync//Profiles/EW-sRGB
Tag 'desc': Tag size is not correct. Could not be fixed.]
My screen contrast has gone awry and the ColorSync Utility is unable to fix the problem. In searching the wisdom of the web, I found a response from 2009 on another forum, which referenced this forum. But the thread is gone. The information was in regard to the Color Profiler. Can anyone help? Has anyone had to deal with this? I found a lot of people looking to fix this, but not a lot of follow-up replies with answers. I have tried reinstalling the file from a back-up and re-booting, but to no avail. Some have suggested a problem with the Epson software. But without any detail, I don't know what to look to change. Any help, advice, cures, etc. would be greatly appreciated. Thanks!Sorry, I thought you asked what course of action to take.
It means the data for that "tag" in the profile is not the size expected - I know, that's obvious too. The 'dmnd' tag contains the manufacturer's description.
http://www.oyranos.org/wiki/index.php?title=DeviceSettings_in_ICC0.2
You could try opening it in ColorSync Utility and editing the tag. -
EJB2JSP generated tags cause exception "no corresponding open tag for tag extension close"
The EJB2JSP-Tool generated among others the following tag:
<tag>
<name>home-findByState</name>
<tagclass>com.ubisag.swd.ejb.jsp_tags._MessageHome_findByStateTag</tagclass>
<teiclass>com.ubisag.swd.ejb.jsp_tags._MessageHome_findByStateTagTEI</teicla
ss>
<info>attribute 'aState' expects java type 'int'</info>
<attribute>
<name>aState</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
When I use it as follows, I get a compile exception
weblogic.servlet.jsp.JspException: (line 11): no corresponding open tag for
tag extension close: </message:home-findByState> file://[ null; Line: 11]
The jsp-code is:
<%@ taglib uri="/WEB-INF/swdejb-tags.tld" prefix="message" %>
<ul>
<message:home-findByState aState="1" _return="messages" >
<li>
<%=messages.getId()%>
<%=messages.getText()%>
</message:home-findByState>
</ul>
I would be thankful for every hint.
Actually I'm getting this exception only, when I use attributes as
parameter:
<%
int aState = 1;
%>
<message:home-findByState aState=<%= aState %> _return="messages" >
<%=messages.getText()%>
</message:home-findByState>
I don't know what to do with this.
"Nora Serinek" <[email protected]> schrieb im Newsbeitrag
news:[email protected]...
> The EJB2JSP-Tool generated among others the following tag:
>
> <tag>
> <name>home-findByState</name>
>
>
<tagclass>com.ubisag.swd.ejb.jsp_tags._MessageHome_findByStateTag</tagclass>
>
>
<teiclass>com.ubisag.swd.ejb.jsp_tags._MessageHome_findByStateTagTEI</teicla
> ss>
> <info>attribute 'aState' expects java type 'int'</info>
> <attribute>
> <name>aState</name>
> <required>true</required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
> </tag>
>
> When I use it as follows, I get a compile exception
>
> weblogic.servlet.jsp.JspException: (line 11): no corresponding open tag
for
> tag extension close: </message:home-findByState> file://[ null; Line:
11]
>
> The jsp-code is:
>
> <%@ taglib uri="/WEB-INF/swdejb-tags.tld" prefix="message" %>
>
> <ul>
> <message:home-findByState aState="1" _return="messages" >
> <li>
> <%=messages.getId()%>
> <%=messages.getText()%>
> </message:home-findByState>
> </ul>
>
> I would be thankful for every hint.
>
>
-
Expression too complex in query expression
Page code creates a string of all ManufacturerPartNumbers
that share a common ProductFamilyID based on a
ManufacturerPartNumber form selection. This string is then included
in the recordset query.
The following error message only occurs when the
ManufacturerPartNumber string has numerous listings. When the
string contains only 3 listings of ManufacturerPartNumbers, this
error message does not appear.
[Microsoft][ODBC Microsoft Access Driver] Expression too
complex in query expression 'LATITUDE &lt;=
40.8210861895984 AND latitude &gt;= 40.3865898104016 AND
longitude &gt;= -74.2737786508004 AND longitude
&lt;= -73.7014913491996 AND
(((((((((((((((((((((((((((((ManufacturerPartNumber = '3408H')) OR
((ManufacturerPartNumber = '4608H'))) OR ((Manufacture'.
/customer_locator/testprocessform2.asp, line 233
Is there a size limit to a recordset query that is causing
this error or is there a possible syntax issue with my query
code?That doesn't sound like an error that would normally occur on a lot of pages... Do you have AdBlock (Plus), or any Greasemonkey userscripts, or any similar add-ons that customize sites? I wonder whether one of those might have some faulty logic.
-
How to enable social tags options on lists and ability to show the tags in Tag cloud?
Hi,
How to enable Social Tags on discussion list? currently this option is only visible in libraries. My requirement is to see all the items tagged with particular tag in my newsfeed using Tagcloud web part. Thanks
Br,
AlamHi,
I am using sharepoint 2013, the option is not available in the list settings under the managed meta data settings. Yes, in list item the Tags&Notes option is available but that doesn't appear in the Tag cloud webpart which means list items
are not associated with social tags. I want ability to search for all items with particular tags using Tag cloud webpart.
Regards,
Alamzeb Nasar -
Difference between JSP tags & UIX tags
Hi Experts
wats the difference between JSP tags & UIX tags and why we use UIX tags??For information on UIX, please read the UIX Developer's Guide, linked from: http://otn.oracle.com/jdeveloper/904/help/
-
Want to create XML tag from the query
Here i want to create a xml output from the below code for the given P_repair_number can anyone help me for the code i have written
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
facing the above error when run from concurrent program
Procedure dfdfdf(p_repair_number number,
errbuf OUT VARCHAR2,
retcode OUT NUMBER) as
v_error_code NUMBER; -- error code
v_error_message VARCHAR2(255); -- error message
v_text_msg VARCHAR2(100);
cursor Rodetails(p_repair_number IN NUMBER) is
SELECT
dra.repair_number,
dra.repair_line_id,
items.concatenated_segments item_name,
items.description item_desc,
dra.inventory_item_id,
sr.incident_number sr_incident_number,
decode(dra.customer_product_id, '',dra.serial_number,cp.serial_number) serial_number,
ltrim(oeh.order_number) rma_number,
rstl.resource_name ro_owner_name,
fndl.meaning flow_status_name,
dra.status ro_status_code,
drtt.name repair_type_name,
dra.problem_description,
dra.promise_date,
rgtl.group_name repair_org_name,
decode(dra.customer_product_id, '',dra.item_revision,cp.inventory_revision) revision,
cp.lot_number,
dra.unit_of_measure uom_code,
uom.unit_of_measure_tl uom_name,
dra.quantity,
cp.instance_number ib_instance_number,
plkup.meaning ro_priority_meaning
FROM
csd_repairs dra,
csd_repair_types_tl drtt,
cs_incidents_all_b sr,
csi_item_instances cp,
fnd_lookups fndl,
csd_flow_statuses_b fsb,
mtl_system_items_kfv items,
mtl_units_of_measure_tl uom,
jtf_rs_resource_extns_tl rstl,
jtf_rs_groups_tl rgtl,
oe_order_headers_all oeh,
cs_estimate_details edt,
csd_product_transactions txns,
fnd_lookups plkup
WHERE dra.repair_type_id = drtt.repair_type_id
AND drtt.language = userenv('LANG')
AND dra.repair_mode = 'WIP'
AND dra.incident_id = sr.incident_id
AND dra.CUSTOMER_PRODUCT_ID = cp.INSTANCE_ID(+)
AND dra.flow_status_id = fsb.flow_status_id
AND fsb.flow_status_code = fndl.lookup_code
AND fndl.lookup_type = 'CSD_REPAIR_FLOW_STATUS'
AND dra.inventory_item_id = items.inventory_item_id
AND dra.unit_of_measure = uom.uom_code
AND uom.language = userenv('LANG')
AND dra.resource_id = rstl.resource_id (+)
AND rstl.category (+) = 'EMPLOYEE'
AND rstl.language (+) = userenv('LANG')
AND dra.owning_organization_id = rgtl.group_id (+)
AND rgtl.language (+) = userenv('LANG')
AND dra.repair_line_id = txns.repair_line_id
AND txns.estimate_detail_id = edt.estimate_detail_id
AND edt.order_header_id = oeh.header_id
AND edt.line_category_code = 'RETURN'
AND dra.currency_code = oeh.transactional_curr_code
AND dra.ro_priority_code = plkup.lookup_code(+)
AND plkup.lookup_type(+) = 'CSD_RO_PRIORITY'
AND items.organization_id = cs_std.get_item_valdn_orgzn_id
AND dra.repair_number=p_repair_number
AND rownum <50;
begin
errbuf := NULL;
retcode := 0;
SAVEPOINT Create_external_orders;
--retcode := FND_API.G_RET_STS_SUCCESS;
IF (fnd_log.level_procedure >= fnd_log.g_current_runtime_level) THEN
fnd_log.STRING (fnd_log.level_procedure, 'CSD.PLSQL.XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER.BEGIN', 'Enter - PrintTraveller');
END IF;
--FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0"?>');
--FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REPAIR_ORDER>');
FOR v_rodetails IN Rodetails(p_repair_number)
LOOP
/*For each record create a group tag <G_RODETAILS> at the start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0"?>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REPAIR_ORDER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_RODETAILS>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REPAIR_NUMBER>' || v_rodetails.repair_number ||
'</REPAIR_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REPAIR_LINE_ID>' || v_rodetails.repair_line_id
|| '</REPAIR_LINE_ID>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<ITEM_NAME>' || v_rodetails.ITEM_NAME
||'</ITEM_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<ITEM_DESC>' || v_rodetails.ITEM_DESC
|| '</ITEM_DESC>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SR_INCIDENT_NUMBER>' || v_rodetails.SR_INCIDENT_NUMBER ||
'</SR_INCIDENT_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERIAL_NUMBER>' ||v_rodetails.SERIAL_NUMBER
||'</SERIAL_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<RMA_NUMBER>' || v_rodetails.RMA_NUMBER
|| '</RMA_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<RO_OWNER_NAME>' ||v_rodetails.RO_OWNER_NAME ||
'</RO_OWNER_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<FLOW_STATUS_NAME>' || v_rodetails.FLOW_STATUS_NAME
||'</FLOW_STATUS_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<RO_STATUS_CODE>' || v_rodetails.RO_STATUS_CODE
|| '</RO_STATUS_CODE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REPAIR_TYPE_NAME>' || v_rodetails.REPAIR_TYPE_NAME ||
'</REPAIR_TYPE_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<PROBLEM_DESCRIPTION>' || v_rodetails.PROBLEM_DESCRIPTION
||'</PROBLEM_DESCRIPTION>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<PROMISE_DATE>' || v_rodetails.PROMISE_DATE
|| '</PROMISE_DATE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<RO_OWNER_NAME>' || v_rodetails.RO_OWNER_NAME ||
'</RO_OWNER_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REPAIR_ORG_NAME>' || v_rodetails.REPAIR_ORG_NAME
||'</REPAIR_ORG_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<RO_STATUS_CODE>' || v_rodetails.RO_STATUS_CODE
|| '</RO_STATUS_CODE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<REVISION>' || v_rodetails.REVISION ||
'</REVISION>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<LOT_NUMBER>' || v_rodetails.LOT_NUMBER
||'</LOT_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<UOM_CODE>' || v_rodetails.UOM_CODE
|| '</UOM_CODE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<UOM_NAME>' ||v_rodetails.UOM_NAME ||
'</UOM_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<QUANTITY>' || v_rodetails.QUANTITY
||'</QUANTITY>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<IB_INSTANCE_NUMBER>' || v_rodetails.IB_INSTANCE_NUMBER
|| '</IB_INSTANCE_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<RO_PRIORITY_MEANING>' || v_rodetails.RO_PRIORITY_MEANING ||
'</RO_PRIORITY_MEANING>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_RODETAILS>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</REPAIR_ORDER>');
END LOOP;
IF(retcode != FND_API.G_RET_STS_SUCCESS) THEN
RAISE FND_API.G_EXC_ERROR;
END IF;
IF (fnd_log.level_procedure >= fnd_log.g_current_runtime_level) THEN
fnd_log.STRING (fnd_log.level_statement, 'CSD.PLSQL.XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER', ' In PrintTraveller');
END IF;
fnd_file.put_line(fnd_file.log, 'Successfully completed PrintTraveller');
EXCEPTION
|| Catch all error.
WHEN OTHERS THEN
ROLLBACK;
v_error_code := SQLCODE;
v_text_msg := 'Fatal Error, Oracle Error is: '
|| TO_CHAR (v_error_code, '99999');
fnd_file.put_line (fnd_file.log, v_text_msg);
v_error_message := SQLERRM;
fnd_file.put_line (fnd_file.log, v_error_message);
end dfdfdf;Edited by: user12053530 on Apr 19, 2010 5:54 AMHowever using SYS.ODCIVARCHAR2LIST makes sense if your query is a part of bigger processing (PL/SQL procedure or function) and you will do some processing depending on File_Type, like in this example (not compiled, could contain syntax errors):
DECLARE
l_stid VARCHAR2(10);
l_address VARCHAR2(30);
l_File_Type_tab SYS.ODCIVARCHAR2LIST;
cur_cursor IS SELECT STID,
ADDRESS,
CAST(COLLECT(DISTINCT File_Type) AS SYS.ODCIVARCHAR2LIST) AS File_Type
FROM (
SELECT STID,
ADDRESS,
File_Type
FROM DUMMY
GROUP BY STID, ADDRESS;
BEGIN
OPEN cur_cursor;
<<main_loop>>
WHILE (1=1) LOOP
FETCH cur_cursor INTO l_stid, l_address, l_File_Type_tab;
EXIT WHEN cur_cursor%NOTFOUND;
-- Now do processing for each File_Type in l_File_Type_tab;
<<each_file_type>>
FOR i IN l_File_Type_tab.FIRST .. l_File_Type_tab.LAST LOOP
-- for example:
-- IF l_File_Type_tab(i) = 'SALES'
-- THEN
-- do_something(l_stid, l_address);
-- ELSIF l_File_Type_tab(i) = 'TRANSFER'
-- THEN
-- do_something_else(l_stid, l_address);
-- ELSE
-- do_something_default(l_stid, l_address);
-- END IF;
END LOOP each_file_type;
END LOOP main_loop;
CLOSE cur_cursor;
END; -
Nesting EL expressions in core tags
Hi all,
I have a situation where I require to use dymanic textboxes based on the certain criteria. To make this work I used strut's LazyValidatorActionForm. It works like a charm but when I want to write out certain form property using EL, it doesn't work well. I am not sure how to use it with <c:out />. For example:
This is the code I tried to display a link with a value in the dynamic form:
<c:forEach var="counter" begin="0" end="${numTextFields}" >
?methodToCall=removeElement&id=<c:out value="${request['FAEditorForm'].id_${counter}}" />">Remove</a>
</c:forEach>
Here, I am trying to get the Form from the request attribute and invoke the method for property 'id_?' where '?' can be some number depending on the counter in the loop. When executing this page, I am getting an exception:
javax.servlet.jsp.JspException: Can't insert page '/pages/findingaids/FACustomContainerEditor.jsp' : javax.servlet.jsp.JspException: The taglib validator rejected the page: "tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${request['FAEditorForm'].id_${counter}}": Encountered "{", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"], "
I also tried using <c:set /> but looks like the JSTL tags does not allow nesting EL ('{') inside another EL. Not sure how to solve this issue. Any help is appreciated.
Thanks,
SriniTo solve the nested EL expression issue, you use the square brackets notation.
This should be close to what you want.
<c:forEach var="counter" begin="0" end="${numTextFields}" >
<c:set var="cVar" value="id_${counter}"/>
<c:out value="${FAEditorForm[cVar]"/>
</c:forEach>However instead of building the parameter string manually, you should let the struts tag do it for you.
Seeing as you have two parameters, you have to pass it a map.
<jsp:useBean id="paramMap" class="java.util.HashMap" scope="page"/>
<c:set target="${paramMap}" property="methodToCall" value="removeElement"/>
<c:forEach var="counter" begin="0" end="${numTextFields}" >
<c:set var="cVar" value="id_${counter}"/>
<c:set target="${paramMap}" property="id" value="${cVar}"/>
<html:link page="/FAEditor.do" name="paramMap">Remove </html:link>
<br>...
</c:forEach>Cheers,
evnafets
Maybe you are looking for
-
Can't figure out how to connect router....
I've tried for three days to hook up my wireless router.. I have a WRT54G and a Wireless G USB adapter and DSL modem, when I hook up the router like the setup tells me, I do not get internet access.. I have no clue what I am doing wrong, according to
-
Missing Workbook in Production
Hello Friends, I am getting below error while opening a report. "Workbook doesnot exist in the document store" Looks like workbook is lost in production. Can someone please tell me, how to restore this back? This is a production report and need to be
-
Adding custom field in sales tab of BP transaction
Hi Experts, There is a requirement to add a custom field in sales tab of BP transaction in 'Sales area data', above the field 'Customer group 1'. Is it possible with BDT,else any other method to handle the procedure. I think it is not possible with E
-
Change of Discounton in case of Back order processing
Hi, We are having specific order type in which if cient unable to supply the stock as per requisted delivery date bu customer- client needs to give more discount. We are doing back order rescheduling- we want to new pricing discount for rescheduled o
-
Facebook profile pictures not showing up in my Contacts
For some reason only two or three of my contacts show their facebook profile pictures, even though probably 75% of my contacts have facebook photos... why would the pics only show for a few contacts? And how do I fix it? I've checked FB settings an