Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: DB2Problem
  • Content: Threads
  • Order by date
  1. DB2Problem

    Javascript onChange Textbox

    Hello ALL I have this select drop down <select name="title" class="form" onChange="javascript:addField();"> <option value="Mr">Mr</option> <option value="Mrs">Mrs</option> <option value="Others">Others</option> </select><br> This is somewhere in my JSP page. On Change of title as Other, I...
  2. DB2Problem

    Regular Expression Pattern Match

    Hello ALL, I have to come up with a pattern to match with fulfilling my following criteria for a password field 1. It must have to be at least 8 characters long 2. It must have atleast one number (digit) 3. It must have one capital letter (character) please advise how should i form a pattern...
  3. DB2Problem

    Setting and Getting Header from Servlet to JSP

    I have a very typical and conceptual problem. I want a precise answer and I request everyone to provide me the answer to the best of their understanding. The problem seems simple but it's not working. Question Summary - I am trying to set headers from my Servlet and forwarding to the JSP...
  4. DB2Problem

    File parsing

    Hello ALL I need to create a hashMap or some kinda data structure of name=value pair after reading these contents from a file abcd@email.com|1|2|3|4|n|y efgh@email.com|1|2|3|4|n|y ijkl@email.com|1|2|3|4|n|y mnop@email.com|1|2|3|4|n|y How can i do this in JAVA Please advise Thanks a lot
  5. DB2Problem

    Prepared Statement Insert issue

    Hello ALL I am using a preparedStatement and is passing values dynamically. Now I want to "insert" values in the table based on condition - Insert only if a particular value is not present else do not perform insert below is query - insert into CUSTOMER (EMAIL_ADDRESS,ZIPCODE) values...
  6. DB2Problem

    How to reuse value from &lt;bean:write&gt; tag

    How can i get the value from <bean:write> tag. I have this bean write tag that gives me the value. I can see that coming up on the JSP page I need to use this value in other parts of JSP page using something like <% =country %>/imgs/help.jpg My bean tag is something like <bean:write...
  7. DB2Problem

    Integer Array and Vector iteration and Look up

    Hello ALL, I have some values in vector say {501, 502}. Now I have an array of Integer that gets SOME, ALL or NONE values that are in the above vector. My problem is to check if the values coming from this dynamic array exits in the vector. Based on presence and absence I have to do some...
  8. DB2Problem

    Struts Problem

    Hello ALL {STRUTS GURUS} I have this struts driven JSP page that has a checkbox - Named as "Unsubscribe" having value of on/off depending on property = checkbox. When you check the box I call a javascript function go(). I need to implement this function "or" if you have a better Idea you can...
  9. DB2Problem

    Struts Problem

    Hello ALL {STRUTS GURUS} I have this struts driven JSP page that has a checkbox - Named as "Unsubscribe" having value of on/off depending on property = checkbox. When you check the box I call a javascript function go(). I need to implement this function "or" if you have a better Idea you can...
  10. DB2Problem

    Struts &lt;html:multibox&gt; problem

    Hello All This issue is just taking too much of my time. Any suggestion / code snippet will be a lot help Problem: I need to populate my jsp page with values retrieved after a database look up. I am using STRUTS framework. The DAO retrieves the values by doing something like "select * from...
  11. DB2Problem

    Simple Question on SQL

    I have two tables as shown below - Table 1 - emp_rec table Empl_ID Empl_Name On_Vacation 200 Jhon Y 300 Sean Y 400 Bill N Table 2 - emp_table Empl_ID Empl_Name 200 Jhon 300 Sean I want to select records which are not in Table 2 BUT in Table 1...
  12. DB2Problem

    JSP Servlet Browser Issue

    Hello I have a link to Front Controller Servlet from one of JSP page (call it link page). However, there is an intermediate page that sets some parameters before forwarding to Front controller, which it does ON-LOAD Hence whenever I hit Back button on the browser from Front Controller servlet...
  13. DB2Problem

    Dynamic SQL build in JAVA

    Folks, I am using prepared statement on one of my java calls to the database. Here's is a sample of the same String sql = "Select <table_nam>.<column_name> from <schema_name>.<table_name> where <condition>" and <column_name_1> = ? " + " and...
  14. DB2Problem

    Parameter String

    Hello, I have a java program and i am passing parameters For Example - paramName = "ABC & DEF"; when I am getting the values from the parameter. It is shown as "ABC" Please advise, I tried to encode it using URLEncoder.encode("string") BUT it did not work Thanks,
  15. DB2Problem

    String Manipulation - String Containment

    Hello, I have string variables and i want to test the containment of one string in other For Example String a = "microsoft software"; String b = "abcd microsoft software efgh"; How can i test that string b contains string a ? String b has string a but it can be anywhere with in string b...
  16. DB2Problem

    Show Default Model Year

    Hello All, I have a Java code which fetches SQL to populate the drop down box. SQL is returning result in this order - year_code year_description 5 2005 4 2004 3 2003 2 2002 The drop down build from the java program is showing the same order However, I want to show the order like 2004...
  17. DB2Problem

    HTML update challenge

    Hello ALL, I have a flat file which contains one date field. I need to update an HTML file with this date field by reading the file. However, my file will be updated by a unix script every day. I need code snippet to add in HTML file which can reflect the updated date every day. One...
  18. DB2Problem

    Stateful Session Bean

    Hello ALL, I thought of asking 2 more questions. The questions are related to the architectural issues 1. I am calling a Service excute() method, which in turn calls another method viewCart(). In my viewCart() method, I am using following lines of code. This is my client to EJB. public...
  19. DB2Problem

    Javascript Alert pop-up

    Hi Javascript Gurus, I have following problem and need help - In my html page I have – 1. A Textbox 2. A Radio Button I need to check if the radio button is checked, the textbox should mandatory have any interger value in it. I think it can be done using Javascript, please help with the...
  20. DB2Problem

    My database table is returning year

    My database table is returning years as 1999, 2000, 2001, 2002 from the year_description field. I want to assign a unique char datatype (year_code) to this. For Example - 1, 1999 2, 2000 3, 2001 I can not modifying/add anything in the database. How can I do this in SQL or java

Part and Inventory Search

Back
Top