uugh stuck again =P getting client side information with JSP/Servlets

2002-09-06 Thread Richard Diaz

Is it possible to NOT use JavaScript and JUST use JSP
Script alone? Specifically I need the user's screen
size and images that are placed on their browser
window (for click and drag functionality)

Maybe use a client-side applet? Or can I get the above
info in the servlet Response object?

If I have to use JavaScropt can I pass JavaScript
Variables to JSP Script Variables/Servlets?

all input much appreciated,
Rich

=


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




MVC question, when to sync the model with database?

2002-08-14 Thread Richard Diaz

using MVC when do I sync my MODEL data arrays with the
DATABASE?

I would think you would change the database and THEN
update your model objects...

Good articles on MVC are well appreciated =)

thanks,
Rich



=


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




please help! hard returns in TOMCAT what the heck?!

2002-08-12 Thread Richard Diaz

the following jsp code:

out.println(input type='hidden' name='scope'
value=');
out.println(MyArray[i].getScope());
out.println(');
out.println(input type='hidden' name='page'
value='0');

results in this output:

input type='hidden' name='command' value='delete'
input type='hidden' name='scope' value='
8
'


Is there a way to STOP the hardreturns that are being
inserted?

thanks a bunch =)

Rich



=


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: please help! hard returns in TOMCAT what the heck?!

2002-08-12 Thread Richard Diaz

duh, use out.print

sorry about that =)

Rich


