Re: Calling servlet from hyper text link

1999-11-22 Thread Bailey, Jeff A
You are correct that normally you would user but this isnt possible via a hyperlink where your only real choice is to do it as http://www.blah.com?param1=value1¶m2=value2. . . "> etc. So your choices are to either use a button (to perform the submit action on the form) or to make an image of som

Re: Calling servlet from hyper text link

1999-11-22 Thread Bailey, Jeff A
These do work, I was incorrect in my earlier message :) Specifically, the second one requires a blank href value as he shows Sorry if my earlier post confused you, wasnt thinking correctly this early on monday :) J > You can do this by using Javascript. > > > > > > > A link that posts > >

Access to system properties (specifically user) from JSP

1999-11-24 Thread Bailey, Jeff A
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

Access to system properties (specifically user) from JSP

1999-11-24 Thread Bailey, Jeff A
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

Networking, authentication, and security newbie question

1999-12-01 Thread Bailey, Jeff A
Hello there folks I was wondering what would be my best approach to performing secure authentication on an NT network through a jsp? Currently I am mirroring all accounts that exist on the domain controller in order to determine access levels and employee information (in a db). I was wondering

Bean constructors

1999-12-07 Thread Bailey, Jeff A
Hi all, Was just wondering if there was a way to call a constructor other than the default one using For example, // Default constructor MyBean() { testVal = 0; } // Something different MyBean(int i) { testVal = i; } I understand I can do something like this: <% MyBean m = new MyBean(1

Bean "get" and "set" requirements (WAS RE: Bean constructors)

1999-12-07 Thread Bailey, Jeff A
u use > <% MyBean testBean = new MyBean("Karl") %> > then the other constuctor will be used. The thing is the > tag is > a generic bean loader and has to have a standard method of > launching all beans. > The only thing I can sugest is for you to write your own

Re: Form Resubmits with JSP (long)

1999-12-17 Thread Bailey, Jeff A
Here is one way to do what you are attempting in javascript Lets assume you have a group of divisions and a larger group of deparments which each belong to one of the divisions. The divisions have ID values and the departments have a parent division in the database (I am utilizing scriptlets in

question

1999-12-17 Thread Bailey, Jeff A
Assuming i have this in a file called test.jsp Is there an easy way to update the url so that it shows the true location of the file http://blah.net/somepage.jsp instead of http://blah.net/test.jsp ? URL rewriting was a possible option but I cant figure out how to make it work if i want to mov

Re: how to close a DB conection in a jsp

2000-01-11 Thread Bailey, Jeff A
If you are binding an object to the session for the life of the application (to pass the connection across multiple pages), you can simply extend HttpSessionBindingListener (in your bean) and add a method similar to: public void valueUnbound(HttpSessionBindingEvent e) { connection.close()

request for reviews: Professional Java XML Programming with Serv lets and JSP

2000-01-12 Thread Bailey, Jeff A
Has anyone checked out the following book: Professional Java XML Programming with Servlets and JSP (Wrox Pres) If so would someone be so kind as to post a review of this book or point me to a URL where one can be found? amazon.com, fatbrain.com and bn.com were all lacking reviews. Thank

General questions about taglib and custom JSPTaglets

2000-01-13 Thread Bailey, Jeff A
This question seems very elementary but: I have heard these things mentioned a few times and seen them mentioned in passing and was wondering if anyone has a link to some sort of tutorial or good explanation of creating custom "taglets"? Up until now I have performing dual duties creating both t

Tag question (rookie)

2000-01-17 Thread Bailey, Jeff A
Hi all, this is a fairly elementary question but I cant seem to dig up an answer or tutorial that covers this clearly. I want to have something like output "The value is Something" to the page I have seen a number of examples (and even wrote a few of my own tags) which extend BodyTagSupport an

Re: JSPs and Orion app server

2000-01-19 Thread Bailey, Jeff A
Title: JSPs and Orion app server Fiorini,   It would be much easier to help you if you could describe the error you are receiving or possibly paste the error message in your email.    Is it 404 Error? jsp error? 500 Error?   Try to view the page in netscape as it typically gives more meaningful

MultipartRequest (my turn)

2000-01-31 Thread Bailey, Jeff A
I searched through the archives and didnt find a resolution so I thought I would ask. . . I am getting java.lang.NullPointerException anywhere I attempt to use Jason's MultipartRequest class. I have even copied the exact example from http://www.servlets.com/book/examples/ch04/UploadTest.java and

Collection of beans?

2000-03-15 Thread Bailey, Jeff A
Hi all, I have a fairly trivial problem but cant seem to figure out a good solution. I am writing a very simple jsp page which searches a database. I want to utilize beans to represent the objects returned (as some sort of collection) to simplify the display. What would be the easiest way to i

Model 2 questions

2000-04-17 Thread Bailey, Jeff A
This message is rather long, just a warning. . . Hello all, I would like to start this message by thanking those who have contributed to the model 2 discussion that I have been following. After reading (and re-reading) over the threads, I thought it would be a good time to discuss my design str

Re: Model 2 questions

2000-04-17 Thread Bailey, Jeff A
> Dynamic class loading (without fleshing out the error > handling) looks like this: > > String actionClassName = ...;// Whatever action class you need > Class actionClass = Class.forName(actionClassName); > Action action = (Action) actionClass.newInstance(); How do I make this

Another even more trivial model 2 question

2000-04-24 Thread Bailey, Jeff A
Well, I actually got the controller -> Action class model working appropriately (Thanks to all those who answered all these trivial questions of mine). . . .but I have another question. What sort of methods are others out there using to obtain a "match part" from the requestURI? I am ripping the

Re: "Equals" method not working correctly?

2000-05-03 Thread Bailey, Jeff A
Peter, > The expression : > > <%= > inputparams.getAreatype().equals("Nativeforest")?"Checked" : > "Notchecked" %> > > compiles OK but crashes the JSP I assmune the jsp crashing you are getting is a NullPointerException being thrown? If so, the most likely cause of this is inputparams.getAreat

Model 2 and security

2000-05-03 Thread Bailey, Jeff A
Hello folks, I think this question may be more j2ee than simply model 2 related, but thought I would give it a shot here. I would like to utilize the security mechanisms built into the j2ee (and servlet 2.2) spec but with a custom authentication module. More specifically, I want to be able to d

Re: Model 2 and security

2000-05-03 Thread Bailey, Jeff A
I asked: > >More specifically, I want to be able to define security constraints using > > the url-pattern matching techniques in the web.xml portion of my .war (which > > is a portion of my .ear) but use an external application (or servlet or > > whatever) to assign users to groups. This would al

Design question, recommendation

2000-05-08 Thread Bailey, Jeff A
Hello all, I have some questions about some design ideas regarding a particular type of app that I have never tried to construct before so thought I would post them here as there are a number of very intelligent application designers with lots of experience integrating a number of technologies to