passing ogjects from jsp to jsp

2001-06-21 Thread kaab kaoutar

Hi!
I have a jsp files that generates a linked list by the bean that are
instantiated there!
iwant the next page to get that linked list and display some of the liked
list then call itself with an argument so as to display the rest and so on !
The main problem is how the second page can use the result es linked list of
the first page
Thanks
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: passing ogjects from jsp to jsp

2001-06-21 Thread Atilio Ranzuglia

Kaab:
For what you are trying to do you should take a look
at the 'scope' attribute on the 'jsp:useBean' tag.

There are two that could be good to you: request and
session. If the page you are calling is the same in
which you currently are 'request' will be good to you.
If it is another page you should try 'session'.

Another approach is the HttpSession object available
to you implicitly. This object (one per user per
session) has the following methods:
- putValue(String, Object), getValue(String),
removeValue(String) (Servlets API 2.1)
- setAttribute(String, Object), getAttribute(String),
removeAttribute(String)

This method works on a hastable owned by the
HttpSession Object. They return objects instancies so
you should downcast to the necessary one.

Remember that if the link list you are generating is a
LinkedList it is an object and you can use the before
mentioned.

Hope this helps
Atilio


--- kaab kaoutar [EMAIL PROTECTED] wrote:
 Hi!
 I have a jsp files that generates a linked list by
 the bean that are
 instantiated there!
 iwant the next page to get that linked list and
 display some of the liked
 list then call itself with an argument so as to
 display the rest and so on !
 The main problem is how the second page can use the
 result es linked list of
 the first page
 Thanks

_
 Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.


===
 To unsubscribe: mailto [EMAIL PROTECTED] with
 body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body:
 set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: passing ogjects from jsp to jsp

2001-06-21 Thread Kevin Duffey

Very simple. Store the result set in a bean with session scope. Then, all
pages accessed by the same one user during the same one session (most
servlet engines default 30 minutes of inactivity for a session before
expiring it) can access this list. If your not familiar with scope, its
handy to know. There are basically 3 scopes with beans. Request, Session and
Application. Request means the object exist for the duration of the request
on the server (including forwarding to a JSP page..so you can have a servlet
put an object in the request passed in, then forward to a JSP page that also
has access to this same object. The engine then discards that object once
the response goes back to the client). Session exists the entire time the
user is using your site while their session is still kept alive. All pages
they access can access this one object (or any object stored in the
session). Application scope is dangerous but sometimes useful. Its a GLOBAL
scope that all sessions can use. Therefore its not thread-safe. It is useful
for lookup objects, or routines that are used by many pages for many
sessions at the same time. But remember, do not put any methods in an object
that can be written to at the same time without first syncronizing the
method(s).

So to store something for the next page to access, you do something like:

request.getSession(true).setAttribute(AttributeName, object);

On the following page, you will have to typecast the object to the right
type:

MyObject myObject = (MyObject)
request.getSession(true).getAttribute(AttributeName);

If this hasn't helped, elaborate a bit more and I'll see what I can do.


 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of kaab kaoutar
 Sent: Thursday, June 21, 2001 3:48 AM
 To: [EMAIL PROTECTED]
 Subject: passing ogjects from jsp to jsp


 Hi!
 I have a jsp files that generates a linked list by the bean that are
 instantiated there!
 iwant the next page to get that linked list and display some of the liked
 list then call itself with an argument so as to display the rest
 and so on !
 The main problem is how the second page can use the result es
 linked list of
 the first page
 Thanks
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set
 JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: passing ogjects from jsp to jsp

2001-06-21 Thread kaab kaoutar

Thanks a lot!
But wht i'm doing so far is to get a request tehn instantiate a bean(bean1)
get the result, store it in another (bean2), then i display some of the
content of bean2(linked list) and add a next button so as to display the
rest of the bean2 in another page(the same that is reloaded)! what u said is
ok but what if the user enters another query will the content change of
bean2?
By the way i know some of sessions but i used to work with php!


