Parameter Passing from UWL to WebDynpro Component

Hi Everyone,
I m having a small problem in parameter passing from the UWL to the Webdynpro component(EP6 SP16).
The UWL shows a list of shopping carts and I ve configured it such that the Shopping carts open in the webdynpro application. Now the requirement is that I want to pass the shopping cart number from the workitem container and retrieve it in the webdynpro component.
The only thing that i m able to retrieve is the work-item ID. I ve followed the documentation on help.sap.com but I m not able to figure out how to move ahead with this.The code which i m using to retrive the dynamic parameter is
String text = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("DynamicParameter");
Can somebody please help me with this..
Regards,
Prathamesh

Have you looked at this weblog by Ginger Gatling?
Create new UI's for existing workflow tasks with ABAP Web Dynpro and Universal Worklist!
Hope this helps.
Sudha

Similar Messages

  • Parameter passing from servlet to jsp page

    Hi
    I m facing problem of parameter passing from servlet to jsp ..
    plz help me...
    I m using as ...
    in servlet code I m using ...
    request.setAttribute("string",parameter);
    and in jsp..
    request.getParameter("string");
    regard's
    JAI KUMAR

    Hi Jaykumar
    You should use
    <%= request.getAttribute("sting") %> or
    ${string}
    in your jsp. I think you are trying to retrive the parameter instead of attribute.
    Thanks

  • How to call a RFC of a remote system from an ABAP webdynpro component

    Dear Experts,
    I am a newbie in ABAP Webdynpro.
    I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
    How do I do that ?? Please help.
    Regards,
    Mamai.

    Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
    And the regarding the method of calling it depends on your FM.
    if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
    if it is simple straight forward RFC you can directly call it.
    for creating RFC service call call use this method
    1. Starting the Wizard
    To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
    workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
    through the creation process.
    Press Continue.
    2. Choice of Controller
    On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
    controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
    global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
    embed service calls in view controllers.
    a. Select radio button Use Existent Controller
    b. Do not change the default entry for component: <CC name>
    c. Enter for controller COMPONENTCONTROLLER
    d. Press Continue.
    3. Service Type and Service Selection
    a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
    destination here. Press Continue.
    b. Select the service: for Function Module enter <RFC name>. Press Continue.
    4. The Required Methods and Context Elements
    On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
    required by the service call as well as to the required methods. The proposed names are based on the names of the
    embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
    box.
    a. Adapt Context: Select from Nodes/Attributes . Press Continue.
    b. Specify Method Name: leave all entries as provided: Component:  Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
    5. Completing the Choice
    When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
    and contexts at your disposal for using them within your Web Dynpro component.
    or if you want to call directly the use the call statement with destination

  • Oracle forms 10g Parameter passing from forms to reports

    Hello Room,
    Please let me know what is wrong with this code. It is not passing parameter at all to the reports 10g parameter form from forms 10g, no matter what. I tried to delete the parameter from reports parameter form, I also tried to enable/disable restricted values from reports, I tried to hide the parameter from reports, but it is just not doing it.
    DECLARE
    pl_id PARAMLIST;
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    report_job_id VARCHAR2(100);
    fill varchar2(100);
    reportname varchar2(200);
    ab varchar2(200);
    cursor c200 is select CONAME,LOCATIONMASTER.LOCNAME FROM USERCODETL,MULCOMP,LOCATIONMASTER
    WHERE MULCOMP.CO=USERCODETL.CO
    AND USERCODETL.USERID = SUBSTR(AB,1,50) AND USERCODETL.LOCCD = LOCATIONMASTER.LOCCD;
    begin
         AB := GET_APPLICATION_PROPERTY(USERNAME);
    OPEN C200;
    FETCH C200 INTO :block4.coname,:block4.locname;
    CLOSE C200;
    synchronize;
    pl_id:=GET_PARAMETER_LIST('paramlist');
    IF NOT ID_NULL(pl_id) THEN
    DESTROY_PARAMETER_LIST(pl_id);
    END IF;
    pl_id:=CREATE_PARAMETER_LIST('paramlist');
    Add_Parameter(pl_id, 'vcompany', TEXT_PARAMETER, :block4.coname);
         Add_Parameter(pl_id, 'vlocname', TEXT_PARAMETER, :block4.locname);
    repid := find_report_object('testreport');
    fill := GET_REPORT_OBJECT_PROPERTY(repid, report_server);
    reportname := GET_REPORT_OBJECT_PROPERTY(repid, report_filename);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repsrv');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no'||'vcompany='||:block4.coname||'vlocname='||:block4.locname);
    v_rep := RUN_REPORT_OBJECT(repid,pl_id);
    WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||reportname||'&desformat=pdf&destype=cache&userid=scott/tiger@servernew&paramform=yes');
    END;
    Please help. Thank you in advance.

    Hello Inol,
    Greetings !
    There seems to be a syntax error when I run your code:-
    REP-52251: Cannot get output of job ID 272 you requested on Fri Apr 08 02:37:25 GMT 2011.<P>REP-51026: No output for job 272
    when I run then command:-
    http://local-pc:8889/reports/rwservlet/showjobs
    Terminated with error: <br>REP-159: Syntax error on command line.
    Is there a error on your statement ?
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1) ||'?server=repsrv );
    it should be
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1) ||'?server=repsrv ' );
    then only it is getting compiled properly. A single quote in the end !
    And finally I changed this line
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_1='||:SP_USERCODE 'p_my_second_parameter='||:block.my_second_parameter);
    to this line
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_1='||:SP_USERCODE|| *'p*mysecond_parameter='||:block.my_second_parameter);
    as it is giving error where highlighted in bold Is it necessary to change and add a concatenation there ?_
    But... But... even though I compile it properly the code is getting executed and it is giving the above error. Please note the same.
    Also please tell me what should be the status of the following things in report builder 10g.
    1. Shall I remove the parameters vcompany and vlocname from the parameter form and keep it just in parameters of report , There is a third parameter which I want the user to input while running the report other than these 2 parameters ?
    2. Shall I restrict the parameter to predetermined values ?
    3. Shall I hide the first column of the parameter in report builder.
    I have also tried to simulate the execution parameters from batch to runtime and comm mode to synchronous and asynchronous and vice versa. I have also given command rwserver server = repsrv on my pc and also server pc. please let me know about this also whether I need to give this command every time ? I mean for every booting ?
    As this problem is faced by many people. I think it should work across the fly as given by you or rather corrected by you. I would also like to know is there any patch available for the same released by oracle, as I have read somewhere in the forum here which I cannot locate the thread now. I do not mind paying for support if I find the need ?
    Please help me further. Thank you.

  • Parameter passing from master to subreport

    Is it possible to pass a multi-value parameter from a master report to one or more subreports? If so, how?
    Thanks for any help.
    Wayne E. Pfeffer

    Yes you can do this. I suggest the following: In your subreport make the report parameter a multi-value parameter. Test the subreport stand alone and make sure it works. Then drop the subreport into your main report, and map the subreport parameters to the main report parameters.
    Scenario 1 (multi value parameter pass through):
    The Main report has report parameter A which is a multi value parameter. You want to pass it to SubReport1 which has a report parameter B which is also defined as multi value parameter. In this case the mapping is just a simple parameter expression: =Parameters!A.Value
    The subreport RDL element would look like this:
              <Subreport Name="SubReport1">
                <Parameters>
                  <Parameter Name="B">
                    <Value>=Parameters!A.Value</Value>
                  </Parameter>
                </Parameters>
              </Subreport>  
    Scenario 2:
    The Main report has no report parameters. You have a SubReport1 with a report parameter B defined as multi value parameter. You want to pass e.g. three selected values "A", "B", "C" as parameter values to the subreport. You need to create a multidimensional object array on-the-fly, e.g. with the Split function, e.g.: =Split("A,B,C", ",")
    RDL example:
              <Subreport Name="SubReport1">
                <Parameters>
                  <Parameter Name="B">
                    <Value>=Split("A,B,C", ",")</Value>
                  </Parameter>
                </Parameters>
              </Subreport>
    Scenario 3:
    The Main report has a multi-value parameter A. You want to pass only the first selected value from the main report's parameter to the subreport and the subreport's report parameter B is a single-value parameter. You can do this by using e.g. =Parameters!A.Value(0)
    RDL example:
              <Subreport Name="SubReport1">
                <Parameters>
                  <Parameter Name="B">
                    <Value>=Parameters!A.Value(0)</Value>
                  </Parameter>
                </Parameters>
              </Subreport>
    -- Robert

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • Parameter passing from JSF to a Java class

    Hi,
    I am new to JSF, and I looked around in the questions to find an answer to my "Parameter passing" question. No luck..
    Below is an example that illustrate what I mean:
    This illustrate a way that I have found to work:
    <h:commandButton value="New"
    disabled="#{buttonHandler.newDisabled}" />
    <h:commandButton value="Delete"
    disabled="#{buttonHandler.deleteDisabled}" />
    But something like this is more how I would prefer to do it:
    <h:commandButton value="New"
    disabled="#{buttonHandler.Disabled("New")}" />
    <h:commandButton value="Delete"
    disabled="#{buttonHandler.Disabled("Delete")}" />
    Yes, I know it does not work.. but it illustrates what I want to do. I would like to use the same Java method for all buttons and just pass a parameter to sort out which one it is.
    Someone knows how to achieve this?

    In the get(key), you can pass in object, and do
    whatever you want with it. That's exactly what you
    want, but maynot be as nice, but that's EXACTLY what
    you want I think, except you have to work with get
    function, not your function. But you can just call
    your function in the get function.(Shudder) Really, "hack" is too kind for this.
    So to continue my checksum example above: I can "easily" find the checksum of an object by creating an implementation of Map that really only implements the get() method and throws a method-not-implemented exception for all other methods (violating the rule that all classes implementing Map should follow Map semantics). Then I create a getChecksum() method on my backing bean, which returns this Map adapter and allows me to property-bind+map-bind to:
    #{myBean.checksum[myObject]}
    Now for every single method I want to implement, I have to create a whole new class that implements Map but really isn't a Map! Horrors! And this assumes, as you later note, that I only want to use one parameter---never more. Of course, for mutiple parameters, I could always create a map of maps, with each sub-map another custom class implementing Map just so that it can represent another parameter and allow:
    #{myBean.checksum[myObject][myColor][myWeight]}
    Disgusting---a fake semantics-violating map class for each parameter?
    Can someone who designed JSF let us know why in the world that we can't pass parameters to a method?
    Garret

  • I want to expend base member for year.total parameter passed from pacakage

    Hi All,
    I am passing an Year.Total parameter from DM Package into my script logic. I need to calculate revenue for the whole year which has been passed on. But I dont know how to handle this parameter(year.total) in my script logic. I want to calculate revenue for the whole year not like year.jan, year.feb..................... etc
    // Calculate Revenue & post it to Planning Application
    // Define scope of data
    // Base members only and products with a product group
    *SELECT(%BASENT%, "[ID]", "STORE", "CALC='N'")
    *SELECT(%PRODS%,"[ID]", "PRODUCT", "CALC='N' AND PRDGRP<>' ' ")
    *SELECT(%BASTIM%,"[ID]", "TIME", "CALC='N'")
    *XDIM_MEMBERSET TIME = %BASTIM%             //%TIME_SET%
    *XDIM_MEMBERSET STORE = %BASENT%
    *XDIM_MEMBERSET PRODUCT = %PRODS%
    //*XDIM_FILTER ACCOUNT = [account].properties("ACCTYPE")="AST"
    //*XDIM_FILTER TIME = [TIME].properties("CALC
    *LOOKUP UNITRATES
    *DIM ENTITY = STORE.ENTITY
    *DIM PRODUCT = PRODUCT
    *DIM TIME = TIME
    *DIM UPRICE:UNITRATE = "PRICE"
    *ENDLOOKUP
    // Declare the Destination Application - we're calculating revenue in a different App.
    *DESTINATION_APP = PLANNING
    *RENAME_DIM STORE = ENTITY
    *RENAME_DIM PRODUCT = PRDGRP
    *ADD_DIM CURRENCY = LC
    *ADD_DIM ACCOUNT = 41100               // Revenue account
    *WHEN PRODUCT
    *IS *
    *REC(FACTOR=LOOKUP(UPRICE), PRODUCT=PRODUCT.PRDGRP, STORE=STORE.ENTITY )
    *ENDWHEN
    *COMMIT
    Thanks

    Hi Dalil:
    1. Firstly check if you have year input value like 2009.INP, or your revenue should be calculated by sum up 12 months.
    2. If you have year input value, you should directly use this value , you can filter using some property .
    3. If you should sum up 12 months value, then I think you should exactly declare the year time in your REC .
    like REC(FACTOR=LOOKUP(UPRICE), PRODUCT=PRODUCT.PRDGRP, STORE=STORE.ENTITY, TIME = 2009.INP )
    Wish this can help you
    Regards,
    Louis Lu
    Edited by: Louis Lu on Nov 12, 2009 1:27 PM

  • Parameter passing from java applet

    Hi all.
    currently i'm trying to create online testing applet (like TOEFL exam) for fun.
    i've create basic testing rutine, but i got stuck on showing the results.
    i want to show the results on the HTML so that users can print it out easily. but i donw know how to pass parameter from Java to some other language.
    I've searched for JavaScript, but it seems that it's only possible when using NetScape. Also, I searched for PHP, but it's just not possible. HTML seems that it's only possible from "HTML to Java"...
    if anyone knows how i can do it, and which language i should use, please let me know.
    thanx!

    i want to print out the questions that user have mistaken. print out the question, wrong answer, and right answer.
    all the answers are created by radiobutton so i want to get the only the Strig values, which wouldn' be so difficult.
    I've searched about JSObject, but could u tell me where can i install the package (or SDK)?
    And do users need to install the package as well?
    thanks for your time.

  • Parameter passing from BPF to DM package

    Hi there,
    We have a DM package based on execute formulas that points to custom logic file. We've configured to work using legalentity and time as parameters and we put them on the promt under the SELECTINPUT. Everyting works fine but now I'll like to run it from a BPF step, so I configured same data region on BPF and use the inherit from dataregion on the step that launchs the DM package...for my surprise I need to enter again those values in the package as they come empty on the package selection screen.
    So.... what I'm doing wrong?? Have to use another way to pass parameters to the package??
    Thanks in advance for any help on this.
    Regards,
    Carlos

    You might try to copy the package that you are requesting in the BPF as a back-up.  Then in the package you have connected to the BPF, comment out the SELECTION PROCESS text in the Advanced area of the SSIS package.  Then test the process and review the log to see if the current view or assigned view is passed as a parameter.  If not, then you may have to use a specific package, that has a broader scope defined in the package details or Script logic file itself.
    That would be my first step.

  • Parameter Passing from HTML to RDF.

    I have configured report server to work under Apache Web server.I can generate reports that fetches all the records from the Oracle 8i database and diplay it in the browser.What I need now is.The user will be entering some fields(for filtering) in a html page and that values has to be passed to the RDF file for the SQL statment to filter the records that satisfy the criteria.Can anyone please help me in this if U haev any prior experience or any guesses or atleast any reference material(books) or web sites atleast
    Thanks in advance
    Gracelin
    null

    Here is an example if it helps. We have a report that accepts two parameters. Here is the listing in the cgicmd.dat file:
    report_jeop_d: report=jep_detail.rdf destype=cache desformat=html server=Rep60_REPORTSERVER6I P_TEO=%1 P_ORG_ID=%2
    P_TEO and P_ORG_ID are the two parameters we wish to pass to Reports. Here is the URL to run the report:
    http://reportserver6i/dev60cgi/rwcgi60.exe?report_jeop_d&ABC&100
    where we want P_TEO to be ABC and P_ORG_ID to be 100. ABC is the first parameter and is passed to the variable referenced by %1 in the cgicmd.dat file.
    Good Luck

  • Parameter passing from jsp to jsp in diffrent domain

    Hi All,
    I need to pass parameter from one jsp to other in diffrent domain.
    I am using
    <form name ="menuForm" method="post" action="http://xxx/vijay.jsp">
    <input type="text" name="userid" value="<%=mySession.getAttribute("userid")%>">
    </form>
    The problem i am facing I can't really use this because on the view soure people can see easily what i am passing .Is there any other way i can pass the parameter without exposing them.
    Vijay

    That's an nice suggestion ,I have already have JCE for db password.
    but by using
    <input type="text" name="userid" value="<%=mySession.getAttribute("userid")%>">
    people can still see the contains in the html source.
    This is all because they removed
    request.setParameter() method
    Vijay

  • Parameter Passing from Concurrent Program to XML Data Template

    Hi All,
    I have a xml data template which is attached to a data definition. The data template contains a SQL query and some parameter definitions. One of the parameters is p_emp_id. The data type of the parameter is "number" and the where clause that uses the parameter is as follows:
    AND employee_id in (:p_emp_id,DECODE(:p_emp_id,126,130,-99).
    The data definition is attached to a concurrent program which has a parameter based on a valueset. Format type of valueset is char. Validation type is table. Inside the table definition, the table is employees. value column is emp_name type is char. meaning column is emp_name type is char. ID column is emp_id type is number.
    The above where clause condition fails when the conc program is run. In the log file I can see that the value passed is 126 from the valueset. If the query is run independently in TOAD and value passed is 126, the where clause returns rows.
    Kindly let me know what could be the possible issue. Let me know if the question is not clear enough.
    Thanks,
    Amit

    Hi Ashish,
    Thanks for replying.
    I mentioned that the Id column of the VSet is emp_id right ? Isn't the Id column value passed ?
    Moreover I also mentioned that I could see in the log file that the emp_id value is being passed and not the name. I could see in the log file p_emp_id=126. There seems to be some problem with the data types and all.
    Thanks,
    Amit

  • Parameter passing from Java to Jsp

    Hi all,
    I have an XML and a Java class. I have taken some values from XML into my Java class. Now I want to pass these parameters to a Jsp and display it as a link tag.
    Somebody please help me...

    You add them to the servlet Request object as attributes, then you use ServletContext.getRequestDispatcher(uri).forward(request, response) to transfer to the jsp.
    It's usually cleanest to use some kind of bean as a "Data transfer object" so that all your stuff goes accross as one attribute and you can get it with <jsp:useBean >

  • Parameter passing from jsp to jsp

    i have a jsp(mother page) there is a link when i click from my mother page a pop-up window appear now what i want is to get the value from my pop-up window (textarea, inputs, etc.) to my mother page.
    thanx a lot

    mother page(calendar.jsp)
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page session="true" import="java.util.*" %>
    <%@page import="java.io.*"%>
    <style type="text/css">
        body{
        font-family: tahoma;
        font-size: 12pt;
        a {text-decoration: none}
        a:hover { font-family: Tahoma; font-size: 12pt; color:#ff0000; text-decoration: none }
    </style>
    <%
        // Global Vars
        int action = 0;  // incoming request for moving calendar up(1) down(0) for month
        int currYear = 0; // if it is not retrieved from incoming URL (month=) then it is set to current year
        int currMonth = 0; // same as year
        String boxSize = "50";  // how big to make the box for the calendar
        //build 2 calendars
        Calendar c = Calendar.getInstance();
        Calendar cal = Calendar.getInstance();
        if (request.getParameter("action") == null) // Check to see if we should set the year and month to the current
            currMonth = c.get(c.MONTH);
            currYear = c.get(c.YEAR);
            cal.set(currYear, currMonth,1);
        else {
            if (!(request.getParameter("action") == null)) // Hove the calendar up or down in this if block
                currMonth = Integer.parseInt(request.getParameter("month"));
                currYear = Integer.parseInt(request.getParameter("year"));
                if (Integer.parseInt( request.getParameter("action")) == 1 ) {
                    cal.set(currYear, currMonth, 1);
                    cal.add(cal.MONTH, 1);
                    currMonth = cal.get(cal.MONTH);
                    currYear = cal.get(cal.YEAR);
                } else {
                    cal.set(currYear, currMonth ,1);
                    cal.add(cal.MONTH, -1);
                    currMonth = cal.get(cal.MONTH);
                    currYear = cal.get(cal.YEAR);
    %>
        <%!
            public boolean isDate(int m, int d, int y) // This method is used to check for a VALID date
                m -= 1;
                Calendar c = Calendar.getInstance();
                c.setLenient(false);
                try {
                    c.set(y,m,d);
                    Date dt = c.getTime();
                } catch (IllegalArgumentException e) {
                    return false;
                return true;
        %>
                <%!
                    public String getDateName(int monthNumber) // This method is used to quickly return the proper name of a month
                        String strReturn = "";
                        switch (monthNumber) {
                            case 0:
                                strReturn = "January";
                                break;
                            case 1:
                                strReturn = "February";
                                break;
                            case 2:
                                strReturn = "March";
                                break;
                            case 3:
                                strReturn = "April";
                                break;
                            case 4:
                                strReturn = "May";
                                break;
                            case 5:
                                strReturn = "June";
                                break;
                            case 6:
                                strReturn = "July";
                                break;
                            case 7:
                                strReturn = "August";
                                break;
                            case 8:
                                strReturn = "September";
                                break;
                            case 9:
                                strReturn = "October";
                                break;
                            case 10:
                                strReturn = "November";
                                break;
                            case 11:
                                strReturn = "December";
                                break;
                        return strReturn;
                %>
                <script>
                    function doLoad()
                    setTimeout( "refresh()", 2*1000 );
                </script>
                        <html>
                            <form name="upform" method="post">
                                <body bgcolor='white'>
                                    <table border="0" width="520" bordercolorlight="#C0C0C0" bordercolordark="#808080" style="border-collapse: collapse" bordercolor="#111111">
                                        <td>                   
                                            <table border='1' height="20" width='520' celpadding='3' cellspacing='0'>
                                                <tr>
                                                    <td width='120' align='center' valign='middle' height="40"><a href="calendar.jsp?month=<%=currMonth%>&year=<%=currYear%>&action=0"><font size="2"><< Previous Month</font></a></td>
                                                    <td width='280' align='center' valign='middle' height="40" style="font-family: tahoma; font-size: 14pt; color:#800000 "><b><%=getDateName (cal.get(cal.MONTH)) + " " + cal.get(cal.YEAR)%></b></td>
                                                    <td width='120' align='center' valign='middle' height="40"><a href="calendar.jsp?month=<%=currMonth%>&year=<%=currYear%>&action=1"><font size="2">Next Month >></font></a></td>
                                                </tr>
                                            </table>
                                            <table border="0" width="520" bordercolorlight="#C0C0C0" bordercolordark="#808080" style="border-collapse: collapse" bordercolor="#111111">
                                                <td width="100%">
                                                    <table border="2" width="520" bordercolorlight="#C0C0C0" bordercolordark="#000000" style="border-collapse: collapse" bordercolor="#000000"  bgcolor="#DFDCD8">
                                                        <tr style="background-color: #B22222">
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Sun</b></font></td>
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Mon</b></font></td>
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Tue</b></font></td>
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Wed</b></font></td>
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Thu</b></font></td>
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Fri</b></font></td>
                                                            <td width="<%=boxSize%>" align="center" nowrap bordercolor="#666666">
                                                            <font color="#FFFFFF"><b>Sat</b></font></td>
                                                        </tr>
                                                        <%
                                                            //'Calendar loop
                                                            int currDay;
                                                            String todayColor;
                                                            int count = 1;
                                                            int dispDay = 1;
                                                            for (int w = 1; w < 7; w++) {
                                                        %>
                                                        <tr>
                                                            <%
                                                                for (int d = 1; d < 8; d++) {
                                                                    if (! (count >= cal.get(c.DAY_OF_WEEK))) {
                                                            %>
                                                            <td width="<%=boxSize%>" height="<%=boxSize%>" valign="top" align="left"> </td>
                                                            <%
                                                                count += 1;
                                                                } else {
                                                                    if (isDate( currMonth + 1, dispDay, currYear) ) // use the isDate method
                                                                        if ( dispDay == c.get(c.DAY_OF_MONTH) && c.get(c.MONTH) == cal.get(cal.MONTH) && c.get(c.YEAR) == cal.get(cal.YEAR)) // Here we check to see if the current day is today
                                                                            todayColor = "#A52A2A";
                                                                        } else {
                                                                            todayColor = "#ffffff";
                                                            %>
                                                            <td bgcolor ="<%=todayColor%>" width="<%=boxSize%>" align="left" height="<%=boxSize%>" valign="top"><%=dispDay%><br>
                                                            </td>
                                                            <%
                                                                count += 1;
                                                                dispDay += 1;
                                                                        } else {
                                                            %>
                                                            <td width="<%=boxSize%>" align="left" height="<%=boxSize%>" valign="top"> </td>
                                                            <%
                                                            %>
                                                        </tr>
                                                        <%
                                                        %>
                                                    </table>
                                                </td>
                                            </table>
                                        </td>
                                    </table>
                                    <input type="text" name="selMonth" value="">
                                    <input type="text" name="selDay" value="">
                                    <input type="text" name="selYear" value="">
                                    <input type="text" name="txtDesc" value="">
                                    <%
                                        String month=request.getParameter("selMonth");
                                        String day=request.getParameter("selDay");
                                        String year=request.getParameter("selYear");
                                        String desc=request.getParameter("txtDesc");
                                        out.println(month);
                                        out.println(day);
                                        out.println(year);
                                        out.println(desc);
                                    %>
                                    <br>
                                    <a href="addevents.jsp" target="popup" onClick="wopen('addevents.jsp', 'popup', 390, 130); return false;">  ADD EVENTS</a>
                                </body>
                            </form>
                        </html>
    <script>
        function wopen(url, name, w, h)
        w += 32;
        h += 96;
        var win = window.open(url,
        name,
        'width=' + w + ', height=' + h + ', ' +
        'location=no, menubar=no, ' +
        'status=no, toolbar=no, scrollbars=no, resizable=no');
        win.resizeTo(w, h);
        win.focus();
    </script> popupwindow(addevents.jsp)
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>  <%@ page language="java" import="javazoom.upload.*,java.util.*" %>
        <%@ page errorPage="ExceptionHandler.jsp" %>
        <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
            <jsp:setProperty name="upBean" property="folderstore" value="C:\ffwApplication\uploadbean\web\uploads"/>
            <jsp:setProperty name="upBean" property="overwrite" value="true" />
        </jsp:useBean>
    <style type="text/css">
        body {color:#ff0000 ;
        margin-left: 0px;
        margin-right: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
        td{font-family: Tahoma;
        font-size: 9pt;
        color: #B22222;
        h4{font-family: Arial, Helvetica, sans-serif;
        font-size: 12pt;
        color: #800000;
        a {text-decoration: none}
        a:hover { font-family: Tahoma; font-size: 11pt; color:#ff0000; text-decoration: none }
    </style>
    <script type="text/javascript">
        function returninput(){
          var form = document.upform;
          var release = true;
            if (upform.txtDesc.value == "")
               alert('Please input description for reference.');
                release = false;
                if (release)
                  var checkform = window.opener.document.upform;
                  checkform.selMonth.value = form.selMonth.value;
                  checkform.selDay.value = form.selDay.value;
                  checkform.selYear.value = form.selYear.value;
                  checkform.txtDesc.value = form.txtDesc.value;
                  //window.close();
    </script>
    <html>
        <head>
            <title></title>
        </head>
        <body>
            <form method="post" action="addevents.jsp" name="upform" enctype="multipart/form-data" onsubmit="javascript:returninput()">
                <table>
                    <tr>
                        <td align="center" colspan="4"><h4>Add Events<h4></td>
                    </tr>
                    <tr>
                        <td align="right">Select Date</td>
                        <td>
                            <select id="selMonth" name="selMonth">
                                <option value="January">January</option>
                                <option value="February">February</option>
                                <option value="March">March</option>
                                <option value="April">April</option>
                                <option value="May">May</option>
                                <option value="June">June</option>
                                <option value="July">July</option>
                                <option value="August">August</option>
                                <option value="September">September</option>
                                <option value="October">October</option>
                                <option value="November">November</option>
                                <option value="December">December</option>
                            </select> / 
                            <select name="selDay" id="selDay">
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                                <option value="20">20</option>
                                <option value="21">21</option>
                                <option value="22">22</option>
                                <option value="23">23</option>
                                <option value="24">24</option>
                                <option value="25">25</option>
                                <option value="26">26</option>
                                <option value="27">27</option>
                                <option value="28">28</option>
                                <option value="29">29</option>
                                <option value="30">30</option>
                                <option value="31">31</option>
                            </select> /  
                            <select name="selYear" id="selYear">
                                <option value="2000">2000</option>
                                <option value="2001">2001</option>
                                <option value="2002">2002</option>
                                <option value="2003">2003</option>
                                <option value="2004">2004</option>
                                <option value="2005">2005</option>
                                <option value="2006">2006</option>
                                <option value="2007" selected>2007</option>
                                <option value="2008">2008</option>
                                <option value="2009">2009</option>
                                <option value="2010">2010</option>
                                <option value="2011">2011</option>
                                <option value="2012">2012</option>
                                <option value="2013">2013</option>
                                <option value="2014">2014</option>
                                <option value="2015">2015</option>
                                <option value="2016">2016</option>
                                <option value="2017">2017</option>
                                <option value="2018">2018</option>
                                <option value="2019">2019</option>
                                <option value="2020">2020</option>
                                <option value="2021">2021</option>
                                <option value="2022">2022</option>
                                <option value="2023">2023</option>
                                <option value="2024">2024</option>
                                <option value="2025">2025</option>
                            </select> 
                        </td>
                    </tr>
                    <tr>
                        <td align="right">Description</td>
                        <td><textarea name="txtDesc" rows="2" cols="35"></textarea></td>
                    </tr>
                    <tr>
                        <td align="right">File Upload</td><td><input type="file" name="uploadfile" size="35"></td>
                    </tr>
                    <tr>
                        <td align="center" colspan="3">
                            <br>
                            <input type="hidden" name="todo" value="upload">
                           <!--input type="button" name="Submit" value="Upload" onclick="javascript:returninput()"-->
                           <input type="submit" name="Submit" value="Upload">
                            <input type="reset" name="Reset" value="Cancel" onclick="window.close()">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <%
                                if (MultipartFormDataRequest.isMultipartFormData(request)) {
                                    // Uses MultipartFormDataRequest to parse the HTTP request.
                                    MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
                                    String todo = null;
                                    if (mrequest != null) todo = mrequest.getParameter("todo");
                                    if ( (todo != null) && (todo.equalsIgnoreCase("upload")) ) {
                                        Hashtable files = mrequest.getFiles();
                                        if ( (files != null) && (!files.isEmpty()) ) {
                                            UploadFile file = (UploadFile) files.get("uploadfile");
                                            //if (file != null) out.println("<li>Form fields : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                                            // Uses the bean now to store specified by jsp:setProperty at the top.
                                            upBean.store(mrequest, "uploadfile");
                                        } else {
                                            out.println("<li>No uploaded files");
                                    /*    if (mrequest != null) {
                                            month=mrequest.getParameter("selMonth");
                                            day= mrequest.getParameter("selDay");
                                            year=mrequest.getParameter("selYear");
                                            desc=mrequest.getParameter("txtDesc");
                                            out.println(month);
                                            out.println(day);
                                            out.println(year);
                                            out.println(desc);
                                    } else out.println("<BR> todo="+todo);
                            %>
                        </td>
                    </tr>
                </table>
            </form>
        </body>
    </html>
                            Project description:
    If user wants to add events he/she click the add events link from my calendar.jsp then a pop-up window appear which is addevents.jsp then select date, description and offcourse he/she can upload file store in a certain directory from that info it will return to my calendar.jsp to parse the date to my calendar and create a link through the description towards my uploaded data in a certain directory
    thanx a lot...

Maybe you are looking for

  • IPod continues to say "Do Not Disconnect"

    No matter how long I leave my iPod connected to my computer to synch and charge, there is always a "Do Not Disconnect" message displayed on the screen. This is so even though (a) the battery icon shows a full charge (if I read it correctly; it has be

  • Web Form Error

    I'm having a promblem on our simple quick contact form We are getting this when submitting... but before it was ok ERROR: An error occurred while processing credit card here's the link to our site http://www.jdteterlaw.com/ test the rRequest Consult

  • In OSX Safari, how do I drag a single open window to an existing tab set?

    In OSX Safari, how do I drag a single open window, without tabs, to an existing window with a tab set? I have an iMac 5K running Yosemite.

  • [svn] 4171: Nested exception handlers in an instance method: fix arg0 ( the activation record).

    Revision: 4171 Author: [email protected] Date: 2008-11-23 18:09:10 -0800 (Sun, 23 Nov 2008) Log Message: Nested exception handlers in an instance method: fix arg0 (the activation record). Modified Paths: flex/sdk/trunk/modules/asc/src/java/adobe/abc/

  • Locking a datablock

    Hi guys, my scenario is that i have a datblock based on a table but when i make changes i dont want to lock the table that the datablock is from, i actually want to lock a different table within the database as I am actually updating a different tabl