jsp database query and setup

Discussion in 'Java' started by Quick Function, Jul 15, 2004.

  1. I am using jstl. I have a query.jsp page, which has something like:

    <sql:setDataSource var="db" scope="application"
    driver="oracle.jdbc.driver.OracleDriver"
    url="jdbc:eek:racle:thin:mad:1.2.3.4:1521:db"
    user="${param.username}"
    password="${param.password}"
    />

    <sql:query var="er" dataSource="${db}" sql="${param.sql}"
    maxRows="20"/>

    ....
    <a href="setup.jsp">Setup</a>

    Query will be the first page my user sees. And there is a link to take
    them to a "setup.jsp" page, in which user can input username and
    password and them linked back to query page. How can I do this?

    In the query page, if I find the username and password are null, I
    want to take them to setup page automatically.

    How can I implement this?

    Thanks,

    QQ
     
    Quick Function, Jul 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Learner
    Replies:
    1
    Views:
    998
    Marina Levit [MVP]
    Jan 30, 2006
  2. Replies:
    0
    Views:
    4,419
  3. Chris Shenton
    Replies:
    1
    Views:
    1,455
    =?ISO-8859-1?Q?Michael_Str=F6der?=
    Aug 24, 2007
  4. Replies:
    1
    Views:
    855
    Nigel Wade
    Apr 16, 2008
  5. Intransition

    [ANN] Ruby Setup 5 (setup.rb)

    Intransition, Jan 13, 2010, in forum: Ruby
    Replies:
    0
    Views:
    422
    Intransition
    Jan 13, 2010
Loading...

Share This Page