Can i design UI part in flex with an existing JSP page

hello
my name is sandeep, i have one JSP page can i implement it in
FLEX 2.0 , as i am very much interested to design the UI part in
FLEX 2.0 , can i make it, the JSP page is a login page it contains
username and password textfields and onclicking the submit button
it has to validate the user and password is valid or not, and
onclicking reset button it has to clear the textfields. can u give
suggest how to implement this in FLEX 2.0 ,
thanks & regards
[email protected]
Text

i didn't got , as i am a fresher to this FLEX 2.0 , i
designed the UI part in flex, but when i click the submit button it
has to forward to the JSP page to check against the valid
user,password , sop how to forward the page to jsp(i mean from flex
to jsp) , if u can suggest me with an example, it will be easy for
me,
thanks for ur speedy reply, hopping to get the solution for
this issue,

Similar Messages

  • Can we create a pivot table of Excel in a JSP page using POI

    Hello,
    I want to know whether we can create a pivot table of excel sheet in a jsp page using POI package from apache.
    thank you.

    Hi Alex,
    Many thanks for replying.
    I followed the link, but unable to get correct output.. I have shared the template earlier. I can share the template once again.
    It would be grateful if you give me share the working template with table of content.

  • How i can make  my own connection in java source of a jsp page

    How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
    imagine that i have a rowset in a web page , now i want to do some operation using
    plain JDBC , so i will need a connection object.
    I tried to get one of my rowsets connection but it return null ?
    what is best way to retrive a connection from JNDI datasource that we define for our project?
    for example if i have
    myRowSet.setDataSourceName("java:comp/env/jdbc/be");
    in web page constructor
    now i want a pure connection from the same datasource ? JNDI
    Thank you

    It is not hard to get your own connection from datasource.
    in your case you need to do like the the following code.
    i provide sample to show you how to catch the exception and create an statement .
    Connection con =null;
    try{
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
    con = ds.getConnection();
    java.sql.Statement st =con.createStatement();
    }catch(SQLException sqlex){
    sqlex.printStackTrace();
    sqlex.getNextException().printStackTrace();
    catch(NamingException nex){
    nex.printStackTrace();
    hth
    Masoud kalali

  • How can I paste a part of a sheet from Numbers in Pages as text, without the formulas.The reason I need this (and was used to in Office) so that I have the freedom to delete something in one cell (in pages document) without causing changes.

    How can I paste a part of a sheet that I copied in Numers in a pages document without the formulas, simply as text. Used this a lot in Office. When I make some changes in the pages document. f.i. deleting a cell, I don't want to change other cells. Also when I copy a part of a sheet from Numbers and one of the cells that is part of the formula is not also copied, when I paste in Pages it shows as an error.
    Hope that You can me help with this.

    Leon,
    There are two solutions to the first question, narrowing to one solution when you have a broken link causing an error.
    Here's the "works always" solution.
    Copy (Command-C) the table or range in Numbers
    Click off the table on the blank canvas of the sheet.
    Edit > Paste Values
    Command-C
    Switch to Pages
    Command-V
    Regards,
    Jerry

  • Can someone help me correct this sql statement in a jsp page?

    ive been getting the java.sql.SQLException: Incorrect syntax error for one of my sql nested statements. i cant seem to find similar egs online, so reckon if anyone here could help, really appreciate it.
    as im putting the nested sql in jsp page, it has to be with lots of " " n crap. very confusing if there are nested.
    heres the sql statement without those "" that i want to use:
    select top 5 * from(
    select top+"'"+offset+"'"+" * from prod where cat=" +"'" cat "'"+"
    )order by prodID desc
    when i put this in my jsp pg, i had to add "" to become:
    String sql = "select top 5 * from("+"select top"+"'"+offset+"'"+" * from prod where cat=" +"'" +cat+ "'"+")order by prodID desc";cat=" +"'" cat "'"+")order by prodID desc";
    all those "" are confusing me to no end, so i cant figure out what should be the correct syntax. the error says the syntax error is near the offset.

    If offset is, say, 10, and cat is, say, "new", then it looks like you're going to produce the SQL:
    select top 5 * from(
      select top '10' * from prod where cat='new'
    )order by prodID descThat looks exactly like incorrect syntax to me... top almost certainly can't handle a string literal as its operand... you almost certainly would want "top 10" instead of "top '10'"...
    If you use PreparedStatement, you don't have to remember what you quote and what you don't and you can have your SQL in a single static final string to boot...

  • Problem with onload in jsp page

    Hi all,
    I had two jsp pages, a search and a results page. I need to enter some search criteria in the first page and based on that criteria i will be getting the results in the results jsp. Now, when i click the back button in the results page, i need to go to the search page and the values which i entered in the search page needs to be present there. But the problem is i had a javascript function which runs on loading of the search page. This function will set all the values in this search page to empty whenever we go to the search page. I am calling this javascript function as follows in my search jsp page.
    <body onload="setdefaultvalues('<%=name%>');">
    I am having the code for the back button in the results page as follows.
    <INPUT TYPE="button" VALUE='Back' onClick="javascript:history.go(-1);resetvalue(name);" class="button">
    The problem i am facing is whenever i go to the search page by clicking on the back button, the values in the search page are getting empty because of the onload method. There is no way that i can remove this onload method as i require it for setting the values in the search page evrytime i get to that from other modules as it is the main page for my module. So, is there anyway that i can stop this function from executing when i come from the results page or is there any other way that i can store the values in the search page when going from the results page.

    i think you really should have the result page include your search page contents rather than having the user need to click back as you'll end up with all sorts of nightmares in caching & session object management to be honest. if the search page is complex use javascript to hide contents and let the users expand them when they want to re-search.
    however, if you feel you must i would suggest the following:
    in your result page:
    session.setAttribute("userQuery","true"); (you probably actually want to put a container object with the query information in here)
    in your search page you could have something like:
    <body <% session.getAttribute("userQuery")==null { %>onload="setdefaultvalues('<%=name%>');"<% } %>>
    -or-
    <body onload="setdefaultvalues('<%=name%>',<%=session.getAttribute("userQuery")==null?"true":"false"%>);">
    function setdefaultvalues(name,run) { if ( !run ) return;....}
    you'll have to decide when to remove the object though cause once its set its there until the session expires or you remove it.
    hope that helps, good luck!

  • Prolem with refreshing my jsp page

    Refreshing the page
    I have a jsp page with few buttons(like add, delete, save), during loading time, it loads data from database and display in a table of row data,when I clicked the delete button to delete a row, it removes a row of data from my database, but it still displays that deleted row, bcoz page has not been refreshed. Now I wrote 2 java script function, one which invokes my delete function in my Action class and another I am trying to again load the page after delete, so that I can get fresh data. But its not happening, do you have any idea, where am I going wrong, or how can I refresh my jsp page after I delete a row. I am getting my data from database and after that I put in session.
    Here is my small code base
    function invokeICCanAssignmentDeleteFunction()
          func();
          initialise();
    // this method deletes my data from DB
        function func()
         alert("alert 1");
        document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignmentDelete';
         alert("alert 2");
    // this method initialise my form bean taking data from db and put in session inside my action class
        function initialise()
         alert("alert 3");
        document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignment';
         alert("alert 4");
        }

    The following two javascript lines will only set the action value of the form and does nothing else. No server call will be made.
    document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignmentDelete';
    document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignment';You need to submit the form to make a server call. For Example:
    document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignmentDelete';
    document.forms[0].submit();Google Javascript tutorials for more.

  • Form Based Authentication on Tomcat with custom index.jsp page...

    Hi there ppl,
    I've got Form Based Authentication working correctly on my Tomcat server but I want to override the default generated index.jsp after successfully logging on. I've tried placing my own index.jsp in the directory that's restricted, but its only overridden by the default one when successfully logged on which displays:
    "Authentication Mechanism FORM"
    This means having to navigate by typing the url in the address bar to another page which is gets really annoying afterawhile.
    Any help on this would be much appreciated,
    thanks already

    Yes there's a default generated index.jsp page that I'm having trouble overriding with one of my own. Have you used Form Based Authentication before? To do so you have edit the WEB-INF/web.xml file by adding:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Secure Area</web-resource-name>
    <url-pattern>/test/secure/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>admin</role-name>
    </auth-constraint>      
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/test/secure/loginpage.jsp</form-login-page>
    <form-error-page>/test/secure/errorpage.jsp</form-error-page>
    </form-login-config>
    </login-config>
    When you attempt to first go to any page in my /test/secure/ directory you get redirected to the /test/secure/loginpage.jsp where you have to login as a tomcat user, when succesfully logged on you get redirected to an index.jsp page which is NOT the one I created in test/secure/index.jsp. Even when I type in the url to go to my own test/secure/index.jsp I still don't get my own one that exists there, but instead get the default one that's generated that displays:
    "Authentication Mechanism FORM".
    Hope that makes more sense.
    I've tried restarting tomcat but it makes no difference.

  • Can we able to view design mode while integrating flex with eclipse

    Hi,
    I am able to integrating flex builder with eclipse, but failed to get the design mode in that one.
    Can anyone please suggest how i can able to ovecome from this issue.
    Thanks,
    Sri.

    Maybe you need the Adobe reader to read PDF files:
    http://www.adobe.com/products/acrobat/readstep2.html?promoid=BONRM

  • How can I append multiple parts to NetStream with appendBytes

    Hi,
    I hope  someone can help me.
    Problem:
    I load a flv file with the FileReference class. After that I append a part of the ByteArray to  the NetStream with appendBytes.
    Later I want a next part append to the NetStream. It doesn't work.
    Is that possible?
    Code:
              public function init():void
                    myFileRef = new FileReference();
                    myFileRef.addEventListener(Event.SELECT, selectFile);
                    myFileRef.addEventListener(Event.COMPLETE, playFile);
                    myOpenButton.addEventListener(MouseEvent.CLICK,browserForFile);                        
                private function browserForFile(e:MouseEvent):void
                    myFileRef.browse([new FileFilter("Flash-Videos (*.flv)", "*.flv;")]);
                private function selectFile(e:Event):void
                    myFileRef.load();
                private function playFile(e:Event):void
                    byteArr = myFileRef.data;
                    var bytes:ByteArray = new ByteArray();
                    byteArr.readBytes(bytes, 0, 3031964);
                    _netConnection = new NetConnection();
                    _netConnection.connect(null);            
                    ns = new NetStream(_netConnection);
                    ns.addEventListener(NetStatusEvent.NET_STATUS, netStreamStatusHandler);
                    ns.client = new Object();
                    display.attachNetStream(ns);
                    ns.play(null);
                    ns.appendBytes(bytes);
                    videoDisplay.addChild(display);
                private function loadNext():void
                    var bytes:ByteArray = new ByteArray();
                    byteArr.readBytes(bytes, 3031964, byteArr.bytesAvailable);
                    ns.appendBytes(bytes);
    friendly
    Daniel

    Enable the menu bar with Ctrl+B. Then use File > Add Folder to Library.
    tt2

  • Can Oracle designer 1.3.2 work with Oracle 8.0.5

    Dear Sir/Miss,
    I would like to know if anyone can tell me if Oracle Designer 1.3.2 can work with Oracle 8.0.5 database or not?
    Thank you
    Best Regards

    First i installed Oracle 10g on my windows 7 home premium 64 bit .
    Then i installed OBIEE 10.1.3.4 on my machine
    But then there were some problems cropping up and i wasn't able to use OBIEE 10.1.3.4 with windows 7home premium 64 bit machine.
    I then removed both oracle 10g and OBIEE 10.1.3.4 from my machine.
    Then i installed oracle 11g 64bit and then OBIEE 10.1.3.4 . But again it dint work
    Can anyone help?

  • Can't load certain part of website with Safari or Firefox

    Hi, I am having trouble loading certain part of this website:
    http://stat.fundservice.net/index/index.html
    I get a "?" in a box in Safari and blank in Firefox.
    Can somebody help me with this?
    Thanks in advance.

    It seems like this site is using ActiveX controls, which is a proprietary piece of software invented and solely used by Microsoft's Internet Explorer.
    If this site weren't in Korean, I'd suggest sending the webmaster a quick little email, telling them about the one out of four people not using IE.

  • Can we design a paint type application with background area is not selected

    Hi All,
    I have the requirement to design MS Paint type application where the user will annotate on the application with pencil like tools. I have one frame containing the JPanel which acting like a slate to annotate. I need to display the JPanel in my application with the background as non-selected like in any PDF viewer and Power Point and the size of the JPanel has to increase or decrease according to the mouse scrolled by the user (Same like what happening MS Word / PDF Viewer).
    Can any one please let me know what approach do i need to follow to achieve this?
    Thanks in advance,
    Uday

    A JPanel is the simplest container class. As you don't want it to contain anything, you don't need that. Use a JComponent.

  • Can anybody help me to access Internet with my existing network

    Dear All Recently I purchased new WRT 54G wireless router. Also I have tied up with new ISP to give wireless internet access to some of the my Higher authority employees only. My office network setup is as shown below Local Ip range : 172.18.0.0 to 172.18.2.254 subnet mask : 255.255.0.0 Default gateway : 172.18.0.50 Wireless Router configured as : 1) configured all ISP settings 2) configured LAN site setting( But I had to setup lan as 192.160.1.X i.e the required by ISP ). 3) connected ISP lan port of WRT54G to cable coming from ISP Modem 4) Connected Local port( any one of 4 ports) to my existing switch(existing LAN----172.18.x.x network) Now suppose I configure user laptop to access new ISP internet through wireless.I have done following setting Wireless LAN setting : Ip address : 192.168.1.2( I can give any IP of network 192.168.1.x) subnet mask:255.255.255.0 Default gateway :192.168.1.1 DNS : Automatic I can access the new ISP internet without any problem with WRT54g router. But the problem is while accessing the new ISP internet( Using 192.168.1.x/255.255.255.0/192.168.1.1 network),Also I want to access my existing network( 172.18.0.0/255.255.0.0/172.18.0.50). Since I am very weak in routing the network, can anybody help me out to do routing setting in linksys WRT54g router so as to access my New ISP internet using existing network( 172.18.0.0/255.255.0.0/172.18.0.50). Please help me anybody

    O.K. Still the crucial question remains whether you want the separation of the ISPs enforced or not, i.e. do you actively want to prevent someone to switch to the other ISP simply by reconfiguring some settings on the computer or not?
    If you don't want to enforce the policy and it is enough to just use different IP settings on different computers then this would probably be the easiest solution.
    If you can, install a DHCP server (e.g. on a Linux box) inside your network which does the DHCP address assignments. That way you can dynamically assign the proper addresses to the computers.
    You can then assign the WRT an LAN IP address inside the 172.18 subnet. The DHCP server assigns anyone addresses inside your 172.18 subnet. However, you configure different gateway and dns server addresses depending on the computer. You configure the MAC addresses of those 'preferred' laptops the gateway address of the WRT and the public DNS servers of the new ISP. All other computers you assign the old gateway address of the old router and the DNS server addresses of the first ISP.
    If you don't want to install your own DHCP server you can assign either pool static IP addresses, i.e. assign all preferred laptops static IP address including the gateway address of WRT and use DHCP only for the normal computers or vice versa.
    What won't work reliably is to run two DHCP servers on both routers and connect the LAN of both together. You'll end up with computers picking up the wrong IP address from the wrong DHCP server.
    Again, this separation only happens due to the different configuration of the computers. If anyone can freely reconfigure the computer he has it is easily possible to change the gateway address and thus swap the ISP. But as long as people comply with the rules it works.
    If you want to enforce the separation you will have to install another router between the two gateway router. This third router passes traffic from the WRT subnet for the 172.18 subnet and accepts the return traffic. In the opposite direction the router does not forward traffic. You should even be able to use a standard NAT gateway router and hook up the internet port to the 172.18 subnet and the LAN port to the WRT. You then configure a static route on the WRT to forward packets for 172.18 subnet to the third router. If the third router does not NAT then you have to configure another route on the first router to forward traffic for WRT subnet (192.168.1.*) to the third router as well.

  • How can I export a PDF photo portfolio with a clean cover page?

    Hello,
    I have compiled a photo portfolio in Bridge and wish to have a clean cover page that does not have the contact info, copyright, etc., that exists on the photo pages.  The cover page was created in Ps and imported into Bridge.
    From what I can see, Bridge does not allow you to add info to certain pages, it's either none or all of them - which unfortunately includes the cover page.
    Any thoughts?  I do like how Bridge lays out the portfolio with size of image related to size of file.
    Thanks!
    Jamie

    Sorry for the long delay in getting back to you! I must have missed your original post.
    Unfortunately our ExportPDF service doesn't support Hebrew text.  You can vote for this feature in here: http://forums.adobe.com/ideas/1554  We use the Ideas section to help prioritize features.
    -David

Maybe you are looking for