Generating names for instanses of classes dynamically pls help????

Hi this is what i am trying to do. I have two classes. 1)DragDrop and 2) Create. In the create class I want to declare an instance of DragDrop and call a method from the DragDrop class. The method i want to call is to draw an object to the screen. So if i wanted to draw one object the call would be:
DragDrop d = d.add(object)
I do not know how many objects need to be drawn till runtime, and I also need to be able to know the variable name assigned to the instance of the class, so for 100 objects i will need to know 100 variable names, this is so that each object can be manipulated and i need the variable name to do this. What i want to know is how can i assign different variable names depending on the number of objects that need to be drawn, i have considered using hashmaps but still don't see how it would be possible, any help would be much appreciated. Thanks.

It's not possible. A Map is the closest you can get.

Similar Messages

  • How to change the package name for a msg class

    Can anybody tell me how to change the package name for a message class.
    and how will it effect in the rerport?
    thanks in advance
    kp

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • HT201359 Why i have been billed six times for the same item? Pls help how to refund..

    Why i have been billed six times for the same item? Pls help how to refund..

    Did you change your card details on your account a number of times when trying to purchase the item, and five of them are temporary store holding charges : http://support.apple.com/kb/HT3702 ?
    If they are all 'proper' charges then try the 'report a problem' link to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Query: Missing tablename in generated SQL for vertical mapped classes

    Hi,
    I am playing with Kodo 3.1.4 / Postgres 7.4 and could not find any
    solution for this problem:
    I have one class calles "Clipfragment" which represents video clips and
    has a long - field named "lengthInMinutes". It extends a baseclass
    called "Categorizablefragment", which has a field "id" and some others.
    I use vertical mapping, thus having one table per class. The identity
    type is 'application'. The table for the class "Categorizablefragment"
    contains fields for jdoclass and jdoversion and IMHO correct entries.
    Everything works really fine except for Querys against subclass fields
    with aggregate functions. E.g. counting all clips works:
    KodoQuery q = (KodoQuery) getJdoPm().newQuery(ClipFragment.class);
    q.setResult ("count(id)");
    Number count = (Number) q.execute ();
    But: Querying for the sum of the field 'lengthInMinutes' fails:
    KodoQuery q = (KodoQuery) getJdoPm().newQuery(ClipFragment.class);
    q.setResult ("sum(lengthInMinutes)");
    Number count = (Number) q.execute ();
    The exception is:
    kodo.util.UserException: com.solarmetric.jdbc.ReportingSQLException:
    ERROR: syntax error at or near "WHERE"
    {prepstmnt 16398807 SELECT AVG(t0.lengthinminutes) FROM  WHERE
    t1.jdoclass = ? [reused=0]} [code=0, state=42601]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: ERROR: syntax error at or
    near "WHERE"
    {prepstmnt 16398807 SELECT AVG(t0.lengthinminutes) FROM  WHERE
    t1.jdoclass = ? [reused=0]} [code=0, state=42601]
    at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:865)
    at kodo.query.AbstractQuery.execute(AbstractQuery.java:728)
    atde.jk.buvas.model.impl.DefaultClipManager.getTotalTime(DefaultClipManager.java:43)
    And the SQL - Trace:
    5766 TRACE [main] kodo.jdbc.SQL - <t 17089909, conn 31908613 (1
    errors)> [0 ms] executing prepstmnt 17226426 SELECT
    SUM(t0.lengthinminutes) FROM WHERE t1.jdoclass = ? [params=(String)
    de.jk.buvas.model.fragments.ClipFragment] [reused=0]
    I tried both 'base-tables' and 'per-subclass' for the property
    kodo.jdbc.VerticalQueryMode, without any results.
    Any ideas?
    Thanks,
    Jochen

    Hi Stephen,
    here are the excerpts from the .jdo and the .mapping files. The .jdo
    file was generated by XDoclet.
    ..jdo
    <class name="ClipFragment"
    identity-type="application"
    objectid-class="CategorizableFragment$Id"
    persistence-capable-superclass="CategorizableFragment"
    > <!-- end class tag -->
    <extension vendor-name="kodo"
    key="jdbc-class-map-name"
    value="vertical">
    <extension vendor-name="kodo" key="table" value="Clip"/>
    </extension>
    <field name="title"
    > <!-- end field tag -->
    <extension vendor-name="kodo"
    key="jdbc-size"
    value="100">
    </extension>
    </field>
    <field name="lengthInMinutes"
    > <!-- end field tag -->
    </field>
    <field name="description"
    > <!-- end field tag -->
    <extension vendor-name="kodo"
    key="jdbc-size"
    value="3000">
    </extension>
    </field>
    <field name="recordingDate"
    > <!-- end field tag -->
    </field>
    <field name="actors"
    > <!-- end field tag -->
    <collection
    element-type="de.jk.buvas.model.fragments.ActorFragment"
    > <!-- end collection tag -->
    </collection>
    <extension vendor-name="kodo"
    key="jdbc-element-delete-action"
    value="exception-deferred">
    </extension>
    <extension vendor-name="kodo"
    key="inverse-owner"
    value="clips">
    </extension>
    </field>
    <field name="media"
    > <!-- end field tag -->
    <collection
    element-type="de.jk.buvas.model.fragments.MediumFragment"
    > <!-- end collection tag -->
    </collection>
    <extension vendor-name="kodo"
    key="jdbc-element-delete-action"
    value="exception-deferred">
    </extension>
    </field>
    </class>
    <class name="CategorizableFragment"
    identity-type="application"
    objectid-class="CategorizableFragment$Id"
    > <!-- end class tag -->
    <extension vendor-name="kodo"
    key="jdbc-class-map-name"
    value="base">
    <extension vendor-name="kodo" key="table" value="Categorizable"/>
    </extension>
    <field name="id"
    primary-key="true"
    > <!-- end field tag -->
    </field>
    <field name="category"
    > <!-- end field tag -->
    <extension vendor-name="kodo"
    key="jdbc-delete-action"
    value="exception-deferred">
    </extension>
    </field>
    </class>
    ..mapping
    <class name="ClipFragment">
    <jdbc-class-map type="vertical" ref-column.ID="ID" table="CLIPFRAGMENT"/>
    <field name="actors">
    <jdbc-field-map type="many-many" element-column.ID="ID"
    ref-column.ID="CLIPS_ID" table="ACTOR_CLIPS"/>
    </field>
    <field name="description">
    <jdbc-field-map type="value" column="DESCRIPTION"/>
    </field>
    <field name="lengthInMinutes">
    <jdbc-field-map type="value" column="LENGTHINMINUTES"/>
    </field>
    <field name="media">
    <jdbc-field-map type="many-many" element-column.ID="MEDIA_ID"
    order-column="MEDIA_ORDER" ref-column.ID="ID" table="CLIPF_MEDIA"/>
    </field>
    <field name="recordingDate">
    <jdbc-field-map type="value" column="RECORDINGDATE"/>
    </field>
    <field name="title">
    <jdbc-field-map type="value" column="TITLE"/>
    </field>
    </class>
    <class name="CategorizableFragment">
    <jdbc-class-map type="base" table="CATEGORIZABLEFRAGMENT"/>
    <jdbc-version-ind type="version-number" column="JDOVERSION"/>
    <jdbc-class-ind type="in-class-name" column="JDOCLASS"/>
    <field name="category">
    <jdbc-field-map type="one-one" column.ID="CATEGORY_ID"/>
    </field>
    <field name="id">
    <jdbc-field-map type="value" column="ID"/>
    </field>
    </class>
    Thanks,
    Jochen
    Stephen Kim wrote:
    Can you post the mapping/metadata files for the two classes?
    Jochen Kressin wrote:
    Hi,
    I am playing with Kodo 3.1.4 / Postgres 7.4 and could not find any
    solution for this problem:
    I have one class calles "Clipfragment" which represents video clips
    and has a long - field named "lengthInMinutes". It extends a baseclass
    called "Categorizablefragment", which has a field "id" and some
    others. I use vertical mapping, thus having one table per class. The
    identity type is 'application'. The table for the class
    "Categorizablefragment" contains fields for jdoclass and jdoversion
    and IMHO correct entries.
    Everything works really fine except for Querys against subclass fields
    with aggregate functions. E.g. counting all clips works:
    KodoQuery q = (KodoQuery) getJdoPm().newQuery(ClipFragment.class);
    q.setResult ("count(id)");
    Number count = (Number) q.execute ();
    But: Querying for the sum of the field 'lengthInMinutes' fails:
    KodoQuery q = (KodoQuery) getJdoPm().newQuery(ClipFragment.class);
    q.setResult ("sum(lengthInMinutes)");
    Number count = (Number) q.execute ();
    The exception is:
    kodo.util.UserException: com.solarmetric.jdbc.ReportingSQLException:
    ERROR: syntax error at or near "WHERE"
    {prepstmnt 16398807 SELECT AVG(t0.lengthinminutes) FROM  WHERE
    t1.jdoclass = ? [reused=0]} [code=0, state=42601]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: ERROR: syntax error at or
    near "WHERE"
    {prepstmnt 16398807 SELECT AVG(t0.lengthinminutes) FROM  WHERE
    t1.jdoclass = ? [reused=0]} [code=0, state=42601]
    at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:865)
    at kodo.query.AbstractQuery.execute(AbstractQuery.java:728)
    atde.jk.buvas.model.impl.DefaultClipManager.getTotalTime(DefaultClipManager.java:43)
    And the SQL - Trace:
    5766 TRACE [main] kodo.jdbc.SQL - <t 17089909, conn 31908613 (1
    errors)> [0 ms] executing prepstmnt 17226426 SELECT
    SUM(t0.lengthinminutes) FROM WHERE t1.jdoclass = ? [params=(String)
    de.jk.buvas.model.fragments.ClipFragment] [reused=0]
    I tried both 'base-tables' and 'per-subclass' for the property
    kodo.jdbc.VerticalQueryMode, without any results.
    Any ideas?
    Thanks,
    Jochen

  • How Can i SEt Dynamic Variant For WEEK on SELECTION Screen.pls help me..

    <b>Hi ALL..
    Pls Help Me for this Problem..i am very confused how can i do that...plese tell me proper process..
    i  want set Dynamice Varient for WEEK on Selection screen..
    I have ALrady SET Dynamice Varient for DATE on Selection Screen.ther isd option is D...but in case of WEEK there is a no option...
    Plese help me..
    thaks in advance..
    pls help me..</b>

    Hello,
    Define your select-option in TVARV (assume Z_THISWEEK). And use a program like:
    DATA:
      zlv_week TYPE KWEEK.
    call function 'DATE_GET_WEEK'       
       exporting date = syst-datum
       importing week = zlv_week.
    SELECT SINGLE *
          FROM tvarvc
         WHERE name = 'Z_THISWEEK'
           AND type = 'S'
           AND numb = '0000'.
    tvarvc-low = zlv_week.
    IF syst-subrc <> 0.
        tvarvc-name     = 'Z_THISWEEK'.
        tvarvc-type     = 'S'.
        tvarvc-opti     = 'EQ'.
        tvarvc-sign     = 'I'.
        tvarvc-numb     = '0000'.
        insert tvarvc.
    ELSE.
      update tvarc.
    ENDIF.
    Regards,
    John.

  • How is the design for this complex requirement ? pls help..

    Hi All,
    We have a Discount scheme that can be given for all possible
    combination of all customer, area and product hierarchy (attached below).
    for example :
    Promotion No.001 =>for sales on : CustomerGroup 'A', Area 'B', and
    ProductBrand 'C' will get discount 2 %
    Promotion No.002 =>for sales on : AllCustomer, District 'D', and
    Product 'E' will get discount 2.5 %
    Promotion No.003 =>for sales on : CustomerType 'F', AllArea, and
    ProductGroup 'G' will get discount 3 %
    ... and any possible combination.
    And it is possible for an Order / Invoice to get discount from two or
    more different promotion.
    e.g: Order 001, get 2 % from Promotion No.001 and 3 % from Promotion
    No.003, so totally it gets 5% discount.
    (1) Customer Hierarchy
    AllCustomer
    CustomerGroup
    CustomerType
    Customer
    (2) Area Hierarchy
    AllArea
    Region
    District
    Area
    (3) Product Hierarchy
    AllProduct
    ProductGroup
    ProductBrand
    Product
    Our Orders Data has following attributes :
    OrderNo.
    Customer
    Area
    Product
    Gross
    Discount
    Additional info :
    - Oracle version : 10g
    - If multiple discounts are applied, e.g: two discount, 10% each, then
    the total discount is 20%, if gross = 100, then netto is 100 * 80% =
    80.
    The design that comes to my mind is like below, please give me
    correcttion and recommendation :
    The Promotions is defined in master-detail :
    - one master table
    - three detail tables (one for each possible hierarchy)
    - one additional Tabel to store detail of discount an Order get,
    because it can get 2 or more discount.
    PromoHeader :
    - PromoNumber
    - Description
    - StartDate
    PromoDetail1 :
    - PromoNumber
    - PType (ALL / CustomerGroup / CustomerType / Customer)
    - PCode (ALL / 'xxxx' )
    ( note : 'xxxx' can be Customer Group Code, Customer Type Code or
    Customer Code )
    PromoDetail2 :
    - PromoNumber
    - PType (ALL / Region / District / Area)
    - PCode (ALL / 'xxxx' )
    ( note : 'xxxx' can be Region Code, District Code or Area Code )
    PromoDetail3 :
    - PromoNumber
    - PType (ALL / ProductGroup / ProductBrand / Product)
    - PCode (ALL / 'xxxx' )
    ( note : 'xxxx' can be ProductGroup Code, ProductBrand Code, Product
    Code )
    PromoByOrder
    - OrderNumber
    - PromoNumber
    - PType
    - PCode
    - Discount (%)
    (if an Order get two discount, there will be two records on this table
    for thet order)
    The question is :
    1) is this a 'good enough' design ?
    2) if I do go with this design, how is the efficient query / plsql to
    calculate the discounts for an Order.
    Pls help..
    Thank you very much,
    xtanto

    How was your wife using the Find My iPhone app from a Samsung phone? But, that question aside, your wife should educate herself on how GPS works, especially on a cell phone. GPS signals can be interfered with by trees, buildings, clouds. Off by several miles would be unusual, though.
    If your wife is tracking your cell phone and not believing what you tell her, you may want to consider counseling as there are some very serious issues that go way beyond the technology.
    Best of luck.

  • Iphone 6 screen broken. local authorized service center cannot be reached despite arranging for "schedule a call" session. pls help

    iphone 6 screen broken. local authorized service center cannot be reached despite arranging for "schedule a call" session. pls help

    They do not know where your phone is yet because it has not had enough time to go through the process yet. I also started to worry when two weeks had passed and my iPhone 5S was still showing not received on the status website. That's when I joined this forum to see if anyone else was having the same problem. What I found out was that some people had been given reduced value for their trade in, but I also found posts from people like myself that were worried that their phone was lost and then came back and posted a week or two later that they had received their gift card.
    I decided to chill and give it some time and about a week later my gift card arrived. If it had been for less than the promised amount I would no doubt still be upset and posting about it like the many posts I still see on here on a regular basis.
    This is no doubt a popular program for Verizon. I would imagine there have been thousands of phones traded in. There are going to be at least some screw ups in the process. There is no point in getting ahead of yourself and assuming your case will be one of the screw ups unless it already is. Verizon has been consistently posting that it could take 4-6 weeks for processing. You will at some point likely hear the status on your traded-in phone. Patience would not hurt in this case.

  • I am not able to download the .dmg file for my mac book pro. pls help.

    i am using a mac book pro - mac os x 10.6.4 on a 2.33 ghz intel core duo processor. i am unable to fully download the .dmg file to install firefox. the file begins download within the browser itself and the browser window screen goes black after a while and stays there. no .dmg file to be seen. pls help.

    The latest version iOS 6 does not run on the original iPad.  That's why you cannot download it.

  • System generated name for PSA

    Hi friends,
    Could anyone tell me how to see the syatem generated table name of PSA and where to see.Thanks in advance.
    Venkat

    Hi Kiran,
    You can also find the name of the PSA table in the following way:
    In SE16 click F4 and then Information System.In the Short Description field put in the name of the InfoSource within *, like 0MATERIAL_ATTR and click the check mark. You will get the /BIC/ table (PSA table) that you are looking for.
    Hope this helps...

  • Role Maintenance - Automatically generated names for authorization objects

    Hello NG,
    I've got a question concerning the mentioned subject.
    Currently I am maintaining the roles/authorizations of a customers system (Rel. 3.0) which has moved to Rel. 7.0.
    When I add an authorization object to a role, the technical name is generated automatically. How can I set up the naming conventions for the authorization objects?
    Thank you very much.
    Regards ..

    Hi SUNIL L,
    I refered to 3.0 but I think that the release version has no relevance for my problem. I think I should try to explain my problem once more:
    When I add an authorization object to a role, a technical name is generated automatically and assigned to it. Is it possible to set any naming conventions for this?
    Regards..

  • Session Time Out For UNLOGGED USER During Search -pls help

    Hi,
    The problem lies in searchresultscontroller.java/searchcontroller.java file under search/web/handler of an application that supports educational note sharing.
    The problem is that -
    When I search with query strings in different fields(as you will find in the above mentioned java files)..the keywords in resourcedto and get some files as search results.
    Then I click on one of the file from within the search result and visit the file.
    Here if I m logged in as an user, and the session time out is set to 1 minute in the web.xml file of the web folder not the admin folder then when I hit the BACK TO SEARCH button it easily goes back to the previous search result page along with the queries string that I had input previously.
    The problem is that when I m NOT LOGGED in as an user, and I've performed a search with queries and other dropdowns in the search panel, I get the search result page, I visit the file by clicking on one of them but when I hit the BACK TO SEARCH button I don't see the previous search result page from where I had navigated to view the file.
    Please suggest on what changes shall I make in the code so that even if I m not logged in as an user, I get back to the search result page on hitting the BACK TO SEARCH button from the file view page.Sir I m herein pasting the code of the searchresultscontroller.java file, but please feel free to ask for anyother file whose code you might want to see.
    SEARCHRESULTSCONTROLLER.JAVA FILE CONTENT-
    package com.mgh.sps.search.web.handler;
    import java.util.Map;
    import java.util.regex.Pattern;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.log4j.Logger;
    import org.springframework.validation.BindException;
    import org.springframework.validation.Errors;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.SimpleFormController;
    import com.mgh.sps.search.business.facade.Search;
    import com.mgh.sps.common.dto.ResourceDTO;
    import com.mgh.sps.common.util.SessionAttributeKey;
    import com.mgh.sps.common.util.SessionManager;
    import com.mgh.sps.fileusage.web.constants.FileUsageWebConstants;
    public class SearchResultsController extends SimpleFormController {
         * SearchResults Controller
         * @author Muralikrishna.s
         * @Codedondate DD-MM-YY=26-07-07
         * @Usecase/s associated =UC504
         private static final Logger logger = Logger
                   .getLogger(SearchResultsController.class.getName());
         private final static String REG_EXP = "^[A-Za-z0-9]*$";
         private final static Pattern EMAIL_PATTERN_REG = Pattern.compile(REG_EXP);
         * Spring framework method used to hold reference data
         * @param request
         * HttpServletRequest
         * @param command
         * Object
         * @param arg2
         * Errors
         * @return Map
         * @throws Exception
         @Override
         protected Map referenceData(HttpServletRequest request, Object command,
                   Errors errors) throws Exception {
              logger.debug("SearchResultsController.referenceData() method entered:"
                        + request + "," + command + "," + errors);
              SessionManager.setSessionAttribute(SessionAttributeKey.tabIndex,
                        FileUsageWebConstants.TAB_SEARCH, request);
              Search search = (Search) super.getWebApplicationContext().getBean(
                        "searchfacade");
              ResourceDTO resourceDto = (ResourceDTO) command;
              String[] allValues = new String[7];
              if (null != (String[]) SessionManager.getSessionAttribute(
                        SessionAttributeKey.allValues, request)) {
                   allValues = (String[]) SessionManager.getSessionAttribute(
                             SessionAttributeKey.allValues, request);
                   resourceDto.setKeywords(allValues[0]);
                   resourceDto.setCountry(allValues[1]);
                   resourceDto.setUniversityName(allValues[2]);
                   resourceDto.setSubjectArea(allValues[3]);
                   resourceDto.setQualification(allValues[4]);
                   resourceDto.setYearLevel(allValues[5]);
                   resourceDto.setSpecificType(allValues[6]);
              logger.debug("%%%%%%%%%%%%%%%%%qualification%%%%%%%%%%%%%%%"
                        + resourceDto.getQualification());
              String flag = (String) request.getParameter("id");
              resourceDto.setFlag(flag);
              logger.debug("SearchResultsController.referenceData() method exited:");
              return search.retrieveReferenceData(resourceDto);
         * Spring framework method used to hold OnSubmit
         * @param request
         * HttpServletRequest
         * @param response
         * HttpServletResponse
         * @param command
         * Object
         * @param arg3
         * BindException
         * @return ModelAndView
         * @throws Exception
         @Override
         protected ModelAndView onSubmit(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors)
                   throws Exception {
              SessionManager.cleanup(request);
              logger.debug("SearchResultsController.onSubmit() method entered:"
                        + request + "," + command + "," + response + "," + errors);
              Search search = (Search) super.getWebApplicationContext().getBean(
                        "searchfacade");
              Map dynamic = (Map) getServletContext().getAttribute("config");
              ResourceDTO resourceDto = (ResourceDTO) command;
              SessionManager.removeSessionAttribute(SessionAttributeKey.allValues,
                        request);
              //changed by sreelatha on sep21
              //resourceDto.setKeywords(request.getParameter("keywords"));
              //String key = request.getParameter("keywords");
              //logger.debug("&&&&&&&&&&&&& key &&&&&&&&&&&&" + key);
              String keywords = (request.getParameter("keywords"));
              if(null!=keywords) {
                   keywords = keywords.trim();
              resourceDto.setKeywords(keywords);
    //          changes end
              resourceDto.setUniversityName(request.getParameter("universityName"));
              resourceDto.setSubjectArea(request.getParameter("subjectArea"));
              resourceDto.setCountry(request.getParameter("country"));
              resourceDto.setQualification(request.getParameter("qualification"));
              resourceDto.setYearLevel(request.getParameter("yearLevel"));
              resourceDto.setSpecificType(request.getParameter("specificType"));
              String[] allValues = new String[7];
              //changed by sreelatha on sep21
              //allValues[0] = request.getParameter("keywords");
              allValues[0] = resourceDto.getKeywords();
              //changes end
              allValues[1] = request.getParameter("country");
              allValues[2] = request.getParameter("universityName");
              allValues[3] = request.getParameter("subjectArea");
              allValues[4] = request.getParameter("qualification");
              allValues[5] = request.getParameter("yearLevel");
              allValues[6] = request.getParameter("specificType");
              SessionManager.setSessionAttribute(SessionAttributeKey.allValues,
                        allValues, request);
                   if(null!=keywords) {
                   keywords = keywords.trim();
                   String words="";
                   for(int i=0;i<keywords.length();i++) {               
                        String key=String.valueOf(keywords.charAt(i));
                        if(key.contains("*")) {
                                  key = key.replace("*"," ");
                             } else if(key.contains("?")) {
                                  key = key.replace("?"," ");
                             } else if(key.contains("[")) {
                                  key = key.replace("["," ");
                             } else if(key.contains("{")) {
                                  key = key.replace("{"," ");
                             } else if(key.contains("(")) {
                                  key = key.replace("("," ");
                             } else if(key.contains(")")) {
                                  key = key.replace(")"," ");
                             } else if(key.contains("+")) {
                                  key = key.replace("+"," ");
                             } else if(key.contains("\\")) {
                                  key = key.replace("\\"," ");
                             } else if(key.contains(" ")) {
                                  key = key.replace(" "," ");
                             } else if(key.contains("_")) {
                                  key = key.replace("_","_");
                             } else if(!EMAIL_PATTERN_REG.matcher(key).matches()) {
                                  key = key.replaceAll(key," ");
                        words = words + key;
                   keywords = words;
                   resourceDto.setKeywords(keywords);
              SessionManager.setSessionAttribute(SessionAttributeKey.test, search.setInputValues(resourceDto, dynamic), request);
              String name = (String) SessionManager.getSessionAttribute(SessionAttributeKey.tempName, request);
              String flag1 = request.getParameter("id");
              String status="";
              if (flag1 !=null && flag1.equals("loggedInUser"))
              if(name==null)
                        return new ModelAndView();
              if (flag1 !=null && flag1.equals("loggedInUser")){
                   status = "redirect:SearchResults.htm?id=loggedInUser";
              }else if(flag1 !=null && flag1.equals("nonLoggedInUser"))
                   status = "redirect:SearchResultsnlu.htm?id=nonLoggedInUser";     
              super.setSuccessView(status);
              ModelAndView mav = new ModelAndView(super.getSuccessView());
              logger.debug("SearchResultsController.onSubmit() method exited:");
              return mav;
    }

    Cross-posted in many forums. Don't answer this one.

  • Error message in player class..pls help!!

    Hi friends!
    I am trying to create a receiver class implenting the "Player" of JMF for VoIP ..I get the following error in the last few lines of the code
    "addControllerLstener(javax.media.ControllerListener) in javax.media.Controller cannot be implemented in receiever1"
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.protocol.*;
    import javax.media.format.*;
    import javax.media.control.*;
    //import javax.media.Controller.*;
    import java.applet.*;
    import javax.media.ControllerListener.*;
    public class receiver1 {
        private static Player player;
         * @param args the command line arguments
        public boolean receiver1() {
            String url = "rtp://224.144.251.104:49150/audio/1";
            MediaLocator mrl = new MediaLocator(url);
            if (mrl == null) {
                System.err.println("Can't build MRL for RTP");
                return false;
            // Create a player for this rtp session
            try {
                player = Manager.createPlayer(mrl);
            } catch (NoPlayerException e) {
                System.err.println("Error:" + e);
                return false;
            } catch (MalformedURLException e) {
                System.err.println("Error:" + e);
                return false;
            } catch (IOException e) {
                System.err.println("Error:" + e);
                return false;
            if (player != null) {
                if (this.player == null) {
                    this.player = player;
                    player.addControllerListener(this);  --->get error here!
                    player.realize();
                    player.start();
    }

    sonigan wrote:
    How do I do that Meacod ?Well- assuming what I'm saying is even correct- you should know how to use interfaces. If not, have a look here:
    http://java.sun.com/docs/books/tutorial/java/concepts/interface.html

  • Roles for SAPUSER in SAPR3---Urgent pls help

    Hi,
    Since my Roles for SAPUSER is blank
    http://www.flickr.com/photos/10351754@N08/858043167/
    I have to create Role
    Now I am in SAP R3 and what are all the Roles I have to Create in SAP R3 for SAPUSER?
    pls let me know
    thanks
    dushanth

    hi,
    You can assign the relevant roles to the user you have basing on the requirements. It is not necessary that each and every user should by default have roles except for service and system users. So no tension..
    Reward if helpful,
    Sarath.

  • Using weblogic as web server for Enterprise Manager can someone pls help?

    hello,
    can i have your help on this?
    i want to use Weblogic as web server instead of apache in the structure of Enterprise Manager 10g R3?
    have any of you try this? can someone please provide me some link related to how to configure Weblogic as web server for Enterprise Manager.
    Many thanks in advance
    Cheers,
    Cosmin

    You'll probably have better luck posting in the Enterprise Manager forum:
    Enterprise Manager

  • Mssd for imac emc 2544 ? pls help

    need to know this,
    i have iMac Intel 21.5" EMC 2544 and its logic board have ssd slot space but no have a connector if i found that connecter and to solder the right place can i install ssd like iMac dmc 2546?
    i explain with pic
    sry for my eng

    need to know this,
    i have iMac Intel 21.5" EMC 2544 and its logic board have ssd slot space but no have a connector if i found that connecter and to solder the right place can i install ssd like iMac dmc 2546?
    i explain with pic
    sry for my eng

Maybe you are looking for

  • Wont let me download apps in appstore

    Some apps I do not have option to download to ipod. Download Button not highlighted for me to click on in appstore. Using ios 6.1.6 on 4th gen ipod. Yes, these apps I am trying to download are compatible with ios6.1.6 as well so please help.

  • Can I create a smart playlist on my iPhone without using iTunes first?

    I often find myself on my iPhone, away from my computer, wanting to further refine the currently playing smarlist, say only play tracks with three stars or more. It would be nice to have this, or just iTunes DJ (iPhone DJ?) on my iPhone, with an opti

  • Manual Price Change by Customer

    Dear all, I am a BI Consultant. I dont have much idea on SD tables. here is my reporting requirement: Need to track the number of manual intervention by Customer on the price during the order entry. In certain exceptional cases, the Customer can chan

  • Problems sizing multiple JPanels.

    I'm writing a survey program that needs to be formatted to a certain size. I'm using calls to panel.setsize( ) to set the size to 800 x 600. I have nine JPanels as globals, all of which are created and "packed" initially. These JPanels are supposed t

  • Bold 9930 Bridge Application for Playbook

    Greetings, I am currently in Afghanistan with the coalition forces,I just ordered a blackberry playbook to use with my Bold 9930 and I cannot access the app store to download bridge here in this country because it is not supported. I am not going to