Forum: JSP Mar 11th, 2008 |
| Replies: 7 Views: 2,046 If you are really interested you can refer the following link http://builder.com.com/5100-6370-5031703.html However, others have already pointed out not to do so. |
Forum: Shell Scripting Jan 30th, 2008 |
| Replies: 1 Views: 1,527 This is ugly but it works!:)
if [ "$NAME*" == "$HTML_NAME*" ]; then |
Forum: Shell Scripting Jan 30th, 2008 |
| Replies: 1 Views: 1,527 Hi
I'm trying to compare two files names using the function given below.
The files to be compared are named as
xxx_yyy_abc_def_.rtf && xxx_yyy_abc_def_.html
The extentions and the underscores... |
Forum: Shell Scripting Jan 15th, 2008 |
| Replies: 3 Views: 10,694 Ah!!
Got it!
I need to use quotes " ' " $var1" ' " with my variables
INPUT=`echo | awk '{ print substr("'"$HTML"'","'"$var1"'","'"$var2"'") }'` |
Forum: Shell Scripting Jan 15th, 2008 |
| Replies: 3 Views: 10,694 Hi !
I'm trying to find the substring in a shell script as given:
#! /bin/bash
HTML="<html><body>OK</body></html>"
OK="OK"
OFFSET=`expr index $HTML $OK`
OK_LEN=`expr length $OK`
var1=`expr... |
Forum: Java Dec 6th, 2007 |
| Replies: 2 Views: 555 Hi,
I'm trying to reproduce a Production Exception. In order to reproduce it I want to limit the size of my log file. Is there a way so that I can limit the size of my log i.e., my log should not... |
Forum: JSP Dec 5th, 2007 |
| Replies: 3 Views: 1,380 Have you properly configured the servlet information in the web.xml file... ??? |
Forum: Java Dec 3rd, 2007 |
| Replies: 6 Views: 1,424 Do your eclipse knows the directory of Tomcat? Have you configured it?? |
Forum: Java Nov 29th, 2007 |
| Replies: 11 Views: 5,865 In this forum the rule is not to do somebody else's homework or project work. Whether its a question of 100 marks or 1000 marks. You have to do the ground work and ask for help where required. We are... |
Forum: Java Nov 29th, 2007 |
| Replies: 2 Views: 1,793 Are you using WTP plugins with eclipse or simply eclipse. If in case you are using simply eclipse, then there is no way to configure your App Server with it. However, you can still compile your... |
Forum: JSP Nov 28th, 2007 |
| Replies: 1 Views: 762 You can do so by passing the bean in session/request scope when you are clicking the link. |
Forum: Java Nov 24th, 2007 |
| Replies: 7 Views: 4,006 This was interesting. It was really skipping the readLine(). So try this..
System.out.println( "\n¿De que pueblo desea buscar informacion? " );
input = new Scanner(System.in);
... |
Forum: Java Nov 24th, 2007 |
| Replies: 7 Views: 4,006 if you didn't got the exception here
nombreDocTXT = input.next();
then you can't get it when calling nextLine(); because it's just another method of Scanner class. However, can you provide your... |
Forum: Java Nov 23rd, 2007 |
| Replies: 7 Views: 4,006 Have you used Scanner.nextLine()?? |
Forum: Java Nov 23rd, 2007 |
| Replies: 7 Views: 9,363 |
Forum: JSP Nov 23rd, 2007 |
| Replies: 1 Views: 809 Practice, debug, solve others problems, read JSRs, reviews and counter reviews. Update yourself on other similar or advanced technologies. And the list is too big.... |
Forum: JSP Nov 23rd, 2007 |
| Replies: 1 Views: 705 Refer RequestDispatcher.sendRedirect() API + tutorials for more information. Refer your text too. They will guide you. |
Forum: Java Nov 23rd, 2007 |
| Replies: 7 Views: 1,392 I have used static nested classes in struts to populate a html list from database objects. If you are using struts you might find them handy. |
Forum: Java Nov 22nd, 2007 |
| Replies: 6 Views: 14,089 Database drivers (jdbc,odbc,.net...) are provided by database vendors or third party vendors and not generated. JDBC drivers are loaded into the JVM at runtime.
Please refer some books on JDBC... |
Forum: JSP Nov 22nd, 2007 |
| Replies: 1 Views: 1,130 Better option is to upgrade your container or do it in Servlets |
Forum: Java Nov 22nd, 2007 |
| Replies: 1 Views: 483 Read weblogic documentation regarding services. You can also create a startup batch script. |
Forum: Java Nov 22nd, 2007 |
| Replies: 3 Views: 3,944 An example can be found here:
http://www.novocode.com/doc/servlet-essentials/chapter3.html |
Forum: Java Nov 21st, 2007 |
| Replies: 5 Views: 2,080 Use the following piece of code to get Windows OS Look And Feel
try {
//org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel... |
Forum: JSP Nov 13th, 2007 |
| Replies: 4 Views: 2,145 Ok.. So to learn JSP and Servlets, it is always advisable to use Tomcat. Make yourself comfortable with it. Its pretty easy to use. |
Forum: JSP Nov 11th, 2007 |
| Replies: 4 Views: 2,145 First of all Tomcat is a WebServer and has a JSP/Servlet engine called Catalina to process JSP and servlet requests. It cannot process EJBs whereas, JBoss is an AppServer.
Second, you are trying to... |
Forum: Java Nov 11th, 2007 |
| Replies: 2 Views: 4,861 U should use java.util.Random or Math.random() to generate random numbers. |
Forum: JavaScript / DHTML / AJAX Nov 8th, 2007 |
| Replies: 5 Views: 1,067 Well you require a combination of JSP and JavaScript. I don't have the code right now but will work on it and provide it to you. The logic is:
1) Retrieve a java.util.List of Objects from database... |
Forum: JSP Nov 8th, 2007 |
| Replies: 1 Views: 3,174 404 error is File Not Found. You need to learn the basics of Web Programming. |
Forum: JSP Oct 30th, 2007 |
| Replies: 4 Views: 1,986 Are you still facing problem. Send your directory structure |
Forum: JSP Oct 28th, 2007 |
| Replies: 2 Views: 1,403 The given code might help...
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="person.Person" %>
<!DOCTYPE html PUBLIC... |
Forum: JSP Oct 17th, 2007 |
| Replies: 5 Views: 1,049 String user="root@localhost"
should be
String user="root"; |
Forum: Java Oct 11th, 2007 |
| Replies: 4 Views: 2,449 Well in that case I simply add a readline statement after the print statement. So unless and until you don't press a key it won't exit. |
Forum: JSP Oct 2nd, 2007 |
| Replies: 9 Views: 5,980 I'm sorry for my earlier reply, I thought you r facing Connectivity issues so please ignore it.
According to ur post, the price field is a VARCHAR in Oracle (Correct me if I'm wrong). In that... |
Forum: JSP Oct 2nd, 2007 |
| Replies: 9 Views: 5,980 Hi,
You are using jdbc-odbc bridge to connect to Oracle db here
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:prodDSN");
st =... |
Forum: Java Oct 1st, 2007 |
| Replies: 3 Views: 824 People write specific dlls that are specific to their applications and there dlls are required to be registered with Windows registry so that the calling application knows where the library can be... |
Forum: Java Sep 28th, 2007 |
| Replies: 14 Views: 1,614 Java is both - a Framework and a Language. As a Language, it has all the features of a programming language. As a framework it laids down the requirements which must be met by all the vendors... |
Forum: JSP Sep 26th, 2007 |
| Replies: 2 Views: 3,564 You can use JavaScript for displaying timer and there is no need for binding it with a session. Rather, as soon as the user will click start exam button and the jsp page with questions is diplayed,... |
Forum: JSP Sep 26th, 2007 |
| Replies: 5 Views: 5,484 Also, when is the connect() method being called...?? |
Forum: JSP Sep 26th, 2007 |
| Replies: 5 Views: 5,484 Have you checked the ConnectionSmpp object here ConnectionSmpp con = ocm.getConnection();
ocm.submit(con);
I mean is it containing a valid value?? |
Forum: JSP Sep 24th, 2007 |
| Replies: 6 Views: 2,231 Also, you will require resource ref tags. Please put them in proper order otherwise some exception might occur.
<resource-ref>
<res-ref-name>jdbc/WimsDs</res-ref-name>... |