RE: Urgent

2004-03-22 Thread Gopalakrishnan, Jayesh
Review your set method and make sure you
are storing the value in appropriate member variable  ...
and are accessing the same variable in the get method.

thats all I can say with the info I have.

You need to provide more information for 
us to understand the issue.
Please provide the bean code sample and the get/set invocation.


-jayash

-Original Message-
From: Vishal Arora [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:47 PM
To: [EMAIL PROTECTED]
Subject: Urgent


Hi,
 I m setting boolean values into my get set methods of bean
but it is returning default values.
does anybody have any answer
Thanks in advance

--
"Don't worry about the world coming to an end today.It's already
tomorrow in Australia."

 Vishal.



-
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: What is the best way to pass a parameter to a forward?

2004-03-15 Thread Gopalakrishnan, Jayesh
I have used this technique and it seems to be the only
way to have the name/value pair be passed as request parameters.
Don't think there's a request.setParameter() !!

But request.Attribute() would be the 'ideal' way to go.


-jayash



-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 4:47 PM
To: Struts User List
Subject: What is the best way to pass a parameter to a forward?


I'm trying to solve a problem, but I'm not sure my solution is the best
way.  Basically, I want to set a parameter on a forward within the
action's execute.

I'm in my action's execute method.  I've just successfully performed
some work, and I now want to forward/redirect to the next page.  So,
I've got some code that looks like this:

   public ActionForward execute(ActionMapping.) {
  // do some work
  ActionForward goto = mapping.findForward( "success" );
  return goto;
   }

With an action mapping that looks like this:

   
  
  
   

Basically, if I left the EntrySaveAction.execute do what's doing right
now, then upon successful completion, it would redirect to
"/Container.do".  However, what I want it to do is redirect to
"/Container.do?id=45", where 45 is the id of the container that I want
to go to.  The value of "45" is dynamic, and is know at the time of the
EntrySaveAction.execute command.

The way I'm currently doing it is something like this:

   public ActionForward execute(ActionMapping.) {
  // do some work
  ActionForward goto = mapping.findForward( "success" );
  String path = goto.getPath();
  path += "?id=" + container.getId();
  goto.setPath( path );
  return goto;
   }

Is this the correct way to do this?  Is there a better way?

Thanks in advance

JDG


--
Jay Glanville

-
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: Passing Value to Tile

2004-03-15 Thread Gopalakrishnan, Jayesh
Tiles attributes can be made available as 
request attributes using the 
 or  tags.

Any name/value that you  can be made available.

eg: template.jsp




tt.jsp




   Struts documentation
http://jakarta.apache.org/struts/userGuide/struts-tiles.html#importAttribute
should help.



hth
-jayash

-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 3:48 PM
To: [EMAIL PROTECTED]
Subject: Passing Value to Tile


Hi,
 I have a main jsp contains set of tiles included and contents of
each tile should be generated based on the value passed into it from its
parent jsp.can anybody suggest me how can I send a value to tile from
parent jsp and access that value inside tile?

Thanks in advance,

-Ramadoss


-
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: Relative context

2004-03-12 Thread Gopalakrishnan, Jayesh
You could use the  tag to do this,



will resolve to,  if myapp is your context name.



Take a look at the HTML tag reference for more info.

hth
-jayash

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 12:34 PM
To: 'Struts Users Mailing List'
Subject: Relative context


Hello.

I have an image tag in my HTML and I need to put the SRC attribute in an
absolut way.

Example:


This is a relative way.

How to use Struts to return me this kind of URL:


RE: question

2004-03-08 Thread Gopalakrishnan, Jayesh

>>engineerId is an attribute in the dataBean "shopWorkOrder".  Can't I
>>reference shopWorkOrder.engineerId  inside the <%= %>?
>>

I guess "shopWorkOrder" is the attribute name of the bean.
The <%=  %> should contain a java expression.
Use the  to define a JSP variable and use it in <%= %>



then use <%=engineerId%> in the .



-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 4:49 PM
To: 'Struts Users Mailing List'
Subject: RE:  question


I got a compilation errror after I changed to using <%= %>:

Here's my error:
cannot resolve symbol
probably occurred due to an error in
/app/fdd/shopWorkOrder/CreateShopWorkOrder.jsp line 92:



My actual segment of JSP:
  
  
   
  

engineerId is an attribute in the dataBean "shopWorkOrder".  Can't I
reference shopWorkOrder.engineerId  inside the <%= %>?

I want to compare value of "userId" in the collection with
"shopWorkOrder.engineerId".


-Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 08, 2004 6:45 PM
To: Struts Users Mailing List
Subject: RE:  question


Try something like this, 


  


The "value" attribute is RT-Exp, and not name of a bean.


hth
-jayash


-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 3:38 PM
To: '[EMAIL PROTECTED]'
Subject:  question


Hi:
I need to set a "pre-defined" option in  using the "value="
attribute, I thought the following will work:


 

I have a "person" bean.   I want to set the "selected"  option if
"person.id"  matches "userId" .   I thought the "value" attribute  is to be
compared with for marking an option selected.   But the above doesn't work.
It always set the 1st option to be the "selected" option .
Am I misunderstanding the use of "value="?



-
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: question

2004-03-08 Thread Gopalakrishnan, Jayesh
Try something like this, 







The "value" attribute is RT-Exp, and not name of a bean.


hth
-jayash


-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 3:38 PM
To: '[EMAIL PROTECTED]'
Subject:  question


Hi:
I need to set a "pre-defined" option in  using the "value="
attribute, I thought the following will work:





I have a "person" bean.   I want to set the "selected"  option if
"person.id"  matches "userId" .   I thought the "value" attribute  is to be
compared with for marking an option selected.   But the above doesn't work.
It always set the 1st option to be the "selected" option .
Am I misunderstanding the use of "value="?



-
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 Issue on Weblogic !!!

2004-03-05 Thread Gopalakrishnan, Jayesh
Veresh,
   We have had this issue, and BEA said it was 
   fixed in WL 8.1 SP2 !! You guys really on SP2?
   It has to do with the hot deploy "feature" !! 
   Email me if you need more specific details.

   As a workaround we have added these values to the weblogic.xml 
   file of our application. Try these in yours, 



  pageCheckSeconds 
  -1



-1



hth
-jayash


-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 5:22 PM
To: Struts Users Mailing List
Subject: RE: Struts Issue on Weblogic !!!


The object you are writing to the output stream is not serializable.  That 
is all that is happening.

At 06:31 AM 3/5/2004, you wrote:
>Thanks for super fast reply
>
>I have not declared the class abstract anywhere 
>
>TIA
>Veresh
>
>-Original Message-
>From: as as [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 05, 2004 7:55 PM
>To: Struts Users Mailing List
>Subject: Re: Struts Issue on Weblogic !!!
>
>Did you declare a class abstract anywhere and try to extend it I sort of
>remember getting this error.
>
>"JAIN,VERESH (HP-India,ex2)" <[EMAIL PROTECTED]> wrote:
>Hi ,
>
>Sometime I get this error on weblogic 8.1 sp2 running struts 1.1 , can
>anyone help
>
>
>TIA
>
>Veresh
>
>java.io.NotSerializableException: org.apache.struts.action.RequestProcessor
>at
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
>at
>java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
>at
>weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:
9
>5)
>at
>weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:
6
>7)
>at
>weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletCo
n
>text.java:637)
>at
>org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.ja
v
>a:855)
>at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>at
>org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servl
e
>tStubImpl.java:1053)
>at
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
a
>:387)
>at
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
a
>:305)
>at
>weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(
W
>ebAppServletContext.java:6310)
>at
>weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubje
c
>t.java:317)
>at
>weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
>at
>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletC
o
>ntext.java:3622)
>at
>weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.jav
a
>:2569)
>at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>Do you Yahoo!?
>Yahoo! Search - Find what you're looking for faster.
>
>-
>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: Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Gopalakrishnan, Jayesh
Andy,

