How to use hashmap in logic:iterate/

Now i want to display four list columns within a table.
example:
<logic:iterate name="rowSet" property="hashMap" id="rowSetObj">
<tr>
<td><bean:write name="rowSetObj" property="v1"></td>
<td><bean:write name="rowSetObj" property="v2"></td>
<td><bean:write name="rowSetObj" property="v3"></td>
<td><bean:write name="rowSetObj" property="v4"></td>
</tr>
</logic:iterate>
Can you help me?
how do i need to make a java bean about rowSet and rowSetObj?

Hi,
You need to make bean like:
public class YourClass {
public someType getV1() {return somthing}
Then as you need iteration you have to create array, or collection or something described in http://jakarta.apache.org/struts/userGuide/dev_logic.html
and fill it with instances of YourClass
Then you need to add this that something into session like this:
session.setAttribute(SESSION_ATTRIBUTE_NAME, yourArray);
And then in your JSP you can do as you wrote, but you have to add one more attribute: type. so, you will have:
<logic:iterate name="rowSet" property="hashMap" id="rowSetObj"
type yourPackage.YourClass scope="session">
<tr>
<td><bean:write name="rowSetObj" property="v1"></td>
<td><bean:write name="rowSetObj" property="v2"></td>
<td><bean:write name="rowSetObj" property="v3"></td>
<td><bean:write name="rowSetObj" property="v4"></td>
</tr>
</logic:iterate>
good luck
if i'm write it should work :)

Similar Messages

  • Hardware compressor and am not quite sure how to use it in logic express 9. Please help???

    I recently bought a dbx hardware compressor and am not quite sure how to use it in logic express 9. I hav a focusrite saffire 6 usb audio interface and am not sure how to use it in logic. Please help???

    Hi Ujjawal,
    Use the Tab-order property of IR object.
    In design mode, select the any command button, right click and select the property. you will find the window for "Tab-Order". It lists all the objects available in that dashboard. Here you can arrange the tab order..
    Hope it will help you.
    Thanks & Regards,
    Mohit Jain

  • I recently bought a dbx hardware compressor and am not quite sure how to use it in logic express 9. I hav a focusrite saffire 6 usb audio interface and am not dont how to use it in logic. Please help???

    I recently bought a dbx hardware compressor and am not quite sure how to use it in logic express 9. I hav a focusrite saffire 6 usb audio interface and am not dont how to use it in logic. Please help???

    MUYconfundido wrote:
    Pancenter,
    Thanks for the response, but I do not have a midi interface. I am using a midi to usb connector cable, thus bypassing the need for a Midi interface.
    The Mac reads the USB cable as a midi device, but not the keyboard that I am trying to use as a controller. I have tried it with my korg sp 300 and with my Nord Electro 2.
    Thoughts?
    Thanks,
    Tristan
    Tristan...
    This is what you have, correct?
    http://www.alesis.com/usbmidicable
    This from Alesis..
    "The AudioLink Series USB cable receives and outputs MIDI signal thanks to its internal interface. The USB-MIDI Cable connects plug-and-play to your Mac or PC for an all-in-one USB-MIDI solution."
    Notice, -internal interface-. What you have is a simple USB MIDI Interface. Most MIDI interfaces are USB.
    My point is (was), MIDI OUT of the Korg goes to the connector marked MIDI IN on the Alesis, those new to MIDI often get this wrong.
    pancenter-

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • How to Use Vienna In Logic

    ok, so I bought vienna special edition. I used it in logic by creating several vienna instrument instances. They cluttered up the screen and made work sloppy, so my solution was vienna ensemble. Instead of opening many vienna ensemble instances I just created a multi timbral track and was able to have many vienna instruments loaded in one vienna ensemble instance. The only problem is that the track is multi timbral so all my midi editing in one track does the same for all of them. Is there a way to have a multi timbral track but split the tracks so editing will only change the track I'm editing?

