Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Cynthia Yao

Ranch Hand
+ Follow
since Nov 06, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cynthia Yao

If I am not mistaken, your servlet do not have doGet() method. that may be the problem
16 years ago
why don't have a class that will handle retrieve information from database, any servlet need that information will call that class like a bean. I don't think that you can really nest servlet. You can do servlet chaining, but my experience are that was not very good.
16 years ago
Screen resolution? Just wonder why do you need to find out that. Anyway, that is client side, do you search through javascript? If you are using applet, try this:
Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize() ;
16 years ago
what is your code in the servlet. Does this tryTransform is a bean class, and get called in a servlet? If you treat tryTransform as a servlet, then that is a problem. All servlet need to extends HttpServlet, and have init(), doGet(), and doPost().
16 years ago
IT is only the first time you run the jsp, it need to compile to servlet. Do a search, there are a couple of thread discuss about this question
16 years ago
UserData should under WEB-INF/classes (no addition hierachy) then the package if there is package,
and when you import it, you import as <%@ page import="(package)UserData"%> (no class)
16 years ago
I need to redirect the user to a specific portion of another web server based on that user's username. And the username information is stored on the other web server as NT authentication. Is there a way to pull out this information? I heard about JAAS and PAM, but not sure that is what I looking for. Or does anyone has better idea to implementing this?
Thanks
16 years ago
why don't you put the value into session, then the page can access
16 years ago
please check the api looking for java.net.URLEncoder. The class contains a utility method for converting a String into a MIME format called "x-www-form-urlencoded" format.
17 years ago
so based on your saying:
P peru
S slovenia
Q qatar
R romania
crown: P | S | ~Q
queen: Q | R | ~S
king ~R | ~P
minister: P xor R
only P xor R are a most condition, so you can only invite one of them. You can invite R or S or both.
did I understand it right?
17 years ago
cookies are just set of name and string value pair. You definitely can put more than one cookie, but you have to set it one by one in jsp. Here is some notes from netscape about cookie specs.
Multiple Set-Cookie headers can be issued in a single server response.
Instances of the same path and name will overwrite each other, with the latest instance taking precedence. Instances of the same path but different names will add additional mappings.
However there are limitations: 4 kilobytes per cookie, 20 cookies per server or domain.
Hope this answers your question
17 years ago
I remember that only XmlDocument can actually write to a output file. here is the api link: http://java.sun.com/xml/jaxp-1.0.1/docs/api/internal/com/sun/xml/tree/XmlDocument.html
it is in jaxp package, you may need to download the jar file from sun
<%! String sideNavn = request.getRequestURI(); %>
just remove !
everything in between <% %> are regular java code
17 years ago
my fault, the actual file name is weblogic.log. check under your weblogic.properties file under the weblogic folder,
weblogic.system.maxLogFileSize=1024 for the max size of this file.
17 years ago
I used mocha and jad before to view some source code on applet, and it is not very easy to understand, but was fun. Thanks Mike, that article is very interesting
17 years ago