Just to understand your page flow

The first request goes to /home.do, which puts "junkbean"
into the request scope, forwards to index.jsp.
On submit of the form on index.jsp, /login.do is invoked
which then forwards to /home.do.

Is this understanding correct..?

Which action/page gives you "Cannot find bean junkbean in any scope" ?


-jayash


Andy Wrote:
1. IndexAction (mapped to /home.do) puts data into the bean:

List users = service.viewAllPeople(birForm);
request.setAttribute("junkbean", users);

...and then returns index.jsp:



2. Within this index.jsp is a form, which is submitted to LoginAction.

3. When I submit the form to LoginAction and LoginAction is finished,
then I want to return the /home.do mapping, or display the index.jsp
screen again:


  


4. When I do this, I get the following error:

Cannot find bean junkbean in any scope


-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 3:47 PM
To: Struts Users Mailing List
Subject: RE: Returning fully-stocked Actions/JSPs from other Actions


"Gopalakrishnan, Jayesh" wrote:

> Your junkbean is lost once index.jsp is rendered on the browser.
> Thats the end of the request scope. If you want the "junkbean" to
> last for more than 1 page on the browser, I guess "session" scope is 
> appropriate.

Sure, but I don't want the bean to be saved at the session scope level
because it will be updated from request to request, hence the reason I
am loading it with new information before I send back index.jsp, which
will access the bean.

Thanks!


Andy


-
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: Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Gopalakrishnan, Jayesh
Your junkbean is lost once index.jsp is rendered on the browser. Thats 
the end of the request scope. If you want the "junkbean" to last 
for more than 1 page on the browser, I guess "session" scope is 
appropriate. You can always remove it from the session after u 
have used it in LoginAction.

hth
-Jayash

Andy Wrote:
Sure -- that's the only way it will work.  I'll try to put everything
in order here, as I am doing it:

1. IndexAction (mapped to /home.do) puts data into the bean:

List users = service.viewAllPeople(birForm);
request.setAttribute("junkbean", users);

...and then returns index.jsp:






2. Within this index.jsp is a form, which is submitted to LoginAction.

3. When I submit the form to LoginAction and LoginAction is finished,
then I want to return the /home.do mapping, or display the index.jsp
screen again:


  


4. When I do this, I get the following error:

Cannot find bean junkbean in any scope


> If you go to access it and it is not there, then you must be
> accessing in session scope and saving in request scope or something
> like that.

Ok, in IndexAction, I did put it in request scope, but that should work
because I only want it for this request, not necessarily for the entire
session.  But in this case, does IndexAction even have access to the
request scope, or does LoginAction only have access to that (i.e.
IndexAction can't put junkbean in request scope)?


> You need to ask: (1) did I save "junk bean"?

Yes.


> (2) If not, do so.  If so, then is the scope of the respository
> adequate for your purposes.

It seems that request scope should be adaquate in this case, since I
only need it for the current request.


> (3) Etc. Okay dokay?

Okay dokay -- thanks!  Let me know if that is a decent-enough
clarification of my earlier question.


Andy


-
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: Action not forwarding to another Action

2004-03-02 Thread Gopalakrishnan, Jayesh
Could you post the code snippet where you are trying to set & get
parameters.

I have a similar action chaining configuration that works fine for me.


-jayash


-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 8:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Action not forwarding to another Action


Nop.  I removed 'redirect="true"' as followed and still can't retrieve the
parameter in OrderSearchAction.  I even tried to specifically do
request.setParamter(...) first and that doesn't work either.








    



-----Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 01, 2004 6:45 PM
To: Struts Users Mailing List
Subject: RE: Action not forwarding to another Action


I think when you say 'redirect="true"', then you lose 
your request object. This is like a client side/browser redirect.

Remove this attribute from your  element and give it a try.



-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 3:24 PM
To: Struts Users Mailing List
Subject: RE: Action not forwarding to another Action


if ".exe" is what you hv configured in web.xml then I see
there is no reason why it is not picking up 

possible reason could be...

make sure that you are forwarding to "Content" which is mapped to
"/app/ListOfOrder.exe" in your OrderMaintainAction

>>1) Can someone also tell me if I have a "Request attribute" defined in 
>>OrderMaintainAction, if the above redirection works, will I be able to 
>>see the same "Request attribute" in OrderSearchAction?

the same scenarion where I'm not able to get the value of request attribute
which I set in my previous Action class then I set as session attribute and
Im able to get that value in the other Action class where Im redirecting to.

>>2) A general question: if formA is linked to formB through a 'link'.   If
I
>>click on the 'link' in formA, can I get to the passed parameter of 
>>FormA
by
>>doing Request.geParameter("id") or I can only retrieve 'id' throught a 
>>'submit' rather than through a 'link'?

I dont really understand your point but I assumed that you are passing a
parameter from one form to another in such case if you are calling other
page/calling action class by passing request parameter you could get those
parameters on the other page/action class. 

hth


-Ramadoss






-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:51 PM
To: '[EMAIL PROTECTED]'
Subject: Action not forwarding to another Action


Hi:
   I have a similar problem that I can't invoke OrderSearchAction.exe from
OrderMaintainAction.  I set a debug breakpoint at the beginning of
OrderSearchAction and never get there.












I have two other questions:
1) Can someone also tell me if I have a "Request attribute" defined in
OrderMaintainAction, if the above redirection works, will I be able to see
the same "Request attribute" in OrderSearchAction?
2) A general question: if formA is linked to formB through a 'link'.   If I
click on the 'link' in formA, can I get to the passed parameter of FormA by
doing Request.geParameter("id") or I can only retrieve 'id' throught a
'submit' rather than through a 'link'?

Thanks for any help!


-
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]



RE: Action not forwarding to another Action

2004-03-01 Thread Gopalakrishnan, Jayesh
I think when you say 'redirect="true"', then you lose 
your request object. This is like a client side/browser redirect.

Remove this attribute from your  element and give it a try.



-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 3:24 PM
To: Struts Users Mailing List
Subject: RE: Action not forwarding to another Action


