Re: Important question, bug in struts?

2006-06-21 Thread Shervin Asgari

Still nobody knows?

Shervin Asgari wrote:
request.setAttribute(websiteModel, new 
DomainAdminAction.DomainAdminEditPageModel(
  domainWebsiteAdminEdit.title, request, response, 
mapping, dd));

  if (request.getAttribute(websiteModel) == null) {
  request.setAttribute(websiteModel, actionForm);
  }

I am sorry, but this is the code I am trying to compile, but getting 
compile error as shown below.


Shervin Asgari wrote:
Hello all! This is an important question and I think this is a 
feature which isn't supported in Struts.


I have to actionform classes with two pagemodels inner classes. Lets 
say We have action class X and actionclass Y with the pagemodel X:A 
and Y:B


To go from X to Y actionclass is no problem, but when I suddenly want 
to go from Y to X I cannot.


I want to set some values in the basemodel inner class of actionclass 
X from the actionclass Y, with this code:


request.setAttribute(websiteModel, new 
DomainAdminAction.DomainAdminEditPageModel(
   domainWebsiteAdminEdit.title, request, response, 
mapping, dd));

   if (request.getAttribute(domainWebsiteModel) == null) {
   request.setAttribute(domainWebsiteModel, actionForm);
   }

I get this compile error:
No enclosing instance of type DomainAdminAction is accessible. Must
qualify the allocation with an enclosing instance of type
DomainAdminAction (e.g. x.new A() where x is an instance of
DomainAdminAction).

What I want to do is insert the object 'dd' to the pagemodel, because 
the jsp site I want to go to require the 'dd' object.


Shervin






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



Re: Important question, bug in struts?

2006-06-21 Thread Antonio Petrelli

Shervin Asgari ha scritto:
request.setAttribute(websiteModel, new 
DomainAdminAction.DomainAdminEditPageModel(
   domainWebsiteAdminEdit.title, request, response, 
mapping, dd));

   if (request.getAttribute(domainWebsiteModel) == null) {
   request.setAttribute(domainWebsiteModel, actionForm);
   }

I get this compile error:
No enclosing instance of type DomainAdminAction is accessible. Must
qualify the allocation with an enclosing instance of type
DomainAdminAction (e.g. x.new A() where x is an instance of
DomainAdminAction).


This is a compile error! And that compile error is dependent to your 
package not to Struts.
Searching with DomainAdminAction.DomainAdminEditPageModel Google I 
found a thread of yours:

http://www.mail-archive.com/user@struts.apache.org/msg46515.html
So I notices that class was yours not Struts' not even a third-party class.
Probably the DomainAdminAction.DomainAdminEditPageModel class is not 
static, therefore you cannot instantiate it without an enclosing instance.

Before writing Bug in Struts in your subject, think about it twice.

Ciao
Antonio

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



Re: Important question, bug in struts?

2006-06-21 Thread Shervin Asgari
I don't think you either read the whole mail or understood what my 
question was. Of course those are my classes, but it is extended by 
Basemodel which is used by Struts.


I wanted help on how to access another Basemodel in another Actionclass, 
because the way I am doing it gives me compile error. And that is why I 
thought it is a bug in struts since I cannot access a Basemodel class in 
an actionclass.


Shervin

Antonio Petrelli wrote:

Shervin Asgari ha scritto:
request.setAttribute(websiteModel, new 
DomainAdminAction.DomainAdminEditPageModel(
   domainWebsiteAdminEdit.title, request, response, 
mapping, dd));

   if (request.getAttribute(domainWebsiteModel) == null) {
   request.setAttribute(domainWebsiteModel, actionForm);
   }

I get this compile error:
No enclosing instance of type DomainAdminAction is accessible. Must
qualify the allocation with an enclosing instance of type
DomainAdminAction (e.g. x.new A() where x is an instance of
DomainAdminAction).


This is a compile error! And that compile error is dependent to your 
package not to Struts.
Searching with DomainAdminAction.DomainAdminEditPageModel Google I 
found a thread of yours:

http://www.mail-archive.com/user@struts.apache.org/msg46515.html
So I notices that class was yours not Struts' not even a third-party 
class.
Probably the DomainAdminAction.DomainAdminEditPageModel class is not 
static, therefore you cannot instantiate it without an enclosing 
instance.

Before writing Bug in Struts in your subject, think about it twice.

Ciao
Antonio

-
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: Important question, bug in struts?

2006-06-21 Thread Antonio Petrelli

Shervin Asgari ha scritto:
I don't think you either read the whole mail or understood what my 
question was. Of course those are my classes, but it is extended by 
Basemodel which is used by Struts.


Do you mean this?
http://rollerweblogger.org/javadoc/org/roller/presentation/BasePageModel.html
It does not seem as Struts stuff...
I think that you should ask Roller web logger mailing list.

Ciao
Antonio

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



Re: Important question, bug in struts?

2006-06-20 Thread Shervin Asgari
request.setAttribute(websiteModel, new 
DomainAdminAction.DomainAdminEditPageModel(
  domainWebsiteAdminEdit.title, request, response, 
mapping, dd));

  if (request.getAttribute(websiteModel) == null) {
  request.setAttribute(websiteModel, actionForm);
  }

I am sorry, but this is the code I am trying to compile, but getting 
compile error as shown below.


Shervin Asgari wrote:
Hello all! This is an important question and I think this is a feature 
which isn't supported in Struts.


I have to actionform classes with two pagemodels inner classes. Lets 
say We have action class X and actionclass Y with the pagemodel X:A 
and Y:B


To go from X to Y actionclass is no problem, but when I suddenly want 
to go from Y to X I cannot.


I want to set some values in the basemodel inner class of actionclass 
X from the actionclass Y, with this code:


request.setAttribute(websiteModel, new 
DomainAdminAction.DomainAdminEditPageModel(
   domainWebsiteAdminEdit.title, request, response, 
mapping, dd));

   if (request.getAttribute(domainWebsiteModel) == null) {
   request.setAttribute(domainWebsiteModel, actionForm);
   }

I get this compile error:
No enclosing instance of type DomainAdminAction is accessible. Must
qualify the allocation with an enclosing instance of type
DomainAdminAction (e.g. x.new A() where x is an instance of
DomainAdminAction).

What I want to do is insert the object 'dd' to the pagemodel, because 
the jsp site I want to go to require the 'dd' object.


Shervin