--- Richard Diaz [EMAIL PROTECTED] wrote:
 the following jsp code:
 
 out.println(input type='hidden' name='scope'
 value=');
 out.println(MyArray[i].getScope());
 out.println(');
 out.println(input type='hidden' name='page'
 value='0');
 
 results in this output:
 
 input type='hidden' name='command' value='delete'
 input type='hidden' name='scope' value='
 8
 '
 
 
 Is there a way to STOP the hardreturns that are
 being
 inserted?
 
 thanks a bunch =)
 
 Rich
 
 
 
 =
 
 
 __
 Do You Yahoo!?
 HotJobs - Search Thousands of New Jobs
 http://www.hotjobs.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




please reply to this

2002-08-02 Thread Richard Diaz

I'd like to verify my messages are being posted,
please send me an email at [EMAIL PROTECTED] if you
see this message, 

thanks in advance.


=


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




urgent help please!

2002-08-02 Thread Richard Diaz

I hope this is formated well for this list-serv...

problem: application scope objects launched by web.xml


In my Tomcat boot sequence (web.xml file) I am
launching a servlet called InitTwc. 

This servlet creates and sets the values for an
application scope object called TwcMaxes. I have
verified that my TwcMaxes object is created in the
application scope and its values are set
(TwcMaxes.iMaxBookmarks = 3). 

However once TOMCAT is done booting and when I go to
reference the value in a JSP page OR in another
servlet the value for TwcMaxes.iMaxBookmarks is 0
(zero). 

My guess only is that I cannot set values during the
web.xml boot up servlet launch, I hope I am wrong. Any
help is much apprecited. I have been stuck on this for
days =p 

Rich Diaz 

=


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




application scope objects launched by web.xml

2002-07-31 Thread Richard Diaz

In my Tomcat boot sequence (web.xml file) I am
launching a servlet called InitTwc. This servlet
creates and sets the values for an application scope
object called TwcMaxes. I have verified that my
TwcMaxes object is created in the application scope
and its values are set (TwcMaxes.iMaxBookmarks = 3). 

However once TOMCAT is done booting and when I go to
reference the value in a JSP page OR in another
servlet the value for TwcMaxes.iMaxBookmarks is 0
(zero).

My guess is that I cannot set values during the
web.xml boot up servlet launch, I hope that's wrong.

Any help is much apprecited. I have been stuck on this
for days =p

Rich Diaz


=


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




application scope servlets launched by web.xml problem

2002-07-21 Thread Richard Diaz

I have some application scope data that I want to
share with all the servlets and JSPs in my
application.

So I load my class InitTwc from my application’s
web.xml (load-on-startup = 99, i.e. LAST). It launches
successfully however when I call the:

getServletContext().setAttribute(com.mycompany.app-param,
app-value); 

I get a null error sent to my Tomcat window and the
servlet terminates then and there and the rest of my
servlet code does NOT execute.

I’m thinking maybe I can’t use
getServletContext().setAttribute while loading
servlets in the web.xml file ???

All comments/ideas much appreciated!

Richard Diaz


=


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




TOMCAT is not loading my classes now =p

2002-06-16 Thread Richard Diaz

TOMCAT is not loading my classes =p

I am placing my class files into my webapp directory:
C:\Program Files\Apache Tomcat
4.0\webapps\twc\Web-inf\classes\myDomain\base

Each of these class files has this package entry:
package myDomain.base;

I have been trying for DAYS to figure out where TOMCAT
wants these files =p (I use to have them in
common\classes before and THAT worked w/o the package
line above of course...)

all help much appreciated!
Richard Diaz


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




please fix my stupid classpath

2002-05-29 Thread Richard Diaz

I set this up like a year ago and now that I look at
it, it seems wacked. Looks like I had to add all the
servlet jar files?

Suggestions most welcome.

I'm using Apache, Tomcat 4, Sun sdk 131

Rich

SET
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
Files\Apache Tomcat
4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
Tomcat 4.0\common\lib\servlet.jar;C:\Program
Files\Apache Tomcat
4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
Tomcat 4.0\lib\naming-factory.jar;C:\Program
Files\Apache Tomcat
4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
Tomcat 4.0\jasper\jasper-compiler.jar;

=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: please fix my stupid classpath

2002-05-29 Thread Richard Diaz

I am using the command line (javac) to compile my java
files. And now I am trying to .jar them...

Rich

--- Martin van den Bemt [EMAIL PROTECTED] wrote:
 Hi,
 
 Tomcat handles your classpath, you don't have to set
 that.. I even think
 you get some classloader issues with that.. 
 If you need it for compiling, you should have a look
 at ant, who can
 arrange these things a lot easier..
 
 Mvgr,
 Martin
 
 On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
  I set this up like a year ago and now that I look
 at
  it, it seems wacked. Looks like I had to add all
 the
  servlet jar files?
  
  Suggestions most welcome.
  
  I'm using Apache, Tomcat 4, Sun sdk 131
  
  Rich
  
  SET
 

CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
  Files\Apache Tomcat
  4.0\webapps\twc\Web-inf\lib;C:\Program
 Files\Apache
  Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
  Tomcat 4.0\common\lib\servlet.jar;C:\Program
  Files\Apache Tomcat
  4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
  Tomcat 4.0\lib\naming-factory.jar;C:\Program
  Files\Apache Tomcat
  4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
  Tomcat 4.0\jasper\jasper-compiler.jar;
  
  =
  
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: please fix my stupid classpath

2002-05-29 Thread Richard Diaz

All I am trying to do is eliminate the Servlet
Exception wrong name error I am getting ever since I
moved my class files into a jar file. I added my jar
file as the last entry of my classpath below...

ANT = 'Another Neat Tool' THAT I GOTA LEARN?!?!?!
AAGGGHHH =(

Rich

SET
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
Files\Apache Tomcat
4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
Tomcat 4.0\common\lib\servlet.jar;C:\Program
Files\Apache Tomcat
4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
Tomcat 4.0\lib\naming-factory.jar;C:\Program
Files\Apache Tomcat
4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
Tomcat 4.0\jasper\jasper-compiler.jar;C:\Program
Files\Apache Tomcat 
4.0\webapps\twc\Web-inf\lib\thewebclassroom\base.jar



=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




loading application scope variables ?

2002-05-24 Thread Richard Diaz

where/how do I run my servlet that loads my
application scope variableson the start up of Tomcat ?

thanks =)
Rich

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Session variables RAM vs. DB Queries

2002-05-23 Thread Richard Diaz

I'm currently doing DB Queries and holding the users
information in session objects... trying to keep the
query load on the database down to a minimum by using
these session objects (MVC2).

My question is where do I draw the line as far as how
much RAM each user gets? When do I free up those
session objects and querying the database for
information again?

Are there any guides on this?

thanks in advance,
Rich

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




submissions: form or HREF?

2002-05-23 Thread Richard Diaz

is it better to use HREF or form when calling
controller servlets?

i like the fact you can't 'open in a new window' the
form option.

any advice/articles on this?

thanks again!!

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




how do i use session.setAttribute for arrays?

2002-05-20 Thread Richard Diaz

Here's what I'm doing:

int iMaxBookmarks = 25;
Bookmark[] MyBookmarkArray = new
Bookmark[iMaxBookmarks];

while (rs.next())
  {
  MyBookmarkArray[i] = new Bookmark();
  session.setAttribute(MyBookmarkArray[ + i + ],
MyBookmarkArray);
// set all data for MyBookmarkArray[i] (this works
fine)...

}