if ".exe" is what you hv configured in web.xml then I see
there is no reason why it is not picking up 

possible reason could be...

make sure that you are forwarding to "Content" which is mapped to
"/app/ListOfOrder.exe" in your OrderMaintainAction

>>1) Can someone also tell me if I have a "Request attribute" defined in
>>OrderMaintainAction, if the above redirection works, will I be able to see
>>the same "Request attribute" in OrderSearchAction?

the same scenarion where I'm not able to get the value of request attribute
which I set in my previous Action class then I set as session attribute and
Im able to get that value in the other Action class where Im redirecting to.

>>2) A general question: if formA is linked to formB through a 'link'.   If
I
>>click on the 'link' in formA, can I get to the passed parameter of FormA
by
>>doing Request.geParameter("id") or I can only retrieve 'id' throught a
>>'submit' rather than through a 'link'?

I dont really understand your point but I assumed that you are passing a
parameter from one form to another in such case if you are calling other
page/calling action class by passing request parameter you could get those
parameters on the other page/action class. 

hth


-Ramadoss






-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:51 PM
To: '[EMAIL PROTECTED]'
Subject: Action not forwarding to another Action


Hi:
   I have a similar problem that I can't invoke OrderSearchAction.exe from
OrderMaintainAction.  I set a debug breakpoint at the beginning of
OrderSearchAction and never get there.












I have two other questions:
1) Can someone also tell me if I have a "Request attribute" defined in
OrderMaintainAction, if the above redirection works, will I be able to see
the same "Request attribute" in OrderSearchAction?
2) A general question: if formA is linked to formB through a 'link'.   If I
click on the 'link' in formA, can I get to the passed parameter of FormA by
doing Request.geParameter("id") or I can only retrieve 'id' throught a
'submit' rather than through a 'link'?

Thanks for any help!


-
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: Action class calling other Action class

2004-02-27 Thread Gopalakrishnan, Jayesh
You could do this by just forwarding to an action mapping entry for
ActionClassB.

In you action mapping for ActionClassA, have multiple forwards.
And the logic in ActionClassA would forward to whichever, with 1 of them
being ActionClassB.





   








hth
-jayash

-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 12:29 PM
To: [EMAIL PROTECTED]
Subject: Action class calling other Action class


Hi,
  
I hv ActionClassA ==>Display JSP of ActionClassA having a link to Edit
JSP of ActionClassB==>ActionClassB=>Edit JSP of
ActionClassB==>ActionClassB(Update records)=>dispatch control over
to ActionClassA.


My question is that  Can I forward my control to ActionClassA from
ActionClassB? or is there any better approach/alternative??

Tnx in advance,

-Ramadoss





-
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: html:text works, bean:write fails

2004-02-26 Thread Gopalakrishnan, Jayesh
 works, indicating the value is present in the formbean.

Is your form name "total".  If so whats the scope of this bean?

You could also try 
<%
Object total = pageContext.getAttribute("total");
// debug statementsto print the value/object type etc.

%>

just to make sure both these tags are accessing the same bean.



-jayash


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 1:53 PM
To: [EMAIL PROTECTED]
Subject: html:text works, bean:write fails


I have a situation where I have not found a solution in the archives (I'm
sure it is there, just don't know the right search), the documents (I have
half dozen Struts books, plus the tomcat docs), and Google has not been my
friend:

