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()...
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() ==...
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...
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...
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 =...
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...
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...
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...
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.*...
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...
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...
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...
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 =...
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
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...
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
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...
Hi,
I've got a first query:
ResultSet r = s.executeQuery ("SELECT COUNT(*) AS rowcount FROM customer");
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.(" LIMIT page_start, per_page");
Thanks
Vero
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 = "UPDATE provider set company_name='" + company_name + "', contact_name='" + contact_name + "'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.