UN-SUBSCRIBE
Title: SV: response.sendRedirect problem
Don't write a full URL In the sendRedirect(param) call. Use an URI instead. Do:
response.sendRedirect(/some/place/file.html);
instead of:
response.sendRedirect(http://host.domain:port/some/place/file.html);
-Ursprungligt meddelande-
One can use in a servlet, or a JSP:
excerpt
if ( session.getAttribute(logged_out) != null ){
response.sendError(response.SC_UNAUTHORIZED, Logout...);
return;
}
end excerpt
Whenever you want your user logged out: set a session attribute called
logged_out.
On the main
I'd like to ask a trival question. I hope some
expert out there could humour me. I'm studying how orion works and I met with
the following.
How is the context-root tag in the
META-INF/applications.xml file used ?
I initially thought it was used to refer to the
website url (based on the
Title: SV: response.sendRedirect problem
Hi
Rafael,
I
don't think Patrik's suggestion is the answer; you should be able to sendf
ully-qualified URLs in redirects
(forwards, on the other hand, do need to be within the same serveri
nstance).
I
suggest that you try connecting to orion via
Hi,
I do agree with ElephantWalker: be VERY careful with the order of tags AND
attributes.
We have spent a lot of time looking for NullPointerException because of
wrong order of attributes in a data-sources.xml
Yves Bossel
-Original Message-
From: elephantwalker [mailto:[EMAIL
That would work fine but would be very
expensive.
I would create a getCount() method and have that
method do a simple JDBC call and return the count. This way the container does
not have the added overhead of creating/marshalling the collection.
- Original Message -
From:
Hello everyone,
Where EJB and CMP entities.
I know only plain Servlets and Java.
Thanks
--
obtene tu webmail gratuito en:
http://www.yocreo.com
The path you provide to response.sendRedirect should be run through
response.encodeRedirectURL first. This may help solve the problem because it
will generate an absolute, fully qualified URL.
John H.
Rafael Alvarez [EMAIL PROTECTED]@orionserver.com on 06/13/2001 05:43:35 PM
Please
Dear elephatwalker,
It looks like a big perfomance hit for both
database and container to count entities in such a way. Another decision is to
talk directly to db, which is also notgood.
Browsing EJB 2.0 documentation, I found out
that there is an ejbSelect() method that allows to perform
Hi
Ignore my mails about clustering - its all working dandy now.
I've been using Orion 1.3.8 with my web-app (using a stateless session
bean) and its been ok for quite a while. But when i upgraded (using
autupdate) to 1.5.2 my EJB didnt work anymore. Anyone had problems? I
tried it on
When I access a jsp page which uses a tag library I get an error:
500 Internal Server Error
Error parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15
Bean type 'String' not found
I suspect that this is a problem creating the java file from the jsp page
related to the tag extra
Well I made the jsp page work by explicitly importing "java.lang.String",
as opposed to "java.lang.*" as I had done for other servers. Because
this shouldn't bother other servers I'm ok with it.
I still need to have access to the jsp.java files for debugging purposes
before Orion will be an
Returning a 401 HTTP response to the user should be sufficient to force
current IE and Netscape browsers to re-request user credentials. However I
have noticed that many versions (including IE5.5) will cache the password
thus allowing the user to simply hit enter to re-authenticate.
It is
Oops, I got had by a deployment thing, (orion didn't recompile the jsp
file when the TEI class changed...). The thing that actually fixed
the jsp compile problem was changeing the tei class from
new VariableInfo("eCTSResult",
"String",
true,
VariableInfo.NESTED),
to
new
Sergei,
I ran
into this problem once before...sorry about the performance, I didn't know how
big your beans were.
What I
did was create an entity bean which was just the list of pk's for the other
bean...I mean that's all. Then call the list, findByPK(1), and return the list
of pk's from
How do I tell Orion
where to find my Cloudscape database?
Here is what I have
for the data source:
Important information!
This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.
Best regards
Telia Internet
You
have to use the fully qualified class name, ie java.lang.String for this to
work.
Michael
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Wendell
NicholsSent: Thursday, June 14, 2001 10:59 AMTo:
Orion-InterestCc: [EMAIL
Important information!
This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.
Best regards
Telia Internet
Has anybody used more than one group outside of the defaultGroups for a
usermanager?
I have found that if you use EJBUserManager, and use more than one group in
the EJBUser_groups table..
username='somename'
value='my-admins,my-users'
Only the first group in the list is used (my-admins), the
I know I sound like a total
newbie, but at this point I just don't care. How do I unsubscribe from
this list? I tried the web site's unsubscribe (three times over four days)
with no luck. The initial message sent when I joined had no useful
information.
If you
want to see the java source files compiled from the jsp pages then add
developmenttrue/development to your web-application.xml file. There was another thread that mentions
this with additional information titled Cached code. Karl Avedal was the responder.
email signature goes
Important information!
This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.
Best regards
Telia Internet
Important information!
This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.
Best regards
Telia Internet
It's not necessarily true that findAll().size() would be expensive. A
slick container implementation would delay the actual query until the
first method call on the Collection. If size() is the first method
called, the container could easily perform the proper select count(*).
The question
I had some problems after upgrading to 1.5.2. The app told me it upgraded
but it didn't. I wiped out the directory, installed orion fresh again
(1.4.5), did the upgrade again and it all worked fine.
Perhaps I had some file locked when I did the update, who knows.
-Original Message-
Important information!
This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.
Best regards
Telia Internet
Wendell,
orion-web-app
jsp-cache-directory=./persistence
servlet-webdir=/servlet
development=false-- Change this to true
persistence-path=./persistence/state.ser
Then . . .
Assuming all things are equal and you have a default web app called
I am trying to get a bi-directional container managed relationship working
in Orion 1.5.2 but it keeps creating an intermediate table. Is there anyway
to stop this? There is no need for the extra table.
Here is my example:
Change[1]-[*]Objection
create table change (
change_id
Important information!
This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.
Best regards
Telia Internet
31 matches
Mail list logo