RE: question on javascript...

2003-10-19 Thread Jacob Wilson
Thanks Matt... It sure helped...
 
Actually, now, I tried to put it as a common function like...
 
function getValue(optionName, hiddenValue) {
   var s = document.forms[0].optionName; 
   for (var i=0; i wrote:
>This is a basic question... Can I find the index of a select box, 
>if I have the value or the text ???
>document.formName.optionName.options["C"].selected=true 
>-- This won't work!!

You need to loop through each option, checking to see it's value and then
checking it.

var s = document.formname.optionname;
for (var i=0; i if (s.options[i].value=="C") {
s.selected=true;
}
}

Or, using functions at http://www.mattkruse.com/javascript/validations/ you
can do:

setInputValue(document.formname.optionname,"C");

Be careful - multiple options are allowed to have the same value!

Matt Kruse




-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: Problem, very Urgent!

2003-10-19 Thread Andrew Hill
Hmm... No. Doesnt look that urgent to me mate.
http://www.catb.org/~esr/faqs/smart-questions.html#urgent






request.getAttribute("sample1");


If your passing it as a parameter you should use
request.getParameter("sample1") to get its value. (Attributes and parameters
arent the same thing).



-Original Message-
From: krishnamohan [mailto:[EMAIL PROTECTED]
Sent: Monday, 20 October 2003 14:37
To: '[EMAIL PROTECTED]'
Cc: Mohan Reddy
Subject:  Problem, very Urgent!
Importance: High


Hi all,


The following is my jsp page where I want to pass values to another jsp
using  tag.

This is my code snipplet,



ArrayList al=(ArrayList)request.getAttribute("QuestionsDB");
request.getSession().getServletContext().setAttribute("QuestionsDB",al);
//HashMap hash=new HashMap();
//hash.put("QuestionsDB",al);
test1.setValue(al);
%>

<%
java.util.HashMap params = new java.util.HashMap();
params.put("QuestionsDB", sample);

pageContext.setAttribute("sample1", params);

%>






in displayQuestion.jsp page i am trying to retrive value "sample1" by using
request.getAttribute("sample1");

This is not giving any values for me

please help me ,and please correct code, if any thing is wrong

Its very very Urgent.


regards

Mohan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts include

2003-10-19 Thread Marco Rossi
Now it's works.
Thanks Duncan.

> Da: "Duncan Mills" <[EMAIL PROTECTED]>
> Data: Thu, 16 Oct 2003 09:58:13 +0100
> A: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Oggetto: Re: struts include
>
> Marco - are you using ADF bindings on the Tile to create the menu? Is this where the 
> problem lies...
> 
> Regards
> 
> Duncan Mills
> - Original Message - 
> From: Marco Rossi 
> To: Struts Users Mailing List 
> Sent: Thursday, October 16, 2003 9:33 AM
> Subject: Re: struts include
> 
> 
> Tiles is the only solution? If you want create a web application, with a dynamic 
> menu (the user sees the menu item based on its permission written on db) without 
> frames you have to use Tiles? My problem is that I have to use JDeveloper 10g, and 
> the integration with Tiles seems not very good 
> 
> Marco
> 
> > Da: Dirk Markert <[EMAIL PROTECTED]>
> > Data: Thu, 16 Oct 2003 10:10:53 +0200
> > A: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Oggetto: Re: struts include
> >
> > Hello Marco,
> > 
> >   have a look at tiles.
> > 
> > ***
> > 
> > MR> Hi, 
> > MR> I want to create a single jsp page with more "dynamic" include inside. 
> > Something like 
> > MR> 
> > MR> ... 
> > MR> .
> > MR> 
> > MR> .. 
> > MR> ... 
> > MR> 
> > MR> 
> > 
> > MR> but with jsp tsg it doesn't work.
> > MR> How can i do?
> > 
> > MR> Thanks
> > 
> > 
> > 
> > MR> -
> > MR> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > MR> For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > Regards,
> > Dirk
> > 
> > +--- Quality leads ---+
> > | Dirk Markert [EMAIL PROTECTED] |
> > | Dr. Markert Softwaretechnik AG  |
> > | Joseph-von-Fraunhofer-Str. 20   |
> > | 44227 Dortmund  |
> > +-->>> to success! <<-+ 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem, very Urgent!

2003-10-19 Thread krishnamohan
Hi all,


The following is my jsp page where I want to pass values to another jsp
using  tag.

This is my code snipplet,



ArrayList al=(ArrayList)request.getAttribute("QuestionsDB");
request.getSession().getServletContext().setAttribute("QuestionsDB",al);
//HashMap hash=new HashMap();
//hash.put("QuestionsDB",al);
test1.setValue(al);
%>

<%
java.util.HashMap params = new java.util.HashMap();
params.put("QuestionsDB", sample);

pageContext.setAttribute("sample1", params);

%>






in displayQuestion.jsp page i am trying to retrive value "sample1" by using
request.getAttribute("sample1");

This is not giving any values for me 

please help me ,and please correct code, if any thing is wrong 

Its very very Urgent.


regards

Mohan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: question on javascript...

2003-10-19 Thread Kruse, Matt
>This is a basic question... Can I find the index of a select box, 
>if I have the value or the text ???
>document.formName.optionName.options["C"].selected=true 
>-- This won't work!!
 
You need to loop through each option, checking to see it's value and then
checking it.

var s = document.formname.optionname;
for (var i=0; ihttp://www.mattkruse.com/javascript/validations/ you
can do:

setInputValue(document.formname.optionname,"C");

Be careful - multiple options are allowed to have the same value!

Matt Kruse


problem passing the value to html-el:frame

2003-10-19 Thread hari_s
Hi all ..!
First I'd like sorry if my English really bad..
 
Actually this is a basic question, but I get sick with this problem,
I have value that I want to display inside of frame, and this is my code
 

 
I want to display the value nama in halFrame.jsp with this code 
But the value nama never show up.
 
Is there anything wrong with my code ? I really need help for this
problem.
 
Thank you, 


RequestProcess

2003-10-19 Thread shaik noorulla


Hi 

Thanks in advance 

Struts 1.1 provides RequestProcess class , I want to know what is the uses this class 

compare to ActionServlet class , Is it more advance than ActionServlet class 

if any body knows about it please send me the  deatils or send the link where i can 
get more  information and examples using this class 

regards

Noor


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

question on javascript...

2003-10-19 Thread Jacob Wilson
Hi...
 
This is a basic question... Can I find the index of a select box, if I have the value 
or the text ???
 
 
A
B
C

 
If I have the value "A" or "B" or "C" -- Will it be possible for me to do something 
like this...
 
document.formName.optionName.options["C"].selected=true -- This won't work!!
 
Here, if I know the index of "C", I can make it selected
 
Please let me know...
 
Thanks.
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: [FRIDAY] Free Dog..... (going further OT!)

2003-10-19 Thread Andrew Hill
Ha! You Americans are funny.
Over here everything is very high tech. We even have a special gizmo that
gives us the power to control office temperature through a local interface.
Its this little knob thing mounted on the wall and if you rotate it
clockwise the office gets warmer, and if you rotate it the other way it gets
colder (A little TOO cold if you ask me, but I digress...)
Ahhh the infinite bounds of human ingenuity...
Maybe one day your scientists will catch up and you too will no longer have
to work up a sweat just to write a struts app...

-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Saturday, 18 October 2003 22:53
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Free Dog. (going further OT!)


I hate to say it (well, I don't really), but the whole thing is
ridiculous.  What's the matter with keeping our call centers in the
United States?  And do we *really* need a call center to maintain the
stinkin' temperature?!  I don't think so.  It just goes to show the
stupidity of some of the things my employer does.


On Saturday, October 18, 2003, at 09:21  AM, Martin Gainty wrote:

> Worse..the People maintaining the Call Center system are permanently
> out to
> lunch
> They make US government workers look industrious!
> -M
> - Original Message -
> From: "Adam Hardy" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, October 18, 2003 5:45 AM
> Subject: Re: [FRIDAY] Free Dog. (going further OT!)
>
>
>> On 10/17/2003 10:10 PM Andy Engle wrote:
>>> Sorry to diverge from the already off-topic topic, but this one
>>> couldn't go without being shared: It's really hot in the room we work
>>> in today.  We've been trying to cool it down in here, but I just
>>> heard
>>> from a co-worker of mine (who heard it from our boss) that the
>>> heating
>>> and air conditioning in our room (which is in a much larger building
>>> here in northern IL) is actually managed/monitored by a group in
>>> India,
>>> where supposedly there is a call center that handles such matters.
>>> It's hot and stuffy in the cave right now (we refer to the room we
>>> work
>>> in as the cave, since there are no windows or signs of the great
>>> outdoors) -- everyone is hot and complaining about it.  Anyway, this
>>> co-worker just told me that our boss apparently called the
>>> maintenance
>>> people to compliain about the excessive heat problem this morning,
>>> but
>>> his call was routed to a call center in *India*, where the person
>>> there
>>> logged a ticket for the heat to be turned down.  That ticket was
>>> logged, but in the end the problem is due to the fact that the heat
>>> was
>>> left on, and the person who can turn it down is out today.  So, in
>>> spite of our *international* effort to make sure we're all
>>> comfortable
>>> in our office buildings, the ticket logged in India is being
>>> unanswered
>>> by a vacationing maintenance worker who is simply not around to cut
>>> the
>>> heat back a little.
>>
>> Global warming?
>>
>> Adam
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tag help - wanting to represent a table with a scrollbar, a grid, etc.

2003-10-19 Thread Nick Faiz
Hi,
Is anyone aware of a tag library which can provide me with a table
within a table, which has a scroll bar?
I'm trying to represent a varying collection of reports within a
nested html table.
I thought I'd see if there was a common, tag orientated solution to
this before I started hunting for my own.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Defining Struts in Terms of PofEAA

2003-10-19 Thread Shane Mingins
Thanks for that Pete.  The message you may be referring to was:

>Hi all,
>
>What are the various Design Patterns used in Struts? Links welcome
>
>
>Thanks & Regards,
>Prasenjit Narwade.

Does that look like it?  The response was from the Struts In Action book
i.e. (Appendix A).

What I am wanting (if it actually is possible - which means that someone
familiar with Struts and PofEAA will be able to answer) is the whether some
of the PofEAA patterns apply to the elements of the controller layer.

Martin refers to the Struts framework briefly as FrontController(344) and
TemplateView(350).

Thanks 
Shane


> -Original Message-
> From: Peter Abbot [mailto:[EMAIL PROTECTED]
> Sent: Monday, 20 October 2003 3:47 p.m.
> To: Struts Users Mailing List
> Subject: RE: Defining Struts in Terms of PofEAA
> 
> I recall a couple of weeks ago somebody responded to a similar question
> breaking each component from the struts framework into the matching
> design pattern(s). Try searching the list archives for it.
> 
> 
> Pete
> 
> -Original Message-
> From: Shane Mingins [mailto:[EMAIL PROTECTED]
> Sent: Monday, 20 October 2003 3:39 p.m.
> To: 'Struts Users Mailing List'
> Subject: RE: Defining Struts in Terms of PofEAA
> 
> 
> Hi Martin
> 
> Thanks, but no it didn't ;-)
> 
> I am wondering if (for example) the Action Classes would actually be
> considered an ApplicationController(379) as opposed to an Input
> Controller which is the term Martin uses for the Controller in the
> MVC(330) pattern.
> 
> Or maybe it's a PageController(333)???
> 
> Cheers
> Shane
> 
> 
> > -Original Message-
> > From: Martin Gainty [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 20 October 2003 3:29 p.m.
> > To: Struts Users Mailing List
> > Subject: Re: Defining Struts in Terms of PofEAA
> >
> > Shane-
> >
> > Take a look at
> > http://martinfowler.com/eaaCatalog/modelViewController.html
> >
> > To quote HyperDictionary:
> > (MVC) A way of partitioning the design of interactive software. The
> > "model" is the internal workings of the program (the algorithms), the
> > "view" is how
> > the user sees the state of the model and the "controller" is how the
> user
> > changes the state or provides input.
> >
> > Hope this helps,
> >
> > -Martin
> > - Original Message -
> > From: "Shane Mingins" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, October 19, 2003 10:20 PM
> > Subject: Defining Struts in Terms of PofEAA
> >
> >
> > > Hi
> > >
> > > I was wondering if someone could be so kind as to define the Struts
> > > architecture in terms of the patterns in Martin Fowler's Patterns of
> 
> > > Enterprise Architecture.
> > >
> > > Is it possible to define the following elements in the controller
> > > layer (from Struts In Action):
> > >
> > > ActionForwards
> > > ActionForm Classes
> > > ActionServlet
> > > ActionMappings
> > > Action Classes
> > >
> > > As I read about input controllers vs application controller and then
> > page
> > > controllers, I am wondering whether elements of the Struts framework
> > fall
> > > into these patterns or not?
> > >
> > > Could some one familiar with both Struts and PofEAA please enlighten
> 
> > > me?
> > >
> > > Thanks
> > > Shane
> > >
> > > Shane Mingins
> > > Analyst Programmer
> > > Assure NZ Ltd
> > > Ph 644 494 2522
> > >
> > >
> > >
> > > 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to set an Alt or title messages on a

2003-10-19 Thread Jonathon Brozny
The site that I am working on has many forms.
And to make it easier on the users, I am making descriptions in either
the alt attribute or the title attribute of the form, depending on the
type.
I have found that title works fine for the html:text, and alt works for
images, neither of these works for the html:select even though it has
both of these attributes.
Is there some way to make the info pop up when the cursor is held over
the select fields like there is on the text and other fields?
 
Thanks for your help.
 
Jonathon


RE: Defining Struts in Terms of PofEAA

2003-10-19 Thread Peter Abbot
I recall a couple of weeks ago somebody responded to a similar question
breaking each component from the struts framework into the matching
design pattern(s). Try searching the list archives for it.


Pete

-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED] 
Sent: Monday, 20 October 2003 3:39 p.m.
To: 'Struts Users Mailing List'
Subject: RE: Defining Struts in Terms of PofEAA


Hi Martin

Thanks, but no it didn't ;-) 

I am wondering if (for example) the Action Classes would actually be
considered an ApplicationController(379) as opposed to an Input
Controller which is the term Martin uses for the Controller in the
MVC(330) pattern.  

Or maybe it's a PageController(333)???

Cheers
Shane


> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Monday, 20 October 2003 3:29 p.m.
> To: Struts Users Mailing List
> Subject: Re: Defining Struts in Terms of PofEAA
> 
> Shane-
> 
> Take a look at 
> http://martinfowler.com/eaaCatalog/modelViewController.html
> 
> To quote HyperDictionary:
> (MVC) A way of partitioning the design of interactive software. The 
> "model" is the internal workings of the program (the algorithms), the 
> "view" is how
> the user sees the state of the model and the "controller" is how the
user
> changes the state or provides input.
> 
> Hope this helps,
> 
> -Martin
> - Original Message -
> From: "Shane Mingins" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 19, 2003 10:20 PM
> Subject: Defining Struts in Terms of PofEAA
> 
> 
> > Hi
> >
> > I was wondering if someone could be so kind as to define the Struts 
> > architecture in terms of the patterns in Martin Fowler's Patterns of

> > Enterprise Architecture.
> >
> > Is it possible to define the following elements in the controller 
> > layer (from Struts In Action):
> >
> > ActionForwards
> > ActionForm Classes
> > ActionServlet
> > ActionMappings
> > Action Classes
> >
> > As I read about input controllers vs application controller and then
> page
> > controllers, I am wondering whether elements of the Struts framework
> fall
> > into these patterns or not?
> >
> > Could some one familiar with both Struts and PofEAA please enlighten

> > me?
> >
> > Thanks
> > Shane
> >
> > Shane Mingins
> > Analyst Programmer
> > Assure NZ Ltd
> > Ph 644 494 2522
> >
> >
> >
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Defining Struts in Terms of PofEAA

2003-10-19 Thread Shane Mingins
Hi Martin

Thanks, but no it didn't ;-) 

I am wondering if (for example) the Action Classes would actually be
considered an ApplicationController(379) as opposed to an Input Controller
which is the term Martin uses for the Controller in the MVC(330) pattern.  

Or maybe it's a PageController(333)???

Cheers
Shane


> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Monday, 20 October 2003 3:29 p.m.
> To: Struts Users Mailing List
> Subject: Re: Defining Struts in Terms of PofEAA
> 
> Shane-
> 
> Take a look at
> http://martinfowler.com/eaaCatalog/modelViewController.html
> 
> To quote HyperDictionary:
> (MVC) A way of partitioning the design of interactive software. The
> "model"
> is the internal workings of the program (the algorithms), the "view" is
> how
> the user sees the state of the model and the "controller" is how the user
> changes the state or provides input.
> 
> Hope this helps,
> 
> -Martin
> - Original Message -
> From: "Shane Mingins" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 19, 2003 10:20 PM
> Subject: Defining Struts in Terms of PofEAA
> 
> 
> > Hi
> >
> > I was wondering if someone could be so kind as to define the Struts
> > architecture in terms of the patterns in Martin Fowler's Patterns of
> > Enterprise Architecture.
> >
> > Is it possible to define the following elements in the controller layer
> > (from Struts In Action):
> >
> > ActionForwards
> > ActionForm Classes
> > ActionServlet
> > ActionMappings
> > Action Classes
> >
> > As I read about input controllers vs application controller and then
> page
> > controllers, I am wondering whether elements of the Struts framework
> fall
> > into these patterns or not?
> >
> > Could some one familiar with both Struts and PofEAA please enlighten me?
> >
> > Thanks
> > Shane
> >
> > Shane Mingins
> > Analyst Programmer
> > Assure NZ Ltd
> > Ph 644 494 2522
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Defining Struts in Terms of PofEAA

2003-10-19 Thread Martin Gainty
Shane-

Take a look at
http://martinfowler.com/eaaCatalog/modelViewController.html

To quote HyperDictionary:
(MVC) A way of partitioning the design of interactive software. The "model"
is the internal workings of the program (the algorithms), the "view" is how
the user sees the state of the model and the "controller" is how the user
changes the state or provides input.

Hope this helps,

-Martin
- Original Message - 
From: "Shane Mingins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 10:20 PM
Subject: Defining Struts in Terms of PofEAA


> Hi
>
> I was wondering if someone could be so kind as to define the Struts
> architecture in terms of the patterns in Martin Fowler's Patterns of
> Enterprise Architecture.
>
> Is it possible to define the following elements in the controller layer
> (from Struts In Action):
>
> ActionForwards
> ActionForm Classes
> ActionServlet
> ActionMappings
> Action Classes
>
> As I read about input controllers vs application controller and then page
> controllers, I am wondering whether elements of the Struts framework fall
> into these patterns or not?
>
> Could some one familiar with both Struts and PofEAA please enlighten me?
>
> Thanks
> Shane
>
> Shane Mingins
> Analyst Programmer
> Assure NZ Ltd
> Ph 644 494 2522
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Defining Struts in Terms of PofEAA

2003-10-19 Thread Shane Mingins
Hi

I was wondering if someone could be so kind as to define the Struts
architecture in terms of the patterns in Martin Fowler's Patterns of
Enterprise Architecture.

Is it possible to define the following elements in the controller layer
(from Struts In Action):

ActionForwards
ActionForm Classes  
ActionServlet
ActionMappings  
Action Classes  

As I read about input controllers vs application controller and then page
controllers, I am wondering whether elements of the Struts framework fall
into these patterns or not?

Could some one familiar with both Struts and PofEAA please enlighten me?

Thanks
Shane

Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: i18n - Chinese charactor problem

2003-10-19 Thread ZYD
It's said version4.1 supports unicode, my MySQL version: 4.1.0-alpha-max-nt,  but I 
cannot execute the following:

CREATE TABLE unicodetable ( myrow VARCHAR(200) )
   CHARACTER SET UTF8;

ERROR 1115: Unknown character set: 'UTF8'

connection url is:
drivers=org.gjt.mm.mysql.Driver
mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUnicode=true&characterEncoding=UTF-8

mysql-connector-java-3.0.9-stable-bin.jar is in F:\Program Files\Apache Group\Tomcat 
4.1\common\lib

When I write chinese charactor to MySQL, it's not working properly.


- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 12:09 AM
Subject: Re: i18n - Chinese charactor problem


> What version of mySQL do you have? I believe that complete unicode 
> support is only present in the latest perhaps even beta versions.
> 
> Adam
> 
> On 10/18/2003 07:43 PM ZYD wrote:
> > No, UTF-8 does not work.
> > 
> > - Original Message - 
> > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, October 17, 2003 4:49 PM
> > Subject: Re: i18n - Chinese charactor problem
> > 
> > 
> > 
> >>UTF-8
> >>
> >>On 10/16/2003 07:25 PM ZYD wrote:
> >>
> >>>Now I use UTF-8 everywhere instead of gb2312, this problem is gone. Thanks for 
> >>>your help.
> >>>
> >>>I have another problem, hope can get some advice from you:
> >>>
> >>>I used the following url to connect to MySQL:
> >>>mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUnicode=true&characterEncoding=GB2312
> >>>
> >>>use GB2312 in this string is not a good idea I think. 
> >>>
> >>>Then what should the "characterEncoding" be?
> >>>
> >>>-bruce
> >>>
> >>>- Original Message - 
> >>>From: "Jason Lea" <[EMAIL PROTECTED]>
> >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>>Sent: Friday, October 17, 2003 11:34 AM
> >>>Subject: Re: i18n - Chinese charactor problem
> >>>
> >>>
> >>>
> >>>
> If you are using UTF-8 everywhere it should work - I use it for english 
> & Japanese and it works.
> You mentioned in another message you had this:
> 
> SetCharacterEncodingFilter
> 
> encoding
> GB2312
> 
> Are you still using that?  or UTF-8?
> Everything has to match.
> 
> 
> ZYD wrote:
> 
> 
> 
> >Hi Jason,
> >
> >Thank you for your response.
> >
> >I did exactly the same thing as the article said, but still, not working 
> >properly.
> >
> >Chinese can be displayed, but not in the text box.  
> >
> >If I change <%@ page contentType="text/html; charset=UTF-8" %> to
> ><%@ page contentType="text/html; charset=GBK" %> 
> >then the Chinese charactors are handled properly.
> >
> >Why is that?
> >
> >- Original Message - 
> >From: "Jason Lea" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, October 17, 2003 5:51 AM
> >Subject: Re: i18n - Chinese charactor problem
> >
> >
> >
> >
> >
> >
> >>Here is a link that explains what is needed and a filter to do it...
> >>
> >>http://www.anassina.com/struts/i18n/i18n.html
> >>
> >>
> >>Greg Reddin wrote:
> >>
> >>  
> >>
> >>
> >>
> >>>I don't remember the exact code, but a looong time ago we had to write 
> >>>a Filter that created a request wrapper that properly set the 
> >>>character encoding on request parameters.  Maybe googling that would 
> >>>turn up something.
> >>>
> >>>Greg
> >>>
> >>>ZYD wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> Hi,
> I have a problem in getting the Chinese charactors from ,
> The following is my jsp file:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> I have two property files, one is for englisn, the other is for 
> chinese. Both english and chinese can be displayed properly on the 
> page, except in the text box.
> 
> When I input chinese charactors in the text box and submit, I cannot 
> get the chinese charactor in the form bean correctly. The chinese 
> charactors become some unreadable charactors like .
> 
> There are no special process in the getEmail and setEmail method in 
> the form bean.
> 
> Does anybody have similar problem? I need your advice.
> Any response is appreciated.
> 
> 
> -- 
> --
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
> 
> 
> ---

Re: i18n - Chinese charactor problem

2003-10-19 Thread ZYD
I use mysql-connector-java-3.0.9-stable-bin.jar, it is in F:\Program Files\Apache 
Group\Tomcat 4.1\common\lib

MySQL version: 4.1.0-alpha-max-nt, 

connection url is:

drivers=org.gjt.mm.mysql.Driver
mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUnicode=true&characterEncoding=UTF-8

Not works fine.


- Original Message - 
From: "Jim Theodoridis" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 12:27 AM
Subject: Re: i18n - Chinese charactor problem


> Wich jdbc driver for mySQL are U using?
> 
> It works fine to me mysql-connector-java-3.0.8 for Greeks
> 
> 
> - Original Message -
> From: "Adam Hardy" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Sunday, October 19, 2003 7:09 PM
> Subject: Re: i18n - Chinese charactor problem
> 
> 
> > What version of mySQL do you have? I believe that complete unicode
> > support is only present in the latest perhaps even beta versions.
> >
> > Adam
> >
> > On 10/18/2003 07:43 PM ZYD wrote:
> > > No, UTF-8 does not work.
> > >
> > > - Original Message -
> > > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, October 17, 2003 4:49 PM
> > > Subject: Re: i18n - Chinese charactor problem
> > >
> > >
> > >
> > >>UTF-8
> > >>
> > >>On 10/16/2003 07:25 PM ZYD wrote:
> > >>
> > >>>Now I use UTF-8 everywhere instead of gb2312, this problem is gone.
> Thanks for your help.
> > >>>
> > >>>I have another problem, hope can get some advice from you:
> > >>>
> > >>>I used the following url to connect to MySQL:
> >
> >>>mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUn
> icode=true&characterEncoding=GB2312
> > >>>
> > >>>use GB2312 in this string is not a good idea I think.
> > >>>
> > >>>Then what should the "characterEncoding" be?
> > >>>
> > >>>-bruce
> > >>>
> > >>>- Original Message -
> > >>>From: "Jason Lea" <[EMAIL PROTECTED]>
> > >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >>>Sent: Friday, October 17, 2003 11:34 AM
> > >>>Subject: Re: i18n - Chinese charactor problem
> > >>>
> > >>>
> > >>>
> > >>>
> > If you are using UTF-8 everywhere it should work - I use it for
> english
> > & Japanese and it works.
> > You mentioned in another message you had this:
> > 
> > SetCharacterEncodingFilter
> > 
> > encoding
> > GB2312
> > 
> > Are you still using that?  or UTF-8?
> > Everything has to match.
> > 
> > 
> > ZYD wrote:
> > 
> > 
> > 
> > >Hi Jason,
> > >
> > >Thank you for your response.
> > >
> > >I did exactly the same thing as the article said, but still, not
> working properly.
> > >
> > >Chinese can be displayed, but not in the text box.
> > >
> > >If I change <%@ page contentType="text/html; charset=UTF-8" %> to
> > ><%@ page contentType="text/html; charset=GBK" %>
> > >then the Chinese charactors are handled properly.
> > >
> > >Why is that?
> > >
> > >- Original Message -
> > >From: "Jason Lea" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Sent: Friday, October 17, 2003 5:51 AM
> > >Subject: Re: i18n - Chinese charactor problem
> > >
> > >
> > >
> > >
> > >
> > >
> > >>Here is a link that explains what is needed and a filter to do it...
> > >>
> > >>http://www.anassina.com/struts/i18n/i18n.html
> > >>
> > >>
> > >>Greg Reddin wrote:
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>>I don't remember the exact code, but a looong time ago we had to
> write
> > >>>a Filter that created a request wrapper that properly set the
> > >>>character encoding on request parameters.  Maybe googling that
> would
> > >>>turn up something.
> > >>>
> > >>>Greg
> > >>>
> > >>>ZYD wrote:
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > Hi,
> > I have a problem in getting the Chinese charactors from
> ,
> > The following is my jsp file:
> > <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > I have two property files, one is for englisn, the other is for
> > chinese. Both english and chinese can be displayed properly on the
> > page, except in the text box.
> > 
> > When I input chinese charactors in the text box and submit, I
> cannot
> > get the chinese charactor in the form bean correctly. The chinese
> > charactors become some unreadable charactors like .
> > 
> > 

Re: i18n - Chinese charactor problem

2003-10-19 Thread ZYD

MySQL version: 4.1.0-alpha-max-nt, 

connection url is:

drivers=org.gjt.mm.mysql.Driver
mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUnicode=true&characterEncoding=UTF-8

mysql-connector-java-3.0.9-stable-bin.jar is in F:\Program Files\Apache Group\Tomcat 
4.1\common\lib

When I write chinese charactor to MySQL, it's not working properly.

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 12:09 AM
Subject: Re: i18n - Chinese charactor problem


> What version of mySQL do you have? I believe that complete unicode 
> support is only present in the latest perhaps even beta versions.
> 
> Adam
> 
> On 10/18/2003 07:43 PM ZYD wrote:
> > No, UTF-8 does not work.
> > 
> > - Original Message - 
> > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, October 17, 2003 4:49 PM
> > Subject: Re: i18n - Chinese charactor problem
> > 
> > 
> > 
> >>UTF-8
> >>
> >>On 10/16/2003 07:25 PM ZYD wrote:
> >>
> >>>Now I use UTF-8 everywhere instead of gb2312, this problem is gone. Thanks for 
> >>>your help.
> >>>
> >>>I have another problem, hope can get some advice from you:
> >>>
> >>>I used the following url to connect to MySQL:
> >>>mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUnicode=true&characterEncoding=GB2312
> >>>
> >>>use GB2312 in this string is not a good idea I think. 
> >>>
> >>>Then what should the "characterEncoding" be?
> >>>
> >>>-bruce
> >>>
> >>>- Original Message - 
> >>>From: "Jason Lea" <[EMAIL PROTECTED]>
> >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>>Sent: Friday, October 17, 2003 11:34 AM
> >>>Subject: Re: i18n - Chinese charactor problem
> >>>
> >>>
> >>>
> >>>
> If you are using UTF-8 everywhere it should work - I use it for english 
> & Japanese and it works.
> You mentioned in another message you had this:
> 
> SetCharacterEncodingFilter
> 
> encoding
> GB2312
> 
> Are you still using that?  or UTF-8?
> Everything has to match.
> 
> 
> ZYD wrote:
> 
> 
> 
> >Hi Jason,
> >
> >Thank you for your response.
> >
> >I did exactly the same thing as the article said, but still, not working 
> >properly.
> >
> >Chinese can be displayed, but not in the text box.  
> >
> >If I change <%@ page contentType="text/html; charset=UTF-8" %> to
> ><%@ page contentType="text/html; charset=GBK" %> 
> >then the Chinese charactors are handled properly.
> >
> >Why is that?
> >
> >- Original Message - 
> >From: "Jason Lea" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, October 17, 2003 5:51 AM
> >Subject: Re: i18n - Chinese charactor problem
> >
> >
> >
> >
> >
> >
> >>Here is a link that explains what is needed and a filter to do it...
> >>
> >>http://www.anassina.com/struts/i18n/i18n.html
> >>
> >>
> >>Greg Reddin wrote:
> >>
> >>  
> >>
> >>
> >>
> >>>I don't remember the exact code, but a looong time ago we had to write 
> >>>a Filter that created a request wrapper that properly set the 
> >>>character encoding on request parameters.  Maybe googling that would 
> >>>turn up something.
> >>>
> >>>Greg
> >>>
> >>>ZYD wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> Hi,
> I have a problem in getting the Chinese charactors from ,
> The following is my jsp file:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> I have two property files, one is for englisn, the other is for 
> chinese. Both english and chinese can be displayed properly on the 
> page, except in the text box.
> 
> When I input chinese charactors in the text box and submit, I cannot 
> get the chinese charactor in the form bean correctly. The chinese 
> charactors become some unreadable charactors like .
> 
> There are no special process in the getEmail and setEmail method in 
> the form bean.
> 
> Does anybody have similar problem? I need your advice.
> Any response is appreciated.
> 
> 
> -- 
> --
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Re: Oracle 10g Preview & Linux [OT]

2003-10-19 Thread Martin Gainty
Christian-
I have downloaded JDeveloper 10g
and noticed there is no Application Template for Struts?
Is this intentional?
Vielen Dank,
-Martin
- Original Message - 
From: "Christian Bollmeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 12:51 PM
Subject: Oracle 10g Preview & Linux [OT]


> Hi all,
> 
> if anybody else is using the Oracle 10g Preview for Struts
> development and therefore had to live with the browser
> command line bug until now (the Preview always forgets the
> browser command line, and when starting OC4J, clicking
> on the link given in the 'Embedded OC4J' window doesn't
> work) here's a simple workaround:
> 
> Obviously, JDev 10g defaults to using 'netscape' if no
> other browser command is given. If you're using some
> other browser, like Mozilla as in my case, the obvious
> thing is to add a symbolic link named 'netscape'
> pointing to your Mozilla or whatever startup script.
> For SuSE, the Mozilla command (also a link) is
> found in /usr/bin. Go there, su to root and just
> issue 'ln -s mozilla netscape'. Then everything
> should work as expected again.
> 
> -- Chris.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator error (Struts nightly build)

2003-10-19 Thread Marc Dugger
I'm receiving the following exception:

line 1:30: unexpected char: '0'
at
org.apache.struts.validator.validwhen.ValidWhenLexer.nextToken(ValidWhenLexe
r.java:236)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at antlr.LLkParser.LA(LLkParser.java:52)
at
org.apache.struts.validator.validwhen.ValidWhenParser.value(ValidWhenParser.
java:384)
  ...etc. etc.

I think the following in my validation.xml is causing it
(prepaymentPenaltyClause is an 'Integer' field in the DynaValidationForm):




  test
  ((prepaymentPenaltyClause != 0) and (*this* !=
null))



Am I using 'validwhen' correctly here?  Thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: Looking up the Struts Datasource

2003-10-19 Thread Craig R. McClanahan
Wolfgang Woger wrote:



Craig R. McClanahan wrote:

Philipp Röthl wrote:

That's not really what I would like to do.

public ActionForward
  execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) throws Exception
{
   SomeBean  myBean = new SomeBean();
}
public class SomeBean()
{
  public SomeBean()
{
   //how do I get the Struts DS here - without passing it as an 
attribute?
}

}

Any hints?

 

Short answer -- you don't.

The Struts data source isn't magical -- it's an object like any other 
object, and in order for a method in some bean to talk to an 
instance, the method needs a reference to that object.  Typically, 
that means you need to pass it in as a method parameter, make it 
visible through some static getter or factory method, or make it 
visible in some global repository that is available to the bean 
instance.

Using JNDI-based data sources is an example of the third approach.  
Indeed, that is one of the main reasons that using JNDI data sources 
should be preferred to using the one provided by Struts -- your 
method inside SomeBean can ask for the data source whenever it needs 
to, without having to pass it around.  (There are other advantages as 
well, but this is the one most relevant to your concern here.)


So, when ever you neet a datasource, the method in SomeBean will have 
to search it in JNDI. Doesn't this pose a performance penalty?


The JNDI environment is a glorified HashMap, so it's not like this is 
particularly expensive.  Certainly no more expensive than modifying all 
your beans to pass along a DataSource or Connection parameter to any 
method that needs it.

Craig



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: reading the xml file

2003-10-19 Thread Larry Meadors
Doing it the way you describe will only work from a servlet. If that is
ok, stop reading and do it that way. :-)

A more general way would be to use a classloader instead. There are many
good articles on how to do this (google for 'classloader resource'), but
 one simple way is this:

  InputStream is = 
getClass().getClassLoader().
getResourceAsStream("foo.xml");

To do this, the resource foo.xml *must* be on your classpath. If it is
in a package, you need to specify that in the call made to the
getResourceAsStream() method. Also this cannot be done in a static
context. If you are in a static block of code, you can use this instead:

  InputStream is = 
Thread.currentThread().getContextClassLoader().
getResourceAsStream("foo.xml");

Larry

>>> [EMAIL PROTECTED] 10/19/03 10:22 AM >>>
Hallo,
I thinkin how I can read the xml file from /WEB-INF directory.

I found something as 
InputStream is =
servletContext.getResourceAsStream("/WEB-INF/something.xml")

but how I can get servletContext?. Or, is t good way to read data, as 
datasource names, from xml file and store it as instance of config file
in 
session? is there any better way?

Thanks for help,
Jiri


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: reading the xml file

2003-10-19 Thread Craig R. McClanahan
Jiri Chaloupka wrote:

Hallo,
I thinkin how I can read the xml file from /WEB-INF directory.
I found something as 
InputStream is = servletContext.getResourceAsStream("/WEB-INF/something.xml")

but how I can get servletContext?.

From inside an Action, you can call getServlet().getServletContext().

Or, is t good way to read data, as 
datasource names, from xml file and store it as instance of config file in 
session? is there any better way?

 

It had *better* be a good way to read data, because Struts uses this 
technique itself to read your struts-config.xml file :-).

A common technique is to read configuration information from a resource 
like this at the startup time of your web application (in Struts, you 
could use a PlugIn for this and put the reading code in the init() 
method).  After reading, you would typically store the resulting data 
into servlet context attributes (also known as application scope) so 
that they are available to all users.  Indeed, this is exactly what 
Struts does -- for example, the ModuleConfig for the default application 
module is stored under servlet context attribute key 
"org.apache.struts.action.Module" (normally referenced by the symbolic 
constant Globals.MODULE_KEY) so that all parts of Struts have access to it.

Thanks for help,
Jiri
 

Craig



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: reading the xml file

2003-10-19 Thread James Mitchell
Take a look at the DigestingPlugin:

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=digestingplugin&b
tnG=Google+Search



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




> -Original Message-
> From: Jiri Chaloupka [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, October 19, 2003 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: reading the xml file
> 
> 
> Hallo,
> I thinkin how I can read the xml file from /WEB-INF directory.
> 
> I found something as 
> InputStream is = 
> servletContext.getResourceAsStream("/WEB-INF/something.xml")
> 
> but how I can get servletContext?. Or, is t good way to read data, as 
> datasource names, from xml file and store it as instance of 
> config file in 
> session? is there any better way?
> 
> Thanks for help,
> Jiri
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Oracle 10g Preview & Linux [OT]

2003-10-19 Thread Christian Bollmeyer
Hi all,

if anybody else is using the Oracle 10g Preview for Struts
development and therefore had to live with the browser
command line bug until now (the Preview always forgets the
browser command line, and when starting OC4J, clicking
on the link given in the 'Embedded OC4J' window doesn't
work) here's a simple workaround:

Obviously, JDev 10g defaults to using 'netscape' if no
other browser command is given. If you're using some
other browser, like Mozilla as in my case, the obvious
thing is to add a symbolic link named 'netscape'
pointing to your Mozilla or whatever startup script.
For SuSE, the Mozilla command (also a link) is
found in /usr/bin. Go there, su to root and just
issue 'ln -s mozilla netscape'. Then everything
should work as expected again.

-- Chris.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: Looking up the Struts Datasource

2003-10-19 Thread Wolfgang Woger


Craig R. McClanahan wrote:

Philipp Röthl wrote:

That's not really what I would like to do.

public ActionForward
  execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) throws Exception
{
   SomeBean  myBean = new SomeBean();
}
public class SomeBean()
{
  public SomeBean()
{
   //how do I get the Struts DS here - without passing it as an 
attribute?
}

}

Any hints?

 

Short answer -- you don't.

The Struts data source isn't magical -- it's an object like any other 
object, and in order for a method in some bean to talk to an instance, 
the method needs a reference to that object.  Typically, that means 
you need to pass it in as a method parameter, make it visible through 
some static getter or factory method, or make it visible in some 
global repository that is available to the bean instance.

Using JNDI-based data sources is an example of the third approach.  
Indeed, that is one of the main reasons that using JNDI data sources 
should be preferred to using the one provided by Struts -- your method 
inside SomeBean can ask for the data source whenever it needs to, 
without having to pass it around.  (There are other advantages as 
well, but this is the one most relevant to your concern here.)
So, when ever you neet a datasource, the method in SomeBean will have to 
search it in JNDI. Doesn't this pose a performance penalty?


phi

 

Craig



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: "could not deserialize the context attribute .. " (configurat ion: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Shay Cohen
10nx.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 19, 2003 4:25 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: "could not deserialize the context attribute .. "
(configuration: struts 1.1 + web logic 8.1), is it a known bug ?


This is a WL specific issue
"servlet 2.3 spec disallow non serialized objects in the PageContext so
built this into the current
release of Weblogic."

Later on Matt Heaton remarks:
"Struts source and it's trying to use objects which aren't serializable as
JSP page context attributes"

Craig McClanahan replies:
"Yep.  Looking more closely at the error message, it is complaining about a
non-Serializable *context* attribute, not a *session* attribute.  I, like
others, jumped to the wrong conclusion there. The spec provides no
prohibitions on this -- only a warning that you cannot
use a context attribute to share information globally in your application
(the
way that the example app does with its pseudo-database) in a distributed
nvironment.
Is there by chance some WebLogic specific configuration property you have
set that makes it think this (or maybe all) applications should be treated
as distributable?"

A Later comment by Craig:
"I'm afraid that I see no such requirement in the servlet 2.3 spec (and I'm
on
the expert group that came up with it :-).  The only restrictions on
Serializable attributes in the spec itself relate to *session* attributes,
not
*context* attributes.  And that restriction only applies when you mark your
app
as .

Note also that the WebLogic response quoted in the message from Ruslan gave
an
entirely different reasoning (their application server requires all
attributes
to be Serializable if you use the "reload on modify" feature).  That's an
entirely reasonable restriction for WebLogic to place, based on their
container's internal architecture.  It's not, however, a spec compliance
issue.

That all being said, I'm looking at ways to make MessageResources a
Serializable
object.  Unfortunately, java.util.ResourceBundle (which it relies on) is
*not*
Serializable, so a different solution to that is going to be required.

The pseudo-database in the Struts example application (which has nothing to
do
with the framework itself) is not Serializable, and will *not* operate
correctly
in a distributed environment.  I'm NOT planning on changing that in the
short
term, because it's only there to give you a quick "proof of concept" that
Struts
is working, plus some examples of some Struts-related development
techniques."

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01017.html

Weblogic Solution:
"WLS comes with reload-on-modify turned on out of the box. You can turn it
off by setting reload periods to -1 (never check). There are two separate
params for JSP and servlets.
The one for JSPs is set in weblogic.xml descriptor,
the one for servlets is set in the console."

i.e. Turn off reload-on-modify

Sorry for the long-winded response!

-Martin
- Original Message - 
From: "Marc Dugger" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 8:36 AM
Subject: RE: "could not deserialize the context attribute .. "
(configuration: struts 1.1 + web logic 8.1), is it a known bug ?


> I had a somewhat similar issue with Tomcat when it came to serializing a
> FormFile.  I got around this by extending the MultipartRequestHandler and
> implementing Serializable.  It appears that you could do the same with the
> RequestProcessor.  Be sure to add this to your struts-config.xml:
>
>  nocache="true" processorClass="your.package.CustomRequestProcessor"
> debug="9" />
>
>
> > -Original Message-
> > From: Shay Cohen [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, October 19, 2003 3:17 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: "could not deserialize the context attribute .. "
> > (configuration: struts 1.1 + web logic 8.1), is it a known bug ?
> >
> >
> > Hi,
> >
> > I've encountered lately the following exception "Could not deserialize
> > context attribute". Reported on the following attribute:
> >
> >
> > Attribute: org.apache.struts.action.REQUEST_PROCESSOR
(object:
> > org.apache.struts.tiles.TilesRequestProcessor)
> >
> > After reading old emails concerning the subject, I've learned that this
is
> > due to weblogic restrictions that require context attributes to be
> > serializable.
> >
> >
> > Is there any workaround to this problem? will it be solved  ?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,

Re: i18n - Chinese charactor problem

2003-10-19 Thread Jim Theodoridis
Wich jdbc driver for mySQL are U using?

It works fine to me mysql-connector-java-3.0.8 for Greeks


- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 7:09 PM
Subject: Re: i18n - Chinese charactor problem


> What version of mySQL do you have? I believe that complete unicode
> support is only present in the latest perhaps even beta versions.
>
> Adam
>
> On 10/18/2003 07:43 PM ZYD wrote:
> > No, UTF-8 does not work.
> >
> > - Original Message -
> > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, October 17, 2003 4:49 PM
> > Subject: Re: i18n - Chinese charactor problem
> >
> >
> >
> >>UTF-8
> >>
> >>On 10/16/2003 07:25 PM ZYD wrote:
> >>
> >>>Now I use UTF-8 everywhere instead of gb2312, this problem is gone.
Thanks for your help.
> >>>
> >>>I have another problem, hope can get some advice from you:
> >>>
> >>>I used the following url to connect to MySQL:
>
>>>mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUn
icode=true&characterEncoding=GB2312
> >>>
> >>>use GB2312 in this string is not a good idea I think.
> >>>
> >>>Then what should the "characterEncoding" be?
> >>>
> >>>-bruce
> >>>
> >>>- Original Message -
> >>>From: "Jason Lea" <[EMAIL PROTECTED]>
> >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>>Sent: Friday, October 17, 2003 11:34 AM
> >>>Subject: Re: i18n - Chinese charactor problem
> >>>
> >>>
> >>>
> >>>
> If you are using UTF-8 everywhere it should work - I use it for
english
> & Japanese and it works.
> You mentioned in another message you had this:
> 
> SetCharacterEncodingFilter
> 
> encoding
> GB2312
> 
> Are you still using that?  or UTF-8?
> Everything has to match.
> 
> 
> ZYD wrote:
> 
> 
> 
> >Hi Jason,
> >
> >Thank you for your response.
> >
> >I did exactly the same thing as the article said, but still, not
working properly.
> >
> >Chinese can be displayed, but not in the text box.
> >
> >If I change <%@ page contentType="text/html; charset=UTF-8" %> to
> ><%@ page contentType="text/html; charset=GBK" %>
> >then the Chinese charactors are handled properly.
> >
> >Why is that?
> >
> >- Original Message -
> >From: "Jason Lea" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, October 17, 2003 5:51 AM
> >Subject: Re: i18n - Chinese charactor problem
> >
> >
> >
> >
> >
> >
> >>Here is a link that explains what is needed and a filter to do it...
> >>
> >>http://www.anassina.com/struts/i18n/i18n.html
> >>
> >>
> >>Greg Reddin wrote:
> >>
> >>
> >>
> >>
> >>
> >>>I don't remember the exact code, but a looong time ago we had to
write
> >>>a Filter that created a request wrapper that properly set the
> >>>character encoding on request parameters.  Maybe googling that
would
> >>>turn up something.
> >>>
> >>>Greg
> >>>
> >>>ZYD wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> Hi,
> I have a problem in getting the Chinese charactors from
,
> The following is my jsp file:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> I have two property files, one is for englisn, the other is for
> chinese. Both english and chinese can be displayed properly on the
> page, except in the text box.
> 
> When I input chinese charactors in the text box and submit, I
cannot
> get the chinese charactor in the form bean correctly. The chinese
> charactors become some unreadable charactors like .
> 
> There are no special process in the getEmail and setEmail method
in
> the form bean.
> 
> Does anybody have similar problem? I need your advice.
> Any response is appreciated.
>
>
> --
> --
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



reading the xml file

2003-10-19 Thread Jiri Chaloupka
Hallo,
I thinkin how I can read the xml file from /WEB-INF directory.

I found something as 
InputStream is = servletContext.getResourceAsStream("/WEB-INF/something.xml")

but how I can get servletContext?. Or, is t good way to read data, as 
datasource names, from xml file and store it as instance of config file in 
session? is there any better way?

Thanks for help,
Jiri


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: i18n - Chinese charactor problem

2003-10-19 Thread Adam Hardy
What version of mySQL do you have? I believe that complete unicode 
support is only present in the latest perhaps even beta versions.

Adam

On 10/18/2003 07:43 PM ZYD wrote:
No, UTF-8 does not work.

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:49 PM
Subject: Re: i18n - Chinese charactor problem



UTF-8

On 10/16/2003 07:25 PM ZYD wrote:

Now I use UTF-8 everywhere instead of gb2312, this problem is gone. Thanks for your help.

I have another problem, hope can get some advice from you:

I used the following url to connect to MySQL:
mysql.url=jdbc:mysql://localhost:3306/CoderPool?user=root&password=&useUnicode=true&characterEncoding=GB2312
use GB2312 in this string is not a good idea I think. 

Then what should the "characterEncoding" be?

-bruce

- Original Message - 
From: "Jason Lea" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 11:34 AM
Subject: Re: i18n - Chinese charactor problem




If you are using UTF-8 everywhere it should work - I use it for english 
& Japanese and it works.
You mentioned in another message you had this:

SetCharacterEncodingFilter

encoding
GB2312
Are you still using that?  or UTF-8?
Everything has to match.
ZYD wrote:



Hi Jason,

Thank you for your response.

I did exactly the same thing as the article said, but still, not working properly.

Chinese can be displayed, but not in the text box.  

If I change <%@ page contentType="text/html; charset=UTF-8" %> to
<%@ page contentType="text/html; charset=GBK" %> 
then the Chinese charactors are handled properly.

Why is that?

- Original Message - 
From: "Jason Lea" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 5:51 AM
Subject: Re: i18n - Chinese charactor problem






Here is a link that explains what is needed and a filter to do it...

http://www.anassina.com/struts/i18n/i18n.html

Greg Reddin wrote:

 



I don't remember the exact code, but a looong time ago we had to write 
a Filter that created a request wrapper that properly set the 
character encoding on request parameters.  Maybe googling that would 
turn up something.

Greg

ZYD wrote:

   



Hi,
I have a problem in getting the Chinese charactors from ,
The following is my jsp file:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>









-
I have two property files, one is for englisn, the other is for 
chinese. Both english and chinese can be displayed properly on the 
page, except in the text box.

When I input chinese charactors in the text box and submit, I cannot 
get the chinese charactor in the form bean correctly. The chinese 
charactors become some unreadable charactors like .

There are no special process in the getEmail and setEmail method in 
the form bean.

Does anybody have similar problem? I need your advice.
Any response is appreciated.


--
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: "could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Martin Gainty

This is a WL specific issue
"servlet 2.3 spec disallow non serialized objects in the PageContext so
built this into the current
release of Weblogic."

Later on Matt Heaton remarks:
"Struts source and it's trying to use objects which aren't serializable as
JSP page context attributes"

Craig McClanahan replies:
"Yep.  Looking more closely at the error message, it is complaining about a
non-Serializable *context* attribute, not a *session* attribute.  I, like
others, jumped to the wrong conclusion there. The spec provides no
prohibitions on this -- only a warning that you cannot
use a context attribute to share information globally in your application
(the
way that the example app does with its pseudo-database) in a distributed
nvironment.
Is there by chance some WebLogic specific configuration property you have
set that makes it think this (or maybe all) applications should be treated
as distributable?"

A Later comment by Craig:
"I'm afraid that I see no such requirement in the servlet 2.3 spec (and I'm
on
the expert group that came up with it :-).  The only restrictions on
Serializable attributes in the spec itself relate to *session* attributes,
not
*context* attributes.  And that restriction only applies when you mark your
app
as .

Note also that the WebLogic response quoted in the message from Ruslan gave
an
entirely different reasoning (their application server requires all
attributes
to be Serializable if you use the "reload on modify" feature).  That's an
entirely reasonable restriction for WebLogic to place, based on their
container's internal architecture.  It's not, however, a spec compliance
issue.

That all being said, I'm looking at ways to make MessageResources a
Serializable
object.  Unfortunately, java.util.ResourceBundle (which it relies on) is
*not*
Serializable, so a different solution to that is going to be required.

The pseudo-database in the Struts example application (which has nothing to
do
with the framework itself) is not Serializable, and will *not* operate
correctly
in a distributed environment.  I'm NOT planning on changing that in the
short
term, because it's only there to give you a quick "proof of concept" that
Struts
is working, plus some examples of some Struts-related development
techniques."

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01017.html

Weblogic Solution:
"WLS comes with reload-on-modify turned on out of the box. You can turn it
off by setting reload periods to -1 (never check). There are two separate
params for JSP and servlets.
The one for JSPs is set in weblogic.xml descriptor,
the one for servlets is set in the console."

i.e. Turn off reload-on-modify

Sorry for the long-winded response!

-Martin
- Original Message - 
From: "Marc Dugger" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 8:36 AM
Subject: RE: "could not deserialize the context attribute .. "
(configuration: struts 1.1 + web logic 8.1), is it a known bug ?


> I had a somewhat similar issue with Tomcat when it came to serializing a
> FormFile.  I got around this by extending the MultipartRequestHandler and
> implementing Serializable.  It appears that you could do the same with the
> RequestProcessor.  Be sure to add this to your struts-config.xml:
>
>  nocache="true" processorClass="your.package.CustomRequestProcessor"
> debug="9" />
>
>
> > -Original Message-
> > From: Shay Cohen [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, October 19, 2003 3:17 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: "could not deserialize the context attribute .. "
> > (configuration: struts 1.1 + web logic 8.1), is it a known bug ?
> >
> >
> > Hi,
> >
> > I've encountered lately the following exception "Could not deserialize
> > context attribute". Reported on the following attribute:
> >
> >
> > Attribute: org.apache.struts.action.REQUEST_PROCESSOR
(object:
> > org.apache.struts.tiles.TilesRequestProcessor)
> >
> > After reading old emails concerning the subject, I've learned that this
is
> > due to weblogic restrictions that require context attributes to be
> > serializable.
> >
> >
> > Is there any workaround to this problem? will it be solved  ?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE-POST: Access ActionForm data from JSP page

2003-10-19 Thread Mark Lowe
You may have taken the trouble to reflect on why there were no 
responses to your original post..

DynaActionForm theForm = (DynaActionForm) form;
Map formMap = theForm.getMap();
..or using beanutils...

Map formMap = BeanUtils.describe( theForm );
session.setAttribute("details",formMap);
...
//in your header

or

This is a quick means of doing stuff.
..
If you've a UserBean or something.

UserBean user = new UserBean();
BeanUtils.copyProperties(user,theForm);
session.setAttribute("user",user);

or

Cheers Mark

On Sunday, October 19, 2003, at 01:35 PM, Sudip Kumar 
Bhattacharya(HOTPOP) wrote:

POSTING AGAIN..
Hi all,
I would like to get some fields in my jsp page from the ActionForm and
display them as simple text in my web page.
The idea is like when the user logs into the system, his username, 
location
and address will be stored in some ActionForm and then on all the 
pages in
the system, the page header should display this information.

This Page Header is a tile and is not a part of the Form tag.

What is the best way to fetch data from the ActionForm in this type of 
a
case?

Regards,
Sudip


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: "could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Marc Dugger
I had a somewhat similar issue with Tomcat when it came to serializing a
FormFile.  I got around this by extending the MultipartRequestHandler and
implementing Serializable.  It appears that you could do the same with the
RequestProcessor.  Be sure to add this to your struts-config.xml:




> -Original Message-
> From: Shay Cohen [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 19, 2003 3:17 AM
> To: '[EMAIL PROTECTED]'
> Subject: "could not deserialize the context attribute .. "
> (configuration: struts 1.1 + web logic 8.1), is it a known bug ?
>
>
> Hi,
>
> I've encountered lately the following exception "Could not deserialize
> context attribute". Reported on the following attribute:
>
>
> Attribute: org.apache.struts.action.REQUEST_PROCESSOR (object:
> org.apache.struts.tiles.TilesRequestProcessor)
>
> After reading old emails concerning the subject, I've learned that this is
> due to weblogic restrictions that require context attributes to be
> serializable.
>
>
> Is there any workaround to this problem? will it be solved  ?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE-POST: Access ActionForm data from JSP page

2003-10-19 Thread Sudip Kumar Bhattacharya(HOTPOP)
POSTING AGAIN.. 
Hi all,

I would like to get some fields in my jsp page from the ActionForm and
display them as simple text in my web page.

The idea is like when the user logs into the system, his username, location
and address will be stored in some ActionForm and then on all the pages in
the system, the page header should display this information.

This Page Header is a tile and is not a part of the Form tag.

What is the best way to fetch data from the ActionForm in this type of a
case?


Regards,
Sudip



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [NEWBIE] Struts and Applets

2003-10-19 Thread Ted Husted
You might try thinking about it from the other direction.

How about if there were a generic "component" or context object that was 
used by your business layer. So whatever it is your clients want either 
Swing application or a web application to do, is handled by your 
business layer code, which communicates to the rest of the world through 
a generic context.

Things like Struts Actions and Applets then become adapters between 
their presentation components and the business layer. The business layer 
works through context that everyone else can learn to read and write.

This is the general direction we are going with the Common Chain package.

http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/chain/

So, to answer your question, it's no so much that we need to pass a 
generic component object to an Action, but that the Action (and Applet) 
should pass a generic object to your business layer. (The less done in 
Action classes, the better.)

-Ted.

Marco Tedone wrote:
Hi, I'm just entering the AWT and Applet world in java (in the sense that
I'm going to study those technologies). I was wondering if an Action can
process information in an Applet. In few words if it would be possible to
specify the following?:
1) From within an Applet, a link (by means of a button or a link) to a
Struts Action (this shouldn't be a problem);
2) From within the Struts Action, access the Applet layout components (text,
radio, check, etc.)
If this is not possible, would it be worthwhile to think at passing a
generic 'component' object to an Action execute method, instead of a Form
one, where this component is parent of both Form, Applets, and whatever
other kind of web component possible?
Have a nice w-e,

Marco
--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[NEWBIE] Struts and Applets

2003-10-19 Thread Marco Tedone
Hi, I'm just entering the AWT and Applet world in java (in the sense that
I'm going to study those technologies). I was wondering if an Action can
process information in an Applet. In few words if it would be possible to
specify the following?:

1) From within an Applet, a link (by means of a button or a link) to a
Struts Action (this shouldn't be a problem);
2) From within the Struts Action, access the Applet layout components (text,
radio, check, etc.)

If this is not possible, would it be worthwhile to think at passing a
generic 'component' object to an Action execute method, instead of a Form
one, where this component is parent of both Form, Applets, and whatever
other kind of web component possible?

Have a nice w-e,

Marco




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



"could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Shay Cohen
Hi,

I've encountered lately the following exception "Could not deserialize
context attribute". Reported on the following attribute:


Attribute: org.apache.struts.action.REQUEST_PROCESSOR (object:
org.apache.struts.tiles.TilesRequestProcessor)

After reading old emails concerning the subject, I've learned that this is
due to weblogic restrictions that require context attributes to be
serializable.
 

Is there any workaround to this problem? will it be solved  ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]