I have a simple struts application where if I put the following in the JSP
page, it works just fine (other than I don't want a text input field):



but if I put the following:



it won't render the JSP page (just blank), unless I put ignore='true', in
which case the page renders, but I also don't get the output.

The taglibs are all referenced for both the struts-html and struts-bean
taglibs. I have tried putting different scope references in the bean tag. I
have looked at the generated java code and they both appear to show up
similarly.

I am running Tomcat 5.0.19 with a jk2 connector to Apache2 2.0.48, Sun sdk
1.4.2_03, running on a PIII 866 Mhz, 256MB. Struts 1.1 (downloaded today,
release binary).

I look in my logs and I can see the bean being properly set (and it does
properly display when using the html taglib). I am sure this is
outrageously simple, but I spent over a solid day (and night) fighting this
and am getting nowhere.

Any suggestions/questions welcome (yes, I already considered taking up truck
driving instead).

-
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: html:text works, bean:write fails

2004-02-26 Thread Gopalakrishnan, Jayesh
html:text works differently I think. It looks up the bean on the enclosing
 tag from the action mapping. So in all possiblity your
 &  are fetching from different scopes.

also try 



and this probably is the default 





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 2:37 PM
To: [EMAIL PROTECTED]
Subject: Re: html:text works, bean:write fails



Tried both cases - no joy. 

Also tried wrapping the  tag
in  tag:


    


while setting the ignore to 'false'. The page renders, but apparently the
bean is not visible in the scope. But, if that is the case, why does it
work with the  taglib?

On Thursday 26 February 2004 14:56, you wrote:
> The problem loos strange. The only diff i can find is name attribute. try
>
> putting name attribute in both cases. also try removing it. may work...
>
> With Regards
>
> Partha
>
>

-
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: Extra Lines in Compiled JSP

2004-02-20 Thread Gopalakrishnan, Jayesh
I am talking abt generated output(HTML/csv/email/whatever). If 
the question was abt generated java code, nobody should care.

The generated output contains newlines for every <% %> enclosure 
in the JSP. And if you are generating anything other 
than HTML output, thats likely to cause a problem.

We did this for our export to exel feature...

cheers
-jayash



-Original Message-
From: Thad Humphries [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 11:05 AM
To: Struts Users Mailing List
Subject: Re: Extra Lines in Compiled JSP


Why care about how generated code looks?  This approach makes the code you 
maintain harder to read.

On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote:
> I must have had the same dream !!
> I remember that tomcat config thing..and not too
> long ago. I am surprised you couldn't find it.
>
> We had to do something like this though, for weblogic.
>
> <%@ taglib uri="xxx" prefix="bean"
> %><%@ taglib uri="/display" prefix="display"
> %><%@ taglib uri="xxx" prefix="html"
> %><%@ taglib uri="xxx" prefix="nested"
> %><%@ taglib uri="xxx" prefix="tiles"
> %><%@ page language="java"
> %><%@ page contentType="text/html; charset=UTF-8"
> %><% your code continues.%>
>...


-
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: Extra Lines in Compiled JSP

2004-02-20 Thread Gopalakrishnan, Jayesh
I must have had the same dream !!
I remember that tomcat config thing..and not too 
long ago. I am surprised you couldn't find it.

We had to do something like this though, for weblogic.

<%@ taglib uri="xxx" prefix="bean" 
%><%@ taglib uri="/display" prefix="display" 
%><%@ taglib uri="xxx" prefix="html" 
%><%@ taglib uri="xxx" prefix="nested" 
%><%@ taglib uri="xxx" prefix="tiles" 
%><%@ page language="java" 
%><%@ page contentType="text/html; charset=UTF-8" 
%><% your code continues.%>


hth
-jayash


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:19 AM
To: Struts Users Mailing List
Subject: Re: Extra Lines in Compiled JSP


Maybe I just dreamt this but I thought I remember one of the tomcat 
committers saying here that they had added a config option to remove 
these blank lines around JSP & taglib tags, and set the configuration 
option by default to false/off, because it violates the JSP spec.

I just quickly searched the archives and found no reference to it. 
Sorry, must have been a dream after all. (nice dream though)

On 02/20/2004 05:15 PM Guillermo Meyer wrote:
> I had this problem that produced me a CSV file with blank lines at top.
> I solved it by removing al  in the file, I mean, JSP tags
> (including <%@ tags, etc) are all concatenated without break lines.
> You will get the ugliest JSP page you have ever seen from developer
> perspective, but this solved my problem.
> 
> Cheers.
> Guillermo.
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
> Sent: Viernes, 20 de Febrero de 2004 01:07 p.m.
> To: '[EMAIL PROTECTED]'
> Subject: Extra Lines in Compiled JSP
> 
> 
> Hi All,
> 
> I should know how to fix this, but am at a loss.  At the top of my JSP I
> have the following lines:
> 
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
> prefix="bean" %> <%@ taglib uri="/display" prefix="display" %> <%@
> taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested";
> prefix="nested" %>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles";
> prefix="tiles" %> <%@ page language="java" %> <%@ page
> contentType="text/html; charset=UTF-8" %>
> 
> When I look at the compiled JSP, there are seven blank lines (i.e.
> out.write("\r\n"); ).  Is there anyway to have the JSP compiler (were
> running Tomcat 5.0.18 Stable) NOT generate these lines?  I guess they
> come from the <% %> sources lines, but it really screws up my
> generated HTML code
> 
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual or
> entity to which it is addressed. If you are not the intended recipient
> or the person responsible for delivering the transmission to the
> intended recipient, be advised that you have received this transmission
> in error and that any use, dissemination, forwarding, printing, or
> copying of this information is strictly prohibited. If you have received
> this transmission in error, please immediately notify LabOne at the
> following email address: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> NOTA DE CONFIDENCIALIDAD
> Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente
a las personas direccionadas en el mail y puede contener informacion (i)de
propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
profesional. Cualquier opinion en el contenido, es exclusiva de su autor y
no representa necesariamente la opinion de Interbanking S.A. El acceso no
autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking
S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
informacion incorrecta o alterada contenida en este mensaje. Si usted ha
recibido este mensaje por error, le rogamos tenga la amabilidad de
destruirlo inmediatamente junto con todas las copias del mismo, notificando
al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar
este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas
gracias.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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

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

RE: Conditional tag for method results

2004-02-18 Thread Gopalakrishnan, Jayesh
You will need to create a simple custom tag for this.
Its pretty simple, & plenty of samples are available.


-jayash


-Original Message-
From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 1:20 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Conditional tag for method results


I did look at those earlier, unfortunately I could not figure out how can I
pass in a method call with a paramater passed to it, as the expression for
comparison.
The tags allow bean properties, cookie , request parameter etc...
Could you tell me how can I use a method call with a parameter that I pass
from within the JSP for evaluating the result.

Thx
A

-Original Message-
From: Niall Pemberton
To: Struts Users Mailing List
Sent: 2/18/2004 1:07 PM
Subject: Re: Conditional tag for method results

Yo can either use the Struts "logic" tags, or the standard tag library
(JSTL)

JSTL:  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Struts Logic Tags:
http://jakarta.apache.org/struts/userGuide/struts-logic.html

Niall
- Original Message - 
From: "Avinash Gangadharan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 8:43 PM
Subject: Conditional tag for method results


> Hello All,
> I'm fairly new to the world of struts so pardon me if this has
already
> been asked.
>
> Could someone tell me if I can replace the following with a much
better
> looking tag library usage:
>
> <% if( foo.method( "xyz" ) ) { %>
>   
>   Submit
>   
> % } %>
>
> You can assume that foo exists in the scope of the page.
>
> Thanks and Regards
> Avinash
>
> -
> 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: open new window from struts page, leaves [object] in parent w indow

2004-02-18 Thread Gopalakrishnan, Jayesh
This is more of a javascript issue than Struts thing.

I guess you are missing a "return false;" at the end of the javascript.
Try the script on a simple html page & verify that it works as expected.

I have seen such links use the onclick event rather than the href, like,



possibly to prevent the script from appearing on the status barnot sure.


hth
-jayash


-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 12:27 PM
To: [EMAIL PROTECTED]
Subject: open new window from struts page, leaves [object] in parent
window


Hi,

I guess this has been asked before, but I can't find the answer..

I've got a struts generated page, from which I want to open a new
window.
I do this with the following line, and I get my new window just like I
want
')">
click here

but the original window then contains a page that says [object] -
literally that!!

How do I get the original window not to change from what it displayed
before I click on the above link?

Thanks
Martin




-
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: Tiles and message-resources

2004-02-18 Thread Gopalakrishnan, Jayesh
You could pass in the key, instead of the actual text



and in your consumer jsp you could do,





hth
-jayash

-Original Message-
From: Thad Humphries [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 11:33 AM
To: Struts Users Mailing List
Subject: Tiles and message-resources


Is there any way to for a tlles definition to take a value from the 
message-resources file?  For example, if I wanted only one file to control
my 
applications text, could 



pull the value from the message-resources file like a JSP would do.


-
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: Problem in struts 1.1 and weblogic 8.1

2004-02-13 Thread Gopalakrishnan, Jayesh
Do u see the same behaviour using IE5+ or other browsers ?

Could possibly be an NS issue..




-Original Message-
From: srinivasan krishnamurthy [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:00 PM
To: [EMAIL PROTECTED]
Subject: Problem in struts 1.1 and weblogic 8.1


Hi,

I am running a webapplication with the following
configuration

OS - Winxp
Web server -  Apache 2.00
App server - Weblogic 8.1

When i hit the application from ns7.1 i sometimes get
the same screen twice on the browser. also some
headers get printed on the screen

Has anyone faced this problem before.
I wonder if it is an issue with struts
Please help

Regards
Srini



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
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: instead of

2004-02-12 Thread Gopalakrishnan, Jayesh
Wouldn't query parameters work here?

How abt using 


HTH..

-jayash



-Original Message-
From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject:  instead of 


Hello,

I have a jsp page with some  buttons. The servlet identifies
the klicked button by invoking httpservletrequest.getParameter("...").
Is there a way to use links in my .jsp page using  instead of
?

Thx for any help,
Dieter

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


-
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: Query String for tiles

2004-02-06 Thread Gopalakrishnan, Jayesh
typo in my previous email.

should have been..



-Original Message-
From: Gopalakrishnan, Jayesh 
Sent: Friday, February 06, 2004 3:47 PM
To: Struts Users Mailing List
Subject: RE: Query String for tiles


You could create an forward-action for the JSP.




And modify the  in your action to,



This may not fit within the "best practices".but will get it done.

hth
-jayash



-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles


There is no include anywhere in my app.  I am just combining tiles (jspf 
is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:
> I am confused. What I meant was that you are using a jsp or some form of
> jsp (judging by the extension as jspf) to render the body of the tile.
> The logic (if I may) must be that the jsp attached on the tile , will
> include the body attribute as a dynamic include. All I could think of is
> that you need to PASS 'remember' as a parameter to that jsp. My solution
> assumes that and hence says u have to use a tile controller to transfer
> attributes from request to the tile context. 
> 
> Am I missing something? 
> 
> Anand.
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
> Sent: Friday, February 06, 2004 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Query String for tiles
> 
> 
> If I were using a straight action, I would simply get the path from my 
> ActionForward  subclass and append the query string to it.  This seems 
> ponderous for placing a parameter in the url.
> 
> Is there any other way?
> 
> Wayne
> 
> Anand Patil wrote:
> 
>>I assume you want to pass the query string "remember=test001" to 
>>"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
>>put the "remember=test001" as a request attribute in the logic of 
>>com.rdlogic.struts.control.LoginAction.
>>
>>try reading the attribute directly from the request, since tiles does 
>>"include" , you share the same request. So you could probably use 
>>request.getAttribute()" ;
>>
>>If that does not work use the tile controller concept
>>
>>Put a controller on the definition "tiles.self.effort". Your 
>>definition modifies as
>>
>>
>>>controllerUrl="/tilecontroller.do">
>>
>> 
> value="/pages/time_inputeffort_body_nested.jspf">
> 
>>
>>
>>In your struts-config.xml add this.
>>>type="
>>
>>Make sure ur tile controller extends from TilesAction
>>
>>In your tilecontroller guy u can get the attribute from the request 
>>and put in the tilecontext and in your jsp for the tile you can use 
>> look @ tiles documentation to figure how to use 
>>the tag. Then get that value and pass it to your jsp include via 
>> tag.
>>
>>HTH
>>
>>Anand.
>>
>>-Original Message-
>>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
>>Sent: Friday, February 06, 2004 11:44 AM
>>To: [EMAIL PROTECTED]
>>Subject: Query String for tiles
>>
>>
>>Is it possible to attach a query string to a tiles forward.
>>
>>my struts-config.xml has an entry like
>>
>>>type="com.rdlogic.struts.control.LoginAction" >
>>
>>
>> 
>>
>>My Tiles-defs.xml has an entry like
>>
>>  
> 
>>name="head.title" value="/pages/title.jspf"/> >value="/pages/time_inputeffort_body_nested.jspf">
>>
>>
>>
>>I want the net result of forward "startapp" to have a query string 
>>like
>>
>>"?remember=test001"
>>
>>I want the remember to be dynamically settable (during the execution 
>>of
>>the LoginAction code I want to pick whether it is "test001" or
> 
> "test002"
> 
>>
>>Anybody know a way.
>>
>>Wayne
>>
>>
>>
>>-
>>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]



RE: Query String for tiles

2004-02-06 Thread Gopalakrishnan, Jayesh
You could create an forward-action for the JSP.




And modify the  in your action to,



This may not fit within the "best practices".but will get it done.

hth
-jayash



-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles


There is no include anywhere in my app.  I am just combining tiles (jspf 
is the name of fragments of jsp pages)to build up the page.  Top level 
of the page is a .jsp with a bunch of tiles:insert tags filling out the 
cells of a table.  I just want to dynamically build a query string for 
the top-level page so that there is something useful in the browser url 
when the session expires.

Wayne

Anand Patil wrote:
> I am confused. What I meant was that you are using a jsp or some form of
> jsp (judging by the extension as jspf) to render the body of the tile.
> The logic (if I may) must be that the jsp attached on the tile , will
> include the body attribute as a dynamic include. All I could think of is
> that you need to PASS 'remember' as a parameter to that jsp. My solution
> assumes that and hence says u have to use a tile controller to transfer
> attributes from request to the tile context. 
> 
> Am I missing something? 
> 
> Anand.
> 
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
> Sent: Friday, February 06, 2004 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Query String for tiles
> 
> 
> If I were using a straight action, I would simply get the path from my 
> ActionForward  subclass and append the query string to it.  This seems 
> ponderous for placing a parameter in the url.
> 
> Is there any other way?
> 
> Wayne
> 
> Anand Patil wrote:
> 
>>I assume you want to pass the query string "remember=test001" to 
>>"/pages/time_inputeffort_body_nested.jspf". One way I can think of is 
>>put the "remember=test001" as a request attribute in the logic of 
>>com.rdlogic.struts.control.LoginAction.
>>
>>try reading the attribute directly from the request, since tiles does 
>>"include" , you share the same request. So you could probably use 
>>request.getAttribute()" ;
>>
>>If that does not work use the tile controller concept
>>
>>Put a controller on the definition "tiles.self.effort". Your 
>>definition modifies as
>>
>>
>>>controllerUrl="/tilecontroller.do">
>>
>> 
> value="/pages/time_inputeffort_body_nested.jspf">
> 
>>
>>
>>In your struts-config.xml add this.
>>>type="
>>
>>Make sure ur tile controller extends from TilesAction
>>
>>In your tilecontroller guy u can get the attribute from the request 
>>and put in the tilecontext and in your jsp for the tile you can use 
>> look @ tiles documentation to figure how to use 
>>the tag. Then get that value and pass it to your jsp include via 
>> tag.
>>
>>HTH
>>
>>Anand.
>>
>>-Original Message-
>>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
>>Sent: Friday, February 06, 2004 11:44 AM
>>To: [EMAIL PROTECTED]
>>Subject: Query String for tiles
>>
>>
>>Is it possible to attach a query string to a tiles forward.
>>
>>my struts-config.xml has an entry like
>>
>>>type="com.rdlogic.struts.control.LoginAction" >
>>
>>
>> 
>>
>>My Tiles-defs.xml has an entry like
>>
>>  
> 
>>name="head.title" value="/pages/title.jspf"/> >value="/pages/time_inputeffort_body_nested.jspf">
>>
>>
>>
>>I want the net result of forward "startapp" to have a query string 
>>like
>>
>>"?remember=test001"
>>
>>I want the remember to be dynamically settable (during the execution 
>>of
>>the LoginAction code I want to pick whether it is "test001" or
> 
> "test002"
> 
>>
>>Anybody know a way.
>>
>>Wayne
>>
>>
>>
>>-
>>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: Using Parameter in Action via the struts-config.xml

2004-02-04 Thread Gopalakrishnan, Jayesh
There's a mapping.getParameter() method to 
fetch the parameter value.

I remember reading that its mostly used while 
using LookupDispatchAction.

Personally, I have used this parameter attibute 
to represent a flag/indicator to my action 
& it works fine.


-jayash


-Original Message-
From: Anand Patil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 1:06 PM
To: [EMAIL PROTECTED]
Subject: Using Parameter in Action via the struts-config.xml


Hi All,
  The struts configuration DTD supports having a "parameter" attribute
to a "action". But how can I get the value specified in the "parameter"
attribute in my action class. Also using "set-property" inside a
"action" tag does not work? Anyone have any idea about this? 


Regards
Anand Patil

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



RE: out> tag inside tag

2004-02-04 Thread Gopalakrishnan, Jayesh
Do you have the 
   <%@ taglib uri="struts-html" prefix="html" %> 
line in the JSP...I guess you do?

Don't know why it wouldn't work.
I can only suggest using the bean:define & <%=styleVar%> combination ...

-jayash



-Original Message-
From: Rahul Mohan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 11:48 PM
To: struts
Subject:  tag inside  tag


Hi...I am facing some problems with using JSTL tags inside struts tags.

This is the piece of code I wrote for my application:

 "
 />

the problem is that it is getting traslated to



in the final html page!! 

can anybody please tell me why the  tag is not getting translated
to 

RE: Plzzz help problem with session invalidate method ...

2004-02-03 Thread Gopalakrishnan, Jayesh
Check the HttpServletRequest API, there's a 
getSession(boolean) method that'll get u a new session 
Or an existing session based on true or false parameter. 

Make sure you use the right one in the login process.


hth
-jayash

-Original Message-
From: Vinay Kumar Munikuntla [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:59 AM
To: [EMAIL PROTECTED]
Subject: Plzzz help problem with session invalidate method ...


Hi

I don;t know if this is the right place to ask this quesion .. ?

After  I invalidate a session using request.getSession().invalidate() I
forward the Login screen to the user.
When the user logs into the application I see that he has the same Session
Id as before the session was invalidated.

But this does not happen if the Browser window is closed and the new browser
window is opened.

How can I get a new session id each time the user logs in?

Vinay Kumar Munikuntla
[EMAIL PROTECTED]


-
This email, including any attachments, is for the designated recipient(s)
only and may contain confidential, proprietary, and/or legally privileged
information.  If you are not a designated recipient, or have received it in
error, please notify the sender and destroy it and all attachments and
copies immediately, without distributing, disclosing, or using it in any
manner.


-
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: Business Exception and JSP

2004-02-02 Thread Gopalakrishnan, Jayesh

You could either
1) use the  elements in your web.xml

or 

2) use the  element in your struts.config file.


Reading up on these elements should help you decide how you 
want to handle it depending on you requirement/architecture.


-jayash



-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 3:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Business Exception and JSP



can you plz explain your architecture, so that i can suggest something.

Thanks,
S!!

>>> [EMAIL PROTECTED] 01/31/04 06:05AM >>>
Hi all,
  I would want to display the business exception that are thrown to a
separate jsp page.  
Please suggest some way in which i can approach this 


Thanks in advance,
Sudhakar




-
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: does not work with IOException?

2004-01-30 Thread Gopalakrishnan, Jayesh
Just as a test, forward to a HTML page.
May be the blank page is because of errors in the
GenericErrorForward.jsp...due to IOException.
Is there a stacktrace being logged anywhere..?

Also arent you supposed to have the jsp within a  element in your
web.xml?

trying to help.
-jayash


-Original Message-
From: Song Qiu [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 4:12 PM
To: 'Struts Users Mailing List'
Subject: RE:  does not work with IOException?


No, I can't.  The GenericErrorForward.jsp adds some parameters to the
request and  forwards the request to an Action which executes some logic
before displaying the real error page. 

Thanks for your input though.

Song

> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 30, 2004 1:55 PM
> To: Struts Users Mailing List
> Subject: RE:  does not work with IOException?
> 
> 
> Why don't you simplify the problem and have it go to an html 
> page.  We had a
> problem where a forwarding jsp page had errors, resulting in 
> a blank page.
> 
> -Original Message-
> From: Song Qiu [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 30, 2004 3:43 PM
> To: 'Struts Users Mailing List'
> Subject: RE:  does not work with IOException?
> 
> It's a typo in the email. But I did use java.io.IOException in the
> . It just give me the blank page back. 
> 
> Thanks.
> 
> Song
> 
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
> > Sent: Friday, January 30, 2004 10:05 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re:  does not work with IOException?
> > 
> > 
> > Um, you might want to try java.io.IOException instread of
> > java.lang.IOException... ;-)
> > 
> > --
> > Martin Cooper
> > 
> > 
> > "Song Qiu" <[EMAIL PROTECTED]> wrote in message
> > 
> news:[EMAIL PROTECTED]
> > > I use  to do global error handling. It works 
> > perfectly for
> > > ServletException. I can see the eror page displayed 
> > properly. But for
> > > IOException, It does not work, I can only see a blank page.
> > >
> > > Here is part of my web.xml:
> > > 
> > > 
> > > javax.servlet.ServletException
> > > /GenericErrorForward.jsp
> > > 
> > >
> > > 
> > > 
> > > java.lang.IOException
> > > /GenericErrorForward.jsp
> > > 
> > >
> > > Thanks.
> > >
> > > Song
> > >
> > 
> > 
> > 
> > 
> > 
> -
> > 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: What does "do" stand for in .do files

2004-01-30 Thread Gopalakrishnan, Jayesh
It just means that any URL that ends with a ".do" OR starts with "/do" would
be processed by
the struts RequestProcessor servlet.

The "do" is insignificant, its just what all the sample applications use and
has somehow stayed on.

"*.do" OR "/do" Or "/struts" OR "*.struts" OR "/timbaktoo" you could use
just about 
anything.

Advice:
You should go back to the basics of web applications and see how STRUTS fits
in !


-jayash







-Original Message-
From: Nushin Nushin [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 2:27 PM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: RE: What does "do" stand for in .do files


Vic,

Would you elaborate on *.do? What does "do" stand for?

Regards,
Nushin

-Original Message-
From: Matthias Wessendorf <[EMAIL PROTECTED]>
Sent: Jan 30, 2004 11:27 AM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>, 
'Nushin Nushin' <[EMAIL PROTECTED]>
Subject: RE: What does "do" stand for in .do files

and note,
that in some cases you should use
(trouble with firewalls)
  
action
/do/*
  

instead of *.do
look at Book: Struts Fast Track:
by Vic Cekvenich


-Original Message-
From: Nushin Nushin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 30, 2004 7:54 PM
To: [EMAIL PROTECTED]
Subject: What does "do" stand for in .do files


Greetings,

What does *do* mean in *.do files.

Regards,
Nushin



-
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: Action mappings

2004-01-27 Thread Gopalakrishnan, Jayesh
Do you have web.xml configured with "/do" URLS going to struts.

If so, your entry should be, Notice that the path is the complete path with
the prefix.



   


Hope this helps

-jayash

-Original Message-
From: struts fox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 11:45 AM
To: [EMAIL PROTECTED]
Subject: Action mappings


I t seems Struts lets you use action mappings that it figures out and
forwards for you, but I have had no luck testing this.















So basically SetUpEmployeeAction should be called when the user submits.
Then SetUpEmployeeAction forward to SteveAction and then that forwards to
employeeForm.jsp. It errors out trying to load the resource SteveAction, but
I see nothing else I need to declare in any properties file or resource
file. Struts should be able to do this from what I've read.


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

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



RE: Hi

2004-01-15 Thread Gopalakrishnan, Jayesh
try with 
 

The context root & the url mapping(.do) for struts will be taken care of.

-jayash

-Original Message-
From: Yajamanyam Venugopal
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 9:23 AM
To: [EMAIL PROTECTED]
Subject: Hi


Hi ,

Can anybody help me when we get the following exception

ActionFormBeans collection]: javax.servlet.jsp.JspException: Cannot find
ActionMappings or ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)

Action mappings are avialable

My context root defined as "glopps2b"

My action in form is /glopps2b/technicalStructure.do




I have declared form-bean also.Could any body help me do we need to do any
settings before we use struts mapping


Thanks 
Venu

-
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: Form submission

2004-01-15 Thread Gopalakrishnan, Jayesh
You cannot nest these tags, inner tags must close b4 you close the outer
ones..

You could give this a try,


">

You get the idea right...

-jayash


-Original Message-
From: Raman [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 6:09 AM
To: Struts Users Mailing List
Subject: Form submission


I want to implement something like this:

Conditional checks: for form submission to different Actions









But this is giving me error [ServletException  "Unterminated tag'"
if i remove the logic tags it works fine.

Can anybody help me in this or give me some idea...

Thanks
-- Raman

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



RE: Combining and

2004-01-14 Thread Gopalakrishnan, Jayesh
The value is what you define in the tiles config or calling page using the
tiles:put.


only exports an already defined tiles variable named "title" into a struts
variable with the same name.

Any/all values that you pass with  can be made available for
struts tags by doing 
 OR 
You could look up the documentation of these tags for detailed info.


-jayash



-Original Message-
From: Derek Colley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 3:53 PM
To: 'Struts Users Mailing List'
Cc: Gopalakrishnan, Jayesh
Subject: RE: Combining  and 


Thanks Jayash,

[just to be clear]

So in the /layout/classic.jsp, the "name" in the  
refers to a variable (title) created by  ?
And the value in this (title) variable is passed in from the calling page?

Rgds,
Derek


> -----Original Message-----
> From: Gopalakrishnan, Jayesh 
> [mailto:[EMAIL PROTECTED] 
> Sent: 14 January 2004 23:23
> To: Struts Users Mailing List
> Subject: RE: Combining  and 
> 
> 
> you could do something like this.
> 
>  
>  
> 
> with ur tiles config entry looking likeuse the key 
> instead of text.
> 
> 
> 
> -jayash
> 
> -Original Message-
> From: Derek Colley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 14, 2004 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: Combining  and 
> 
> 
> Dear Struts-User,
> 
> In all the Struts-Tiles examples, I see the following piece 
> of code for
> Tiles, e.g. for my "/about.jsp" page:
> 
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> 
> < this is
> not international!
>   
>   
>   
>   
> 
> 
> In my application, the page titles are kept in the 
> Application.properties
> file so that they can be translated.
> 
> How can I put the results of  key="my.page.title" /> into the
> above scenario?
> 
> Many thanks,
> Derek
> 
> 
> 
> -
> 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: Combining and

2004-01-14 Thread Gopalakrishnan, Jayesh
you could do something like this.

 
   

with ur tiles config entry looking likeuse the key instead of text.



-jayash

-Original Message-
From: Derek Colley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 3:03 PM
To: [EMAIL PROTECTED]
Subject: Combining  and 


Dear Struts-User,

In all the Struts-Tiles examples, I see the following piece of code for
Tiles, e.g. for my "/about.jsp" page:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

< this is
not international!
  
  
  
  


In my application, the page titles are kept in the Application.properties
file so that they can be translated.

How can I put the results of  into the
above scenario?

Many thanks,
Derek



-
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: Included port numbers in web links e.g. 8080

2004-01-14 Thread Gopalakrishnan, Jayesh
Are you using SSLext taglib by any chance?


-Original Message-
From: Dan Snider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 12:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Included port numbers in web links e.g. 8080


> If mod jk to working and configured then requests over port 
> 80 for .do 
> will be forwarded to mod_jk.

Yes, that works.

> If you are getting links with 8080 in the urls then my guess 
> is you're 
> not requesting pages over port 80 but 8080.

Requests that cause a problem are initiated by redirects. For example:

 

> So the first question is, is mod_jk working? and how do you know this?

I would assume it is functioning fine as all the defined Location's forward
to Tomcat appropriately. Am I missing something?


For example, this is our site:

http://www.objectdomain.com/

when the above is entered, the index.jsp is encountered that contains the
redirect. This results in the following URL:

http://www.objectdomain.com:8080/welcome.do

Note, if you manually remove the port from the above URL and resubmit the
request, the port is not re-inserted until it encounters a link with a
forward (most, but not all, of our links are currently simple HTML links,
not forwards).

Dan


> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> 
> Okay.. "Struts " doesn't do this at all but the http server catalina, 
> conveniently bundled with tomcat  does .. (I think i've got the 
> catalina thing right) .
> 
> If mod jk to working and configured then requests over port 
> 80 for .do 
> will be forwarded to mod_jk.
> 
> If you are getting links with 8080 in the urls then my guess 
> is you're 
> not requesting pages over port 80 but 8080.
> 
> So the first question is, is mod_jk working? and how do you know this?
> 
> 
> On 14 Jan 2004, at 20:03, Mark Lowe wrote:
> 
> > Okay..
> >
> > You better go over the problem again, when you request a *.do over 
> > port 80 the links render with :8080 or do i not understand?
> >
> > On 14 Jan 2004, at 19:57, Dan Snider wrote:
> >
> >> we are using mod_jk2
> >>
> >>
> >>> -Original Message-
> >>>
> >>>
> >>> On 14 Jan 2004, at 18:54, Dan Snider wrote:
> >>>
> > For situations like Tomcat running behind an Apache HTTPD
> > server, this normally
> > gets taken care of you automatically.
> 
>  We have Tomcat running behind an Apache HTTPD and we are
> >>> getting the
>  port as
>  well. Is there perhaps something we are missing in the
> >>> configuration?
> >>>
> >>> What connector are you using mod_jserv? mod_jk?
> >>>
> >>>
> 
> > If you've got a
> > different situation,
> > you'll need to figure out how to tell your servlet container
> > to adjust the
> > server port it reports -- there's nothing Struts can do to help.
> 
>  If configuration is not the solution, any suggestions on 
> how to go
>  about
>  changing the reported port?
> 
>  To my mind, it is not so much that we want the servlet 
> container to
>  report a
>  different port (after all, it is using that port), we just
> >>> want struts
>  to
>  use a different port (80) for links. That is, we want to
> >>> ensure routing
>  through the front door (i.e., Apache). Would using a Filter be a
>  possible
>  solution?
> >>>
> >>> If apache and tomcat are running on the same machine then
> >>> there should
> >>> be no issue, it will be a matter of having request for *.do, *.jsp
> >>> being mapped to the connector module.
> >>>
> >>> Cheers Mark
> >>>
> 
>  Thanks,
> 
>  Dan
> 
> 
> > -Original Message-
> >
> > Quoting "Gabriel W." <[EMAIL PROTECTED]>:
> >
> >> Hi,
> >>
> >> I am relatively new to this list so I do not know if this
> > topic was discussed
> >> before (I checked the archive and it does not appear that way).
> >>
> >> It seems that Struts includes the ServerPort in web links
> > if not of the
> >> values 80 or 443 (e.g. http://mydomain.com:8080). In some
> > cases this is not
> >> the welcomed behavior.
> >> Specifically if the Struts server is listening on Port
> >>> 8080 behind a
> >> firewall. The firewall receives the request from the outside
> >> internet on port 80 and routes it to the machine listening
> > on Port 8080.
> >>
> >> The Struts machine in this case does not know the
> > difference and so includes
> >> the Port 8080.
> >>
> >> I looked at the Struts source code I assume is behind the logic
> >> (org.apache.struts.taglib.html.BaseTag), and it
> >> does not appear as though there is a configuration flag to
> > turn this logic
> >> on/off.
> >>
> >> Are there any considerations for such an option in the
> > future so that a
> >> firewalled site won't have to show 8080.
> >>
> >> NOTE: This is a situation where the Struts server does not
> > hav

RE: REQUEST_PROCESSOR - couldn't deserialize

2004-01-13 Thread Gopalakrishnan, Jayesh
Yes, the offending class seems to be the Struts RequestProcessor.



-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 2:26 AM
To: Struts Users Mailing List
Subject: RE: REQUEST_PROCESSOR - couldn't deserialize


I've had a similar problem before when the offending class did not implement
java.io.Serializable...

regards

Leticia

-Original Message-----
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 18:54
To: Struts Users Mailing List
Subject: REQUEST_PROCESSOR - couldn't deserialize


Has anybody encountered this exception...?

   
<[ServletContext(id=158851062,name=stap-portal,context-path=/stap-portal)]
could not deserialize the context attribute
"org.apache.struts.action.REQUEST_PROCESSOR"
java.io.NotSerializableException:org.apache.struts.tiles.TilesRequestProcess
or
   at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
   at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown Source)
   at
weblogic.servlet.internal.AttributeWrapper.getObject(Z)Ljava.lang.Object;(At
tributeWrapper.java:95)
   at
weblogic.servlet.internal.AttributeWrapper.getObject()Ljava.lang.Object;(Att
ributeWrapper.java:67)
   at
weblogic.servlet.internal.WebAppServletContext.getAttribute(Ljava.lang.Strin
g;)Ljava.lang.Object;(WebAppServletContext.java:637)
   at
org.apache.struts.action.ActionServlet.getRequestProcessor(Lorg.apache.strut
s.config.ModuleConfig;)Lorg.apache.struts.action.RequestProcessor;(ActionSer

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



REQUEST_PROCESSOR - couldn't deserialize

2004-01-12 Thread Gopalakrishnan, Jayesh
Has anybody encountered this exception...?

   
<[ServletContext(id=158851062,name=stap-portal,context-path=/stap-portal)]
could not deserialize the context attribute
"org.apache.struts.action.REQUEST_PROCESSOR"
java.io.NotSerializableException:org.apache.struts.tiles.TilesRequestProcess
or
   at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
   at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown Source)
   at
weblogic.servlet.internal.AttributeWrapper.getObject(Z)Ljava.lang.Object;(At
tributeWrapper.java:95)
   at
weblogic.servlet.internal.AttributeWrapper.getObject()Ljava.lang.Object;(Att
ributeWrapper.java:67)
   at
weblogic.servlet.internal.WebAppServletContext.getAttribute(Ljava.lang.Strin
g;)Ljava.lang.Object;(WebAppServletContext.java:637)
   at
org.apache.struts.action.ActionServlet.getRequestProcessor(Lorg.apache.strut
s.config.ModuleConfig;)Lorg.apache.struts.action.RequestProcessor;(ActionSer
.


This exception is intermittent, unpredictable so far.

thx in advance
-jayash

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



TILES_PROCESSOR - couldn't deserialize - NullPointerException

2004-01-09 Thread Gopalakrishnan, Jayesh
hello all,

  I am running into these intermittent exceptions with Struts 1.1 on
Linux with weblogic 8.1 server.

  The application works fine 95% of the time.but then this exception
shows up & is a show-stopper.
  We  haven't been able to establish a pattern to this.. yet.

  Doing a tiles "reload" with
"org.apache.struts.tiles.actions.ReloadDefinitionsAction" brings it back to
life...

  Any help is appreciated.

thx
:jayash

   
<[ServletContext(id=158851062,name=stap-portal,context-path=/stap-portal)]
Servlet failed with Exception
java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.getServletContext()Ljavax.servlet.
ServletContext;(RequestProcessor.java:1123)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Ljava.l
ang.String;ZLjavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpS
ervletResponse;)Z(TilesRequestProcessor.java:181)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ljavax.se
rvlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.a
pache.struts.config.ForwardConfig;)V(TilesRequestProcessor.java:303)
at
org.apache.struts.action.RequestProcessor.processActionForward(Ljavax.servle
t.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apach
e.struts.action.ActionForward;)V(RequestProcessor.java:401)
at
org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpSe
rvletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.jav
a:279)
at
org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServl
etRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:1420
)
at
org.apache.struts.action.ActionServlet.doPost(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:520)
at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletReques
t;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
<>


   
<[ServletContext(id=158851062,name=stap-portal,context-path=/stap-portal)]
could not deserialize the context attribute
"org.apache.struts.action.REQUEST_PROCESSOR"
java.io.NotSerializableException:
org.apache.struts.tiles.TilesRequestProcessor
at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown Source)
at
weblogic.servlet.internal.AttributeWrapper.getObject(Z)Ljava.lang.Object;(At
tributeWrapper.java:95)
at
weblogic.servlet.internal.AttributeWrapper.getObject()Ljava.lang.Object;(Att
ributeWrapper.java:67)
at
weblogic.servlet.internal.WebAppServletContext.getAttribute(Ljava.lang.Strin
g;)Ljava.lang.Object;(WebAppServletContext.java:637)
at
org.apache.struts.action.ActionServlet.getRequestProcessor(Lorg.apache.strut
s.config.ModuleConfig;)Lorg.apache.struts.action.RequestProcessor;(ActionSer
vlet.java:847)
at
org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServl
etRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:1420
)
at
org.apache.struts.action.ActionServlet.doPost(Ljavax.servlet.http.HttpServle
tRequest





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