From: Kevin Duffey [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: passing ogjects from jsp to jsp
Date: Thu, 21 Jun 2001 07:50:36 -0700

Very simple. Store the result set in a bean with session scope. Then, all
pages accessed by the same one user during the same one session (most
servlet engines default 30 minutes of inactivity for a session before
expiring it) can access this list. If your not familiar with scope, its
handy to know. There are basically 3 scopes with beans. Request, Session
and
Application. Request means the object exist for the duration of the request
on the server (including forwarding to a JSP page..so you can have a
servlet
put an object in the request passed in, then forward to a JSP page that
also
has access to this same object. The engine then discards that object once
the response goes back to the client). Session exists the entire time the
user is using your site while their session is still kept alive. All pages
they access can access this one object (or any object stored in the
session). Application scope is dangerous but sometimes useful. Its a GLOBAL
scope that all sessions can use. Therefore its not thread-safe. It is
useful
for lookup objects, or routines that are used by many pages for many
sessions at the same time. But remember, do not put any methods in an
object
that can be written to at the same time without first syncronizing the
method(s).

So to store something for the next page to access, you do something like:

request.getSession(true).setAttribute(AttributeName, object);

On the following page, you will have to typecast the object to the right
type:

MyObject myObject = (MyObject)
request.getSession(true).getAttribute(AttributeName);

If this hasn't helped, elaborate a bit more and I'll see what I can do.


  -Original Message-
  From: A mailing list about Java Server Pages specification and reference
  [mailto:[EMAIL PROTECTED]]On Behalf Of kaab kaoutar
  Sent: Thursday, June 21, 2001 3:48 AM
  To: [EMAIL PROTECTED]
  Subject: passing ogjects from jsp to jsp
 
 
  Hi!
  I have a jsp files that generates a linked list by the bean that are
  instantiated there!
  iwant the next page to get that linked list and display some of the
liked
  list then call itself with an argument so as to display the rest
  and so on !
  The main problem is how the second page can use the result es
  linked list of
  the first page
  Thanks
 
_
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
 
  ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set
  JSP-INTEREST DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: passing ogjects from jsp to jsp

2001-06-21 Thread Duffey, Kevin

So let me see if I got this right. You have Bean 1 on page 1. You get some
values from a form on that page and store it in bean 1 (perhaps by
auto-population of the bean using the jsp:setProperty property=*/?). In
your servlet (or whatever) you use those values to do a query. The result of
the query is stored in a Vector (or something) in Bean2. You then forward
(or redirect) to Page 2. In that page, you use the Bean 2 and want to list
only a subset of the results. You include a NEXT button. Bean 2 should be
session scope for this to work, where as Bean 1 can be request scope since
you are only submitting the query the user types in one time..and there is
no need to store what they typed (unless..ofcourse this is a search engine
or something and you want to preserve what they typed in to show it to them
again). So on page 2, you have say, 10 of 100 results displayed. Now, they
hit the next button. Obviously you will need a postion indicate in bean 2
as well, so when they hit NEXT, it increments the position indicator by what
ever factor (10 in this case). So now, your page 2 is displayed again. This
time it starts from the next sub-set and displays the next say, 10 items.
So, what I am not sure I understand is why your having any problems. If bean
2 carries the results (lets again assume a Vector of some objects), and your
using Bean 2 as SESSION scope on page 2, there should be no reason why you
can't list the sub-set items.

jsp:useBean id=Bean2 scope=session class=MyBeanPackage.MyBeanClass/

  table
tr
  tdResult/td
/tr
%
  List l = Bean2.getResults();
  int len = l.size();
  int start = Bean2.getPosition();
  for( int cntr = start; cntr  start + 10; cntr++ )
  {
Object o = l.get(cntr);
%
  tr
td%= o.getResultName() %/td
  /tr
%
  }
%

form name=ResultForm method=post action=SomeActionToTake
  input type=image src=/images/prev.gif border=0
onClick=this.form.action=SomeActionToTake?prev=true
  input type=image src=/images/next.gif border=0
onClick=this.form.action=SomeActionToTake?next=true
/form



In your servlet you might have something like:

if( request.getParameter(prev) != null )
{
  // prev was selected..remove 10 from bean start position, then forward to
that JSP page again.
  Bean2 b = (Bean2) request.getSession(true).getAttribute(Bean2);
  b.setPosition( b.getPosition() - 10 );
}
else
{
  // next was selected..add 10 from bean start position, then forward to JSP
page again.
  Bean2 b = (Bean2) request.getSession(true).getAttribute(Bean2);
  b.setPosition( b.getPosition() + 10 );
}



Now mind you, I am not doing any checking here. Also, the two sumbit buttons
are images right now, and they use a javascript onclick handler to set the
action. You can just as easily use two different forms, or use HRefs to
submit to the server which way to navigate. If the user can enter any data,
check boxes, etc, you will have to use a form to submit what they select or
type in, otherwise, href should be fine if you only providing some text info
via the search results, and a next/prev button. Also, in my JSP example, I
am using Object as the result. Replace this with your object being stored in
the List, and replace List with HashMap or whatever mechanism you are using
to store the list of items. Generally a ResultSet is a Vector.

Hope this helps..if not, feel free to ask more.


-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 8:02 AM
To: [EMAIL PROTECTED]
Subject: Re: passing ogjects from jsp to jsp


Thanks a lot!
But wht i'm doing so far is to get a request tehn instantiate a bean(bean1)
get the result, store it in another (bean2), then i display some of the
content of bean2(linked list) and add a next button so as to display the
rest of the bean2 in another page(the same that is reloaded)! what u said is
ok but what if the user enters another query will the content change of
bean2?
By the way i know some of sessions but i used to work with php!


From: Kevin Duffey [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: passing ogjects from jsp to jsp
Date: Thu, 21 Jun 2001 07:50:36 -0700

Very simple. Store the result set in a bean with session scope. Then, all
pages accessed by the same one user during the same one session (most
servlet engines default 30 minutes of inactivity for a session before
expiring it) can access this list. If your not familiar with scope, its
handy to know. There are basically 3 scopes with beans. Request, Session
and
Application. Request means the object exist for the duration of the request
on the server (including forwarding to a JSP page..so you can have a
servlet
put an object in the request passed in, then forward to a JSP page that
also
has access to this same object. The engine then discards that object once
the response goes back to the client). Session exists the entire time the
user is using your site

Re: passing ogjects from jsp to jsp

2001-06-21 Thread kaab kaoutar

First of all thansk alot!
well i'm working on a search engine !
my first page query.jsp includes the nuoput an a buton that leads to the
second page result.jsp!
the result contains two beans
jsp:useBean id=process scope=session
class=MyBeanPackage.processesMyBeanClass
jsp:setProperty property=*/
and
jsp:useBean id=hit scope=session class=MyBeanPackage.hits/
then
i use hit=process.getresult();
and display 10 of the results of hit;
then i have a button next for displaying the next 10 and so on
but in that same page i also have an input for another query !
the button leads to that same page with a parameter of the position from
which to stat displaying the result of hit !
when i click on it , it displays the right next results but it takes time by
reinstatiating the process bean , i 'lm sure of it cause when i dsiconnect
from internet, that process bean uses , i have an error thrown by process
bean !
Thanks again


From: Duffey, Kevin [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: passing ogjects from jsp to jsp
Date: Thu, 21 Jun 2001 10:33:49 -0700

So let me see if I got this right. You have Bean 1 on page 1. You get some
values from a form on that page and store it in bean 1 (perhaps by
auto-population of the bean using the jsp:setProperty property=*/?). In
your servlet (or whatever) you use those values to do a query. The result
of
the query is stored in a Vector (or something) in Bean2. You then forward
(or redirect) to Page 2. In that page, you use the Bean 2 and want to list
only a subset of the results. You include a NEXT button. Bean 2 should be
session scope for this to work, where as Bean 1 can be request scope since
you are only submitting the query the user types in one time..and there is
no need to store what they typed (unless..ofcourse this is a search engine
or something and you want to preserve what they typed in to show it to them
again). So on page 2, you have say, 10 of 100 results displayed. Now, they
hit the next button. Obviously you will need a postion indicate in bean 2
as well, so when they hit NEXT, it increments the position indicator by
what
ever factor (10 in this case). So now, your page 2 is displayed again. This
time it starts from the next sub-set and displays the next say, 10 items.
So, what I am not sure I understand is why your having any problems. If
bean
2 carries the results (lets again assume a Vector of some objects), and
your
using Bean 2 as SESSION scope on page 2, there should be no reason why you
can't list the sub-set items.

jsp:useBean id=Bean2 scope=session class=MyBeanPackage.MyBeanClass/

   table
 tr
   tdResult/td
 /tr
%
   List l = Bean2.getResults();
   int len = l.size();
   int start = Bean2.getPosition();
   for( int cntr = start; cntr  start + 10; cntr++ )
   {
 Object o = l.get(cntr);
%
   tr
 td%= o.getResultName() %/td
   /tr
%
   }
%

form name=ResultForm method=post action=SomeActionToTake
   input type=image src=/images/prev.gif border=0
onClick=this.form.action=SomeActionToTake?prev=true
   input type=image src=/images/next.gif border=0
onClick=this.form.action=SomeActionToTake?next=true
/form



In your servlet you might have something like:

if( request.getParameter(prev) != null )
{
   // prev was selected..remove 10 from bean start position, then forward
to
that JSP page again.
   Bean2 b = (Bean2) request.getSession(true).getAttribute(Bean2);
   b.setPosition( b.getPosition() - 10 );
}
else
{
   // next was selected..add 10 from bean start position, then forward to
JSP
page again.
   Bean2 b = (Bean2) request.getSession(true).getAttribute(Bean2);
   b.setPosition( b.getPosition() + 10 );
}



Now mind you, I am not doing any checking here. Also, the two sumbit
buttons
are images right now, and they use a javascript onclick handler to set the
action. You can just as easily use two different forms, or use HRefs to
submit to the server which way to navigate. If the user can enter any data,
check boxes, etc, you will have to use a form to submit what they select or
type in, otherwise, href should be fine if you only providing some text
info
via the search results, and a next/prev button. Also, in my JSP example, I
am using Object as the result. Replace this with your object being stored
in
the List, and replace List with HashMap or whatever mechanism you are using
to store the list of items. Generally a ResultSet is a Vector.

Hope this helps..if not, feel free to ask more.


-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 8:02 AM
To: [EMAIL PROTECTED]
Subject: Re: passing ogjects from jsp to jsp


Thanks a lot!
But wht i'm doing so far is to get a request tehn instantiate a bean(bean1)
get the result, store it in another (bean2), then i display some of the
content of bean2(linked list) and add a next button so as to display the
rest of the bean2

Re: passing ogjects from jsp to jsp

2001-06-21 Thread Kevin Duffey

Just a note: putValue and getValue calls are deprecated in Servlet 2.2. Use
setAttribute and getAttribute instead, unless your app needs to run in a
Servlet 2.1 or earlier container.


 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Atilio Ranzuglia
 Sent: Thursday, June 21, 2001 5:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: passing ogjects from jsp to jsp


 Kaab:
 For what you are trying to do you should take a look
 at the 'scope' attribute on the 'jsp:useBean' tag.

 There are two that could be good to you: request and
 session. If the page you are calling is the same in
 which you currently are 'request' will be good to you.
 If it is another page you should try 'session'.

 Another approach is the HttpSession object available
 to you implicitly. This object (one per user per
 session) has the following methods:
 - putValue(String, Object), getValue(String),
 removeValue(String) (Servlets API 2.1)
 - setAttribute(String, Object), getAttribute(String),
 removeAttribute(String)

 This method works on a hastable owned by the
 HttpSession Object. They return objects instancies so
 you should downcast to the necessary one.

 Remember that if the link list you are generating is a
 LinkedList it is an object and you can use the before
 mentioned.

 Hope this helps
 Atilio


 --- kaab kaoutar [EMAIL PROTECTED] wrote:
  Hi!
  I have a jsp files that generates a linked list by
  the bean that are
  instantiated there!
  iwant the next page to get that linked list and
  display some of the liked
  list then call itself with an argument so as to
  display the rest and so on !
  The main problem is how the second page can use the
  result es linked list of
  the first page
  Thanks
 
 _
  Get Your Private, Free E-mail from MSN Hotmail at
  http://www.hotmail.com.
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with
  body: signoff JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body:
  set JSP-INTEREST DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


 =

 -
 Ingeniero Atilio Ranzuglia Buteler
 [EMAIL PROTECTED]
 -


 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set
 JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



passing parameters from jsp to jsp

2001-06-20 Thread Eric Cho

Hi again,
Thanks for the help from before...now i got another problem.

How would i go about passing a specific parameter to another jsp page
depending on the link that i click.

so it would be like

a href= abc.jspimage1/a
a href= abc.jspimage2/a
a href= abc.jspimage3/a


and i want to pass
 jsp:param name=param value=1 /
 jsp:param name=param value=2 /
 jsp:param name=param value=3 /

respectively.

how is this done?  or am i approaching it from a bad angle?


thanks,
Eric
___
eSafe Protect Gateway has scanned this mail for viruses, vandals and
suspicious attachments.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: passing parameters from jsp to jsp

2001-06-20 Thread King Maurice

From what I am seeing your trying to do a forward,
no need to to create a link, links are jump pages to another html page

if doing that you need to do 2 things:
1. setup a session that hold a value and the receiving page do something
with the session.
2. create some param in the url  a href=/page.html?param=1param=2

if doing a forward tag
point to the page, and pass the value in the param name
keep in mind forward tags are done on the server side.


- Original Message -
From: Eric Cho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:54 PM
Subject: passing parameters from jsp to jsp


 Hi again,
 Thanks for the help from before...now i got another problem.

 How would i go about passing a specific parameter to another jsp page
 depending on the link that i click.

 so it would be like

 a href= abc.jspimage1/a
 a href= abc.jspimage2/a
 a href= abc.jspimage3/a


 and i want to pass
  jsp:param name=param value=1 /
  jsp:param name=param value=2 /
  jsp:param name=param value=3 /

 respectively.

 how is this done?  or am i approaching it from a bad angle?


 thanks,
 Eric
 ___
 eSafe Protect Gateway has scanned this mail for viruses, vandals and
 suspicious attachments.


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: passing parameters from jsp to jsp

2001-06-20 Thread Rodrigo Lopes

Do this:

 a href= abc.jsp?param=1image1/a
 a href= abc.jsp?param=2image2/a
 a href= abc.jsp?param=3image3/a


 thanks,
 Eric
 ___
 eSafe Protect Gateway has scanned this mail for viruses, vandals and
 suspicious attachments.

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


T+

--
  Rodrigo de Oliveira LopesIf we knew what it was
  Mestrando em Ciencia da Computacaowe were doing,
Universidade Federal do Ceara   it would not be called research,
 [EMAIL PROTECTED] would it?
 [EMAIL PROTECTED] Albert Einstein

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Size limit of a jsp in JSP 0.92

2000-09-20 Thread Pankaj Chaubey

Hi,

We have developed an application using jsp 0.92/servlets on NES 4.0. The JSPs don't 
compile when they exceed some size limit.

Can anyone provide any inputs on the same as we have a deadline to meet.

Kindly respond at the earliest. Looking forward for a reply.

Regards,
Pankaj

_
Get Your Free Email At, http://www.rediffmail.com

For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Size limit of a jsp in JSP 0.92

2000-09-20 Thread Jennifer Buffington

We are using jsp 0.92 and have many of what I deem large pages (~60 pages
printed).  We have run into problems when our pages contain many lines of
JavaScript at the top of the html.  By rearranging the code and putting the
Java scriptlets above the JavaScript, the pages were able to compile.  (some
kind of buffer problem maybe)  This might be your problem if you're using a
lot of JavaScript too.

-Original Message-
From: Pankaj Chaubey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 20, 2000 8:50 AM
To: [EMAIL PROTECTED]
Subject: Size limit of a jsp in JSP 0.92


Hi,

We have developed an application using jsp 0.92/servlets on NES 4.0. The
JSPs don't compile when they exceed some size limit.

Can anyone provide any inputs on the same as we have a deadline to meet.

Kindly respond at the earliest. Looking forward for a reply.

Regards,
Pankaj

_
Get Your Free Email At, http://www.rediffmail.com

For fabulous shopping deals visit:
http://www.rediff.co.in/shopping/index.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Size limit of a jsp in JSP 0.92

2000-09-20 Thread Greg Ames

There was a bug in JRun that was fixed with a service release.  Check out
Allaire's support pages if you are using JRun.

Greg

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Pankaj Chaubey
Sent: Wednesday, September 20, 2000 8:50 AM
To: [EMAIL PROTECTED]
Subject: Size limit of a jsp in JSP 0.92


Hi,

We have developed an application using jsp 0.92/servlets on NES 4.0. The
JSPs don't compile when they exceed some size limit.

Can anyone provide any inputs on the same as we have a deadline to meet.

Kindly respond at the earliest. Looking forward for a reply.

Regards,
Pankaj

_
Get Your Free Email At, http://www.rediffmail.com

For fabulous shopping deals visit:
http://www.rediff.co.in/shopping/index.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Size limit of a jsp in JSP 0.92

2000-09-20 Thread Greg Ames

This is what fixed the problem for us.

http://www.allaire.com/Handlers/index.cfm?ID=15511Method=Full

Greg

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP - servlet - JSP request scope object passing

2000-07-09 Thread Doug Turner

Could you use the HTML base tag here?  You could have it conditionally
generated to control its value in development, production, etc.

- Original Message -
From: David Wall [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 9:19 PM
Subject: JSP - servlet - JSP request scope object passing


 This is no doubt a common question, but if I have a JSP page, that does =
 a FORM POST to a servlet, and that servlet's job is to do some parameter =
 checking, invoke the correct operations on beans/EJBs, then redirect the =
 user to the correct JSP page to display the results.

 If there's an error, the servlet sends the request back to the calling =
 page with an error set.  If all's okay, it generally takes the person to =
 another JSP, though it may come back to the original JSP with a =
 "success" message.

 This JSP - servlet - JSP must a fairly common use.

 I'm having trouble getting this to work using "request" scoped beans.  =
 When the first JSP is invoked, the request-scoped beans are created =
 until the page is returned.  Then when the user clicks on the submit =
 button, the POST goes to my servlet.  My servlet can create the beans =
 (such as an error response bean, and a page-specific bean that stores =
 the user's input so they don't have to re-enter anything if there's an =
 error), but if it puts them in the request object, a sendRedirect() will =
 cause the beans to be lost (new request).  If I use the =
 requestDispatcher.forward() call, the beans are remembered, but the base =
 URL remains the servlet's URL, not the JSP page that is displayed.

 Aside from using session beans (which easily breaks down if the user is =
 actively moving about your site in two or more windows), how are people =
 handling this?

 Thanks,
 David


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP - servlet - JSP request scope object passing

2000-07-09 Thread Shiraz Wasim Zaidi

 This is no doubt a common question, but if I have a JSP page, that does =
 a FORM POST to a servlet, and that servlet's job is to do some parameter =
 checking, invoke the correct operations on beans/EJBs, then redirect the =
 user to the correct JSP page to display the results.

Well why do you want to redirect the user to the correct JSP why not forward
to it.
Redirecting is an expensive method as the response has to be sent to the
client followed
by the request back to the server.

If I use the requestDispatcher.forward() call, the beans are remembered,
but the base
 URL remains the servlet's URL, not the JSP page that is displayed.
It looks like either you are getting the requestDispatcher from
ServletRequest or
you are passing the JSP path in such a way that it is relative to the
current request.
In both cases the path would be relative to the current request.

I think if you get the requestDispatcher  object from ServletContext and
pass the path
relative to root context i.e / then you should be fine i.e your path would
be relative to
your root context not servlet.

For e.g.

Say your servlet URL is
http://www.myserver.com/servlet/myservlet

now from ur servlet you can forward using the following path
getRequestDispatcher("/jsp/myjsp.jsp").forward(req, res);

/ above makes the path relative to ur root context not servlet request.


-Shiraz

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



JSP - servlet - JSP request scope object passing

2000-07-06 Thread David Wall

This is no doubt a common question, but if I have a JSP page, that does =
a FORM POST to a servlet, and that servlet's job is to do some parameter =
checking, invoke the correct operations on beans/EJBs, then redirect the =
user to the correct JSP page to display the results.

If there's an error, the servlet sends the request back to the calling =
page with an error set.  If all's okay, it generally takes the person to =
another JSP, though it may come back to the original JSP with a =
"success" message.

This JSP - servlet - JSP must a fairly common use.

I'm having trouble getting this to work using "request" scoped beans.  =
When the first JSP is invoked, the request-scoped beans are created =
until the page is returned.  Then when the user clicks on the submit =
button, the POST goes to my servlet.  My servlet can create the beans =
(such as an error response bean, and a page-specific bean that stores =
the user's input so they don't have to re-enter anything if there's an =
error), but if it puts them in the request object, a sendRedirect() will =
cause the beans to be lost (new request).  If I use the =
requestDispatcher.forward() call, the beans are remembered, but the base =
URL remains the servlet's URL, not the JSP page that is displayed.

Aside from using session beans (which easily breaks down if the user is =
actively moving about your site in two or more windows), how are people =
handling this?

Thanks,
David

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Passing objects from JSP to JSP

2000-05-03 Thread [Vinod Govindan]

You could also do it by using setParameter() instead of setAttribute! I
think! aNYWAY GIVE IT A SHOT!



Naveen Malik
nzmalik@ALTUSWORTo: [EMAIL PROTECTED]
KS.COM  cc:
Sent by: A   Subject: Re: Passing objects from JSP 
to JSP
mailing list
about Java Server
Pages
specification and
reference
JSP-INTEREST@JAV
A.SUN.COM


05/03/00 12:08 AM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference





I'm new to JSP but I think one solution would be to get away from the
get/set Attribute and use a bean.  Either that or use forms to submit the
data with post or get.

Naveen

- Original Message -
From: "Nathan Jantz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 02, 2000 1:59 PM
Subject: Passing objects from JSP to JSP


 Hi all,
 I'm interested in being able to pass objects from jsp to jsp using the
 setAttribute() and getAttribute() methods without the use of a controller
 servlet or bean but have been unsuccessful.  Here is some code that I
have
 tried:

 callingPage.jsp:

 %
 String[] arrayOfString = new String[10];
 request.setAttribute("myStringArray", arrayOfString);
 %

 html
   body
 A HREF="receivingPage.jsp"Receiving Page/A
   /body
 /html

 --
 receivingPage.jsp:

 % String[] arrayOfString =
(String[])request.getAttribute("myStringArray");
 %
 html
   body
 % if (arrayOfString == null) { %
 Null array!
 % } else { %
 Array Size: %= arrayOfString.length %
 % } %
   /body
 /html

 But the arrayOfString object returns null in the receiving page.  Why is
 this?  Of course in this example the string array is empty but it should
at
 least return me a length of 10, correct?  I've searched the archive to
avail
 other than reference to session.putValue() and session.getValue() methods
 which is not what i want.

 Any help on this would be great.  Thank you!

 Nathan


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Passing objects from JSP to JSP

2000-05-02 Thread Nathan Jantz

Hi all,
I'm interested in being able to pass objects from jsp to jsp using the
setAttribute() and getAttribute() methods without the use of a controller
servlet or bean but have been unsuccessful.  Here is some code that I have
tried:

callingPage.jsp:

%
String[] arrayOfString = new String[10];
request.setAttribute("myStringArray", arrayOfString);
%

html
  body
A HREF="receivingPage.jsp"Receiving Page/A
  /body
/html

--
receivingPage.jsp:

% String[] arrayOfString = (String[])request.getAttribute("myStringArray");
%
html
  body
% if (arrayOfString == null) { %
Null array!
% } else { %
Array Size: %= arrayOfString.length %
% } %
  /body
/html

But the arrayOfString object returns null in the receiving page.  Why is
this?  Of course in this example the string array is empty but it should at
least return me a length of 10, correct?  I've searched the archive to avail
other than reference to session.putValue() and session.getValue() methods
which is not what i want.

Any help on this would be great.  Thank you!

Nathan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Passing objects from JSP to JSP

2000-05-02 Thread Naveen Malik

I'm new to JSP but I think one solution would be to get away from the
get/set Attribute and use a bean.  Either that or use forms to submit the
data with post or get.

Naveen

- Original Message -
From: "Nathan Jantz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 02, 2000 1:59 PM
Subject: Passing objects from JSP to JSP


 Hi all,
 I'm interested in being able to pass objects from jsp to jsp using the
 setAttribute() and getAttribute() methods without the use of a controller
 servlet or bean but have been unsuccessful.  Here is some code that I have
 tried:

 callingPage.jsp:

 %
 String[] arrayOfString = new String[10];
 request.setAttribute("myStringArray", arrayOfString);
 %

 html
   body
 A HREF="receivingPage.jsp"Receiving Page/A
   /body
 /html

 --
 receivingPage.jsp:

 % String[] arrayOfString =
(String[])request.getAttribute("myStringArray");
 %
 html
   body
 % if (arrayOfString == null) { %
 Null array!
 % } else { %
 Array Size: %= arrayOfString.length %
 % } %
   /body
 /html

 But the arrayOfString object returns null in the receiving page.  Why is
 this?  Of course in this example the string array is empty but it should
at
 least return me a length of 10, correct?  I've searched the archive to
avail
 other than reference to session.putValue() and session.getValue() methods
 which is not what i want.

 Any help on this would be great.  Thank you!

 Nathan


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Passing objects from JSP to JSP

2000-05-02 Thread Craig R. McClanahan

Nathan Jantz wrote:

 Hi all,
 I'm interested in being able to pass objects from jsp to jsp using the
 setAttribute() and getAttribute() methods without the use of a controller
 servlet or bean but have been unsuccessful.  Here is some code that I have
 tried:


Your code is not going to work, because when the user presses the hyperlink to go
to receivingPage.jsp, that comes in on a separate request.  Using request
attributes is useful only when you use jsp:include or jsp:forward (or the
servlet equivalents with a RequestDispatcher) while handling a single request.

Try using session scoped attributes instead of request scoped attributes in order
to maintain the values from one request to the next.

Check the servlet and JSP specifications (available at
http://java.sun.com/products/servlet and http://java.sun.com/products/jsp) for
more information on the scopes and how they work.

Craig McClanahan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Passing objects from JSP to JSP

2000-05-02 Thread Kevin Duffey

I believe the problem is, you are NOT submitting a form to those links.
Infact, you need to forward to the JSP page for the request to get passed to
it. I am not perfectly sure on this, but I am pretty sure that by using the
a href=.. tag to link to another page, the request object in the current
JSP page is NOT passed on to the JSP page of a link. You would have to
submit a form to that JSP page in order for the getAttribute() call on that
page to see the attribute of the previous page. Again..not completely sure,
but pretty sure that is how it works.

In order for this to work, you would probably have to do something like:

a href="receivingPage.jsp?myStringArray=%= arrayOfString %"Click
here/a

Then again..I don't even know if that would work. ;)



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Nathan Jantz
Sent: Tuesday, May 02, 2000 11:00 AM
To: [EMAIL PROTECTED]
Subject: Passing objects from JSP to JSP


Hi all,
I'm interested in being able to pass objects from jsp to jsp using the
setAttribute() and getAttribute() methods without the use of a controller
servlet or bean but have been unsuccessful.  Here is some code that I have
tried:

callingPage.jsp:

%
String[] arrayOfString = new String[10];
request.setAttribute("myStringArray", arrayOfString);
%

html
  body
A HREF="receivingPage.jsp"Receiving Page/A
  /body
/html

--
receivingPage.jsp:

% String[] arrayOfString = (String[])request.getAttribute("myStringArray");
%
html
  body
% if (arrayOfString == null) { %
Null array!
% } else { %
Array Size: %= arrayOfString.length %
% } %
  /body
/html

But the arrayOfString object returns null in the receiving page.  Why is
this?  Of course in this example the string array is empty but it should at
least return me a length of 10, correct?  I've searched the archive to avail
other than reference to session.putValue() and session.getValue() methods
which is not what i want.

Any help on this would be great.  Thank you!

Nathan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-19 Thread Petr Jiricka

Yes, there are users who want a single tab on the taskbar and there are
users who want multiple tabs. Maybe we should make this optional.

What we usually do is that we use a virtual desktop manager, which brings
Unix-like virtual desktops to Windows. Then one desktop is the "Forte"
desktop and other desktops are used for other apps.
Try Desks At Will - http://www.idyle.com/daw/index.html


Petr

 -Original Message-
 From: Kevin Duffey [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 9:24 PM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP-INTEREST: JSP IDE


 Besides that, at least on the Windows version, each window
 displayed puts a
 frigging tab on the start menu. If I am running a couple of
 other apps, it
 gets extremely confusing to see so many tabs on the start
 menu. I don't know
 why so many people disliked MDI, but I like it. At least I
 know all the
 windows belong to one specific application and only one tab
 exists. I wish
 there was an option that would not place all those tabs on
 the start menu
 bar.

 A hint for those of you using Forte..get JDK 1.3!!! It is
 MUCH faster with
 SWING being that it has client-side optimizations in the JIT
 for the JDK! To
 my surprise, the javac compiler in JDK1.3 is almost as fast
 as jikes now
 too! So it speeds up greatly the compile time. Way to go Sun!


 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ian Graham
 Sent: Tuesday, April 18, 2000 9:22 AM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP-INTEREST: JSP IDE
 
 
 The problem I have found with Forte is that you need more than
 128mb ram. It
 uses around 60mb ram when it is doing nothing...
 
 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Petr Jiricka
 Sent: 18 April 2000 05:26
 To: [EMAIL PROTECTED]
 Subject: Re: JSP-INTEREST: JSP IDE
 
 
 More specifically:
 
 - Forte 1.0 is available now and supports classic
 edit/compile/run cycle.
 Compile allows you to jump on lines with errors. Debug is
 not supported,
 line mapping between JSP and servlet is not supported. The
 supported version
 of JSP is 1.0, which may be seen as a limitation.
 
 - Forte 1.1 will be avaliable in the summer (beta on
 JavaOne) and will
 support JSP 1.1, mapping between JSPs and servlets, and the
 commercial
 Internet Edition will support JSP debugging.
 
 Petr
 
  -Original Message-
  From: Robo Zilka [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 18, 2000 11:12 AM
  To: [EMAIL PROTECTED]
  Subject: Re: JSP-INTEREST: JSP IDE
 
 
  I'm using Forte, it's quite good, but some fetures does not
  work for jsp.
 
  RoBo Zilka
 
/EuroWeb a.s.
   /www.euroweb.sk
  /mailto:[EMAIL PROTECTED]
 
  -Original Message-
  From: Robert Allen [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 18, 2000 3:46 AM
  To: [EMAIL PROTECTED]
  Subject: JSP-INTEREST: JSP IDE
 
 
  Anyone out there recommend a genuine IDE for JSP? I don't mean like
  HomeSite which I already use. I need more than keyword coloring, I
  want the edit/compile/run-in-debug loop. While developing beans in
  Cafe, J++, or JBuilder all provide symbolic debugging,
  breakpoints, etc.
 
  The JSP translation to a Java source, the compile and then
  class loading
  seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
  IBM Websphere, JRun?) implemented this classic development loop?
 
  At least gimme an environment where the line number reported by the
  Java compile can be easily traced back to the JSP source
  line! Yeah, yeah,
  I know: keep the Java in the JSP simple and you don't have
  this problem.
  Right!
 
  Thanks in advance,
 Bob Allen
 
  ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
  JSP-INTEREST".
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
  ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body:
  "signoff JSP-INTEREST".
  Some relevant FAQs on JSP/Servlets can be found at:
 
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
 =
 ==
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:
 
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.

jsp to jsp

2000-04-19 Thread Hui Du

Hi, there:

I have problems when I forward userid from aaa.jsp to bbb.jsp.
aaa.jsp
HTML
BODY
%
String userid = "100099";%
jsp:forward page="tmp.jsp?userid="userid
/BODY/HTML

bbb.jsp
html
body
%
out.println("userid in bbb.jsp:"+userid);
%
/body
/html

Please help

adam


__
Get Your Private, Free Email at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp to jsp

2000-04-19 Thread Mike McKechnie

Try...

% String userid = "100099";%
jsp:forward page="tmp.jsp?userid=%=userid%"/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp to jsp

2000-04-19 Thread Visakh Menon

I think you don't need to give the userid with the URL. you can pass it as a
parameter when you call aaa.jsp. its the request to the aaa.jsp that's going
to be forwarded to bbb.jsp.
ie, in aaa.jsp :
jsp:forward page="bbb.jsp"/

and you invoke aaa.jsp as http://servername/jsp/aaa.jsp?userid=100099

As per JSP Specs, you can give parameter values using jsp:param also.

jsp:forward page="bbb.jsp"
jsp:param name="userid" value="adam"/
/jsp:forward

(Refer JSP 1.1 Specs under 2.13.5)

but I couldn't access these params in bbb.jsp. Its always returning null.
Anybody's got any clue ?

Vis..


I have problems when I forward userid from aaa.jsp to bbb.jsp.
aaa.jsp
HTML
BODY
%
String userid = "100099";%
jsp:forward page="tmp.jsp?userid="userid
/BODY/HTML

bbb.jsp
html
body
%
out.println("userid in bbb.jsp:"+userid);
%
/body
/html

Please help

adam
__
Get Your Private, Free Email at http://www.hotmail.com

=======
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

__
Get Your Private, Free Email at http://www.hotmail.com

=======
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp to jsp

2000-04-19 Thread Krishna, Suresh

hi,
It might be problem with HTML field name and bean's name( her userid )
synchronization .
suresh

 -Original Message-
 From: Visakh Menon [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, April 19, 2000 11:56 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: jsp to jsp

 I think you don't need to give the userid with the URL. you can pass it as
 a
 parameter when you call aaa.jsp. its the request to the aaa.jsp that's
 going
 to be forwarded to bbb.jsp.
 ie, in aaa.jsp :
 jsp:forward page="bbb.jsp"/

 and you invoke aaa.jsp as http://servername/jsp/aaa.jsp?userid=100099

 As per JSP Specs, you can give parameter values using jsp:param also.

 jsp:forward page="bbb.jsp"
 jsp:param name="userid" value="adam"/
 /jsp:forward

 (Refer JSP 1.1 Specs under 2.13.5)

 but I couldn't access these params in bbb.jsp. Its always returning null.
 Anybody's got any clue ?

 Vis..

 
 I have problems when I forward userid from aaa.jsp to bbb.jsp.
 aaa.jsp
 HTML
 BODY
 %
 String userid = "100099";%
 jsp:forward page="tmp.jsp?userid="userid
 /BODY/HTML
 
 bbb.jsp
 html
 body
 %
 out.println("userid in bbb.jsp:"+userid);
 %
 /body
 /html
 
 Please help
 
 adam
 __
 Get Your Private, Free Email at http://www.hotmail.com
 
 =====
 ==
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:
 
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 __
 Get Your Private, Free Email at http://www.hotmail.com

 ======
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

=======
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Robo Zilka

I'm using Forte, it's quite good, but some fetures does not work for jsp.

RoBo Zilka
   
  /EuroWeb a.s.
 /www.euroweb.sk
/mailto:[EMAIL PROTECTED]

-Original Message-
From: Robert Allen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:46 AM
To: [EMAIL PROTECTED]
Subject: JSP-INTEREST: JSP IDE


Anyone out there recommend a genuine IDE for JSP? I don't mean like
HomeSite which I already use. I need more than keyword coloring, I
want the edit/compile/run-in-debug loop. While developing beans in
Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc.

The JSP translation to a Java source, the compile and then class loading
seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
IBM Websphere, JRun?) implemented this classic development loop?

At least gimme an environment where the line number reported by the
Java compile can be easily traced back to the JSP source line! Yeah, yeah,
I know: keep the Java in the JSP simple and you don't have this problem.
Right!

Thanks in advance,
   Bob Allen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Ritesh Sinha

Can you tell me , where will i find forte? What are the licensing terms
etc?
Thanks in Advance,
Ritesh SInha
[EMAIL PROTECTED]





Robo Zilka [EMAIL PROTECTED] on 04/18/2000 02:41:47 PM

Please respond to A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Sinha Ritesh-SWD-ITIL-UB/Itilmail)

Subject:  Re: JSP-INTEREST: JSP IDE




I'm using Forte, it's quite good, but some fetures does not work for jsp.

RoBo Zilka
   
  /EuroWeb a.s.
 /www.euroweb.sk
/mailto:[EMAIL PROTECTED]

-Original Message-
From: Robert Allen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:46 AM
To: [EMAIL PROTECTED]
Subject: JSP-INTEREST: JSP IDE


Anyone out there recommend a genuine IDE for JSP? I don't mean like
HomeSite which I already use. I need more than keyword coloring, I
want the edit/compile/run-in-debug loop. While developing beans in
Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc.

The JSP translation to a Java source, the compile and then class loading
seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
IBM Websphere, JRun?) implemented this classic development loop?

At least gimme an environment where the line number reported by the
Java compile can be easily traced back to the JSP source line! Yeah, yeah,
I know: keep the Java in the JSP simple and you don't have this problem.
Right!

Thanks in advance,
   Bob Allen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Petr Jiricka

More specifically:

- Forte 1.0 is available now and supports classic edit/compile/run cycle.
Compile allows you to jump on lines with errors. Debug is not supported,
line mapping between JSP and servlet is not supported. The supported version
of JSP is 1.0, which may be seen as a limitation.

- Forte 1.1 will be avaliable in the summer (beta on JavaOne) and will
support JSP 1.1, mapping between JSPs and servlets, and the commercial
Internet Edition will support JSP debugging.

Petr

 -Original Message-
 From: Robo Zilka [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 11:12 AM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP-INTEREST: JSP IDE


 I'm using Forte, it's quite good, but some fetures does not
 work for jsp.

 RoBo Zilka

   /EuroWeb a.s.
  /www.euroweb.sk
 /mailto:[EMAIL PROTECTED]

 -Original Message-
 From: Robert Allen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 3:46 AM
 To: [EMAIL PROTECTED]
 Subject: JSP-INTEREST: JSP IDE


 Anyone out there recommend a genuine IDE for JSP? I don't mean like
 HomeSite which I already use. I need more than keyword coloring, I
 want the edit/compile/run-in-debug loop. While developing beans in
 Cafe, J++, or JBuilder all provide symbolic debugging,
 breakpoints, etc.

 The JSP translation to a Java source, the compile and then
 class loading
 seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
 IBM Websphere, JRun?) implemented this classic development loop?

 At least gimme an environment where the line number reported by the
 Java compile can be easily traced back to the JSP source
 line! Yeah, yeah,
 I know: keep the Java in the JSP simple and you don't have
 this problem.
 Right!

 Thanks in advance,
Bob Allen

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body:
 "signoff JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Petr Jiricka

http://www.sun.com/forte/ffj/ce/

The community edition is free of charge.

Petr

 -Original Message-
 From: Ritesh Sinha [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP-INTEREST: JSP IDE


 Can you tell me , where will i find forte? What are the
 licensing terms
 etc?
 Thanks in Advance,
 Ritesh SInha
 [EMAIL PROTECTED]





 Robo Zilka [EMAIL PROTECTED] on 04/18/2000 02:41:47 PM

 Please respond to A mailing list about Java Server Pages
 specification and
   reference [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:(bcc: Sinha Ritesh-SWD-ITIL-UB/Itilmail)

 Subject:  Re: JSP-INTEREST: JSP IDE




 I'm using Forte, it's quite good, but some fetures does not
 work for jsp.

 RoBo Zilka

   /EuroWeb a.s.
  /www.euroweb.sk
 /mailto:[EMAIL PROTECTED]

 -Original Message-
 From: Robert Allen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 3:46 AM
 To: [EMAIL PROTECTED]
 Subject: JSP-INTEREST: JSP IDE


 Anyone out there recommend a genuine IDE for JSP? I don't mean like
 HomeSite which I already use. I need more than keyword coloring, I
 want the edit/compile/run-in-debug loop. While developing beans in
 Cafe, J++, or JBuilder all provide symbolic debugging,
 breakpoints, etc.

 The JSP translation to a Java source, the compile and then
 class loading
 seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
 IBM Websphere, JRun?) implemented this classic development loop?

 At least gimme an environment where the line number reported by the
 Java compile can be easily traced back to the JSP source
 line! Yeah, yeah,
 I know: keep the Java in the JSP simple and you don't have
 this problem.
 Right!

 Thanks in advance,
Bob Allen

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Jerry Denman

I recommend Visual Age for Java 3.02.

It has a JSP Execution monitor.  In addition when it compiles the pages it
puts them in a project where you can see the generated code, set
breakpoints, and about anything else you want. If there is a compile time
error in your JSP it will show up in the IDE as well as in the debugger and
JSP execution montior.  The Professional Edition is available from IBM
Visual Age Developer Domain for around $120 USD.

The downside is the JDK is 1.1.7 and JSP 1.0.  Unlike other products you
cannot replace the JDK in Visual Age.  The limitation is due to their
incremental compiler which allows you to make changes to running programs.

They also provide a distributed debugger so you can remotely debug an
application running on another machine.

Hope this help -

TTFN

Jerry M Denman
MIC, Inc.

-Original Message-
From: Robert Allen [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 17, 2000 9:46 PM
To: [EMAIL PROTECTED]
Subject: JSP-INTEREST: JSP IDE


Anyone out there recommend a genuine IDE for JSP? I don't mean like
HomeSite which I already use. I need more than keyword coloring, I
want the edit/compile/run-in-debug loop. While developing beans in
Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc.

The JSP translation to a Java source, the compile and then class loading
seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
IBM Websphere, JRun?) implemented this classic development loop?

At least gimme an environment where the line number reported by the
Java compile can be easily traced back to the JSP source line! Yeah, yeah,
I know: keep the Java in the JSP simple and you don't have this problem.
Right!

Thanks in advance,
   Bob Allen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Dave Reid

Watch for Ultradev from Macromedia sometime before June.
It will have full visual creation of JSP pages with little
or no coding required. If you want a preview download of
a copy of the present Drumbeat 2000 JSP (which supports only
IBM Db2 and Websphere). Ultradev is an upgrade to Drumbeat 2000
JSP which will have broad support for many platforms according
to what I have been able to gather. Allaire (maker of JRun)
is also promising a Viusal JSP editor but not till next year
I think. Also Webgain through it's purchase of Symantec's Visual
Cafe division is promising a Visual JSP editor for the enterprise
edition 4 to be released in the near future, but is going to be
very costly (probably $3000 or more).

Dave Reid
Network Systems Specialist
Operations IntraNet
" Your Web Solutions Partner "

"I'm not really a WebMaster, but I play one on WebTV"

http://webaka7.tsl.telus.com/opinet



-Original Message-
From: Robo Zilka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:12
To: [EMAIL PROTECTED]
Subject: Re: JSP-INTEREST: JSP IDE


I'm using Forte, it's quite good, but some fetures does not work for jsp.

RoBo Zilka
   
  /EuroWeb a.s.
 /www.euroweb.sk
/mailto:[EMAIL PROTECTED]

-Original Message-
From: Robert Allen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:46 AM
To: [EMAIL PROTECTED]
Subject: JSP-INTEREST: JSP IDE


Anyone out there recommend a genuine IDE for JSP? I don't mean like
HomeSite which I already use. I need more than keyword coloring, I
want the edit/compile/run-in-debug loop. While developing beans in
Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc.

The JSP translation to a Java source, the compile and then class loading
seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
IBM Websphere, JRun?) implemented this classic development loop?

At least gimme an environment where the line number reported by the
Java compile can be easily traced back to the JSP source line! Yeah, yeah,
I know: keep the Java in the JSP simple and you don't have this problem.
Right!

Thanks in advance,
   Bob Allen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Kevin Duffey

Besides that, at least on the Windows version, each window displayed puts a
frigging tab on the start menu. If I am running a couple of other apps, it
gets extremely confusing to see so many tabs on the start menu. I don't know
why so many people disliked MDI, but I like it. At least I know all the
windows belong to one specific application and only one tab exists. I wish
there was an option that would not place all those tabs on the start menu
bar.

A hint for those of you using Forte..get JDK 1.3!!! It is MUCH faster with
SWING being that it has client-side optimizations in the JIT for the JDK! To
my surprise, the javac compiler in JDK1.3 is almost as fast as jikes now
too! So it speeds up greatly the compile time. Way to go Sun!


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Ian Graham
Sent: Tuesday, April 18, 2000 9:22 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP-INTEREST: JSP IDE


The problem I have found with Forte is that you need more than
128mb ram. It
uses around 60mb ram when it is doing nothing...

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Petr Jiricka
Sent: 18 April 2000 05:26
To: [EMAIL PROTECTED]
Subject: Re: JSP-INTEREST: JSP IDE


More specifically:

- Forte 1.0 is available now and supports classic edit/compile/run cycle.
Compile allows you to jump on lines with errors. Debug is not supported,
line mapping between JSP and servlet is not supported. The
supported version
of JSP is 1.0, which may be seen as a limitation.

- Forte 1.1 will be avaliable in the summer (beta on JavaOne) and will
support JSP 1.1, mapping between JSPs and servlets, and the commercial
Internet Edition will support JSP debugging.

Petr

 -Original Message-
 From: Robo Zilka [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 11:12 AM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP-INTEREST: JSP IDE


 I'm using Forte, it's quite good, but some fetures does not
 work for jsp.

 RoBo Zilka

   /EuroWeb a.s.
  /www.euroweb.sk
 /mailto:[EMAIL PROTECTED]

 -Original Message-
 From: Robert Allen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 18, 2000 3:46 AM
 To: [EMAIL PROTECTED]
 Subject: JSP-INTEREST: JSP IDE


 Anyone out there recommend a genuine IDE for JSP? I don't mean like
 HomeSite which I already use. I need more than keyword coloring, I
 want the edit/compile/run-in-debug loop. While developing beans in
 Cafe, J++, or JBuilder all provide symbolic debugging,
 breakpoints, etc.

 The JSP translation to a Java source, the compile and then
 class loading
 seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
 IBM Websphere, JRun?) implemented this classic development loop?

 At least gimme an environment where the line number reported by the
 Java compile can be easily traced back to the JSP source
 line! Yeah, yeah,
 I know: keep the Java in the JSP simple and you don't have
 this problem.
 Right!

 Thanks in advance,
Bob Allen

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body:
 "signoff JSP-INTEREST".
 Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets c

Re: JSP-INTEREST: JSP IDE

2000-04-18 Thread Kevin Duffey

I think the main thing to keep in mind is separation of work. I want a JSP
editor that I can have our web guy use to develop pages graphically, but
still be able to use JavaBeans dynamically...without having to know how to
use them and scriplets. Two things that I think a JSP/HTML editor should
have. First drag/drop of JavaBeans with a property editor that allows you to
drag/drop each property into place on the page where you want it displayed.
Second, some sort of conditional capability..if need be using taglibs.
Actually, a third would be full taglib JSP1.1 support, and by doing so, a
developer could write a taglib that does the looping and the only thing the
web editor should have to do is place the tag on the page, maybe as a GUI
element or something that can be added to the IDE. Thus, this would allow
server-side programmers to write taglibs, javabeans, etc and add them in to
the IDE for the web page builder to use without having to know any Java.

Is THIS coming out anytime soon?


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Dave Reid
Sent: Tuesday, April 18, 2000 7:26 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP-INTEREST: JSP IDE


Watch for Ultradev from Macromedia sometime before June.
It will have full visual creation of JSP pages with little
or no coding required. If you want a preview download of
a copy of the present Drumbeat 2000 JSP (which supports only
IBM Db2 and Websphere). Ultradev is an upgrade to Drumbeat 2000
JSP which will have broad support for many platforms according
to what I have been able to gather. Allaire (maker of JRun)
is also promising a Viusal JSP editor but not till next year
I think. Also Webgain through it's purchase of Symantec's Visual
Cafe division is promising a Visual JSP editor for the enterprise
edition 4 to be released in the near future, but is going to be
very costly (probably $3000 or more).

Dave Reid
Network Systems Specialist
Operations IntraNet
" Your Web Solutions Partner "

"I'm not really a WebMaster, but I play one on WebTV"

http://webaka7.tsl.telus.com/opinet



-Original Message-
From: Robo Zilka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:12
To: [EMAIL PROTECTED]
Subject: Re: JSP-INTEREST: JSP IDE


I'm using Forte, it's quite good, but some fetures does not work for jsp.

RoBo Zilka
   
  /EuroWeb a.s.
 /www.euroweb.sk
/mailto:[EMAIL PROTECTED]

-Original Message-
From: Robert Allen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:46 AM
To: [EMAIL PROTECTED]
Subject: JSP-INTEREST: JSP IDE


Anyone out there recommend a genuine IDE for JSP? I don't mean like
HomeSite which I already use. I need more than keyword coloring, I
want the edit/compile/run-in-debug loop. While developing beans in
Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc.

The JSP translation to a Java source, the compile and then class loading
seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
IBM Websphere, JRun?) implemented this classic development loop?

At least gimme an environment where the line number reported by the
Java compile can be easily traced back to the JSP source line! Yeah, yeah,
I know: keep the Java in the JSP simple and you don't have this problem.
Right!

Thanks in advance,
   Bob Allen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.j

JSP-INTEREST: JSP IDE

2000-04-17 Thread Robert Allen

Anyone out there recommend a genuine IDE for JSP? I don't mean like
HomeSite which I already use. I need more than keyword coloring, I
want the edit/compile/run-in-debug loop. While developing beans in
Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc.

The JSP translation to a Java source, the compile and then class loading
seem to make this sort of loop impossible. Has anyone (Oracle 8i?,
IBM Websphere, JRun?) implemented this classic development loop?

At least gimme an environment where the line number reported by the
Java compile can be easily traced back to the JSP source line! Yeah, yeah,
I know: keep the Java in the JSP simple and you don't have this problem.
Right!

Thanks in advance,
   Bob Allen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Localization of jsp files: JSP 1.1 spec vs. APM

2000-02-25 Thread Arun Thomas

Julian,

I can answer one of the questions you pose
The language and country values are, as noted in the APM, supposed to follow
the resource bundle naming pattern.  Resource
bundles use the 2 character ISO language and country codes.

I am curious myself to find out how to indicate to the servlet
engine that a JSP page is localized, and also how to provide the Locale for
which I desire the relevant JSP page.

As for your observation that the JSP 1.1 spec from Sun doesn't
appear to mention this  It is rather perplexing isn't it.  I too spent a
while trying to find the reference in the Spec - it
doesn't appear to be there.

-AMT

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Julian Harris
 Sent: Wednesday, February 23, 2000 8:44 PM
 To: [EMAIL PROTECTED]
 Subject: Localization of jsp files: JSP 1.1 spec vs. APM


 Hi all,

 the APM, p. 105 says:

 "The JavaServer Pages 1.1 specification allows you to deliver
 locale-specific files by following the naming convention used by resource
 bundles. This naming convention is the base file name followed by and
 underscore and the language variant. A country and a variante can also be
 used:

 jsp + _ + language
 jsp + _ + language + _ + country

 etc
 "

 So this is a nice idea, but it doesn't say:

 a) what the language and country values should be: codes or what?
 b) how to set the locale and country set by these things

 and

 c) the JSP 1.1. spec I have from Sun's site makes no mention at all of
 internationalization (dated November 30, 1999).

 Any clues?

 thanks in advance,

 Julian.

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Localization of jsp files: JSP 1.1 spec vs. APM

2000-02-24 Thread Julian Harris

Hi all,

the APM, p. 105 says:

"The JavaServer Pages 1.1 specification allows you to deliver
locale-specific files by following the naming convention used by resource
bundles. This naming convention is the base file name followed by and
underscore and the language variant. A country and a variante can also be
used:

jsp + _ + language
jsp + _ + language + _ + country

etc
"

So this is a nice idea, but it doesn't say:

a) what the language and country values should be: codes or what?
b) how to set the locale and country set by these things

