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 Chriss Miller 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: sensory21
  • Content: Threads
  • Order by date
  1. sensory21

    sortedMap in reverse order?

    Hi, This is a sorting by keys' natural ordering (ascending) and I need to have also the descending order, can someone help? I've looked at comparator and again at: Map map = new TreeMap(Collections.reverseOrder()); but I haven't managed to make it work? SortedMap sortedMap = new TreeMap()...
  2. sensory21

    ArrayList

    Hi, how can I embed the sorted list iList I get at the end of the second while in the html I get in the first while? ArrayList list = new ArrayList(); Iterator i = items.iterator(); while(i.hasNext()) { double pc; Item item = (Item) i.next(); if(item.getNextStage().getStageId() ==...
  3. sensory21

    TreeSet class

    Hi, I am using this class for the first time and I am confused as I thought that SortedSet will sort the content of ts but it doesn't? If I print out ts or orderComplete the content will be in the same order. Any advice available? TreeSet ts = new TreeSet (); ts.add...
  4. sensory21

    SortedMap class

    Hi, Has anyone used SortedMap class? and have some info about it please? (except from java sun) Cheers vero
  5. sensory21

    Torque criteria

    Hi I need to have a new criteria to join two tables in different manner: table item ========== stageId nextStageId table stage =========== stageId the query has to match where stageId from item equals stageId from stage and nextStageId from item equals stageId from stage can anybody help...
  6. sensory21

    sorting column

    Hi, I need help with the sorting of the column 'Next Stage' see below; the way to get the results in the colum is: String nextStage = item.getNextStage().getStageTemplate().getDescription(); <% String systemStr = request.getParameter("systemId"); String taskStr =...
  7. sensory21

    request parameters from a list

    Hi all, Hope Im in the right forum! This is an extract of the file, my problem is: at the end of this file I collect in the hidden field the list of nextStageList which is fine but I need to get it back at the top of the page for some other reasons; and i don't know how, i thought about the...
  8. sensory21

    array list?

    Hi all, PreparedStatement prep = conn.prepareStatement("select company_name, contact_name, address, address2, city, pcode, country, phone, fax, email, website from customer"); ResultSet rs = prep.executeQuery(); while (rs.next()) { //what I would like to do here is to set up a variable which...
  9. sensory21

    Display tag and mysql HELP

    Hi all, anyone can help with the display tag library, can't make it work and have now read a lot about it, have also tried shown examples but they don't work! the best I can do is to have it compiled but with: 'Nothing found to display'; I need to have the results of mysql displayed in the...
  10. sensory21

    page numbering

    Dear all, Below is my jsp page which print the pages numbering with previous and next when applicable; this code works fine but in order to improve the jsp page I thought it will look better if I was calling a java class or method? Any advice? thanks Vero <%@ page import="java.sql.*...
  11. sensory21

    request a value

    Hi, Im looking for the syntax for retrieving a value from one jsp page to another, I know about this: String val = request.getParameter("id"); but I think it works if it comes from a html tag but what I need is in staff.jsp I have: String val = xstaff_id; and I want to retrieve it from...
  12. sensory21

    java class

    Hi all, can you see something wrong with my class as when I tried to compile it, I got the message error: package javax.servlet does not exist? Thanks for your time. package Mypackage; import java.util.*; import java.sql.*; import javax.servlet.UnavailableException; public class...
  13. sensory21

    retrieving data from mysql

    Hi all, I have an index.jsp page with a function calling a javascript page: <script language="JavaScript"> BuildPanel(); </script> In the javascript page I have: var users = new Array(); users[0] = new Array("guest","staff","staff.jsp"); users[1] = new Array...
  14. sensory21

    prepared statement

    Hi all, //These are values entered in a form String title = request.getParameter("title"); String firstname = request.getParameter("firstname"); String lastname = request.getParameter("lastname"); //The primary key is set up as auto_increment in the db PreparedStatement pstmt =...
  15. sensory21

    Date format

    Hi all, I have used the SimpleDateFormat to display the date in my page.jsp but I was wondering if I could elaborate the format; the present format is: Monday 8 March 2004 ("EEEE d MMMM yyyy") but I would like to display: Monday 8th March 2004; is it possible? Thank you Veronique
  16. sensory21

    Mail with jsp

    I've downloaded the JavaMail as unzip it as c:\javamail-1.2 is it the right path? for java Im using: c:\Program Files\j2sdk_nb\j2sdk1.4.2 do i need to install jswdk1.0.1 ? if yes where? and last but not least I found this (very good) site explaining the situation but still I don't grasp...
  17. sensory21

    Form Mail

    Hi all, has anyone installed JFormMail written in Java as I have problems installing it? Or maybe have you got any suggestions about having a mail form on a jsp page? Cheers Vero
  18. sensory21

    jsp page numbering

    Hi , I need help with this, the code compile ok and display what I want for the first page, once you click on the link Next it says thispage=2 which is good but don't initialise thispage=2, so I know my mistake it's because I initialise thispage=0; at the start but if I don't the program doesn't...
  19. sensory21

    concatenate 2 queries

    Hi, I've got a first query: ResultSet r = s.executeQuery (&quot;SELECT COUNT(*) AS rowcount FROM customer&quot;); further down, I'd like to add another part of the query, how do I write this? I've tried that but it doesn't work: req = r.(&quot; LIMIT page_start, per_page&quot;); Thanks Vero
  20. sensory21

    update jsp mysql

    Hi all, I am trying to update (after editing) some displayed records in a form, the file compiles ok, no message error but the update doesn't take place? String sql1 = &quot;UPDATE provider set company_name='&quot; + company_name + &quot;', contact_name='&quot; + contact_name + &quot;'...

Part and Inventory Search

Back
Top