Help me -doubt in jsp

hai
In my jsp page one checkbox is there.
when i check the checkbox then another on textarea will popup
and vice versa
plese help me
it is very urgent
thank you

* dont doubt JSP it has proven its worth.
* checking checkbox and hidding/showing textareas is not in your JSP but in the HTML that is send to your client by making a request to your JSP, its a detail but a very important one
* This means you need Javascript that will change the style of yor HTML components, have a look at a javascript onclick or onchange events and at the DOM model.
* example
yourtextarea.style.visibility = 'hidden'

Similar Messages

  • Doubt in JSP recordset

    Hi i have a doubt in jsp...first i don know much abt jsp so iam gonna trying out a project on supermarket system.Here i have three tables Items,Bill and Report.Iam using three resultset continuously and i have error saying no resultset found.I have sent the code can anyone plz help me correcting it.
    <%
    String item= request.getParameter("itemadd");
    String qr=request.getParameter("quanreq");
    HttpSession Dsess=request.getSession();
    String refer = (String)Dsess.getAttribute("user");
    Date dd = new Date();
    SimpleDateFormat sdf1 = new SimpleDateFormat("dd");
    String date = sdf1.format(dd);
    Date mm = new Date();
    out.println(date);
    SimpleDateFormat sdf2 = new SimpleDateFormat("MMM");
    String mon = sdf2.format(mm);
    Date yy = new Date();
    SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy");
    String year = sdf3.format(yy);
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:honeydew"," "," ");
         Statement st= con.createStatement();
         ResultSet rs = st.executeQuery("Select * from Items where Iname = '"+item+"' ");
         String uni = new String();
         String pri = new String();
         while(rs.next())
              uni = rs.getString(4);
              pri = rs.getString(5);
         ResultSet rs4 = st.executeQuery("update Items set Quantity = Quantity - '"+qr+"' where Iname ='"+item+"' ");
         ResultSet rs2 = st.executeQuery("insert into Bill values('"+item+"','"+qr+"','"+uni+"','"+pri+"','"+refer+"')");
         ResultSet rs2 = st.executeQuery("insert into Report values('"+item+"','"+qr+"','"+uni+"','"+pri+"','"+date+"','"+mon+"','"+year+"')");
    catch(Exception e)
    %>
    <html>
    <body bgcolor="#CCDDEF">
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.lang.*" %>
    <%@ page import = "java.util.Date" %>
    <%@ page import = "java.text.*" %>

    Hi
    When you are doing either update or insert database operations, use Statement.executeUpdate("insert . . . . "), which will return how many rows are effected. So instead of
    ResultSet rs1 = stmt.executeQuery("update ......"); use the following
    stmt.excuteUpdate("update ...... ");

  • Help with customised login JSP on SSO server

    Our customised version of the SSO login page JSP is required to access a database table in order to retrieve a dynamic message to display. This means we will need to create utility java classes in order to connect to the database and retrieve the information. We will also ideally need a data source on the SSO APP Server that we can reference in order to avoid hard-coding environment specific connection data.
    Can anyone help out on where we will need to install the utility classes and where the data source can be created in order for the login JSP to see them. Is there any other configuration we need to consider e.g. classpaths etc?
    The coding we are fine with, it is the actual "what goes where and don't forget to include this" that we are unsure of.

    Hello St***,
    Did you accomplished the cusomized SSO logon page with database access. If yes can you please provide met with some examples and instructions how to accomplish this.
    Regards,
    Dennis

  • Urgent help needed in compiling JSP on websphere 6

    we are migrating our app from websphere 5 to 6 version. our app has 2 JSP files. Jsp A and Jsp B...
    Jsp A code
    if(cond met) { <%@ include file = JspB %> }
    Now JSP B code
    <bean:define id='X' />
    when i run the JSP A, it throws compilation error as below..
    Jsp A failed to compile, variable X not resolved
    An error occured in the statically included jsp B
    The same code is running on websphere 5. its giving error on 6. ..Pls help..This is urgent,

    Could you post more details perhaps? Eg. the complete files.
    Also, I would recommend that you consider using the runtime include, <jsp:include ...>, and put your variables in the request scope.

  • Need help in writing a .jsp page

    Hi Guys,
    I am new to JSP. My requirement is " I have a link on my webpage. When the user clicks that link, a HTML page is displayed which has parameters to be entered (for ex: from_date , to_date). When the user clicks the submit button, a jsp page should be displayed in which a query is run to display the output. For example, the user enters the from_date and to_date parameter values to know the employees employed within those dates in their company. The query is "select empname,empno,sal,dept,comm from emp where employed_date between from_date and to_date" . The following should run and display in the jsp page.
    How can i write a .jsp to extract the parameters that are entered in the HTML form in to a .jsp and run the query with those parameters to display the output. Help needed in making me write this .jsp for this query.
    Help Aprreciated.
    Thanks

    Hm, your requirements sound like homework assignment from classroom. If so, is itn't better that you find the answer youself? There are plenty of very relevant references for how to use jsp to handle html forms or talk to a rdbms through a jdbc connection. For example, for jsp and html forms, you can google "jsp html forms"; for jsp and sql query, search for "jsp jdbc".
    Tell me if this is not helpful.

  • Can you help me with an jsp execption please?

    Hello!
    Could you please try to help me with this code
    that brings me an exception?
    this is the jsp page :
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
        String savePath = "", filepath = "", filename = "";
        String contentType = "", fileData = "", strLocalFileName = "";
        int startPos = 0;
        int endPos = 0;
    %>
    <%!
        temp data buffer
        void copyByte(byte [] fromBytes, byte [] toBytes, int start, int len){
           for(int i=start;i<(start+len);i++)
              toBytes[i - start] = fromBytes;
    %>
    <%
    int BOF = 0, EOF = 0;
    contentType = request.getContentType();
    out.println("<br>Content type is :: " +contentType);
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
         DataInputStream in = new DataInputStream(request.getInputStream());
         DataInputStream in1 = in;
         int formDataLength = request.getContentLength();
         byte dataBytes[] = new byte[formDataLength];
         int byteRead = 0;
         int totalBytesRead = 0;
         while (totalBytesRead < formDataLength){     
              byteRead = in1.read(dataBytes, totalBytesRead, formDataLength);
              totalBytesRead += byteRead;
         out.println("<br>totalBytesRead : " + totalBytesRead + " : formDataLength = " + formDataLength);
         byte[] line = new byte[128];
         if (totalBytesRead < 3){
         return;     //exit if file length is not sufficiently large
         String boundary = "";
         String s = "";
         int count = 0;          
         int pos = 0;
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf("Content-Disposition: form-data; name=\""); //set the file name
         if(pos != -1)
         endPos = pos;
         }while(pos == -1);
         boundary = fileData.substring(startPos, endPos);
         startPos = endPos;
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf("filename=\"", startPos); //set the file name
         if(pos != -1)
    startPos = pos;
         }while(pos == -1);                         
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf("Content-Type: ", startPos);
         if(pos != -1)
              endPos = pos;                              
         }while(pos == -1);
         filename = fileData.substring(startPos + 10, endPos - 3);     //to eliminate " from start & end
         strLocalFileName = filename;
         int index = filename.lastIndexOf("\\");
         if(index != -1)
         filename = filename.substring(index + 1);
         else
         filename = filename;
         boolean blnNewlnFlag = false;
         startPos = endPos;     //added length of "Content-Type: "
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;               
         pos = fileData.indexOf("\n", startPos);
         if(pos != -1){
              if(blnNewlnFlag == true)
                   endPos = pos;                         
              else{
              blnNewlnFlag = true;
              pos = -1;
         }while(pos == -1);
    contentType = fileData.substring(startPos + 14, endPos);
         startPos = count + 1;
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf(boundary, startPos);     //check for end of file data i.e boundry value               
         }while(pos == -1);
         endPos = count - boundary.length();
         out.println("<br><br>0. Local File Name = " + strLocalFileName);
         out.println("<br><br>1. filename = " + filename);
         out.println("<br>2. contentType = " + contentType);
         out.println("<br>3. startPos = " + startPos);
         out.println("<br>4. endPos = " + endPos);
         out.println("<br>5. boundary = " + boundary);
         String appPath = application.getRealPath("/");
         out.println("<br>appPath : " + appPath);
         String destFolder = appPath + "images/";
    String name = request.getParameter("signinName").trim();
    String email = request.getParameter("signinEmail").trim();
    String age = request.getParameter("signinAge").trim();
    String passwd = request.getParameter("signinPassword").trim();
    String profile = request.getParameter("signinProfile").trim();
    String type = filename.substring(filename.lastIndexOf("."));
         filename = destFolder + name + type;
         fileOutputStream fileOut = new FileOutputStream(filename);
         fileOut.write(dataBytes, startPos, (endPos - startPos));
         fileOut.flush();
         fileOut.close();
         out.println("<br>File saved as >> " + filename);
         else {
              out.println("Error in uploading ");
    %>
    this is the exception:
    exception
    org.apache.jasper.JasperException: java.lang.NullPointerException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:382)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.uploadFile_jsp._jspService(uploadFile_jsp.java:190)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)Thanks a lot !!

    root cause
    java.lang.NullPointerException
         org.apache.jsp.uploadFile_jsp._jspService(uploadFile_jsp.java:190)Some variable is getting null value ..so debug it.
    Best way is to start putting System.out's ....
    System.out.println("Step ############1");
    Put the incremental numbering between several code blocks. Check the log output. You will surely be able to find out till what point ur code is Ok.
    -Rohit

  • Please help me with the jsp page

    Hi,
    I have a parent jsp page. I have a button in that page. If I click the button in the parent page, a child page will be opened which consists of huge data. I have set an option such that if I click the jsp page it asks to open directly or save so as to edit the data in MSWORD format. The child page has a print button at the end of the page which prints all the data. But since the data is very vast I want page breaks at certain places so that when I edit the data and click print button it prints the data with page breaks at certain points. I know that in MSWORD we have page breaks. But I should not do it manually as there would be thousands and thousands of pages to be printed.
    ANY IDEA OR HELP IN THIS MATTER IS GREATLY APPRECIATED. I HAVE BEEN TRYING TO SOLVE THIS MATTER AND POSTED IN MANY SITES. BUT NOBODY RESPONDED. ATLEAST PLEASE LET ME KNOW IF THE IDEA WHICH I MENTIONED IS WORNG OR NOT.
    THANKYOU
    MOUNTAINEER

    use java report?

  • Help running a simple jsp file,Tomcat 5.0.16

    Hi,
    This question may be addressed many many times,but do reply.
    I have a Win xp operating system
    Installed Tomcat 5.0.16 in it.
    Next the directory structure
    PS : The sampleapp directory is outside the tomcat installation directory.
    E:/sampleapp
    | |
    ROOT WEB-INF
    |
    classes
    |
    <package1><structure> .class files (for servlet works fine!!!!)
    in the WEB-INF,there is the web.xml,then sourcefiles<dir> and the lib directory which is empty.
    Now the servlet files work fine.........
    I have placed my MyJsp.jsp file in the above mentioned ROOT directory.
    I have not done any thing with the <TOMCAT_HOME>/conf/server.xml file
    and the web.xml which I have written.
    When I give the following URI
    http://localhost:8080/sampleapp/MyJsp.jsp,
    I get the HTTP status 404- /MyJsp.jsp
    description: The requested resource (/MyJsp.jsp) is not available.
    Hoping that I have defined the problem specifically.Kindly show some light on this.
    Thanks
    AS

    Nevermind. I just found the answer. For the record, there are two ways in getting JSPs to work:
    1. Precompiling the JSPs and modifying your webapp's web.xml file with the XML fragment generated in YourWebApp/web/WEB-INF/generated_web.xml;
    2. Not precompiling the JSPs, but simply letting tomcat compile it on the fly on first access.
    PRECOMPILATION METHOD
    Go to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. Copy-and-paste the ant script under the section "Web Application Compilation" into a file called compile.xml. For me, I save it in ~/development/compile.xml. Then compile the JSPs using the command (all in a single line):
    $ANT_HOME/ant -file <PATH_TO_COMPILE.XML> -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>
    In my case, I cd into the directory where my app resides:
    cd ~/development/HelloWorld
    and then I type:
    ant -file ~/development/compile.xml -Dtomcat.home=/var/tomcat5 -Dwebapp.path=.
    (Note the trailing dot since my current directory is my webapp's directory itself. Also, in my case, my shell's PATH contains the path to the ant executable, so I just type 'ant' directly.)
    Open the file ~/development/HelloWorld/web/WEB-INF/generated_web.xml and follow the instructions in that auto-generated file, which is: "Place this fragment in the web.xml before all icon, display-name, description, distributable, and context-param elements."
    The web.xml referred to above is YOUR web.xml. In my case, it is the one in ~/development/HelloWorld/web/WEB-INF/web.xml
    When ready to deploy, type:
    ant dist
    as usual. Deploy the .war file in the dist directory as you normally would. In my case, I do:
    rm -rf $CATALINA_HOME/webapps/hello* (removes my HelloWorld webapp directory and its war file)
    cp ~/development/HelloWorld/dist/hello.war $CATALINA_HOME/webapps
    and wait for tomcat to unravel the war file. I can then access the JSP page based on whatever the generated_web.xml had specified. In my case, it would be http://localhost:8080/hello/sample.jsp
    NON-PRECOMPILATION METHOD
    Copy tools.jar from the Java JDK into tomcat's common/lib. (I found this only in the error message in tomcat's log file!! Didn't find it anywhere else!!). Do this one time only, then restart tomcat:
    cp $JAVA_HOME/lib/tools.jar $CATALINA_HOME/common/lib
    Restart tomcat.
    Deploy your webapp as usual which will include your JSP files stored under your webapp's 'web' directory. No precompilation of JSPs is required. Then access your JSP pages such as http://localhost:8080/HelloWorld/my-jsp-page.jsp and tomcat will compile it on the fly on first access. The disadvantage is that there will be a slight delay on first access.
    [Note:  I am putting all this down for the record, because it took me MANY HOURS to figure all this out as the info on how to do this is not found clearly in one place!!  Hope this helps others.]
    My next step is to incorporate the contents of compile.xml as mentioned above, into my regular build.xml file.

  • Help with Login Form (JSP DB Java Beans Session Tracking)

    Hi, I need some help with my login form.
    The design of my authetication system is as follows.
    1. Login.jsp sends login details to validation.jsp.
    2. Validation.jsp queries a DB against the parameters received.
    3. If the query result is good, I retrieve some information (login id, name, etc.) from the DB and store it into a Java Bean.
    4. The bean itself is referenced with the current session.
    5. Once all that's done, validation.jsp forwards to main.jsp.
    6. As a means to maintain state, I prefer to use url encoding instead of cookies for obvious reasons.I need some help from step 3 onwards please! Some code snippets will do as well!
    If you think this approach is not a good practice, pls let me know and advice on better practices!
    Thanks a lot!

    Alright,here is an example for you.
    Assume a case where you don't want to give access to any JSP View/HTML Page/Servlet/Backing Bean unless user logging system and let assume you are creating a View Object with the name.
    checkout an example (Assuming the filter is being applied to a pattern * which means when a resource is been accessed by webapplication using APP_URL the filter would be called)
    public doFilter(ServletRequest req,ServletResponse res,FilterChain chain){
         if(req instanceof HttpServletRequest){
                HttpServletRequest request = (HttpServletRequest) req;
                HttpSession session = request.getSession();
                String username = request.getParameter("username");
                String password = request.getParameter("password");
                String method = request.getMethod();
                String auth_type  = request.getAuthType();
                if(session.getAttribute("useInfoBean") != null)
                    request.getRequestDispatcher("/dashBoard").forward(req,res);
                else{
                        if(username != null && password != null && method.equaIsgnoreCase("POST") && (auth_type.equalsIgnoreCase("FORM_AUTH") ||  auth_type.equalsIgnoreCase("CLIENT_CERT_AUTH")) )
                             chain.doFilter(req,res);
                        else 
                          request.getRequestDispatcher("/Login.jsp").forward(req,res);
    }If carefully look at the code the autherization is given only if either user is already logged in or making an attempt to login in secured way.
    to know more insights about where these can used and how these can be used and how ?? the below links might help you.
    http://javaboutique.internet.com/tutorials/Servlet_Filters/
    http://e-docs.bea.com/wls/docs92/dvspisec/servlet.html
    http://livedocs.adobe.com/jrun/4/Programmers_Guide/filters3.htm
    http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
    http://www.servlets.com/soapbox/filters.html
    http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
    and coming back to DAO Pattern hope the below link might help you.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    http://java.sun.com/blueprints/patterns/DAO.html
    http://www.javapractices.com/Topic66.cjp
    http://www.ibm.com/developerworks/java/library/j-dao/
    http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-dao.html
    On the whole(:D) it is always a good practice to get back to Core Java/J2EE Patterns.and know answers to the question Why are they used & How do i implement them and where do i use it ??
    http://www.fluffycat.com/java-design-patterns/
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    http://www.cmcrossroads.com/bradapp/javapats.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • Help regarding a simple JSP file and servlet file

    Hi all,
    I am trying to develop a web based application using Tomca 5.0.16.I wanted to get to know how a simple jsp page could access a servlet.It would be really very beneficial if if any one can give me a sample code that does the interactions,I could run it and understand it,would help me for further development.
    Any help would be appreciated
    Thanks
    AS

    I think it depends on how you want to access the servlet.
    You can forward or redirect from the JSP page to the servlet, thus making it like you went to the servlet directly from the browser (except of course, before the forward or redirect, some stuff can be done).
    You can use URLConnection objects to call the servlet, much like the browser does.
    It depends on what you are trying to do.

  • Help needed to take  JSP content to hard copy

    this is what i hav encounterd with..i hav text content in a jsp .that is to be printed in a in a pre printed paper,i only need to print some numbers and text in the page given infornt of the the fields printed in the page.can anyone giv a suggetion.i
    hav no idea how to do it.plse help.thnaks in advance.

    This forum provides a spellchecker in the message editor toolbar. It might help a lot.

  • Help on mysql and jsp

    hi i am building a web based questionnaire using JSP and i am trying to store some questions with 4 possible choices and a correct answer in a database so that i can print them out in a browser and anwser them and get the feedback on the ones answered right and wrong
    eg....
    Question 1:
    A Method is invoked with
    o Method Call
    o Local Variable
    o Return Statement
    o None of the above
    can anyone help me with the database structure on how to do this....
    and some tips on how to check the questions answered to the correct answer....thanx

    Database:
    1. Create a table Called 'Questions' with Qid and QDescription columns. Qid is the primary key.
    2. Create a table called 'Answers' with Qid, AnswerId, Answer and AnswerCode columns. Qid is the Foreign Key and refers the Qid in Questions table. AnswerId is the primary key. AnswerCode typically contains A,B,C,and D (and E if at all it is there).
    3.Create a table called 'QandA' with Qid and AnswerId columns. Qid is the foreign key and refers to Qid of 'Questions' table, AnswerId is the foreign key and refers to AnswerId of 'Answers' table and combination of Qid and AnswerId is primary key.
    Java Bean
    1. Create an Info bean QInfo with properties qId, answer1, answer2, answer3 and answer4 plus respective set and get methods.
    2.Query the database for some 50 questions and store the push resultset contents into the infobean (i.e, you will create 50 different instances of QInfo bean) and add all these info beans to a Vector.
    3.Return this vector to the Caller (either JSP or Servlet).
    JSP
    1. Execute the getQandA() method of the java bean.
    2. Display the contents of info beans onto the browser (Question with sequential numbers and Answers with check boxes);
    3.On submission of the page, post the contents to another JSP (preferably to a servlet).
    4.Get the question id and the answer code from the request body and cross check them against the QandA and Answers tables.
    5.Forward the request to another JSP with the no of right answers. Display the result in this page.
    Hope this helps and is not too complecated.
    Sudha

  • Help need to embed jsp on flex

    hi,
    i m trying to build jsp application on flex, by keeping flex as the base. i want to navigate to jsp application for flex and i m using spring at the server side.
    could any one help me on this. thnks in advance.

    You can do it with code:
    // set Stage properties
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    // align movieclip
    yourMovieClip.x = stage.stageWidth/2;
    yourMovieClip.y = stage.stageHeight/2;
    // or
    yourMovieClip.x = stage.stageWidth/2 - yourMovieClip.width/2;
    yourMovieClip.y = stage.stageHeight/2 - yourMovieClip.height/2;

  • Pls help Session manipulation in Jsp

    Hi,
    In JSP, I wanna check whether user has logged in, but it doesn't work, could you pls help?
    I guess the reason is I didn't initiate session attribute of userid. If it is true, could u pls tell me how to do that?
    or, how to know the attribute not set yet?
    TIA
    Wolf
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    <%
         String jsp_userid=null;
         jsp_userid=session.getAttribute("userid").toString();
         if (jsp_userid==null) {
                   response.sendRedirect("/loginfailure.jsp");
         } %>

    I guess the reason is I didn't initiate session
    attribute of userid. If it is true, could u pls tell
    me how to do that?
    or, how to know the attribute not set yet?Are you sure you are putting an attribute by name "userid" in the session soon after/during login?Otherwise you will get null on doing a getAttribute.
    Do something like session.setAttribute("userid",sUserId); during login.
    jsp_userid=session.getAttribute("userid").toString();And don't do the above. your session.getAttribute("userid") may well return null
    Make it something like
    jsp_userid=(String)session.getAttribute("userid");
    if(jsp_userid==null)

  • Doubt in jsp or oracle

    hi everyone,
              i'm working with a jsp code which uses oracle as backend i come across
              a statement like this
              rs2=st2.executeQuery("select name from emp where ecode='"+ecode+"'");
              what the + mean in --"+ecode+"
              is it related to jsp or oracle,
              help me in bebuging the code
              

              That is from your JSP, "ecode" in ecode is a variable in your JSP.
              [email protected] (kasi) wrote:
              >hi everyone,
              >i'm working with a jsp code which uses oracle as backend i come across
              > a statement like this
              >
              >rs2=st2.executeQuery("select name from emp where ecode='"+ecode+"'");
              >
              >what the + mean in --"+ecode+"
              >is it related to jsp or oracle,
              >help me in bebuging the code
              

Maybe you are looking for

  • Mini - DVI/HDMI - Onkyo TX-SR674 - Philips 42" LCD | Problem

    OK, I just got my new Mini (1.66 Core Duo) to hook up to my Philips 42" 1080P HDTV LCD. I have the video signal going via a DVI to HDMI cable through my Onkyo TX-SR674 Receiver. The reason for this setup is that the Onkyo receiver controls my video s

  • Can i use airport extreme, with apple tv and pc without the internet

    While renting/buying films on itunes is all well and good, my wireless capacity is poor, if i buy airport extreme, without connecting it to the internet, will it stream my films on itunes from the PC to apple TV?

  • Creating the highest quality dvd

    I'm making a feature length film for Sundance. It's all shot in 1080i and the sound is in dolby digital. I'm new at all of this. What is the best quality set up for the best quality dvd non-hd? The movie is 1hr 50min. There are no special effects. I

  • Audio problem with one episode of iTunes tv show on two apple tvs but audio works fine on same show on iMac

    I have a season pass to Dr Who and all 30+ other shows purchased on iTunes work great. Last night's episode (Hide) has a hissing sound so loud it drowns out all the audio in the show when i try to watch it on my Apple TV.  I then downloaded the episo

  • Problem - Customer tab in ME21n

    Hello experts, I have seveal customer tabs in ME21/2/3n using ME_GUI_PO_CUST. I can see them in ME22/3 properly. The problem is that in ME21n I can see them only after i fill in one of the fields in the original tabs. I tried to debbug it but it seem