and

c) the JSP 1.1. spec I have from Sun's site makes no mention at all of
internationalization (dated November 30, 1999).

Any clues?

thanks in advance,

Julian.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Localization of jsp files: JSP 1.1 spec vs. APM

2000-02-24 Thread Ray Cromwell


 Hi all,

 the APM, p. 105 says:

 "The JavaServer Pages 1.1 specification allows you to deliver
 locale-specific files by following the naming convention used by resource
 bundles. This naming convention is the base file name followed by and
 underscore and the language variant. A country and a variante can also be
 used:

 jsp + _ + language
 jsp + _ + language + _ + country

 etc
 "

 So this is a nice idea, but it doesn't say:

 a) what the language and country values should be: codes or what?
 b) how to set the locale and country set by these things


   Look up the documentation for the Locale and ResourceBundle objects,
they probably mean writing files like


foo.jsp_en_US
foo.jsp_ja
foo.jsp_de

etc


However, using multiple JSP's to do internationalization is probably
not the best method, since you end up with duplicated code. If you
fix a bug or change logic in one JSP, you have to alter it in all
the localized versions.

If your JSP has lots of scriptlets in it, you're better off pulling
text from ResourceBundles.



Mozilla has the most superior technique which relies on XML
entities. I use this method myself in XML/XSL. What you do
is declare your locale specific strings in an external
DTD, and then reference them in your JSP/XML via entity
references.


