Get site id in WCS jsp without using ics.SQL

Hi,
Is there a way i can get siteId of my current site in JSP without using ics.SQL tags and getting it from publication table
We are trying to implemet a lucene search for loading assets present in current site only.
Thanks in advance for your help.

Use the below code to get it.
<publication:load name="thisPub" field="name" value='<%=ics.GetVar("site") %>'/>
<publication:get name="thisPub" field="id" output="thisPubID"/>
Dont forget to import publication.tld
Regards,
Ravi G

Similar Messages

  • Get context path in a jsp without using a scriptlet

    Hi Guys
    I am using Scriptlet to get a application context path in a JSP. I want to get the context path with out using an scriptlet in a JSP, is there way to achieve this..?
    <%=request.getContextPath() %>/listofvalues.do?method=viewListOfValues thanks in advance.
    Regards
    Praveen
    Edited by: praveen_kumarvr on Jul 3, 2008 8:30 AM

    ${pageContext.request.contextPath}A common practice is to put this value in the <base href> in the HTML head and then use this as the root for all of the relative URL's in the page.

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

    you can do add multiple submit button with this way
    <input type="submit" value="Previous" />
    <input type="submit" value="Next" />
    <input type="submit" value="Finish" />

  • I downloaded and paid for an app on my ipad, how can I get it free on my iphone without using itunes as my laytop is broken. I cannot seem to find the purchase tab in app store? I am logged in using the same ID

    I downloaded and paid for an app on my ipad, how can I get it free on my iphone without using itunes as my laytop is broken. I cannot seem to find the purchase tab in app store? I am logged in using the same ID

    First, the app must be universal...designed for both iPhone/iPad:
    Tap App Store.
    Make sure you're signed in with the same Apple ID used for the original purchase.
    Tap Updates.
    Tap Purchased on the resulting screen.
    Locate the app in your Purchased tab.
    Tap the download icon.
    The app will begin downloading and you'll be taken back to your home screen.

  • Does anyone know how to get an application you had once without using App Store?

    Does anyone know how to get an application you had once without using App Store?
    Because I'm underage and I couldn't get it back.
    I just want it back, I'm not going to use any money in App Store...

    When you say you "had it once", how did you get it then?  The App Store has only been around for a few years, so there are lots of apps out there that you would once get from the developer, but now they're only available on the App store.  Which app(s) are you referring to? 

  • Get table cell value on click without using submit or action

    hello ,
    i am having html table containing values retrieved from database.
    i want to create table cell as a link and want to pass cell's value to the next page without using submit, radio button, checkbox.
    it is feasible in PHP and ASP but i want to solve in jsp. pls suggest the solution.
    Edited by: Avinash123 on Dec 16, 2008 2:58 AM

    Here is sample code
    <script type="text/javascript">
    function callForm(data)
    frm.action="anotherjsp.jsp?value="+data;
    frm.submit();
    </script>
    <form name="frm" action="">
    <table id="test" border='1'>
    <tr >
    <td onclick="callForm('Data1')" > Data1 </td>
    <td onclick="callForm('Data2')" > Data2 </td>
    <td onclick="callForm('Data3')" > Data3 </td>
    <td onclick="callForm('Data4')" > Data4 </td>
    </tr>
    </table>
    </form>

  • Including Applets in jsp without using Archive

    Can any one help me to include the Applet without using the Archive attribute in either <jsp:plugin> or <applet> tag. I am using WebLogic workshop8.1 on win 200 platform , it builds class files in a seperate directory which starts with .workshop dirctory. I should include that directory as the codebase for the applet.
    regards
    varada rajulu
    Turning Point Software Solutions India

    yeah. don't use it. You specify the code (class) and the codebase tag, and the classes have to be loose on the server under the package directory structure that the classes' package is set up for.

  • To get the button on system form without using ADDON

    Hello,
    I want to get the new button on tne System Form without creating or using Add-on.
    And while clicking on that button, i want to display "Hello World" message..
    Can u please tell me how to get new button on the System form without using AddOn?
    Thanks
    Nisha

    Hi Nisha,
    It is not possible to add a button on a system form without using an add-on, this is because in order to add a button an a system form you have to access its form id at run time (that converts this standard form into a customized form for your add-on ) the location of some existing control that will be taken as the base location identifier for the new control and only then you would be able to add a new button on the form.
    Regards,
    Prashant

  • How to get the home page for a user using  Pl/sql code ?

    Hi,
    I have a pl/sql procedure which runs after a form submission on a dynamic page. At end of completion of the procedure I want to send user to his/her home page. I am trying to write at the end of procedure to redirect the user to the home page. How do I do that ? What is way to redirect to a page using pl/sql and how do I know the user home page url ?
    thanks,
    Mainak

    Hi,
    Try <portalschema>.wwv_redirect.url('<portalschema>.home');
    Please replace portalschema with the name of your portal schema.
    Thanks,
    Sharmila

  • Reload / Refresh JSP without using parameters

    Hi,
    I have a servlet, which gets data from a mobile phone and puts the data into a database.
    Then I have a Java Beans that takes data from the database. But I dont pass it with the
    request and response parameters.
    I just use the data like you see below, I use the object of the Java Beans mybean. In
    its constructor I do all the stuffs to read data from database.
    <jsp:useBean     id   = "mybean"   scope    = "session" class = "org.myHalloGMap.handler.Handler" />
    <jsp:setProperty name = "mybean"   property = "*" />The data I use like this:
    <%                                  
         for(int i=0;i<mybean.row_count_coordinates;i++){
                  if(mybean.getUsrn().equals(mybean.coordArrUsername)){
    row_count++;
    So my problem is now:
    How can I refresh my jsp, so that I can display the data, i read out of my database?
    When I use the webapplication and put new data into the database, on my webapplication
    is still shown without the new data. When I refresh the browser, it still shows me without
    new data?
    Can someone help me?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Perhaps the bean should be set to the request scope, since you use the constructor to read all the data from the database. When you use the:
    <jsp:useBean     id   = "mybean"   scope    = "session" class = "org.myHalloGMap.handler.Handler" />You will only create a mybean instance if one doesn't exist. When you first visit to the page the session is new, so you will create the mybean instance. After that, the mybean instance is found in the session so a new one isn't made - which means the constructor isn't called, which means no new data is read.
    If you put it in the request scope then the mybean instance will be re-made each request.

  • Is there a way to get date and time in JAVA without using sysdate and time.

    Hi Everybody,
    There is a requirement in my Application. The requirement is I need to instal an application and it need to expire after certain period (say 1 year).
    And after that it should become useless for anyone enjoying the benefits of that. I need to know how to calculate the timeline for calculating expiry date.
    <ul><li>&Oslash; We can't rely on system date, since user can modify that.</li>
    <li>&Oslash; We also can't use counter because for that system should execute in 24x7.</li>
    <li>&Oslash; Also there is no internet connection to fetch the current date from the global server.</li>
    </ul>
    So if anyone has any idea to accomplish post your suggestions to me.

    ejp wrote:
    I strongly suggest you take legal advice before implementing such a feature. The purchaser, or licensee, of such software has reasonable expectations and legal rights which are unlikely to be met by a brute-force scheme like that. You don't want to end up in court ...This exact situation happened at my previous employer--although it didn't go to court.
    We contracted out to a 3rd party vendor to write a library for us. It was delivered in stages and paid for in stages. After we received the last delivery, but before we'd made the final payment, we had our first full-system demo for our first client/partner. Shortly before the demo was to begin, we brought the system up, and it immediately crashed. We saw a "This software is expired" type message in the log. While it's not uncommon for software to have an expiration date, our big issues with it were 1) there was nothing of the sort written into the contract, and 2) The expiration was a hardcoded "if date > whatever, System.exit" as soon as the class was even loaded.. It would've been different if trying to actually use the class caused an exception, but killing the JVM just for loading the class was not cool.
    I decompiled the class, found the offending code, commented it out, recompiled, and we were off. In the meantime, our VP of R&D called the vendor to deliver a new jar file, which they did quite quickly. So, a) it was inconvenient but not difficult for me to get around the technical "solution," and b) that was as stop-gap measure--we still paid them for the software.

  • How do I get personal movies onto my iPad without using iTunes

    Hi,
    I have several "movies" - like ones my kids made using iMovie on their their ipods, clips of my kids playing their sports, and other non-tradional films that i would like to keep and add or subtract to my liking from my iPad (3rd Gen). In iTunes i have pretty much "cut the cord" - the only items that synch with itunes are the videos that I mentioned (hollywood videos I purchse through iTunes I access through the iCloud now) and photos with Aperture. I really dont want - or need to synch with iTunes anymore - the user experience is so wonderful going with just the iCloud and my Dropbox. But I really want the freeedom to add a personal video to my iPad w/o having to synch - it takes FOREVER and always has a glitch of some sort.
    In case your thinking to just use the dropbox - I know that... but it is internet dependant then - and play back is not what i'd call "Retina worthy" - and you can't save Drpbox video to the iPad's HD.
    Does anyone have another method that is working for them??
    I love being "bareback" with the iPad and don't want to go backwards.
    Thanks in advance!

    UPDATED
    Background: You can transfer photos and movies made on your camera and recorded to an SD card directly into your iPad using an Apple Lightning SD Card Camera Reader.  So all you have to do is convince your iPad that the SD card with your other movies (ripped DVDs etc) came from your camera.
    1. Your movies need to be in a format your iPad will read - .mp4 or .mov work well.  For DVDs, you need to rip it  into .mp4 files - I use Xilisoft DVD to iPad Converter which works well.
    2. Store these files someplace convenient on your hard drive.
    3. Rename the .mp4 files so they have EXACTLY 8 characters in the file name without any spaces (digital cameras create 8 digit file names).
    4. Format your SD card folder structure so that to your iPad, it looks like it came straight out of your digital camera.  The easiest way to do this, is to format the SD card in your camera and then take a single photo on the card.
    5. Attach you SD card to your computer (via a direct SD slot or a USB adaptor) and navigate through the SD card's folder structure to find the photo to took on your camera.
    6. Copy all the video files that you want to watch on your iPad to the SAME location as the photo file.
    7. Eject the SD card and insert it into your Apple Lightning SD Card Camera Reader and it into your iPad.
    8. Go to the "Photos" icon app (not the Videos icon app) and follow the usual transfer instructions from the iOS.
    Note that unlike movies in the Videos app from iTunes, the video files loaded this way appear only as a video icon with the time length of the file.  ie No files names are visible, therefore you may need to write a short note identifying each file name according to its play time.

  • How do get video to hdmi TV port without using apple tv?

    My new non retina macbook pro 13 inch is supposed to arrive soon.  My old 42 inch Vizeo only has one hdmi port that works so I was planning to use it a s moniter  for  my DAW.  The apple tv is for the living room, not the room where my DAW is.  But as far as I can tell there is no mini display or anything on this computer other than thunderbold , usb and  firewire, the firewire to be used for my MOTU audio interface. Any ideas on how to get this old  VIzeo  to be external moniter basically

    Take a look at this;
    http://support.apple.com/kb/HT4241
    There's some additional links in there to the products themselves. Will allow you to connect it to the HDMI port on the TV and not have to use the Apple TV.
    Regards,

  • How to iterate List in jsp without using for loop

    Hi,
    I am developing a small application is struts. I have one ActionForm file which contain one List like getEmployeeDetailsList(). When I am using this list in jsp page for displaying data. I want to display it as employee name, employee address, employee designation and employee contact no. These all fields are available in the above list. Now what is the problem is that I am using logic:iterate method to iterate data. but this is not sufficient to display all records in order. like employee name should be in one table and they can be vertical not horizontal, employee address is also should be seperate. and same thing with employee designation and contact no. I don't want to use for loop to iterate this list. Please tell me about optionCollection for this list. only employee names should be one drop down and employee designation is also in another drop down.
    Please help. It is really urgent.
    Any help will be appreciated.
    Thanks in advance.
    Manveer

    I'm not sure what you problem is, but one thing you can do is to create a new class and pass the list into its constructor (and store it as a private variable). Then, provide a set of functions in the new class that extracts data from the list and returns it in a form that the various parts of the JSP page wants. For example, one function may return a sorted list of just the employee names. In this way, all the business logic for formatting the data into a form that JSP page likes is hidden inside the new class.

Maybe you are looking for