// Close the ResultSet
System.out.println(bookmarks done);
rs.close(); 

in my JSP page I get a NULL POINTER EXCEPTION... I can
see all my non array session variables just not this
array one... a scope problem?

Also, anyone know of a good JSP Forum?

thanks in advance.
Rich

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




cannot resolve symbol, session vars lost etc =p

2002-05-17 Thread Richard Diaz

I'm using tomcat 4.0 on apache
1.3.20 on windows 98.

Well i was losing all my session variables and FINALLY
found this article:

http://www.jguru.com/faq/view.jsp?EID=816599

so i changed all my response.sendRedirect() methods to


response.encodeRedirectURL() 

but those failed to actually move forward so i changed
them all to:

application.getRequestDispatcher(/to/your/URL).forward(request,response);

and now I get a compile error cannot resolve symbol.
symbol: application

do i have to include the 'application' somehow?

I'm going INSANE HERE! Please help!

thanks =p

Rich

=
*
 (\_/) 
 (O.O) 
((___)) 
--

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Can't convert * to Object. Object page = this;

2001-09-20 Thread Richard Diaz

(can someone please email me if this message makes it
to the list serv? I don't think my 1st message made
it. thanks)

Hi I keep getting this error in TOMCAT.

I have been developing with no problems, I installed
Cold Fusion server and now none of my java classes
compile in TOMCAT. I removed Cold Fusion and
deinstalled all my sun JRE  SDK and reintalled them.
I ran norton to remove any bad registry entries too.

Yes I did search the TOMCAT archives for this error
quite a bit. I've been trying so many dam things, yet
I get the SAME result. This error =P

many, many thanks in advance,
Rich

Win 98se
Sun 1.3.1.
Tomcat 3.2

Error: 500
Location: /twc/loginView.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
class for
JSPC:\tomcat\work\localhost_8080%2Ftwc\_0002floginView_0002ejsploginView_jsp_0.java:37:
Incompatible type for declaration. Can't convert
_0002floginView_0002ejsploginView_jsp_0 to Object.
Object page = this;
   ^
1 error

at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)




__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



Some help please!

2001-03-09 Thread Richard Diaz

can someone please email me the "new user email" we
got when we signed up to this LIST serv PLEASE?

I got laid off yesterday and need to move this to
another email address.

thx,
Rich

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




FTP command

2001-02-01 Thread Richard Diaz

Hi does anyone know of a good resource for LINUX commands, specifically FTP.

thanks,
Rich



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




OT: unix/linux command site - ftp

2001-01-29 Thread Richard Diaz

I'm trying to figure out how to ftp files to my Linux server via the ftp
command.

what i need to ftp is the sun java2 sdk and (duh) the tomcat binaries.

anyone have a site or the command i need to enter to get that thing on my
server?

thanks!
Rich


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




sample JSP sites?

2001-01-23 Thread Richard Diaz

Hi I'm just learning JSP.

I just installed linux 6.0 and I am going to put tomcat 3.2 on it.

If anyone can post url to yout jsp sites links and a brief (or not)
description on the site design it would be much appreciated!

Rich


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Which JVM for Tomcat?

2001-01-23 Thread Richard Diaz

I'm getting ready to install a JVM.

Is it OK not to use Java2 with Tomcat (since that requires a 5+ meg download
by the user) ?

I am also Planning on using Expresso Tools.

Which JVM works best with Apache  Tomcat? Sun? IBM?

thanks
Rich


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]