For instance,

h1 section.heading; /h1

p section.paragraph;

table
trthcolumn.firstname;/ththcolumn.lastname/th/tr
...
/table



-Ray

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: JSP - servlet - JSP

1999-11-15 Thread Kirkdorffer, Daniel

Actually what that meant was simply that my JSP/HTML page generally contains
a call to a Servlet, either via a FORM or perhaps using Javascript (location
= "/servlet/com.myorg.myapp.myServlet").  After that the Servlet does all
the hard work of retrieving data and preparing the data beans, before
placing them in the correct context (I usually store to the response object)
and then calling the appropriate JSP page.

jsp:forward?  What the heck is that?  I'm using 0.91. ;^)

Dan

 --
 From: Scott Ferguson[SMTP:[EMAIL PROTECTED]]
 Sent: Monday, November 15, 1999 12:23 PM
 To:   Kirkdorffer, Daniel
 Cc:   [EMAIL PROTECTED]
 Subject:  JSP - servlet - JSP

 "Kirkdorffer, Daniel" wrote:

 
  So an example of the above might be a query that returns 800 rows.  Here
 is
  basically what I do (note: I do this stuff in a servlet, because that's
 the
  way I architect my JSP systems - JSPServletJSP):

 That's an intereting architecture.  I understand the Servlet - JSP, but
 what is
 the first JSP doing?  Is it just a jsp:forward to the appropriate servlet
 so your
 URLs are more sensible?

 Scott Ferguson
 Caucho Technology