    The MI can be created in any layer. I created a new layer just for these kind of MIs.
    I've always been confused by the "Cable and channel Port is Set" dialog. It has to be "Remove", I think.
    "What selection do you make in the TI to convert CC7 to CC11?" -- Do you mean in the TO "Transformer Object"? It's hard to explain. You really need to read the manual on the transformer. But basically, the top line is stuff you want to process and the bottom line is what you want to do it. So top line is status: controller, byte 1: 7. and bottom line is fix byte 1 to 11. Or something. I'm doing this from memory.
    To cable an object in one layer to an object in another layer: hold down the Option key while click and holding on the cable arrow. This will produce a list of all objects in the session, categorized by layer.
    "What “plug-in” do you assign to respond to CC 11 for volume?" -- In the case of VSL SE Multi Ensemble, I guess you make the changes on an instrument by instrument basis inside of Ensemble? But I don't remember having to do this, so maybe it's set to 11 already.
    Or in Spectrasonics Multis you do it in the Mixer with their MIDI template or something. Maybe they default to 11 too.
    I haven't had any issues with this setup. Yet. Knock wood. All MIDI data except CC7 passes unmolested through the Transformer Object.
    One final tip. In the arrange window there is a menu item: "Same Instrument with next MIDI channel". Assign a key command to this (or is there one already?). Then after you assign the first channel of the MI to a track in Arrange, you can hit this key command as many times as necessary.

  • How to use IAC in Logic?

