Possible to use jsp:setProp with jsp:getProp in it?

Background info:
I have a bean that contains a variable dbid(with set and get methods). I can get the value of it by using the ordinary <jsp:getProperty.../>
But I would like to set the value like this:
<jsp:setProperty name=".." property ="dbid" value="<jsp:getProperty name=".." property="dbid"/>+1"/>
That is to set the value of dbid to dbid++
Is it possible to make this sort off call in a JSP file?
I have tried, but cannot make it work. But my logic tells me it must be possible!!
Hope you can help me!! I will not be cheap with the duke dollars! ;-)
In advance, thanx!!

Try this:
<jsp:setProperty name="bean_name" property="property_name" param="request_param_name" />
I think this will work...

Similar Messages

  • Using java bean with jsp

    hello friends,
    i'm new to jsp. i want to create an html form that accepts username and a value from four radio buttons and display back the entered name and checked radio button's value using java bean.
    i use the <jsp:setProperty id="" property="*"> method. i don't know how to access the radio buttons value from the html.
    also when i use an additional field other than username the jsp page is showing error.
    Please give me the correct method to use java bean with jsp in this circumstance.
    thank you.

    thank you, but i have a problem left. the case is like this.
    i got the jsp and bean worked fine when i have a sinle input text field.
    but when i added a second text field i recieved the following error.
    javax.servlet.ServletException: basket.newbean.getUserPass()Ljava/lang/String;
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.newform.process_jsp._jspService(process_jsp.java:69)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    where userPass is the new form element. I have made the subsequent chanes in my bean program and jsp file.
    pls hlp.

  • Scope when using a JavaBean with JSP

    what is the meaning of this question .....?
    "Which of the following can not be used as the scope when using a JavaBean with JSP? "
    question 4
    site :http://java.sun.com/developer/Quizzes/jsptut/

    The question is clearly written. I don't see how you can be confused. But let's assume you are since you would not have posed the question.
    Dumbed-down:
    There are 4 scopes or areas of variable visibility in JavaServer Pages. Which of those can areas can not be used with JavaBeans?
    Does that help?

  • Is it possible to use variant configuration (with a Non-SAP solution) when creating ERP sales orders in SAP CRM WebUI

    Hello,
    our customer plans to use a Non-SAP solution for variant configuration (Camos) in SAP ERP (ECC 6.0) and in SAP CRM 7.0 EHP1 as well.
    ERP sales orders (and ERP quotations) should be created in SAP CRM (CRM WebUI).
    Is it possible to use variant configuration (with an external variant configuration tool) when creating ERP sales orders and quotations in the SAP CRM WebUI or do we have to implement SAP IPC for this?
    Thanks in advance.
    Regards,
    AEV

    Dear AEV,
    I think LORD (lean orders) should work with variant configuration as well. In the note 1236015 there is not restriction listed. However you need lord2 activated in ECC, and ECC system should be on EHP4.
    Best regards
    Rene

  • I have a touchscreen laptop running Windows 8.1. Is it possible to use the touchscreen with Firefox? I've installed Firefox but it only works with the mouse etc

    have a touchscreen laptop running Windows 8.1. Is it possible to use the touchscreen with Firefox? I've installed Firefox but it only works with the mouse etc

    Hello Sirving575, sorry but the metro version of firefox has been cancelled, see : https://blog.mozilla.org/futurereleases/2014/03/14/metro/
    thank you

  • Is it possible to use Speech Recognition with Final Cut Studio?

    Is it possible to use Speech Recognition with Final Cut Studio?
    Using either Speech, AppleScript, Automator or a 3rd party app
    like iListen, can I enable Final Cut Studio apps to respond
    to voice commands?
    (e.g. I say "I" in Final Cut Pro and it sets an in point)
    thanks

    Yes, I wish "Make it really good" and "Fix my rough cut"
    were commmands too
    I did hear from the folks at iListen that
    they are planning on releasing a ScriptPak
    for Final Cut Studio next year which could be
    cool
    and that yes, iListen has some capability to
    integrate Speech Recognition with Final Cut,
    guess I need to give it a try for a test ride

  • Is it possible to use apple tv with my mobile 3g internet connection

    is it possible to use apple tv with my iphone 4s mobile 3g internet connection?

    This has already been discussed here:
    https://discussions.apple.com/thread/4819472?start=0&tstart=0

  • Is it possible to use lite sessions with AppLogic's?

    Hi everybody,
    I have one doubt about lite sessions. Is it possible to use lite sessions with AppLogic's?
    If it's possible, which steps do I have to take to use them?
    Thanks a lot,
    Alberto

    The following is the basic procedure to extend one 802.11n AirPort with another:
    AEBSn - Extending a wireless network Setup
    o If practical, place the base stations in near proximity to each other during the setup phase. Once done, move them to their desired locations.
    o Open AirPort Utility and select the base station that will connect to the Internet.
    o Choose Manual Setup from the Base Station menu, or double-click the base station to open the configuration in a separate window. Enter the base station password if necessary.
    o Click AirPort in the toolbar, and then click Wireless.
    o Choose “Create a wireless network” from the Wireless Mode pop-up menu, and then select the “Allow this network to be extended” checkbox.
    o Next, select the base station that will extend this network, and choose Manual Setup from the Base Station menu, or double-click the base station to open its configuration in a separate window. Enter the base station password if necessary.
    o Choose “Extend a wireless network” from the Wireless Mode pop-up menu, and then choose the network you want to extend from the Network Name pop-up menu.
    o Enter the base station network and base station password is necessary.
    o Click Update to update the base station with new network settings.
    (ref: Page 46 of "Designing AirPort Networks Using AirPort Utility.)

  • Is it possible to use lion recovery with PPPoE connection?

    hi, i dont have a wifi connection at home.
    but i want to use lion recovery to download a frsh copy of lion and  then make USB flash drive with it.
    is it possible to use lion recovery with PPPoE connection?

    raghav malhotra wrote:
    is it possible to use lion recovery with PPPoE connection?
    No.
    Read more here:
    http://support.apple.com/kb/HT4718

  • IS it possible to use ni-visa with lookout to use an instrument driver

    IS it possible to use ni-visa with lookout to use an instrument driver,, or just use the insturment driver...
    Thanks
    Mark

    Hi Mark,
    NI-VISA is a driver layer that is used to communicate to Serial, GPIB, VXI and PXI platform.
    In reality the drivers that you use with Lookot do not make use of this driver layer called VISA (which is used for the most part in the instrument control area).
    Normally the terminology (Instrument Driver) is not used in Lookout (or in any SCADA system). So the answer for your question is no, you cannot use NI-VISA with Lookout, with Lookout you either use the drivers object that comes with the package or you use an OPC server (normaly provided by the hardware manufacturer, this hardware is normally a PLC) to provide data to Lookout.
    I hope it helps
    Regards
    Andre Oliveira
    Applications Engineer
    National Instruments

  • Is it possible to use a Mac with an embroidery sewing machine?

    Is it possible to use a Mac with an embroidery sewing machine?

    Computer support for that type of equipment is completely up to the company making/selling the embroidery software, not the computer builder. A Mac likely could support any such device BUT the device makers must choose to include Mac software versions. Many specialty software developers are about 15 yeas in the past and thing no one uses Macs, or they are doing the project on a shoestring budget and would have to hire someone on the outside to port the program to Mac.
    As that function is likely of very narrow interest around here, I think you would do better to visit some of the embroidery sites and see if they mention products with known Mac support.
    Otherwise you will have to find the sites for every embroidery machine maker to look for mention of Mac support.

  • Is it possible to use face time with my iphone4 with 3G  when the wi-fi is not avalable because my friend own a 4S and he can? Thank you...

    Is it possible to use face time with my iphone4 with 3G when the wi-fi is not avalable

    Hi,
    The Blurb
    The * items message that is at the bottom
    *FaceTime video calling requires a FaceTime-enabled device for the caller and recipient and a Wi-Fi connection. FaceTime over a mobile network requires iPhone 4S, iPhone 5 or iPad (3rd generation) with mobile data capability. Availability over a mobile network depends on carrier policies; data charges may apply.
    Some features may not be available in all countries or all areas. Click here to see complete list.
    It is not specifically saying it is 4G only phones.
    It is not saying it is 3G either.
    It is not listing an iPhone 4  (only the 4S)
    It seems whether 3G can or cannot or if the iPhone can do 4G and it is available it seems that particular model will not.
    10:26 PM      Friday; March 29, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Is it possible to use 2 displays with the mac mini

    is it possible to use 2 displays with the mac mini

    I wanted an extended desktop using 2 monitors.
    I am using a Dell Ultrasharp ( has 1 VGA and 1 DVI-D) and a LG W2286 (has 2 HDMI, 1 DVI-D and 1 VGA)
    I ran into a similar issue where initially the mac would not detect the 2 displays and I thought I would share my solution.  I have a Mac Mini 10.8.2 i7 Late 2012.
    I bought a "Cable Matters" brand Mini Display Port | Thunderbolt to DVI Male Cable to have dual monitors.
    I am also using the included in the box  HDMI to DVI-D Adapter from Apple.
    Initial configuration was:
    Mini-Display (Thunderbolt connector) to DVI connected to the LG DVI-D input.
    Apple HDMI to DVI Dongle connected to the Dell DVI-D input.
    What happened was that my desktop was on the LG clear as day but OSX did not see the dell monitor.
    I called apple support and they could not figure out why the mini cant see the dell monitor. I think I discovered that the mac mini could not support 2 dvi monitors.
    I switched the monitor connections.
    The connections that works:
    HDMI out to HDMI in on the LG using a standard HDMI cable.
    Display port | Thunderport to DVI-D on the Dell's DVI-D in.

  • SAP CE 7.2 works fine is it possible to use sap gui with this version ?

    Hello Dears,
    Just installed CE7.2,
    Very easy install thanks for SAP !!!
    Is it possible to use sap gui with this version ?
    I'm trying to use Sap Gui 7100.3.11.1042 but can't get the prompt.
    Thanks for you help.
    Olivier

    Hello,
    So I tried to find the right software but I found only B1DESetup_2.1.zip.
    https://downloads.sdn.sap.com/BusinessOne/B1DESetup_2.1.zip
    Do you have any idea about the right link to download or this is the right file ?
    Thanks
    Olivier

  • Use of Threads with JSP's

    Can you use threads in a web application that uses JSP's plus Servlets and Beans ?
    We have a JRUN 3.1 application using JSPs, Servlets and Beans. Shortly after we went live it became apparent that any 2 users using the same object experienced problems as one object was overwriting another. In a panic the problem was solved by whacking SYNCHRONISED on all objects.
    Now we want to write another application, are there strategies for using Threads with JSPs?
    Would this be part of the webserver configuration or would the application be coded in a certain way ?
    Please can you give me a simplistic answer or point me to some documentation that gives a simple overview.
    Thanks Steve

    Hi,
    You can use thread with jsp, i am sending u a example
    package thread;
    import java.io.Serializable;
    public class TaskBean implements Runnable, Serializable {
    private int counter;
    private int sum;
    private boolean started;
    private boolean running;
    private int sleep;
    public TaskBean() {
    counter = 0;
    sum = 0;
    started = false;
    running = false;
    sleep = 100;
    protected void work() {
    try {
    Thread.sleep(sleep);
    counter++;
    sum += counter;
    } catch (InterruptedException e) {
    setRunning(false);
    public synchronized int getPercent() {
    return counter;
    public synchronized boolean isStarted() {
    return started;
    public synchronized boolean isCompleted() {
    return counter == 100;
    public synchronized boolean isRunning() {
    return running;
    public synchronized void setRunning(boolean running) {
    this.running = running;
    if (running)
    started = true;
    public synchronized Object getResult() {
    if (isCompleted())
    return new Integer(sum);
    else
    return null;
    public void run() {
    try {
    setRunning(true);
    while (isRunning() && !isCompleted())
    work();
    } finally {
    setRunning(false);
    And JSP page start.jsp
    <% session.removeAttribute("task"); %>
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <% task.setRunning(true); %>
    <% new Thread(task).start(); %>
    <jsp:forward page="status.jsp"/>
    ///////////////// status .jsp
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <HTML>
    <HEAD>
    <TITLE>JSP Progress Bar</TITLE>
    <% if (task.isRunning()) { %>
    <SCRIPT LANGUAGE="JavaScript">
    setTimeout("location='status.jsp'", 1000);
    </SCRIPT>
    <% } %>
    </HEAD>
    <BODY>
    <H1 ALIGN="CENTER">JSP Progress Bar</H1>
    <H2 ALIGN="CENTER">
    Result: <%= task.getResult() %><BR>
    <% int percent = task.getPercent(); %>
    <%= percent %>%
    </H2>
    <TABLE WIDTH="60%" ALIGN="CENTER"
    BORDER=1 CELLPADDING=0 CELLSPACING=2>
    <TR>
    <% for (int i = 10; i <= percent; i += 10) { %>
    <TD WIDTH="10%" BGCOLOR="#000080"> </TD>
    <% } %>
    <% for (int i = 100; i > percent; i -= 10) { %>
    <TD WIDTH="10%"> </TD>
    <% } %>
    </TR>
    </TABLE>
    <TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD ALIGN="CENTER">
    <% if (task.isRunning()) { %>
    Running
    <% } else { %>
    <% if (task.isCompleted()) { %>
    Completed
    <% } else if (!task.isStarted()) { %>
    Not Started
    <% } else { %>
    Stopped
    <% } %>
    <% } %>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="CENTER">
    <BR>
    <% if (task.isRunning()) { %>
    <FORM METHOD="GET" ACTION="stop.jsp">
    <INPUT TYPE="SUBMIT" VALUE="Stop">
    </FORM>
    <% } else { %>
    <FORM METHOD="GET" ACTION="start.jsp">
    <INPUT TYPE="SUBMIT" VALUE="Start">
    </FORM>
    <% } %>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    ////////////////////////////// stop.jsp
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <% task.setRunning(false); %>
    <jsp:forward page="status.jsp"/>
    deploy it into ur server and run start.jsp
    and see whatb happens

Maybe you are looking for