===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



JSP - servlet - JSP

1999-11-15 Thread Scott Ferguson

"Kirkdorffer, Daniel" wrote:


 So an example of the above might be a query that returns 800 rows.  Here is
 basically what I do (note: I do this stuff in a servlet, because that's the
 way I architect my JSP systems - JSPServletJSP):

That's an intereting architecture.  I understand the Servlet - JSP, but what is
the first JSP doing?  Is it just a jsp:forward to the appropriate servlet so your
URLs are more sensible?

Scott Ferguson
Caucho Technology

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Passing Data from JSP to JSP

1999-06-16 Thread Anonymous



How do I pass Data from JSP to JSP

for e.g , I have to pass an array of strings to another JSP 
from current JSP 

I would appreciate if someone could help with dummy code 
!!!

Umesh.


Re: Passing Data from JSP to JSP

1999-06-16 Thread Anonymous




Arie, 
I have tried this code but it doesn't seem to 
work. I have a servlet which sets data by way of a session but when I try and 
access this data in the JSP page, it's not there. The servlet code is definitely 
setting the data because I can see it in the servletrunner console by way of a 
system out statement. Basically it seems that the line 

 
HttpSession session = req.getSession(true);
is not actually getting the data. Is there something I have to 
import on the JSP page to get this to work?