    Dear gurus,
    What exactly is the IAC driver (as seen in AudioMIDI setup), and how does one configure it for use with Logic? I assume its purpose is to allow music applications to communicate (f'rinstance, letting Sibelius play though Logic instruments) but I'm not sure how it works, nor can I find any documentation.
    Thanks in advance for any help,
    Mike

    > What exactly is the IAC driver
    I remember using it once with Cubase to drive a stand alone application that didn't exist as an AU plug, and that was in 2002...
    > I'm not sure how it works, nor can I find any documentation
    The AMS help will tell you how to configure the IAC driver, but the Logic reference doesn't even mention it. If it was effective, Rewire wouldn't be needed, I guess.
    Does Sibelius send midi messages? If yes, then it acts as a controller and Logic shouldn't process its messages differently to a keyboard controller, for instance. Did you test this?

  • How to use compressor with logic 7?

    I'm trying to record an audio track using the compressor provided by logic. I know that I can insert a compressor to the audio track, but is my understanding that the audio is not compressed when recorded. Is this true? or is there a work around? Thanks

    listen man
    if you can afford an analog compressor then go for that
    source---> tube pre-amp ---> ANALOG COMPRESSOR ----> mixer (for hardware monitoring if you want) ---> Interface
    if you do get a compressor try something with a gate and a limiter built into it as well
    1: limiter is good for setting a level where nothing will over pass that level
    2: gate is a good idea incase you wanna get a good decent sound out of your Tube pre-amp without worrying about the low dirty sounds
    you can use the gate to cut signals below some level, lets say you
    Threshold : -50 dbu
    Ratio : 2:1
    Attack : 1 ms
    Release : 1 sec ( depending on what you want)
    Output : -3 db
    this just a example of what i set for most of my clients, what is, is that i get them in about 30 mins before session and we do sound check plus mic positioning and settings for the PREAMP, COMPRESSOR AND LEVELS IN
    doing all this means the singers / rappers will feel comfortable singing like they are on stage or in their bathroom
    don't let an artist change for you if the artist is good and they happy with their style, position, volume and groove ( because the song will lack of taste and feel at the end)
    tip: recording onto computer/ digital should not clip, you can make the tube as hot as you want but make sure you are about -3 db below clip
    because sometimes good takes only comes once and distorting it and making the clients record about 80x will make the clients lose the feel
    after recording good takes you can go on and compressor to your needs or gain to your needs
    good tip : always make sure you get a good sound before recording or before hitting the disk, less time cutting and pasting more time creating other good things
    and don't over compress with the analog compressor, always leave space for extra stuff just incase
    stash
    Message was edited by: $ta$h

  • How to use my external processor effects?

    I have a lexicon processor and I want to know how to use it with logic.
    Thanks
    g5 ma' os   Mac OS X (10.4.4)  

    I hope this info can help you.
    The main Problem is that Logic don't have an delay compensation plugin like in nuendo or cubase "external FX"
    Here is the info to compensate the delay coused by the D/A and A/D converters:
    6.30 How do I set-up record / playback / monitoring delay?
    Subject: Record delay vs send/return using external effect units
    You'd think that with modern multichannel audio interfaces and a modern, professional audio sequencer like Logic, this would be a piece of cake, right? It turns out that there are a number of potential traps, all to do with Logic's highly inadequate record delay compensation. What follows is a run through of the general setup procedure, using my RME Multiface.
    Basic Record/Playback delay Setup
    Set up a 4/4 audio click track (trim the sample starts so they are right on the beats). Use real audio, not a software instrument. Rerecord the main outs to a new track via a hardware loopback cable (i.e. cable your audiocard's outputs into its inputs). Measure the clicks with reference to bars/beats in the Sample Editor - the clicks should be (but may not be) recorded right on the beat.
    If the audio driver has a record delay parameter in samples, use that to adjust. If not - use the ASIO Buffer delay "IN" for coarse adjustment (multiples of buffer). Leave the ASIO Buffer delay "OUT" at zero. Use the main driver playback delay for final fine adjustment (samples). Do NOT use the Arrange window's delay parameter - it's in ticks and thus tempo-dependent!
    So if you are playing in time with a prerecorded track, your playing is recorded in the correct position to preserve your exact timing on playback.
    The use of the playback delay to compensate is not ideal, as it will mess with the playback timing vs displayed position of any audio - this has an adverse effect on fine editing, and MIDI-to-audio sync - but Logic unfortunately does not provide a sample-accurate record delay adjustment, and has not done so since version 3.5...
    Effect Return/Record Setup
    You definitely want to avoid monitoring external FX returns through Logic if at all possible, since that would add 2x the audio buffer worth of latency to the return, which will adversely mess with the sound of any time-based effects (i.e. just about everything). So, monitor your external FX returns at source, or through direct hardware monitoring - in my case that's through RME TotalMix routed to the main outs for (near) zero latency.
    You probably want to be able to record the external FX outputs into Logic (to free up the FX for other uses) and have it play back exactly as it was monitored, right?
    Using your 4/4 audio click track, panned left, send to an external delay (approx 1/2 beat, single repeat). Pan the delay return R at source and monitor as above. Rerecord the main outs to new track via a hardware loopback cable. Measure the number of samples from a click to its delay in the Sample Editor
    Now record the delay return signal to a new track. Playback just the audio click panned left & the recorded delay panned right. Rerecord the main outs to new track via hardware loopback cable. Measure the number of samples from click to delay in Sample Edit.
    Both measurements must be the same for accurate recording of FX returns, but it's likely they won't be, probably because the playback delay has been messed with. Compensate by inserting a sample delay on the FX return Input Objects in Logic. Since you're not monitoring the FX returns through Logic anyway, the input delay will be recorded but not monitored (in 5.2+, but if you use an earlier version you're hosed since effects are not recorded).
    Record the delay return again, play it back with the click, rerecord the outputs and measure again. Adjust the input sample delay until the recorded-&-played-back delay position is identical to the monitored delay.
    Live Input Monitoring/Recording
    For accurate timing, monitor any live inputs at source or through direct hardware monitoring (TotalMix), the same as for FX returns. When recorded, playback timing will be accurate. Sends from live inputs to external FX can also be applied in at source or in TotalMix. No problem.
    Live Input Monitoring Through Logic
    Here's where the problem starts. If you also plan to monitor some live inputs through Logic - to add Logic FX, or to control & automate the live inputs, or to add live inputs to a bounce, etc - then you'll be monitoring the live inputs with a latency of 2x the audio buffer size (or more if applied processing induces further delays). Therefore when you record a live input, on playback it will be early by that amount, since the record/playback delay is set up to compensate for zero-latency monitoring. What you heard live is not what you get on playback.
    There's no set-&-forget way around this, since Logic won't let you apply a sample delay to an input without the delay also being applied to the input's monitor output from Logic. So using the same input delay trick you applied to recording the FX returns won't work - you'll wind up monitoring with even more delay, which will need yet more input compensation, and so on. You can't use the record/playback delay to compensate, because that would screw up the recording of source-monitored material.
    You could conceivably monitor everything through Logic at all times, and use a single record/playback delay to compensate for all of it (with the editing & MIDI-to-audio sync shortcomings discussed, but on a larger scale as considerably more compensation is required), but that will screw with the sound of any time-based external FX as noted above.
    So assuming you stick with source-monitoring the external FX returns, there are 2 options for correct playback timing of any recorded tracks that were monitored through Logic while recording:
    1 - Output all such tracks to a bus, and place a Sample delay on that bus to compensate. This will correct the playback you hear, but it won't correct the bad positioning of the audio.
    2 - Physically move the recorded audio later to compensate. Uh-oh - Logic's Arrange window is not sample-accurate. And it's not possible to move a newly recorded audio region later in the Sample Editor without adding samples to the start of the file, which is a tedious process if you've just recorded a number of tracks. You'll just have to get it as close as you can in the Arrange - bear in mind that ticks are tempo dependent, so you have to calculate the number of ticks based on the current song tempo (let's not even begin to discuss Audio vs tempo changes in Logic), or use the smallest SMPTE nudge available. No fun at all.
    If anyone has any other suggestions, I'm all ears...
    So what about OS-X?
    In Logic under OS X, the CoreAudio driver setup panel doesn't have any record/playback delay setup. If you're optimistic, you might interpret that as an indication that it's all done automatically by CoreAudio and the driver. But given Emagic's history in this area, what's the bet it's currently a big fat inaccurate mess? Rumblings from the Mobile i/o list seem to indicate this...
    G5 dual 2,5   Mac OS X (10.4.4)  

  • Why can't  the JSP display the data with logic:iterate?

    Hi,all
    I am writing a web application with Struts framework. I dont know what's the problem when I use the tag logic:iterate in my application. I have created a form bean follow source code:
    public class ProductsForm extends ActionForm {
         private Vector alist;
         public void reset(ActionMapping mapping, HttpServletRequest request) {
         this.alist = new Vector();
         public Vector getAlist() {
              return alist;
         public void setAlist(Vector alist) {
              this.alist = alist;
    I also created action for the form
    public class ProductsAction extends Action {     
    public ActionForward execute(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
                   String target = "success";
                   if(form!=null){
                        ProductsForm aForm = (ProductsForm) form;
                        Vector aList = new Vector();
         //loadProductsList() method return the Vector object
    // which is a array included Product object.
                        aList = loadProductsList();
                        if(!aList.isEmpty()){
                        request.setAttribute("aList",aList);
                   return mapping.findForward(target);
    JSP page follow:
    <logic:iterate id="aitem" name="aList">
    <tr>
    <bean:write name="aitem" property="productname"/>
    </tr>
    </logic:iterate>
    Anybody tell me why the JSP page can't display the result. Thanks.

    Are you getting any error messages, or are you just not seeing anything in the page? If you get error messages, please post them.

  • Cannot use Battery with Logic pro

    An Know how to use battery2 with logic
    because seems the logic au managerr can't find battery

    hi
    did you run the au validation programm? maybe if the validation crashed or didnt work you should update battery with the au hotfixes. battery 1 and 2 working for me since first installation.
    if the registration of battery or other plug-ins expired they will also crash in the au manager.
    best
    marc

  • How to add a row for every 5 records using logic:iterate

    Hi,
    In my application, using logic:iterate iam displaying 20 records per page.
    I want to insert a row for every 5 records.
    Please tell how to insert that row.
    Thanks in advance.
    Mohan

    I think this could work for you
    for (int x=1 ; x<=20 ; x++) {
    addRowWithRecord
    if (x%5==0)
    addEmptyRow
    }

  • How to select a drop down option item while using logic:iterate?

    I am using the following peice of code -
    {color:#808080}+String countrySelected = (String)request.getAttribute("country");+
    +....+
    +<logic:iterate id="countryVO" name="countryList" type="com.sa.biz.vo.airport.CountryVO">+
    +<%+
    +if (countrySelected != null){+
    String countrySel = countryVO.getCountryCode().toString();
    String selected = (countrySel.equalsIgnoreCase(countrySelected)) ? " " "Selected" : " ";+
    +%>+
    +<option value="<%=countryVO.getCountryCode()%>*<%=selected%>*"><bean:write property="countryName" name="countryVO"/></option>+
    +<%+
    +}+
    +%>+{color}
    {color:#808080}+</logic:iterate>+
    {color}{color:#000000}The drop down is a list of country names (value - country code, display text - country name) which gets populated from the database. I need to ensure that the countrySelected is the menu item which gets selected in the drop down.
    The expected option item is not rendered as selected when i run this code? Please help!!{color}

    <option value="<%=countryVO.getCountryCode()%>" <%=selected%>>Apply the above change which should help you out on the same. :)
    REGARDS,
    RaHuL

  • Using Logic iterate to display a arraylist in STRUts

    I m having a form bean containg a string array......
    <form-bean
    name="myDynaForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="names" type="java.lang.String[]" />
    </form- bean>
    and in my jsp , i m using .......
    <logic:iterate name="myDynaForm" property="names" id="names" >
    <tr>
    <td class="style3" align="left" width="30%" >
    <html:textarea property="names" cols="40" rows="2" size="40" indexed="true" readonly="true" />
    </td>
    </tr>
    Now this code is printing only the first element of String names.
    How can i print all the elemts of answer in my jsp

    How could you do the same thing but using only two cells?
    where the check box returns a specific value in the second.
    in this instance its for a staff registration sheet where a checkbox in (A) would return a set value in (B)
    i know this might sound simple to you guys in the know but i cant figure it out! I have been messing around trying things with the if function but still only shows me the red triangle (syntax error).
    A simple solution would be much appreciated.

  • Problem in Iterating using logic:iterate tag

    Hi ,
    I am using <logic:iterate> tag to iterate through a list of contents.
    When the List size is 1222, all the Contents in the List are displaying properly.
    When the size execdes 1223, the JSP is not displaying properly.
    I am not getting any exception also.
    I have added try and catch. Still it is not showing any exception.
    When the size is more than 1300, Some contents are not displaying in JSP.
    Can any one provide some inputs, so that I can crack my issue.
    The JSP code :
              <logic:iterate id="someXXXX" property="someXXX" name="someXXX" indexId="count" scope="request">
              <tr>
    <td><html:text name="someXXXX" property="someXXXX"
                             size="50" maxlength="50" onchange="setDirty()" indexed="true"/> </td>               
    <td height="15" align="center"><html:checkbox property="someXXXX" name="someXXXX" indexed="true" onclick="setCheckboxFlag(this)" />               
                   <td width="4"> </td>               
              </tr>
              <html:hidden property="someXXXX" name="someXXXX" indexed="true" />
              </logic:iterate>
    Thanks,
    RamaKrishna

    get the records and store them in a collection. Store the collection in session. take the first 10 records as a subset and pass it to the iterate tag. use the hidden field to keep the last record number in the jsp. So when you first see the jsp the first 10 records will be shown and when user clicks for next records send the hidden field value to the server and take next 10 records as subset and pass it to iterate tag. This is how you can do this. but if you have thousands of records storing them in the session is not recommended. you can pull them directly from the database.

  • How to use logic:interate tag in this case? thanks a lot.

    a javabean:
    a{
    int a;
    ArrayList bList (to store some strings);
    request.setAttribute("a",a);
    then how can I use <logic:iterate> tag to loop to use <bean:write> tag to write out the strings contained by bList?

    use getparams and get that attribute(arraylist)
    define a bean in jsp with property as this attribute for which u should have a getter method in context
    the following is to iterate through arralist of arraylist
    <logic:iterate id="accList" name="<%=subAppContextName%>" ="accountsHoldedList">
              <tr>
    <logic:iterate id="accList2" name="accList">
    <td> <bean:write name="accList2"/> </td>
    </logic:iterate>
    <td>
    <jfp:link styleClass="appNavNext" warn="false" bundle="<%=bundleName%>" key="GiveNotice" paramId="selectedAccount" paramName="accList2" href="javascript:submitMyForm();"></jfp:link>
    </td>
    </tr>
    </logic:iterate>
    accountsHoldedList is the one which is set in Context and i am iterating to display it.
    bye

Maybe you are looking for