Hi all,
We are triying to switch application state from HTTPS to HTTP.
We want to use SSL connection only for login page. We execute a redirect if
the user comes from SSL connection to the HTTP action without SSL. But the
session is lost.
We are using Oracle 9iAS, and we
thank you for your reply Ron
.i did like this in my action class
Connection con=ko.getCon();
PreparedStatement prep=con.prepareStatement(select C_KTR,I_KTR,N_KTR
from tmkantor);
ResultSet rs=prep.executeQuery();
Vector dt=new Vector();
while(rs.next())
{
Hey,
Maybe it's coz in Europe Brazil doesn't rock :-) (remember
France 98?)
But, I guess that site covers some European Ronaldo (Cristiano, from
Portugal :-)
Have a good Friday
marco
-Original Message-
From: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED]
Sent: 17 June
Not sure about the version issue, but you might want to look at indexed
properties. Search for miniHOW in the archives and you might find one of
the posts which deals with this.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 10:26 PM
Actually I think this is the link you mean:
http://www.catb.org/~esr/faqs/smart-questions.html
-Original Message-
From: Rajat Pandit, Gurgaon [mailto:[EMAIL PROTECTED]
Sent: Friday, 18 June 2004 16:58
To: 'Struts Users Mailing List'
Subject: RE: prob in database connectivity
Hello
Hehehe!! Thanks!! No internet access at work :(
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004 2:27 PM
To: Struts Users Mailing List
Subject: RE: prob in database connectivity
Actually I think this is the link you mean:
Hi,
Which Tomcat version are you using?
The problem seems to be a Tomcat problem with the body content and the
Pooling of the Tag.
Anyway in the Tomcat 5.0.25 this bug is solved.
Try to do the following:
In the html:img tags, don't use the empty element tag (i.e. with / at
the end of the tag)
i am not sure about any config that can help but all you need to is
+ override processPath method in RequestProcessor to check for
case-insenstive path.
+ override ActionConfig class to keep path saved in lowercase/uppercase.
list, am i missing anything?
navjot
Albrecht Berger wrote:
Hello,
at
Hi,
sorry if this may be a stupid questionbut i 'm tring to change the
message visualization (i don't want to show the user a message like '???foo???')
when the key of the message is not present in my ApplicationResources files. how
can i do ?
The only solution i found is to modify the
Hello,
U can try this.Most probably this will work.
U can store the data in the Arraylist map this list to form level Arraylist.
use logic:iterate tag to display data from the form Level ArrayList with id and
property as the form level list.
tell me whether @ runtime r u going to add any
I personally think struts is spot on. I think it does follow Java OO
principles, and many J2EE patterns.
My struts apps generally consist of DAOs which handle simple methods, and
some services which handle more complex operations. These interact with
beans which are persisted using OJB.
The
hello guys,
when i open the login form of my struts application, for the very first time a
jession id is appended with the value of action attribute
example
html:form action=admin.login.do;jsessionid=1101010654575
above value is shown in the source code of the displayed page.
can any
That would be jsp adding the session id. Not really a problem, so do you
really need to get rid of it?
I think it wont appear on further pages, becuase it will use a session
cookie (if i understand correctly, the first time it adds that just in case
session cookie doesn't work).
You should be
On first request, a session is created. Tomcat (or any other servlet container) wan
use two mecanism to handle sessions
: cookies or URL rewriting (add a ;jsessionid=...).
Preference is for cookies, because it doesn't need to change URLs in pages, but on
first request, Tomcat has no way to
Hari,
i have an action.clazz that loads a collection
and adds the coll to request under key myCollection
after that it forwards to a jsp
here is my *simple* jsp.file
%@ taglib uri=/WEB-INF/displaytag-12.tld prefix=display %
display:table name=myCollection defaultsort=1
The form could have many thousands of
rows and my real problem was determining which cell had been edited. I'm
not sure if it's correct, but I solved this by doing the following:
1. Each editable textfield in the HTML
form has a dynamically constructed name. This field also has an onChange
Hi Niko and all other guys,
is there any way in struts to avoid this URL rewriting.
Actually jsessionid is also appended with the link with which i am submitting the form.
have a look on code:
Original code is:
html:link href=javascript:login() styleClass=buttonLogin/html:link
But when i run
There is no need for you to use a taglib to render a link! The easiest
solution:
a href=javascript:login(); class=buttonLogin/a
-Original Message-
From: Dhruv Trivedi [mailto:[EMAIL PROTECTED]
Sent: 18 June 2004 12:45
To: Struts Users Mailing List
Subject: Re: problem with jsession
Hi Simone
I tried your site last night on my new Dell Inspiron at home.
It was rendering very slowly (I mean ssslllooo).
I think Internet Explorer 6.0 SP 1 as delivered by DELL OEM
has some current issues with it when you are using large
BITMAP BLITTING operations. I think IE was
SSLExt: http://sslext.sourceforge.net
-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004 2:33 AM
To: 'Struts Users Mailing List'
Subject: Sharing session beetwen HTTP and HTTPS
Hi all,
We are triying to switch application state from
Hi Marco,
Today is Friday, so let's play a quiz.
Question #1
What team have won 5 times the World Cup?
a) Brazil
b) Brazil
c) Brazil
d) Brazil
e) I don't know, but i guess it is Brazil
Question #2
Who is the King of Soccer?
a) Pelé
b) George W. Bush
c) Ariel
Hi daniel,
Here r my answers :-)
Question #1
What team have won 5 times the World Cup?
a) Brazil
b) Brazil
c) Brazil
d) Brazil
e) I don't know, but i guess it is NOT Brazil
e)
Question #2
Who is the King of Soccer?
a) Pelé
b) George W. Bush
c) Ariel
Hi,
I'm not using Tomcat. I'm using IBM WebSphere Application Server, Release 4.0.6 but
I'll try html:img /html:img.
Thanks,
Christina
-Original Message-
From: Amleto Di Salle [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004 5:27 AM
To: 'Struts Users Mailing List'
Subject: R:
I describe this in more detail in the book, but my take on this is that
Struts and JSF are focused on different parts of the application. They
also overlap in some areas, however, which is probably the cause for
this endless discussion.
In particular, I've noticed that a simple hello world
hi,
I have deployed my app on Jboss 3.2.3(with Tomcat 4.1.29). Success.
When i try to access http://localhost:8080/myapp/ShowReg.do
It says
HTTP 405 : The specified HTTP method is not allowed for the requested
resource (HTTP method GET is not supported by this URL).
No where in web.xml, i ahve
Hi Navot,
Is there lots of complaints comming out of the log file (JBoss
console) ? Don't recall having such an error with struts tomcat +
jboss combo.
On Fri, 18 Jun 2004 18:50:35 +0530, Navjot Singh [EMAIL PROTECTED] wrote:
hi,
I have deployed my app on Jboss 3.2.3(with Tomcat
hi peng,
That's the problem. Nothing comes on to my jboss console. I couldn't see
anything happening here.
Even the jboss's error log shows nothing. However, access log does show
a url was visited and the respose code returned in 405.
navjot
Peng Tuck Kwok wrote:
Hi Navot,
Is there lots
You know, kind of off-topic, but you remind me of a conversation I had with
someone at work here, maybe you guys would have some input...
I know what various patterns tell us we should do, but in practice... you
guys of course have your ActionForms that transfer data from the view to the
Hi,
I've tried:
html:img styleId=imagePreviewLocal page=/loadCampaignImage.do name=map
width=%=imageWidthLocalValue% height=%=imageHeightLocalValue%
/html:img
instead of:
html:img styleId=imagePreviewLocal page=/loadCampaignImage.do name=map
width=%=imageWidthLocalValue%
thanks for your inputs BUT if struts could find the path then it
doesn't show 405 error. rather, it throws exception with can't find
mapping or something like that.
may be someone can tell me how to enable the struts logging when run
within jboss. that will be great help in itself. Without
Anjali:
Here are two links that you may find useful:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06123.html
Regards,
Geeta
-Original Message-
From: gitanjali [mailto:[EMAIL PROTECTED]
Sent:
Hi Berger:
Take a look at org.apache.struts.action.RequestProcessor. I haven't used it myself,
but I think something like processMapping(..) or processPath(..) should work..
Regards,
Geeta
-Original Message-
From: Albrecht Berger [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004
Not all websites have sophisticated needs. The multitiered website is
unnecessary if you only have your photo and a story about you in the fifth
grade. However, Actions are not procedural weight if you want to observe
MVC principles for good reasons. The design principles of OO programming
Hi all,
I have list.jsp which has an edit link. click of the link i pass the edit Id
corrresponding to each row.
I am using tag beans.
like ---
html:text property=name/
and
html:checkbox property=right /
I am using the correct action classes and corresponding actionform classes.
But somehow I am
At 06:36 AM 6/18/2004, Frank Zammetti wrote:
In that mindset, I can see some logic to saying something like Crysalis is
on a better path because your simplifying things a bit by essentially
removing a layer. I think we're all conditioned to think that ADDING
layers of abstaction is a good
For me, it's more so the same argument for changes in EJB 3.0 -- which will
just allow you to use POJO objects for persistence and transactions as
provided by the framework itself. People argue that EJB is too complex and
doing simple operations takes 6 classes when other frameworks like
I agree with this.
I tend to find myself passing parameters to business services rather than
DTOs.
I do it for simplicity. If i use an ActionForm then you either have to add
things like getNumberAsInt as getNumber returns a string, or do the integer
parsing in the action. You then have to
1. This sounds like your test code (assuming
you have some) is tightly coupled with Struts. You may or may not
care.
2. Not using DTO/VO means that your
business layer is tightly coupled with Struts. This may or may not
be a problem should you decide to use a different controller framework.
I ask because most of the Struts apps I've seen don't bother with the
DTO's, they just pass the ActionForm to the subordinate classes, or else
pass them as parameters. It seems that regardless of what literature is
telling is we should do, in practice (GENERALLY), people don't bother
with the
+1 A lot of this discussion seems like it involves uses that don't need
the levels of abstraction a true enterprise site must have.
At 07:19 AM 6/18/2004, [EMAIL PROTECTED] wrote:
1. This sounds like your test code (assuming you have some) is tightly
coupled with Struts. You may or may not
On point 2, I'm not sure I agree with that. Thinking of one particular
application I've recently completed, the business layer is quite
losely-coupled from the Struts portion, and I can say that with absolutely
certainty because in fact I converted it FROM another framework (a custom
job) TO
Hi,
I ran into Property myNestedProperty has no getter method
errors when running my application under JDK 1.3.1.
Here's some background information:
- Happens on bean:write.
- I'm using nested property, and the last property on the chain has one
getter and two setter (e.g. getAge:Integer,
I have a web application developed with Struts 1.1 running on WebSphere
4.0.4 successfully.
Now, if I deploy the same app on WebSphere 5.1, there is no log file
created.
I am using commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
and
Hi all:
I have been looking into ActionErrors vs. ActionMessages and found the following two
links:
http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsDeprecatedActionErrors
and
http://www.husted.com/struts/tips/017.html
The first link suggests that ActionError will be deprecated starting
I've had such troubles. I don't know if it comes from struts (common-beanutils) way to
introspect object to discover
accessor methods, or if javaBeans spec describes it so. I've notice you will get such
errors when you define getter
return type != setter param type or have multiple setters with
Is there a way to get strutstestcase (mock) to work with the new 2.4
web.xml. Currently when we try this it bombs on the digesting of the
web.xml file with this:
Digester.error(1439) | Parse Error at line
6 column 104: Document root element web-app, must match DOCTYPE root
null.
Hi George:
Maybe this will help:
http://sourceforge.net/forum/message.php?msg_id=1812671
George Steimer wrote:
Hi,
Does anyone know if there is a way to put non-string objects into the
request for a unit test using MockStrutsTestCase? My problem is that my
dyna form uses a form file for an
Nick,
Thanks for the reply. I would like to try to implement this, but my client
wants to keep everything in mock objects rather than use an in-container
approach. Is there a way to test import using MockStrutsTestCase, or do you
need to use Cactus?
Thanks,
George
-Original Message-
Thanks Nico. Does it happen consistently for you, or it's
only on certain properties?
- John
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004 11:01 AM
To: Struts Users Mailing List
Subject: Re: bean:write property has no getter method
From: Yu, John [mailto:[EMAIL PROTECTED]
I ran into Property myNestedProperty has no getter method
errors when running my application under JDK 1.3.1.
the last property on the chain has one
getter and two setter (e.g. getAge:Integer, setAge(int),
setAge(Integer))
Your bean does not
George,
I believe that you'll need to use Cactus. There were a number of
threads on the sf.net forum about this and most were unanswered. You
may want to email the STC developer about this. He's pretty responsive.
George Steimer wrote:
Nick,
Thanks for the reply. I would like to try to
--- Frank Zammetti [EMAIL PROTECTED] wrote:
I know what your saying, it's the way I do things as well, doing very
little work in the Actions aside from tossing values around and calling
subordinate classes to do the real work.
But doesn't that in a sense support the idea of an application
I agree with you on writing safer Javabeans, and yes, it
works on JDK 1.4.1.
last one I read. You're not supposed to have multiple
setters with the
same name, or matching get/set methods with different types.
Could you point me to the exact place this is documented?
Thanks,
John
If I define a bean using bean:define from a named bean in the request/session scope,
why when I use the JSTL C taglib, does it not see the properties of this bean?
For example:
bean:define id=myFormtiles:getAsString name=formid//bean:define
UserName: bean:write id=myForm
Using a 6/10 Nightly the I have a page with the following JSP snippet:
html:messages id=error
EM class=redbean:write name=error//EMBR
/html:messages
This works fine with validator generated error messages.
This works if in my Action I call the deprecated this.saveErrors(). If I
call
bean:define will create a new local variable in the jsp. You can access
this variable in a scriptlet or an RT expression. c:out is looking for a
scoped *attribute* (not a variable) with that name, so it will fail.
If you look at the servlet source generated from your jsp source you should
see
Hi,
i 'm tring to change the message visualization (i don't want to show the user a
message like '???foo???') when the key of the message is not present in my
ApplicationResources files. how can i do ?
The only solution i found is to modify the method message(pageContext, bundle,
locale, key,
From a document I wrote some time ago:
Setting the null attribute to 'false' will display missing resource
values as ???key??? instead of displaying null. This string is easily
found during automated testing of your JSPs, making in-container unit
testing more complete.
Here's what you set to
The following improvement of a DTO could be considered procedural
weight: But, is it?
clientMethod
{
PersonVO person = PersonDAO.getPersonById(666);
OrderVO order = person.getOrder();
CostVO cost = order.getCost();
}
clientMethod
{
Person person =
hi people
is there any book or tutorial which cover building struts application
with WSAD?
thank you
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Figured out the behavior. It works if I do this-
html:messages id=message message=true -- Gets the non-validator
generated messages --
EM class=redbean:write name=message//EMBR
/html:messages
html:messages id=message-- Gets validator
generated messages --
EM
If the servlet engine does not see any input at the appropriate scope for
sort or name, it will grab the values automatically for you from the
form-bean initial attribute; otherwise the values on the incoming request
(if in the right scope) will be used and the initial values disregarded.
-
WebSphere 5 has some proprietry logging that interferes with the logging
implementation you choose to use. Here is a link that should help you
configure your app to use your log4j instead of WebSphere's own logging.
We've been able get both option 2 and 3 working.
Ok, well if I do the following:
c:set var=cfb value=${formBean}/
c:out value=${cfb}/
The name of the form object is written out. But if I want to access a
property on my form cfb, how would I output that value? If I write c:out
value=${cfb.pageNumber}/, I get a servlet exception saying
Yeah. WAS 5.0 is not particularly friendly to commons-logging because it
uses it internally. Hence, it wants to use its own configuration. There
are work arounds (none good) of course... IBM's documentation:
http://www-1.ibm.com/support/docview.wss?uid=swg27004610
David Hibbs, ACS
Staff
I don't have the time now to really get Struttin' With Struts
http://www.reumann.net/do/struts/main more up to date. If anyone wants
to help getting it up to date with more mondern ways of doing things,
I'd appreciate it. You can contact me at [EMAIL PROTECTED]
Off-hand here are some things
Geeta,
Thanks for the reply. If I create an ActionForward on the fly in
my Action class, can I also create or acquire the corresponding
ActionForm to prepopulate it before returning the ActionForward?
--- In [EMAIL PROTECTED], Geeta Ramani [EMAIL PROTECTED] wrote:
ps.s just noticed your
Ok, well if I do the following:
c:set var=cfb value=${formBean}/
c:out value=${cfb}/
The name of the form object is written out. But if I want to
access a property on my form cfb, how would I output that
value? If I write c:out value=${cfb.pageNumber}/, I get
a servlet
This is my class:
public class PagedCheckboxForm extends ActionForm
{
private long pageNumber;
public long getPageNumber() { return this.pageNumber; }
public void setPageNumber(long value) { this.pageNumber = value; }
}
In the JSP
bean:define id=formBeantiles:getAsString
bmcgovern2004 wrote:
I've successfully written a simple struts application.
I have a jsp that presents a listbox for user selection. I have
multiple action flows that may need to utilize the standard screen
somewhere in the flow.
Can you be a little more specific about what you want to
It is as if the c-taglib is seeing the bean as a string and not as an
ActionForm. I can write:
c:out value=${cfb}/
And the output is value in formid. What I'm trying to do is create a
reference to an ActionForm in this JSP which has it's name passed in by this
page's container as a tiles
And it may be important that I point out if I use:
bean:write name=%=formBean% property=pageNumber/
The value does get outputted. So it has to do with what Paul pointed out,
but I dont know how to solve it.
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users
The only thing you missed out from saying is that they would then need to
configure Struts to use their custom RequestProcessor and custom
ActionConfig:
http://jakarta.apache.org/struts/userGuide/configuration.html
An alternative to Navjot's suggestion might to be change the
RequestProcessor to
Hi,
There are lots of articles, tutorials white papers on the IBM site. I've downloaded
them previously, just do a search.
If you dont have any luck then email me and I will publish the links to the groups.
Some to get you going - old.
1
Using the Struts Framework with WebSphere Studio
Rather than modifying RequestUtils why not configure Struts to use your own
MessageResources implementation:
http://jakarta.apache.org/struts/userGuide/configuration.html
1) Extend PropertyMessageResources setting the returnNull property to 'true'
in the constructor and overriding the
web-console works fine and in thay if i see my WAR file. it shows no
error to me.
something fishy is goin on here that i am unable to find out.
Peng Tuck Kwok wrote:
That's strange, since it is complaining about the GET method. Does the
jboss web-console work ?
On Fri, 18 Jun 2004 19:08:13
76 matches
Mail list logo