James

-Original Message-From: 
Arie Fishler [EMAIL PROTECTED]To: [EMAIL PROTECTED] [EMAIL PROTECTED]Date: 
16 June 1999 13:03Subject: Re: Passing Data from JSP to 
JSP
Umesh,

Here is what you need to do.

In 
the originating JSP:

%
String[] arrayOfString = new String[10];
HttpSession session = 
req.getSession(true);
session.putValue(stringArray, arrayOfString);
%

In 
the receiving JSP:
%

HttpSession session = 
req.getSession(true);
String[] arrayOfString = 
(String[])session.getValue(stringArray);
%




-Original Message-From: A mailing list about 
Java Server Pages specification and reference 
[mailto:[EMAIL PROTECTED]]On Behalf Of Umesh 
MehendaleSent: Wednesday, June 16, 1999 11:53 
AMTo: [EMAIL PROTECTED]Subject: Passing 
Data from JSP to JSP
How do I pass Data from JSP to JSP

for e.g , I have to pass an array of strings to 
another JSP from current JSP 

I would appreciate if someone could help with dummy 
code !!!

Umesh.


Newbie to JSP - Does JSP work with Frames

1999-01-17 Thread Barry Scott

It's hard to see what you are trying to acheive without seeing the specifics
of your project, but a brief explanation may help.

