Ty van den Akker wrote:
> The servlet I post to becooomes the new URL in my browser. This is
> logical, but it also means that the URL for my MainMenu is
> /servlet/Login because the Login servlet handles the login. Aside from
> URL redirection which provides a slow solution, or having my MainMe
Daniel Rönnqvist wrote:
> [snip]
> I'm also wondering if anyone have tips on good reading regarding this
> subject (thread safty, static classes and what really happens beneath the
> surface in a JSP app) ?
>
If you are casually interested in what happens "beneath the surface" in a JSP app,
mos
Mike Engelhart wrote:
> Craig R. McClanahan wrote:
>
> > This is not the way I would have approached it. Instead, I would've hidden
> > any
> > waiting inside the getConnection() method itself. In fact, the connection
> > pool I
> > use (home grown) has two versions of the getConnection call --
Hi all,
Thanks a million!!!..
Cheers,
Dheepa
"Craig R. McClanahan" wrote:
> AndySoft wrote:
>
> > > Instead, I prefer to segregate all my business logic (but zero
> > > HTML generation)
> > > into servlets, which can use EJBs when appropriate or other
> > > techniques (such as
> > > direct JD
Hi,
I beg pardon i do know it,
but if it is not understood that the answer you have given is not taken care
of,
but i was not refrering to a package structure,
(for hypothetication)
i dont have a package structure, i want to keep it in the main beans
directory
it does not work, i have to use a
Hi,
I would just like to state the specs of JSP
The getProperty & setproperty can take only strings, they have to be sent
strings, and should return strings
this is http specisific
Hope this clears up a bit,
Regards Amit
> -Original Message-
> From: Kevin McEntee [SMTP:[EMAIL PROTECT
Sorry to disagree with your here Amit, but I don't like seeing
mis-information spread on Java and JSP by it's own users. That's M$'s
job
This is NOT an "inherent problem with jswdk", this is the design of the
Java package system. I suggest you and the original poster need to
brush up on you
Hi...
I've just installed JSWDK, hoping to run some of their sample JSP &
Servlet.
I have no problem executing the sample servlets but encounter error in
JSP. Below is the error msg:
/
ERROR: 500
java/util/ArrayList
/
Can someone please advise me? Thanks.
Regards
Ailing.
brian wrote:
> Hi Jeff,
>
> Craig is probably a better person to answer this, but in case it doesn't attract
> his attention (the volume on this list has drastically increased of late), the way
> I think it works is like this:
>
That's what I get for answering lots of questions :-). I saw it, a
Mike Engelhart wrote:
> I have an application that uses a shared resource that is for all intensive
> purposes similar to a database connection. The only difference is that
> unlike a standard database connection I can't just create more connections
> in my connection pool like I can with my db
Jeff,
I'm not sure what the equivalent is in JSP, but ASP (gasp!) has a Request
object, which contains a collection called ServerVariables. When wanting to
determine the NT account of the user accessing a web site, you can use
Request.ServerVariables("LOGON_USER") which will return the mapped us
No - WAS 2.0 supports 0.91, not 0.92. Big difference.
Dan
> --
> From: Peter Bryant[SMTP:[EMAIL PROTECTED]]
> Reply To: Peter Bryant
> Sent: Wednesday, November 24, 1999 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: IBM WebSphere Application Server 2.0 and 3.
Daniel:
There is lots of discussion on this in the book "The Developers Guide to the
Java Web Server", by Woods, Pekowsky and Snee. It is NOT just for users of
the JWS, and discusses all sorts of Java efficiency issues on the server
side. It include information os setting up/running load tests as
AndySoft wrote:
> > Beans are very useful for lots of things, but managing flow of
> > control is not
> > one of them. The requirement to direct the flow of control, based on user
> > input, is very common.
>
> yep, i do stuff like this
>
> > Consider the scenario I described earlier (enter filt
Craig R. McClanahan wrote:
> This is not the way I would have approached it. Instead, I would've hidden
> any
> waiting inside the getConnection() method itself. In fact, the connection
> pool I
> use (home grown) has two versions of the getConnection call -- one that keeps
> waiting "forever"
James,
4 / 8 *is* 0, at least the integer part is 0, with a remainder (modulus) of
.5. Some compilers try to compensate for humans using incorrect data types
in arithmetic calculations by rounding based on the 0.0 to 0.4 round down,
0.5 to 0.9 round up method. Some don't; they assume we code wh
For question number 2, no --- WebSphere 2.0 supports JSP 0.92. As I
understand it, though, WebSphere 3.0 does support JSP 1.0.
Peter Bryant
Lance Jin wrote:
>
>Hi, all,
>
>I'm downloaded IBM Websphere application server 2.0 and 3.0 trial version
>I run into two problems,
>
>1. When I setup 3.0
>> Has anyone implemented a method to access the username of the person logged
>> into an NT system through a JSP in any way? Specifically the username of
>> the person accessing the jsp through a browser.
>
This is not possible with Servlets/JSP/JavaScript or Applets
This would be a major securi
Title: JSP error in JRun
Can anyone explain this error to me? I posted a question yesterday about it. I got past the trouble that I was having by cutting out pieces of the page and putting them into other files and just -ing them. But the file I'm working with right now is very small and I'm s
You can specify a servlet to load when JavaWebServer loads.
1. Go to the admin tool.
2. Double click on 'Web Service'
3. Click on 'Servlets' button
4. Click on 'Add'
5. Enter a name and the fully qualified class name of the servlet
6. Click on the 'Add' button
7. The servlet should be added to th
The servlet I post to becooomes the new URL in my
browser. This is logical, but it also means that the URL for my
MainMenu is /servlet/Login because the Login servlet handles the login. Aside
from URL redirection which provides a slow solution, or having my MainMenu
Servlet handle Login and
In response to question #2, no, WAS 2.0 only supports JSP 0.91. WAS 3.0
supports JSPs 0.91 and 1.0.
Dan
> --
> From: Lance Jin[SMTP:[EMAIL PROTECTED]]
> Reply To: Lance Jin
> Sent: Wednesday, November 24, 1999 11:49 AM
> To: [EMAIL PROTECTED]
> Subject: IBM We
AndySoft wrote:
> > Instead, I prefer to segregate all my business logic (but zero
> > HTML generation)
> > into servlets, which can use EJBs when appropriate or other
> > techniques (such as
> > direct JDBC access) when EJBs are not necessary. I use beans to
> > communicate the
> > processing r
Any reason the
following statement would always produce a 0?
Other expressions work just fine when
the result of the first calculation is above 1 (eg:
5+2*100). Is this a rounding issue ???
<%=4/8*100
%>
try 4/8.0*100, java is like C, 4/8 gives you integer
Hi Kevin,
I just wish that your message came to me about four hours ago, I have been
trying to do it over and over unsuccessfully through doInitBody and
doAfterBody methods.
Do you have any suggestions on how can this be accomplished? It is
unrealistic to create 1000+ pages out of the database.
> I'm developing an application that needs to initialise a pool of
> beans when
> the server starts up. I am using JSDK Java WebSrver v2.1, but cannot find
> anything in the config to specify a servlet to when the server
> is started.
> Anyone know if this is possible and if so how?
well i never
> Instead, I prefer to segregate all my business logic (but zero
> HTML generation)
> into servlets, which can use EJBs when appropriate or other
> techniques (such as
> direct JDBC access) when EJBs are not necessary. I use beans to
> communicate the
> processing results back to an appropriate J
Has Anyone implemented Connection Pooling using JSP. If so can you send me
details. Just curious..
Jonathan Palad
Software Engineer
email: [EMAIL PROTECTED]
web: http://www.xuma.com
===
To unsubscribe: mailto [EMAIL PROTECTE
Agreed, reading JSP pages is not an easy deal.
So why we are developed our alaJSP stuff. You can
treat it as a "simplified" JSP and in the same time
avoid using separate templates.
-
Well, we got a bit different view: servlet in its nature has
ah - i completely misunderstood the question. if all you want is the name of the
user, then this will do the trick.
-bml
Pol Navarro wrote:
> | Has anyone implemented a method to access the username of the person logged
> | into an NT system through a JSP in any way? Specifically the username
Lance Jin wrote:
>
> 1. When I setup 3.0, it didn't prompt me to specify the web server when
>based on my understanding it should , so the setup failed. Has anyone
>run into similar problems?
WebSphere 3 is HARD to install. I screwed it up several times before
getting it right. The 87 p
I have an application that uses a shared resource that is for all intensive
purposes similar to a database connection. The only difference is that
unlike a standard database connection I can't just create more connections
in my connection pool like I can with my db connection pool (the reason is
"Griggs, James" wrote:
> Any reason the following statement would always produce a 0?Other
> expressions work just fine when the result of the first calculation is
> above 1 (eg: 5+2*100). Is this a rounding issue ???<%=4/8*100 %>
Yes ... it gets zero because that is the correct answer.
You
I have a bean where I have two setter functions with the same name but
different argument types.
setShoeStartDate( String startDate )
and
setShoeStartDate( Date startDate )
I have a form element:
The bean introspection using jswdk-1.0 does not cause either of the
setShoeStartDate functions to
On Wed, 24 Nov 1999, Griggs, James wrote:
> Any reason the following statement would always produce a 0?
>
> Other expressions work just fine when the result of the first calculation is
> above 1 (eg: 5+2*100). Is this a rounding issue ???
>
> <%=4/8*100 %>
Are these ints? 4/8=0 for ints. T
Do not use a servlet chaining mechanism. Instead use response.sendRedirect() to
send the user to an other servlet page, if the user has logged in successfully,
else redirect him to the login page. hope this helps.
Cheers,
Amar..
Gary Moore <[EMAIL PROTECTED]> on 11/24/99 09:48:58 AM
Please
Hi Jeff,
Craig is probably a better person to answer this, but in case it doesn't attract
his attention (the volume on this list has drastically increased of late), the way
I think it works is like this:
JSP is of course server-side only, and is compiled into a servlet and thus is bound
by all t
Hi, all,
I'm downloaded IBM Websphere application server 2.0 and 3.0 trial version
I run into two problems,
1. When I setup 3.0, it didn't prompt me to specify the web server when
based on my understanding it should , so the setup failed. Has anyone
run into similar problems?
2. Does 2.0
> Well, we got a bit different view: servlet in its nature has its
> own advantage over JSP. You (close enough) separate your
> presentation and your business logic and this is how you develop
> mission-critical components/applications. We wrote lot of servlet
> (at least 10,000 lines/each) and ta
| Has anyone implemented a method to access the username of the person logged
| into an NT system through a JSP in any way? Specifically the username of
| the person accessing the jsp through a browser.
Try request.getRemoteUser()
>From the doc:
public java.lang.String getRemoteUser()
Re
Any reason the
following statement would always produce a 0?
Other expressions work just fine when the
result of the first calculation is above 1 (eg: 5+2*100). Is
this a rounding issue ???
<%=4/8*100 %>
Quick question
Has anyone implemented a method to access the username of the person logged
into an NT system through a JSP in any way? Specifically the username of
the person accessing the jsp through a browser.
Sort of like using System.getProperty("user") from a JSP (sorta)
I remember readin
David's concerns are quite valid -- one of the implications of the architecture
I propose is that the servlet containing the business logic (essentially the "C"
in an MVC architecture) has to select processing logic (i.e. specific Java
classes) and the subsequent presentation logic (i.e. the URL o
I agree that the approach described by Craig is the preferred approach, but
the issue that I have with it in our application occurs with workflows. Not
unlike many others I'm sure, we are delivering a UI via the web that in the
past would have been a standalone application UI, and to do this requ
You need to get the request header "User-Agent" That will tell you what
browser is being used.
Mike
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Guilherme - PerConsult
Sent: Wednesday, November 24, 199
I'm developing an application that needs to initialise a pool of beans when
the server starts up. I am using JSDK Java WebSrver v2.1, but cannot find
anything in the config to specify a servlet to when the server is started.
Anyone know if this is possible and if so how?
Thanks,
Paul
=
Hi there,
Has anyone used IBM Web SphereStudio 3.0 for JSP-Portal Development. Please
forward the pros & cons.
Thanks
Abbas Saeedi,
Acta Inc.
1001 elwell ct.
Palo Alto
[EMAIL PROTECTED]
Get free email and a permanent address at
Run something lie this:
<%! public void out.println(String val1,
String val2, javax.servlet.jsp.JspWriter out throws java.io.IOException
out.println("Remote address:",request.getRemoteAddr(),out);
out.println("Remote host:",request.getRemoteHost(),out);
out.println("The browser you are u
If you're using NAS, make sure the CacheTimeOut is set to zero in your NTF
file:
YourServlet {
"CacheTimeOut" Int "0",
Otherwise, the last results of the servlet will be cached.
mark
> -Original Message-
> From: Abhijit Tannu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 24, 19
Quick question
Has anyone implemented a method to access the username of the person logged
into an NT system through a JSP in any way? Specifically the username of
the person accessing the jsp through a browser.
Sort of like using System.getProperty("user") from a JSP (sorta)
I remember readin
Oh dear!
Looks like a basic "understanding of java problem"
try:
<%@ page import = "login.ValidateUser" %>
<% login.ValidateUser validate = new login.ValidateUser(); %>
I bet it works ;-)
Karl
Reeta Mittal wrote:
> Hello Everyone,
>
> I am facing a problem while using classes. Can anyone
I've had exact same problem too, can someone help us?
Karl Roberts wrote:
> Siva Surya Kumar V wrote:
>
> > Hello sir..
> >
> > I just mailed one mail regarding the Vector .
> > I done some R&D and i modified the declaration as:
> > <%! java.util.Vector nam; %>
> >
> > And its wo
Hi!
I have to convert some ASP files to JSP, and I`m having some problems. I
don`t know how to "discover" what kind of browser the person is using.
In ASP the line is:
Set oBrowser = Server.CreateObject("MSWC.BrowserType")
And in JSP???
Thank you!
gui
=
sdheepa wrote:
> Just look at the Foll. Architecture:
>
>JSP File ->Contacting Servlet-> This Servlet in
> turn talks with EJB to perform bussiness logic...
>
> What are the advantages/diadvantages of having the
> Servlet to contact the EJB..with repect to performance
> and scalability...
>
The Servlet Specification states that doing an include will allow the developer
access to all of the Request, but give it limited access to the response.
Specifically it states that you have access to the output stream but *may not* set
header info:
"The included servlet can not set headers or ca
Hello All,
Does anyone know of a way to break out of a Servlet Chain?
I am using Servlet Exec and I have set up a Servlet chain so that the first
Servlet in the chain can perform user authentication. If the user does not
meet the requirements, the Servlet does a response.sendRedi
I have a servlet that adds a cookie to the HTTP response. Like so:
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
.
.
Cookie newCookie = new Cookie("USERID", "test");
newCookie.setMaxAge(5 * 24 * 60 * 60); // seconds
I have a Head, Contents, Foot schema which I am implementing using
RequestDispather include(request,response) method.
When Head and Foot are implemented as Servlets, they display
incorrectly.
When Head and Foot are implemented as JSP, they display
correctly.
In both cases, JSP is doing the
hi
you can do it
see the similar example of my code
regards
amit
<%@ page import="java.util.*, java.lang.*, java.io.*" %>
<%@ page import = "amit.*" %>
<%! amit.Format format = new amit.Format(); %>
<%! String str = new String(); %>
<%
byte []b;
try
{
java.io.FileInputStream fin =
Suresh Kumar Nittala wrote:
> Hi,
>
> Kindly help me out.
>
> 1. How would you differntiate?
>
> A) Java Bean
> B) Enterprise Java Bean
> C) Servelets
>
> 2. Can we call Servelts directly from JSP?
>
> Regards,
> Suresh Kumar
EJB's are more like Servlets than JavaBeans. JavaBeans are simply Jav
Hello Everyone,
I am facing a problem while using classes. Can anyone help me out ?
I am having a java class. When I tries to access it using usebean tag of
Jsp then it works fine but if i tries to access it as a class using "new
classname" way of java then I am getting error.
I am attaching the
"Craig R. McClanahan" wrote:
> Christopher Cobb wrote:
>
> >
> > How do you specify an entity that you want to be global across applications?
> >
>
> The standard Java approach of using a class with public static methods is the usual
> technique for accomplishing this. This is often referred to
Hello.
I have done a few websites using JSP 1.0 and they all work just fine in my
developement enviroment. None of them are released yet so I haven't been
able to test them with a lot of simultaneous connectins so I am a bit
worried about the thread saftyness.
What's the most common problems and t
hi
is your getFilm_id returning a integer, if so it must be giving a error due
reason that the parameters can only be of string format they will have to be
changed to int in the bean.
try converting it to a string by using java.lang.Integer.toString(
getFilm_id() )
Hope this helps
regards
Amit
Just look at the Foll. Architecture:
JSP File ->Contacting Servlet-> This Servlet in
turn talks with EJB to perform bussiness logic...
What are the advantages/diadvantages of having the
Servlet to contact the EJB..with repect to performance
and scalability...
Instead of having the servlet
Hi sdheepa ,
One As JSP is multithreaded the useage of servlets for multithreading is
redundant.
you are actually calling one more program, i see no advantage as a JSP is
converted to a servlet at the server side.
two, the architecture of EJB does specify the useage of beans, it is a sun
ceritif
Well i too have been using jswdk1.0.1 on my win95 box & i too have placed a
jsp under the examples directory as well as a bean in the web-inf directory
and not under a sub-directory.
When i run the jsp it works just fine.
I'd suggest check out whether you have added the tools.jar file to your
clas
Do you mean that before exting the function of the EJB , I should set the
values of the passed parameters to null ? That is not required because when
the function exits all these local variables will go out of scope.
If you are saying that the variables refering to the EJB's home & remote
interfa
He everyone,
I have just got Jrun up and running. I have JSPs calling beans
etc but I am having problems with the setProperty routine.
They were all working fine when I was using JSWDK1.0.1. I have
definately go the routine in the Bean.
I am using the following in the JSP:
I have th
Dear Abhijit,
I think in the Bean you are not intializing the value. What I feel according to
your mail is that you have to intilize the value to null each time after executing
the Bean so that it will accept a new value.
Regards,
Suresh Kumar
Abhijit Tannu wrote:
> Hi ,
> We are using NAS 3.
Siva Surya Kumar V wrote:
> Hello sir..
>
> I just mailed one mail regarding the Vector .
> I done some R&D and i modified the declaration as:
> <%! java.util.Vector nam; %>
>
> And its working !!!
>
>Why i have to give this. Infact i imported java.util in JSP file :
>
>
Hi ,
We are using NAS 3.6 server along with NES 4.0 server for running our JSPs.
We are calling functions of an stateless EJB from within the JSP.
One of the argument for the function is a String. When I call the function
for the first time i.e. when the JSP is run for the first time , the EJB
wo
>> I am trying to find a tool that can help me debug JSP pages.
>> Does anybody know of any good tools?
>
IBM VisualAge Enterprise 2.0 includes JSP/servlets debugging.
You need 2 patches: rollup2 + enterprise update March 1.999
Regards
Javier Borrajo
www.tid.es
Hello Everyone,
I am using JSWDK1.0.1 for JSP.
I am writting a test JSP in which I am using a test bean. Can anyone please
tell me where I hav to place the Bean ?
I have placed the JSP in the example directory and BEAN in the WEB-INF
directory.
I have created a subdirectory under example director
Hi meera
There is a inherent problem with jswdk
you have to do this,
create a subdirectory
say mypackage
put your jsp in it with its package as mypackage;
then access it as "mypackage.mybean" in your jsp
regards
Amit
> -Original Message-
> From: Reeta Mittal [SMTP:[EMAIL PROTECTED]
Microsoft's Active Server Pages' (ASP) request and response objects
implement something they call "keyed" cookies. This is where there is what
amounts to a second level to the cookie name/value pair. Here's their
description:
>Using the Cookies Collection with the Response Object
>
>
>To set the
I guess you do not have to specify this in jsp.It uses the
services(_jspService) method which gets executed for both doGet and
doPost .This is created when you run the jsp, automatically.check this
out in the directory where your servlet engine stores the complied jsp
code.
meera
==
77 matches
Mail list logo