JasperException, calling tag with dynamic data
Hello
I want to call a tag which I have written with dynamic data.
I can call the tag like this, and it works fine
<cm:getCalendar year = "2" week = "51" />But I don't want the input to be hard coded.
Therefor I have tried to insert GET data to the tag like this
<cm:getCalendar year = "<%= request.getParameter("year")%>
" week = "<%= request.getParameter("week")%>" />Or like this
<cm:getCalendar year = "%{#request.yearNr}" week = "%{#request.weekNr}" />The %{#request.yearNr} should be struts 2 specific I think.
In both this cases I get this exception
org.apache.jasper.JasperException: /calendar.jsp(25,0) According to TLD or
attribute directive in tag file, attribute week does not accept any expressions
Is there a way which I could insert data dynamic to my own tag?
Here is the TLD file
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name></short-name>
<tag>
<name>getCalendar</name>
<tag-class>taglib.PrintCalendar</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>year</name>
<required>true/false</required>
</attribute>
<attribute>
<name>week</name>
<required>true/false</required>
</attribute>
</tag>
</taglib>
I change the tld to
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name></short-name>
<tag>
<name>getCalendar</name>
<tag-class>taglib.PrintCalendar</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>year</name>
<required>true/false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>week</name>
<required>true/false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Similar Messages
-
How to call javascript function with dynamic data in display tag
Hi,
Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
I have a problem when calling the javascript function using ahref in attribute in display tag.
<bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
<display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
<display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
title="Number"/>
<display:column property="strDate"title="Date" />
<display:column property="orderValue"title="Order Value(INR)"/>
<display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
<display:column property="statusDescription" title="Status" />
</display:table>
The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
When I try this with ordinary struts its working fine the code is:
<logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
<tr>
<td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a> </td>
<td><html:hidden name="polist" property="strDate" write="true" /></td>
<td><html:hidden name="polist" property="orderValue" write="true" /></td>
<td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" /> </td>
<td><html:hidden name="polist" property="statusDescription" write="true" /></td>
</tr>
</logic:iterate>
Please help me how to call javascript with dynamic data.
Thanks in advanceThe ADF Mobile Container Utilities API may be used from JavaScript or Java.
Application Container APIs - 11g Release 2 (11.1.2.4.0) -
How to use a queue with dynamic data
When using a collector I have found that it significantly slows down my loop times. I am using LabView7.1 on a Dell PC with Windows XP. If I use a queue with dynamic data do you think that will require less of my processor and allow for faster loop speeds?
I have created a queue using dynamic data in one loop and I want to retrieve all available samples each iteration in a slower loop. If I use the flush queue I get a 1d array of dynamic data. What is the best way to convert the 1d array of dynamic data so that the array of dynamic data is consolidated back into a single dynamic data type? Any help would be much appreciated.Hi Dennis,
You could for instance wire the array to an auto-indexed for loop. I attach an example. I assume you wish to concatenate the arrays a singel waveform.
Hope it helps,
Pelle S
District Sales Manager
National Instruments Sweden
Attachments:
Dynamic queue.vi 245 KB -
Connect an 1-D array of cluster of 3 elements with dynamic data
hi everybody.
I am trying to wire an 1-D array which consists of a cluster of 3 elements with dynamic data. The error that appears says that I'm trying to "connect two terminals of different types". Actually, what I want to do is write to a file the FFT data produced by the Spectral Measurements vi. In order to write to a file, I am using the Write to Measurement File vi, but I don't know if this is the right way to do this. Has anyone any idea about this problem, because I'm out of ideas....
Thanks a lot!!ok! This works really good! thanks a lot! now i'm facing an other problem...The output file does not contain the right data. I want to collect the FFT (frequency vs. amplitude) of a time signal and it gives me the record length and the sampling rate instead.
For example, if I use a sampling rate of 300 ksamples/sec and a record length of 1000 sampling points, the file to be created has one column containing the record length e.g.
0
1
2
3
498
499
and on more column containing almost zero values and the value of the sample rate. Do you have any idea why this is happening?
Thank you!! -
SSRS 05 snapshot with dynamic date parameter
I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
GaurHi Gaur,
In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
Stored credentials for the data source.
Defaults for all Parameters.
Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
based on the current parameter values, but we can still use snapshot with dynamic date parameter.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
What's wrong with dynamic data?
I am starting this thread to showcase what I might call "dynamic data abuse": The use of dynamic data where it has no business to be used (does it ever?).
Everybody is invited to contribute with their own examples!
One of the problems when operating on dynamic data is its opacity. We can never really tell what's going on by looking at the code. It also seems to hide serious programming mistakes by adapting in ways to mask horrendous code and making it seemingly functional, glossing over the glaring programming errors.
To get it all started, here are a few recent sightings:
(A)
(Seen here). No Kidding! The users joins a scalar with a waveform, then wires the resulting dynamic data to the index input of "replace array subset". He cannot see anything wrong, because the program actually works (coercing the dynamic data to a scalar will, by a happy coincidence, return the value of the scalar joined earlier. I have no idea what thought process led to this code in the first place (maybe just randomly connecting functions until the result is as expected? ).
(B)
(seen here)
What's wrong with simply branching the wire???
(C)
I don't remember the link, but here's how somebody transposed a 2D array a while ago (bottom part of image). No way to tell from looking at the code picture! (The "FromDDT" and "ToDDT" need to be configured just right ...).
ARRRRGH!
LabVIEW Champion . Do more with less code and in less time .
Attachments:
join.png 2 KB
split.png 3 KB
DynamicTranspose.png 18 KBHere's another one for you. Found here:http://forums.ni.com/t5/LabVIEW/Program-unresponsive-after-a-dialog-box-input/m-p/2447608#U2447608
Put a bunch of booleans into a Combine Signals and then do a Dynamic Data to Boolean Array.
I supplied the much more cleaned up version of the code below.
EDIT: I just realized I needed to subtract 1 frm the power before using the Scale by Power of 2. Oops.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Button Press Decoder_BD.png 41 KB -
Call transformation with dynamic table
hi
i uploaded the xml file from application server into a internal table
data : begin of t_x occurs 0,
d type string,
end of t_x.
OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT .
DO.
READ DATASET file INTO t_x-d.
IF sy-subrc <> 0.
EXIT.
ELSE.
append t_x.
clear t_x.
ENDIF.
ENDDO.
CLOSE DATASET filename.
and after i want to call call transformation but i can't put a structure ref to a table like this
CALL TRANSFORMATION ('ID')
SOURCE XML xmlupl
RESULT tab = t001[]
because my file xml are not always the same structure.
So is it possible to have a call transformation wit dynamic structure
thanks for your help
sergeHello Serge
If you know what kind of structure you require for your itab you can dynamically create the appropriate itab:
DATA:
gd_struc TYPE tabname,
gdo_data TYPE REF TO DATA.
FIELD-SYMBOLS:
<gt_itab> TYPE TABLE.
* Somehow find the required structure name
gd_struc = 'KNA1'. " for example
* Create data reference with required type (dynamically)
CREATE DATA gdo_dref TYPE (gd_struc).
* Assign the data reference to your field symbol
ASSIGN gdo_data->* TO <gd_itab>.
* NOTE: <gd_itab> has the line structure of 'KNA1'.
Regards
Uwe -
Background Jobs with Dynamic Dates
I am looking for how to run a job in the background on a Daily basis where the data time range is always Yesterday - specifically, I want to run a Notification report daily to see the previous day's notifications.
I have established a Variant with the Dynamic Dates to be "Current Date - 1 days", and schedule it to run in the background Daily. The report runs daily as scheduled, but the dates are not changing (i.e. it always runs the report for the same date).Dear Richard,
It appears that the date that you generated by "Current Date - 1" is not used for running notification report or not passed from variant.
You can actually code the same in your program.
I suggest you to expecute the report in SE38 with debugging by putting a break-point.
v_date = sy-datum - 1.
v_date should be used for notification report. (not sy-datum)
Reward points if this is helpful.
Regards,
Naveen. -
Plotting multiple graphs on one waveform chart with dynamic data types
I'm trying to put multiple graphs on one waveform chart and having data agreement errors. I'm wondering if it has anything to do with the fact that dynamic data is being used (I've had no problems with other datatypes in the past). Does anyone know how to correct this problem? I've attached the following .VI. There will be plenty of .VIs on the bottom that won't load, but they are not consequential for this problem.
Thanks!
Brian
Solved!
Go to Solution.
Attachments:
Stiffness Control V1.vi 119 KByou could use stacked plots by right clicking on the chart and clicking on the stacked plots and than on the front panek you can put a bundle function on the FP and hook your signals up
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Attachments:
multiplotwaveform.JPG 138 KB -
Business View data foundation with dynamic data connection hangs
We are running Business Objects XI 3.0 with Crystal Reports 2008 and Business View Manager 12.0.0.683. In the Business View Manager tool, when I try to open a data foundation that uses the ACD Dynamic data connection, it hangs with the hourglass icon. I have left it trying to open for at least an hour before killing the Business View Manager with the Windows Task Manager. Data foundations using a static connection open fine as do the elements and views based on the data foundation with the dynamic connection. The static data connections included in the ACD Dynamic connector point back to an Oracle Server. Any ideas how to get the data foundations to open so I can edit our custom business views?
Thanks,
KathyI created some Views to pull the data in from the Oracle side.
-
Defining variant for report for job with dynamic date Gui 6.40 patch 21
The system does not take over my choice for the dynamic date.
I choose in the variant-attirubute-screen for a certain parameter: "type selection variable": D and then in the column "name of the variable" > I choose via F4: current date +/- days. OK and then I fill in 1 or 1- or whatever. The system however does only react with the message "Upper date of the interval is > than upper date". It does not matteer what I choose.
In the initialization I do not have any initialization of that parameter.
I connot save the variant.Go through this link...
http://help.sap.com/saphelp_47x200/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
In this page
ABAP Workbench tools -->
VARIANTS -->
VARIABLE VALUES IN VARIANTS.
Hope this helps u a lot...
reward if it helps u...
sai ramesh. -
Compare daqmx event with dynamic data
Good evening everyone!
Our project is now facing a problem with LabView.
For our project, we need to use daq to acquire current for our SOC. We want to use virtual channel so people can choose channels from the front panel directly. But when use DAQmx Virtual Channel, the task out is daqmx event which can be used for further calculation like multiple times to get our SOC, also can not compare with a constant.
Could anybody help me with this question? How can I extract the value inside the task out for DAQmx or convert daqmx event to dynamic data directly ??So you changed your DAQ Assistant to attempt to use the DAQmx API. Normally, I would say "Good for you". But if the code was working, why change it?
Mimic what I did with the Analog Output. See how I configured before the loop, wrote inside the loop, and closed after the loop? You should do the same thing with the Analog Input, except you do a DAQmx Read instead of a write.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Connect 1 D array of cluster of 2 elements with dynamic data
Hello
The type of source is 1D array of cluster of 2 elements and the type of sink is dyanamic data. Can any one guide me how to connect these 2 elements together. Any response would be highly appreciated.
ThanksFirst, this question would more appropriately be posted to the LabVIEW Board. It is not a signal conditioning issue.
The dynamic data type (DDT), sometimes referred to as the "evil dynamic data type," completely obscures the internal data structure. The only way someone could help is if you tell us what the source is expecting the internal data structure to be. The only objects which want DDT inputs are Express VIs, which are also good at obscuring thier contents. Implementing the sampe funcitonality with standard VIs might be a better approach.
You also have not completely specified the source. What are the data types of the cluster elements?
Lynn -
How to implement moving (linear) averaging in a subVI with dynamic data?
I was wondering how to implement a moving or rolling linear averaging using a subVI on a set of dynamic data coming from the DAQ Assistant or a counter input channel that will be written using the Write to Measurement File VI? Below is an example of what I mean.
Solved!
Go to Solution.You could use the MeanPtbyPt vi to give the running average. Assuming your code snippet is inside a loop, wire an =0? comparison of the iteration number to the initialize input to reset the value and put 25 (or whatever you want) as the sample length.
-
Variant with Dynamic Date Calculation
I have a variant that includes a dynamic date calculation. I'm using the Current day -1 date calculation. Does the dynamic date calcuation use the time zone of the system or the time zone designated on the user id for the calcuation?
time zone of the system.. if you want to use the user time use Sy-timlo
Maybe you are looking for
-
Setting File Name inside ABAP mapping
Hello All, We have a requirement where we need to send the IDOC in a flat file format to the destination system which we are doing inside an ABAP mapping. Now we need to set the file name depending on a particular field in the IDOC. For this we need
-
Use Photoshop Elements 9 as default editor and organizer
I moved to iMac from /windows. I have Adobe Photoshop Elements 9 on my Mac and also iPhoto. Iphoto cam preinstalled on the mac. I want to use PSE exclusively and not iPhoto. I don't want to uninstall iPhoto, just want to have PSE set as the defau
-
Root CA and Authority Key Identifier
We are in the process of migrating our AD CS servers to Windows 2012 R2 and at the same time changing the algorithm to SHA256 with key length of 4096 bits. Is it possible to have the Authority Key Identifier (AKI) included in the root certificate?
-
Hi there, Currently, our workflow within our business is taking large numbers of JPEG stills (50,000 and growing), and stitching into a lossless video, to then be stabilised and deflickred in order to send to clients as a regular view of the progress
-
A lot of **** interupting my Desktop screen. Trojans I think. Any ideas how to get rid of this interference. Help would be appreciated. Quite new to Computers. Thanks.