Scenario:
I want to produce a frames like site in which I have an advertising banner
across the top of the page, a nav bar on the left and a content pane on the
right. Naturally, the contents of the content pane will change, but the
other two will remain fairly static.

To achieve this with JSP I would put all of the HTMLBODY,etc. tags in
the page which contains the contents.

-
HTML
BODY
TABLE WIDTH=100%
  TR
TD COLSPAN=2
  !- This is our banner 'frame' --
   jsp:include myBannerPage
/TD
  /TR
  TR
TD
  !- This is our navigation 'frame' --
   jsp:include myNavPage
/TD
TD
  !- This is our contents 'frame' --
   ...contents...
/TD
  /TR
/TABLE
/BODY
/HTML
-

The banner and nav pages shouldn't contain any of the header tags
(HEADBODY,etc.).

-
!-  My Nav Page --
TABLE
  TR
TD
  A HREF="link1.htm"link1/A
/TD
  /TR
  TR
TD
  A HREF="link2.htm"link2/A
/TD
  /TR
/TABLE
-

In this scenario that's fine because I don't wan't users to see the nav or
banner pages outside the context of the 'frames'.
If I did want them to be viewed stand-alone, I would write a proxy page.-

-
HTML
BODY
   jsp:include myBannerPage
/BODY
/HTML
-

