How to update and use the values of variables of another class

I can we update or use the values of the variables of another class. For example, if we have class A
public class A //(situated in package view)
public s0,s1;
public void runFunction()
...some coding and proceedings
s0="Hi";s1"Hello";
......some coding
RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp?alert=F");
dispatcher.forward(request, response);
ARunner.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
a.runFunction();
%>
MainUser.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
%>
A.class has some procedures and String variables which can be updated and later can be used in JSP pages. The project starts with ARunner.jsp which uses the A.class and updates the values of string variables s0 and s1of A to hi and hello respectively.And then redirects the page to MainUser.jsp.
Now what I want is ,when I call those string variables(s0 & s1 of A.class) in any another jsp likeMainUser.jsp it should give me the value of hi and hello respectively not null as it is giving right now. Could you refine the coding for this one?

public class A //(situated in package view)
public String s0,s1;
public void runFunction()
...some coding and proceedings
s0="Hi";s1"Hello";
......some coding
RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp");
dispatcher.forward(request, response);
ARunner.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
a.runFunction();
%>
MainUser.jsp
<jsp:useBean id="a" class="view.A" scope="session"/>
<%
System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
%>
giving code again to remove the typing errors. Please guide.

Similar Messages

  • How to update and insert the records without using Table_comparison and Map_operation?

    How to update and insert the records without using Table_comparison and Map_operation?

    Use either join or MERGE see this Inserting, Updating, and Deleting Data by Using MERGE

  • How to control and use the search criteria values "%" ?

    Hi,
    When I searched some information in my employee name. I filled in search criteria values "%" and selected the "Go" button to see the result. But I got errors that the search criteria values should not begin with a "%" or "_" for at least one if the listed fields.
    How to control and use the search criteria values "%" ?
    Thanks,
    sinolee

    sinolee,
    These kinds of details are mentioned in Dev guide. Always have a look into dev guide before posting.
    --Shiv                                                                                                                                                                                                                                                   

  • I need to know how to access and use the Blue Tooth device that comes with the Thinkpad W520

    Forgive me for being a techo illiterate. But I know that this thing supports Blue Tooth. And one "problem" with it is although it has a DVD and sound card, music and movies have very lousy audibility. Is there something I can do about that? I can barely hear anything on a movie unless I plug in head phones to the computer. But that leaves me stuck in my seat. I'd like to get cordless headsets. And I'm ready to purchase the Plantronics BackBeat 903+ Wireless Stereo Headphones - Mic, Rich Audio, Bass-boost, Voice Alerts, OpenMic, 3-way Earpiece. And have heard that it's compatable with a pc that has Bluetooth capabilities. but could someone get back to me with exactly how I access and use the Blue Tooth device?

    I was searching for how to setup the 903+ and my W520 and came to this thread.
    1. The OP was asking about audio and there are updated audio drivers / tweaks to get it louder / install different drivers.
    but if you are going to go BT headset....
    2.  What I did for the 903+
    Uninstalled the currently installed ThinkPad Bluetooth program. ( I forget the exact name, came stock and was out of date).
    Required reboot.
    Activated the Bluetooth with FN + F5 menu.
    Downloaded the updated Bluetooth driver from lenovo (search lenovo driver matrix).
    Ran the updated Bluetooth driver install.
    Rebooted for good measure.
    Double-clicked the Bluetooth Tray icon.
    Clicked Add A Device.
    Turned off my 903+ and continued to hold down the power to enable pairing mode.
    Showed up in devices and added it.
    Worked for audio. There are probably additional options for enabling the mic.
    Hope that helps whoever might find this thread.

  • How to install and use the Khmer unicode Khmer MEF1 and Khmer MEF2?

    How to install and use the Khmer unicode Khmer MEF1 and Khmer MEF2?
    from www.mef.gov.kh in the bottom of the page, you can get the unicode for the ms office

    I think that stuff is for windows, a waste of time trying to use it on a Mac.
    There is no need to download anything for Khmer on a Mac.  Apple provides Khmer fonts and keuyboards with OS X.
    OS X Mountain Lion: Type in another language
    MS Word for Mac does not support Khmer.  Use TextEdit, Pages, Nisus Writer, LibreOffice instead

  • Where can I learn how to setup and use the new features in Mountain Lion?

    Where can I learn how to setup and use the new features in Mountain Lion?

    MacWorld has a Superguide, TidBITS has Take Control books, and probably a flock of other publishers have physical books.

  • How to uncover and use the hidden Service menu on the Galaxy S3

    I ran across this article over at Android Central that appeared interesting, there appears to be a diagnostic menu built into the S3 software to test the hardware for defects, this may be a useful item for any users that feel that they have a defective device...   Check out the article at How to uncover and use the hidden Service menu on the Galaxy S3

    That's good to know that such options exist in phones.

  • How to update and retrieve the table control entries and field entries.

    Hello everyone,
    i have a requirement,
    i have    company code , plant, fiscal year, posting period  fields in the selection screen and then below that i have a  table control which contains 4 fields  invoice no., check number, check date and amount.
    i have to enter the values and when i press  SAVE button , these values have to update in a custom table which i had created.
    please send me the coding how to do this object.
    will be rewarded.
    thanks in advance.

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • IPhoto:How to update to use the DR API instead????

    Ahoy.
    While trying to figure out why safari keeps quitting on me, I found an answer to someone else, who was told to go into logs and I was floowing along, but I guess they are ahead of tiger- anwyay I did find this, and wonder, can I do as it suggests somehow?
    iPhoto: WARNING: The DiscRec SPI from the DiscRecording framework is deprecated in 10.3 and later.
    iPhoto: WARNING: This app is contributing to an overall degradation of system performance and should
    iPhoto: WARNING: be updated to use the DR API instead.
    iPhoto: WARNING: The DiscRec SPI from the DiscRecording framework is deprecated in 10.3 and later.
    iPhoto: WARNING: This app is contributing to an overall degradation of system performance and should
    iPhoto: WARNING: be updated to use the DR API instead.
    Fin

    BDAqua saved me a lot of typing.   It wasn't clear, though, if you just needed to vent or if you're wanting to address these issues (which will involve a lot of typing).
    One of the main ones you need to do before you do any installing or installing of Flash Player is deal with the disk that won't verify.  Basically you're working with a computer that doesn't know where all its files are.  The computer uses a directory to keep tack of them and your directory needs repairing.  If you don't repair it then you'll just end up losing files, and getting more problems with running the computer.  It's a little bit like never changing the oil in the car, or dealing with an oil leak when it happens.
    First, if at all possible make a backup of the drive in its present configuration.  If something goes wrong during repair attempts and makes things worse you will have a backup.  You will have to decide how to work this in the light of any present backups you may have, for example, a backup that may be a few days out of date.  In that case you may want to keep that one and make a second backup of this as they are now, though I realize people often don't have a lot of empty drives sitting around.
    Boot from the System Installer disc that came with your computer or is the one for the version you currently have on there, select language if applicable, choose utilities, run Disk Utility and verify (and repair if necessary) the drive. You can verify a drive from DU on your main drive while booted but I have found this can result in incorrect reporting of errors. To repair your drive you have to run it from a drive other than the boot drive anyway.
    Next, boot from your drive in [Safe Mode|http://docs.info.apple.com/article.html?artnum=107393] and repair permissions.  You can repair permissions while booted from the installer disc but this uses the permissions configuration on the installer disc which may be out of date if you have run any updates on your computer.  Booting your computer to Safe Mode restricts the number of things running on your computer while permissions are being run and does a bit of spring cleaning at the same time.
    +Reading+
    [Resolve startup issues and perform disk maintenance with Disk Utility and fsck|http://docs.info.apple.com/article.html?artnum=106214]
    [Using Disk Utility in Mac OS X 10.4.3 or later|http://docs.info.apple.com/article.html?artnum=302672]
    [Disk Utility's Repair Disk Permissions 10.0-10.6|http://docs.info.apple.com/article.html?artnum=25751]
    "Try Disk Utility" (modified from [http://support.apple.com/kb/TS1417])
    1. Insert the Mac OS X Install disc that came with your computer (Edit: Do not use this disc if it is not the same general version as what you have currently on your computer, e.g. use a Tiger disc for a Tiger drive, not a Panther disc), then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    Then boot in Safe Mode, (holding Shift key down at bootup; takes longer to boot this way so be patient), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    [Mac OS X: Starting up in Safe Mode|http://docs.info.apple.com/article.html?artnum=107393]
    [What is Safe Boot, Safe Mode? (Mac OS X)|http://support.apple.com/kb/HT1564]
    [Safe Boot takes longer than normal startup|http://docs.info.apple.com/article.html?artnum=107394]
    [Mac OS X 10.4, 10.5- Computer shuts down during Safe Boot|http://support.apple.com/kb/TA24054]
    There's some things Disk Utility won't repair (more often thatn not). In that case you need to use a tool such as Diskwarrio (probably #1 but only does this one thing), or TechTool Pro, or...

  • How to install and use the Gnome-DO application in oracle enterprise Linux

    My Oracle Enterprise linux is 5.3,
    I want to install and use the Gnome-Do(http://do.davebsd.com) in my box.
    Please help me regarding this.
    With Regards
    DSK

    According to Google, Gnome-Do has known issues about CPU bugs and hogs and the latest incarnation does not seem to be available for RHEL and clones. You should have more luck with Linux Desktop distributions like Fedora and Ubuntu. Or you could try to build from source using the info at: http://do.davebsd.com/wiki/Installing_Do. Good luck - I wouldn't bother.

  • How to pass the value of variable to another java file?

    Hi. I have 2 java files (LogonAction.java and PCAction.java). The value of variable(String getrole) depends on the logon user. How can I use this value of variable in PCAction.java? I want to execute a sql statement in PCAction.java which is (String sql="Select * from PP where role"+"='" + getrole + "'") Thanks a lot.
    LogonAction.java is below:
    package test;
    import test.jdbc.util.ConnectionPool;
    import java.sql.*
    import java.util.*;
    import javax.servlet.http.*;
    import org.apache.commons.logging.*;
    import org.apache.struts.action.*;
    import org.apache.struts.util.*;
    import org.apache.commons.beanutils.PropertyUtils;
    public final class LogonAction extends Action {
    private Log log = LogFactory.getLog("org.apache.struts.webapp.Example");
    private ConnectionPool pool;
    public LogonAction() {
    pool = ConnectionPool.getInstance();
    public String getrole;
    public ActionForward execute(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception {
    Locale locale = getLocale(request);
    MessageResources messages = getResources(request);
    ActionErrors errors = new ActionErrors();
    String username = (String)PropertyUtils.getSimpleProperty(form, "username");
    String password = (String)PropertyUtils.getSimpleProperty(form, "password");
    String getusername=CheckUser(username,password);
    getrole=getusername;
    java.lang.System.out.println(getrole);
    if ("".equals(getusername))
    errors.add(ActionErrors.GLOBAL_ERROR,
    new ActionError("error.password.mismatch"));
    getusername=username+getusername;
    // Report any errors we have discovered back to the original form
    if (!errors.isEmpty()) {
    saveErrors(request, errors);
    return (mapping.getInputForward());
    // Save our logged-in user in the session
    HttpSession session = request.getSession();
    session.setAttribute(Constants.USER_KEY, getusername);
    if (log.isDebugEnabled()) {
    log.debug("LogonAction: User '" + username +
    "' logged on in session " + session.getId());
    // Remove the obsolete form bean
    if (mapping.getAttribute() != null) {
    if ("request".equals(mapping.getScope()))
    request.removeAttribute(mapping.getAttribute());
    else
    session.removeAttribute(mapping.getAttribute());
    // Forward control to the specified success URI
    return (mapping.findForward("success"));
    * Look up the user, throwing an exception to simulate business logic
    * rule exceptions.
    * @param database Database in which to look up the user
    * @param username Username specified on the logon form
    * @exception ModuleException if a business logic rule is violated
    public String CheckUser(String username,String password){
    Connection con = null;
    try
    con = pool.getConnection();
    String sql = "SELECT * from user WHERE userid = ? AND password= ?";
    PreparedStatement ps = null;
    ResultSet rs = null;
    try {
    if (con.isClosed()) {
    throw new IllegalStateException("error.con.isClosed");
    ps = con.prepareStatement(sql);
    ps.setString(1,username);
    ps.setString(2,password);
    rs = ps.executeQuery();
    String returnstr="";
    while(rs.next())
    returnstr=rs.getString("role");
    java.lang.System.out.println(returnstr);
    return returnstr;
    } catch (SQLException e) {
    e.printStackTrace();
    throw new RuntimeException("error.ps.executeQuery");
    } finally {
    try {
    if (ps != null)
    ps.close();
    if (rs != null)
    rs.close();
    } catch (SQLException e) {
    e.printStackTrace();
    throw new RuntimeException("error.rs.close");
    catch (SQLException e)
    e.printStackTrace();
    throw new RuntimeException("Unable to get connection.");
    finally
    try
    if (con != null)
    con.close();
    catch (SQLException e)
    throw new RuntimeException(e.getMessage());
    }

    You can use PreparedStatement and
    String cmd = "select * from PP where role=?";
    PreparedStatement stmt = conn.prepareStatement(cmd);
    stmt.setString(1,theRole);

  • How to close and remove the current panel when loading another vi ?

    Hello,
    After login , I need to close and remove the login window , then launch another panel . How to do this?

    save "sub" to labview's default directory
    save "main" to anywhere in your PC and run it.
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    intro_self_close.vi ‏37 KB
    ianf_Test001.vi ‏33 KB

  • Get the values of hashmap in another class

    Hi All,
    i already posted this topic yesterday..But i did not get any helpful response..Kindly help me because I am new to java and I need some help regarding hashmap..
    I have a one value object java class which name is HashTestingVO.java
    *******************************************INPUT OF HashTestingVO.java***************************************
    public class HashTestingVO extends PersistentVO implements ILegalWorkFlowACLVO {
    public final static HashMap legalReviewPieceRelatedACLMap = new HashMap();
    legalReviewPieceRelatedACLMap.put("Futhure Path Check","ereview_acl_piece_related_cat1");
    legalReviewPieceRelatedACLMap.put("Send to Legal Review","ereview_acl_piece_related_cat1");
    legalReviewPieceRelatedACLMap.put("Review Precondition","ereview_acl_piece_related_cat1");
    Now i want to get the Hash Map values of this in another class called Testing.java class
    Ex: i need the value like this in Testing.java
    HashTestingVO obj=new HashTestingVO();
    obj.get(Futhure Path Check) -----------> I want to get the value of key1
    Public means you can access it another class..
    But Static means within the class we will use it...

    already posted this topic yesterday..But i did not get any helpful response..Kindly help me because I am new to java and I need some help regarding hashmap..I thing Exposing your dataStructure to any other class is not the right practise.
    You can make the Hashmap object private and nonstatic and provide a getter method in this class to get the value corresponding to any particular key.
    public Object getValue(String key)
      return egalReviewPieceRelatedACLMap.get(key);
    }

  • How to install and use the CP2102 USART to USB Converter?

    First off, I did a quick search and found that some people had had success in that the cp210x driver was already installed on their machines. I did a modprobe and it returned nothing (not an error).
    I searched around on the net a bit and found a very useful USART to USB converter bridge (http://www.nexuscyber.com/cp2102-usb-to … Mgod5UQAdQ). The CP2102 is a programmable device with many settings insofar as the data framing is concerned. As such, a driver for the device must be used to interface and modify these parameters.
    On the Silabs website I found this driver (http://www.silabs.com/products/mcu/page … ivers.aspx) for linux (kernel > 3.x.x). The problem is that this driver is just a single C program with zero documentation. An include make file is about as useful considering it has a single line in it that fails (for me) at run-time.
    obj-m = cp210x.o
    KVERSION = $(shell uname -r)
    all:
    make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
    clean:
    make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
    The driver source can be found here (http://pastie.org/private/kulx2zqdyvkafoxekwjq)
    Where my make error is
    make -C /lib/modules/3.14.4-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.4-1-ARCH/build'
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/kconfig/conf.o
    HOSTCC scripts/kconfig/zconf.tab.o
    In file included from scripts/kconfig/zconf.tab.c:2537:0:
    scripts/kconfig/menu.c: In function 'get_symbol_str':
    scripts/kconfig/menu.c:587:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-uninitialized]
    jump->offset = strlen(r->s);
    ^
    scripts/kconfig/menu.c:548:19: note: 'jump' was declared here
    struct jump_key *jump;
    ^
    HOSTLD scripts/kconfig/conf
    scripts/kconfig/conf --silentoldconfig Kconfig
    scripts/Makefile.build:44: /usr/lib/modules/3.14.4-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.4-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.4-1-ARCH/build/arch/x86/Makefile:185: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.4-1-ARCH/build'
    Makefile:4: recipe for target 'all' failed
    make: *** [all] Error 2
    If I do not sudo make I just get this:
    .probe = usb_serial_probe,
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:165:16: error: 'usb_serial_disconnect' undeclared here (not in a function)
    .disconnect = usb_serial_disconnect,
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_get_config':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:321:3: error: implicit declaration of function 'dbg' [-Werror=implicit-function-declaration]
    dbg("%s - Unable to send config request, "
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_open':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:430:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_close':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:451:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_get_termios':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:534:17: error: invalid type argument of '->' (have 'struct ktermios')
    &tty->termios->c_cflag, &baud);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_get_termios_port':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:556:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_change_speed':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:706:21: error: invalid type argument of '->' (have 'struct ktermios')
    baud = tty->termios->c_ospeed;
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_set_termios':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:735:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:740:22: error: invalid type argument of '->' (have 'struct ktermios')
    cflag = tty->termios->c_cflag;
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_tiocmset_port':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:871:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_tiocmget':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:910:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_break_ctl':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:932:36: error: 'struct usb_serial_port' has no member named 'number'
    dbg("%s - port %d", __func__, port->number);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c: In function 'cp210x_init':
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:989:2: error: implicit declaration of function 'usb_serial_register' [-Werror=implicit-function-declaration]
    retval = usb_serial_register(&cp210x_device);
    ^
    /home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.c:996:3: error: implicit declaration of function 'usb_serial_deregister' [-Werror=implicit-function-declaration]
    usb_serial_deregister(&cp210x_device);
    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:314: recipe for target '/home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.o' failed
    make[2]: *** [/home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source/cp210x.o] Error 1
    Makefile:1274: recipe for target '_module_/home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source' failed
    make[1]: *** [_module_/home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.4-1-ARCH/build'
    Makefile:4: recipe for target 'all' failed
    make: *** [all] Error 2
    There is no documentation aside from:
    make ( your cp210x driver )
    cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
    insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
    insmod cp210x.ko
    Can anyone provide some guidance on the steps to install this driver (or at least where to look) and why there is such a lack of documentation? Are there assumptions here that I am not aware of? How is anyone suppose to use this? If you look in the source there are structures being used as arguments to functions that are never defined as far as I can tell. Perhaps they are part of the header files included at the top, but I could not find some of those on my machine either.
    Has anyone had success using this device?

    ewaller wrote:<hopeful>Do you have an oscilloscope? </hopeful>
    First, I think you have a mismatched Baud.  Check your settings in GtkTerm.  It could also be the uController.  I know you said you have it set for 9600 Baud, but are you sure?  The divisor settings are dependent on your clock frequency.  Are you sure you are using the correct divisors for the frequency of your crystal?  And are you using a crystal, ceramic oscillator, or external oscillator for your time base?
    I did not think the internal RC oscillators were that bad off, so I was using the internal 8MHz (DIV8 = 0 fuse bit). Taking your advice I just refused the AVR and set it to use a 20MHz clock (external crystal oscillator) to no avail. The setting in GTKterm is certainly 9600 baud.Referencing the datasheet for the Atmega328P we have:
    Which gives a a UBRR register value of 129 corresponding to normal speed (U2Xn = 0). This is all computed for me at compile-time via this formula:
    20,000,000/(16*9600) - 1 = 129.2 ~ 129 truncated.
    That the two devices can communicate tells me they both might be using the same wrong Baud.
    I was also suspicious of this .. I do not have a trivial way to test this though. Perhaps some workaround using timers is about the best I can do; no oscilloscope here. Doing a quick high-level test I did find something rather interesting though. Both devices are set to run at 9600 baud. One device is operating at 8MHz (internal oscillator) and the other is using an external 20MHz crystal. I am getting UART communication between the devices, but certainly not the characters I'm sending..
    The other problem is that I think you have "Local Echo" turned on in GtkTerm.  This places the system in "Half Duplex" mode in which data are not expected to be echoed from the Atmel.  That you are getting two characters when the pins are shorted tells me you get the local echo and the loopback.  Then the loopback is missing, you still get the local echo.   Also, make sure you have parity turned off.
    GTKterm does not actually show you what you are typing into the terminal. That is, when you type a character then nothing is displayed to the screen. Presumably this character is sent out as you type it. I was under the impression that local echo would just echo what I type to the screen as well as send it out. Thank you for the clarification.
    Last edited by sherrellbc (2014-05-28 03:16:48)

  • How to instanciate and use the instance of a symbol with JSFL

    Hi,
    I'm a noobie with Flash Pro / JSFL.
    I'm looking for a way to instanciate UILoader and use them with JSFL.
    I tried to create an empty FLA that contain a UILoader symbol in its library.
    With JSFL I open it and add it to the stage.
    It works, I have a UILoader instance at 200;200 but I cannot do anything with it. How can I set a size, a new position, a source... ?
    fl.openDocument("file:///C|/uiloader.fla");
    var loaderIndex = fl.getDocumentDOM().library.findItemIndex("UILoader");
    if (loaderIndex != "")
              var loader = fl.getDocumentDOM().library.items[loaderIndex];
              fl.documents[0].addItem({x:200,y:200}, loader);
    I would like to create with JSFL a SWF that contain a UILoader placed somewhere with a specific size and specific source. And to inject in the swf some ActionScript to find this added UILoader to dynamically change the source of the image. This source will be finally given from the url. http://myswf.swf?imageSource=xxxxxx.jpg
    Is it possible ?
    Thank you.

    It's a pity !
    My problem is I tryed to save a FXG file containing images into a swf that will be able to change images sources dynamically.
    To do that, I create an empty FLA document (using JSFL), I import the FXG file into the scene.
    If I export my file into SWF in which I have injected this ActionSctipt :
    for (var x = 0; x < numChildren; x++)
      var e = getChildAt(x);
      trace(e + " " + e.name +" is "+getQualifiedClassName(e));
    I have this trace : [object MovieClip] _IMG_ is flash.display::MovieClip
    I think I cannot change the source of a MovieClip using ActionScript. Maybe I'm wrong ?
    So I would like to replace these objects (using JSFL) with UILoaders and setting the same x,y,width,height,source and then I will be able to change their sources using ActionScript.

Maybe you are looking for

  • 64 bit windows 7

    So apparently the 21.5 screen iMac and 27 inch iMac supports the 64 bit version of windows, but my computer doesn't. I called apple and they put me on the line with one of their "senior" reps. Windows 7 64 bit downloaded flawlessly and worked great,

  • Conversion from data to duration

    Hi, I wish to convert a number, in seconds, to a duration. As follow: convert 289, which is in seconds, to a duration, which would be in minutes and seconds. 289 seconds is 4 minutes 49 seconds, but how can I convert this in numbers? I also need to c

  • Configuration wizard not working

    Hi All, I could install the WL Server 7.0.2 on Solaris 8 successfuly using the typical installation. But when i try to configure it, create a domain and add Admin and Managed Servers, it doesnt create my managed server and keeps looping. Here is what

  • Itunes 9.1.1 and iPhone 2G wont restore

    Hi, I have an iPhone 2G that i needed to restore, i restored from normal mode. iTunes got up to about 95% of 'restoring iPhone software' and the device just shows the bar under the apple logo at about 60% full. It then hangs for hours on end, the sam

  • Am I allowed to continue to use the student version of Flash CS5.5 if I no longer qualify as a full time student.

    My mom bought me the student version of Flash Pro CS5.5 a few years ago, but I am not taking five classes any more so I don't qualify anymore. Am I still allowed to use it?