I hope this helps

Barry Scott
IJava UK

- Original Message -
From: Arun Thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 18, 1999 9:50 PM
Subject: Re: Newbie to JSP - Does JSP work with Frames


 Can each of the included pages be full HTML pages, with separate Body tags
 in each included page?
 I noticed that when I a JSP include directive is done, all the text in the
 included file is inserted.
 Is this valid HTML?

 -AMT


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Newbie to JSP - Does JSP work with Frames

1999-01-16 Thread David Chisholm

The short answer is yes you can.  Why it's not working for you is most
likely a problem in your environment or one of the individual JSP pages.
Here are some tests to narrow down the problem:  Can you load the frameset
jsp page without referencing menu.jsp?  Can you load menu.jsp without using
the frameset jsp page?  Once you have these two files working independently,
they should work together in the frameset.  I use JSPs and framesets
together quite frequently and haven't had any problems with them.

The only comment I have about JSP documentation is that it relies heavily on
the individual being already familiar with HTML and HTTP.  It's difficult to
work with JSP unless you have a good understanding of the foundation that
it's built upon.
David


 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Seth Reagan
 Sent: Thursday, November 18, 1999 11:26 AM
 To: [EMAIL PROTECTED]
 Subject: Newbie to JSP


Ok, I haven't dealt with web page authoring since the days when NSCA
 Mosaic was "the" browser. Yes, I've tinkered around with it since but
 haven't gotten in too deep. I liked the idea behind microsoft's asp but
 didn't like that it was proprietary. Now, I'm getting into the JSP mindset
 and have been browsing the documentation and was surprised at the lack of
 instruction on dealing with a basic subject, frames. (BTW, this
 is the first
 time I've done anything past basic HTML. However, I am a progammer, just
 from a different background)

 Can you, for instance, do this within a JSP file?
 frameset code... then...
FRAME NAME="Menu" SRC="menu.jsp" TITLE="Menu"

Is there a better way? Is this the only way? I'm interested in the
 multiple ways that developers deal with frames because my test page isn't
 working and I feel that this is the cause.
(It's not loading/parsing the jsp pages in the frames. Is this a
 limitation?)

 __
 Get Your Private, Free Email at http://www.hotmail.com

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Newbie to JSP - Does JSP work with Frames

1999-01-16 Thread Arun Thomas

Can each of the included pages be full HTML pages, with separate Body tags
in each included page?
I noticed that when I a JSP include directive is done, all the text in the
included file is inserted.
Is this valid HTML?

-AMT

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Barry Scott
 Sent: Thursday, November 18, 1999 3:31 PM
 To: [EMAIL PROTECTED]
 Subject: Fw: Re: Newbie to JSP - Does JSP work with Frames


 Why use frames?

 You can use multiple documents in one page using JSP's 'include' tag.

 So you can design one page with a title banner, another with the
 navigation
 and a third with content and obligatory tags and use the include
 tags in the
 main (last) document to mould them together before deploying to
 the browser.

 If there is a specific reason for you to use frames, please correct me.

 Barry Scott
 IJava UK


 - Original Message -
 From: David Chisholm [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 18, 1999 7:40 PM
 Subject: Re: Newbie to JSP - Does JSP work with Frames


  The short answer is yes you can.  Why it's not working for you is most
  likely a problem in your environment or one of the individual JSP pages.
  Here are some tests to narrow down the problem:  Can you load
 the frameset
  jsp page without referencing menu.jsp?  Can you load menu.jsp without
 using
  the frameset jsp page?  Once you have these two files working
 independently,
  they should work together in the frameset.  I use JSPs and framesets
  together quite frequently and haven't had any problems with them.
 
  The only comment I have about JSP documentation is that it
 relies heavily
 on
  the individual being already familiar with HTML and HTTP.  It's
 difficult
 to
  work with JSP unless you have a good understanding of the
 foundation that
  it's built upon.
  David
 
 
   -Original Message-
   From: A mailing list about Java Server Pages specification
 and reference
   [mailto:[EMAIL PROTECTED]]On Behalf Of Seth Reagan
   Sent: Thursday, November 18, 1999 11:26 AM
   To: [EMAIL PROTECTED]
   Subject: Newbie to JSP
  
  
  Ok, I haven't dealt with web page authoring since the days
 when NSCA
   Mosaic was "the" browser. Yes, I've tinkered around with it since but
   haven't gotten in too deep. I liked the idea behind
 microsoft's asp but
   didn't like that it was proprietary. Now, I'm getting into the JSP
 mindset
   and have been browsing the documentation and was surprised at the lack
 of
   instruction on dealing with a basic subject, frames. (BTW, this
   is the first
   time I've done anything past basic HTML. However, I am a
 progammer, just
   from a different background)
  
   Can you, for instance, do this within a JSP file?
   frameset code... then...
  FRAME NAME="Menu" SRC="menu.jsp" TITLE="Menu"
  
  Is there a better way? Is this the only way? I'm interested in the
   multiple ways that developers deal with frames because my test page
 isn't
   working and I feel that this is the cause.
  (It's not loading/parsing the jsp pages in the frames. Is this a
   limitation?)
  
   __
   Get Your Private, Free Email at http://www.hotmail.com
  
   ==
   =
   To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
   JSP-INTEREST".
   FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
  
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
  FAQs on JSP can be found at:
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
 

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html


=======
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html