RE: JSPG0103E: Unable to open taglibrary /WEB-INF/struts-bean.tld

2004-03-22 Thread Randy Dillon
I got this when I deployed without the taglib jar file in the war/ear files.

:-> -Original Message-
:-> From: ansuman_behera [mailto:[EMAIL PROTECTED]
:-> Sent: Friday, March 19, 2004 2:07 AM
:-> To: Struts Users Mailing List
:-> Subject: JSPG0103E: Unable to open taglibrary 
:-> /WEB-INF/struts-bean.tld 
:-> 
:-> 
:-> Hi All,
:-> 
:-> In our project we are getting an error with the subject as 
:-> the error message. 
:-> 
:-> We are getting this in the development environment. We are 
:-> using WSAD 4.0. The interesting thing is we are not getting 
:-> the error when we are using WAS 4.0.1 as part of WSAD but 
:-> with WAS 4.0.2.
:-> 
:-> I'm writing the error message again below.
:-> 
:-> Have tried searching on struts, google and almost every 
:-> other option but failed to find a solution to this...
:-> 
:-> Has anyone else faced this? Is there a solution to this?
:-> 
:-> thanks
:-> ansu
:-> 
:-> [3/17/04 11:25:41:734 CST] 70060345 OSEListenerDi X 
:-> PLGN0021E: Servlet Request Processor Exception: Virtual 
:-> Host/WebGroup Not Found : The web group / has not been defined
:-> java.lang.ClassCastException: 
:-> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
:-> at 
:-> javax.xml.parsers.DocumentBuilderFactory.newInstance(Documen
:-> tBuilderFactory.java:147)
:-> at 
:-> org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:187)
:-> at 
:-> org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLi
:-> braryInfoImpl.java:473)
:-> at 
:-> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibr
:-> aryInfoImpl.java:305)
:-> at 
:-> org.apache.jasper.compiler.JspParseEventListener.handleDirec
:-> tive(JspParseEventListener.java:800)
:-> at 
:-> org.apache.jasper.compiler.DelegatingListener.handleDirectiv
:-> e(DelegatingListener.java:116)
:-> at 
:-> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:216)
:-> at org.apache.jasper.compiler.Parser.parse(Parser.java:1115)
:-> at org.apache.jasper.compiler.Parser.parse(Parser.java:1066)
:-> at org.apache.jasper.compiler.Parser.parse(Parser.java:1062)
:-> at 
:-> org.apache.jasper.compiler.Compiler.compile(Compiler.java:237)
:-> at 
:-> org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697)
:-> at 
:-> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadI
:-> fNecessary(JspServlet.java:244)
:-> at 
:-> org.apache.jasper.runtime.JspServlet$JspServletWrapper.servi
:-> ce(JspServlet.java:261)
:-> at 
:-> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServl
:-> et.java:430)
:-> at 
:-> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
:-> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
:-> at 
:-> com.ibm.servlet.engine.webapp.StrictServletInstance.doServic
:-> e(ServletManager.java:827)
:-> at 
:-> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._servic
:-> e(StrictLifecycleServlet.java:167)
:-> at 
:-> com.ibm.servlet.engine.webapp.IdleServletState.service(Stric
:-> tLifecycleServlet.java:297)
:-> at 
:-> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
:-> (StrictLifecycleServlet.java:110)
:-> at 
:-> com.ibm.servlet.engine.webapp.ServletInstance.service(Servle
:-> tManager.java:472)
:-> at 
:-> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dis
:-> patch(ServletManager.java:1012)
:-> at 
:-> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispa
:-> tch(ServletManager.java:913)
:-> at 
:-> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handle
:-> WebAppDispatch(WebAppRequestDispatcher.java:523)
:-> at 
:-> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispat
:-> ch(WebAppRequestDispatcher.java:282)
:-> at 
:-> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forwar
:-> d(WebAppRequestDispatcher.java:112)
:-> at 
:-> com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(Simple
:-> FileServlet.java:223)
:-> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
:-> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
:-> at 
:-> com.ibm.servlet.engine.webapp.StrictServletInstance.doServic
:-> e(ServletManager.java:827)
:-> at 
:-> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._servic
:-> e(StrictLifecycleServlet.java:167)
:-> at 
:-> com.ibm.servlet.engine.webapp.IdleServletState.service(Stric
:-> tLifecycleServlet.java:297)
:-> at 
:-> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
:-> (StrictLifecycleServlet.java:110)
:-> at 
:-> com.ibm.servlet.engine.webapp.ServletInstance.service(Servle
:-> tManager.java:472)
:-> at 
:-> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dis
:-> patch(ServletManager.java:1012)
:-> at 
:-> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispa
:-> tch(ServletManager.java:913)
:-> at 
:-> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handle
:-> WebAppDispatch(WebAppRequestDisp

RE: Hierarchical Lists

2004-03-17 Thread Randy Dillon
Derek,

That's an interesting concept.  My CSS skills are pretty basic though.  How could you 
use CSS to do it?  Would it work if the first list was multi-select with many 
different possible combinations?

:-> -Original Message-
:-> From: Scherger, Derek [mailto:[EMAIL PROTECTED]
:-> Sent: Wednesday, March 17, 2004 3:32 PM
:-> To: 'Struts Users Mailing List'
:-> Subject: RE: Hierarchical Lists
:-> 
:-> 
:-> I've though of (but not done) the possibility of using css 
:-> to hide and show
:-> different versions of the second select list rather than 
:-> adding/removing
:-> elements with javascript. Not sure which would be a better 
:-> way to go as they
:-> both will require some scripting. The css hide/show 
:-> version's script is
:-> pertty trivial though.
:-> 
:-> Cheers,
:-> Derek
:-> 
:-> -Original Message-
:-> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
:-> Sent: Wednesday, March 17, 2004 12:54 PM
:-> To: [EMAIL PROTECTED]
:-> Subject: RE: Hierarchical Lists
:-> 
:-> 
:-> Short of a reload, I believe only a JavaScript/DHTML 
:-> function can provide
:-> this behavior.
:-> 
:-> 
:-> -Original Message-
:-> From: Randy Dillon [mailto:[EMAIL PROTECTED]
:-> Sent: Wednesday, March 17, 2004 2:48 PM
:-> To: Struts Users Mailing List
:-> Subject: Hierarchical Lists
:-> 
:-> 
:-> Say I have 2 (or more) lists that are part of a hierarchy, 
:-> such that the
:-> first list is a category (say Food Groups) and the second 
:-> list contains
:-> children of each of the first list's items (for this 
:-> example, let's say Food
:-> Types).  
:-> 
:-> How do I get the second list to be filtered based on the 
:-> selection in the
:-> first list?  I know this can be done by reloading the page 
:-> each time the
:-> selection is changed in the first list, but is there a way 
:-> to do this
:-> without the page reload?
:-> 
:-> To add more detail to the example:
:-> 
:-> Food Groups Food Types
:-> --- --
:-> Meat&Dairy  Beef
:-> Chicken
:-> Milk
:-> Eggs
:-> Fruit&Veg   Melons
:-> Apples
:-> Oranges
:-> Lettuce
:-> . . 
:-> . .
:-> . .
:-> 
:-> If Meat&Dairy is selected in the Food Groups list, can the 
:-> second Food Types
:-> list be filtered to only the Meat&Dairy food types without 
:-> a page reload?
:-> 
:-> 
:-> 
:-> -
:-> 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]



Hierarchical Lists

2004-03-17 Thread Randy Dillon
Say I have 2 (or more) lists that are part of a hierarchy, such that the first list is 
a category (say Food Groups) and the second list contains children of each of the 
first list's items (for this example, let's say Food Types).  

How do I get the second list to be filtered based on the selection in the first list?  
I know this can be done by reloading the page each time the selection is changed in 
the first list, but is there a way to do this without the page reload?

To add more detail to the example:

Food Groups Food Types
--- --
Meat&Dairy  Beef
Chicken
Milk
Eggs
Fruit&Veg   Melons
Apples
Oranges
Lettuce
. . 
. .
. .

If Meat&Dairy is selected in the Food Groups list, can the second Food Types list be 
filtered to only the Meat&Dairy food types without a page reload?


-
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 Randy Dillon
OK, the picture I have of your page/action flow is:

(1)indexaction -> (2)index.jsp -> (3)LogonAction -> (4)IndexAction -> (5)(not sure 
here if this is index.jsp or login.jsp)

If that is incorrect, please post the correct flow.  From the flow above though, 
junkbean is created in (1) and and is out of scope after the request expires following 
(2).  So LogonAction in (3) doesn't have access to the first junkbean unless it is 
added back to the request; if it tries to use it otherwise, without creating it, I 
would expect an error like you are experiencing.  IndexAction in (4) recreates the 
bean, does it not?  And then puts it in the request again?  If it doesn't, there would 
be no junk bean in the request in (5).  

:-> -Original Message-
:-> From: Andy Engle [mailto:[EMAIL PROTECTED]
:-> Sent: Thursday, March 04, 2004 5:45 PM
:-> To: Struts Users Mailing List
:-> Subject: RE: Returning fully-stocked Actions/JSPs from other Actions
:-> 
:-> 
:-> Randy Dillon <[EMAIL PROTECTED]> wrote:
:-> 
:-> > ... Your first request scope ends once index.jsp loads; 
:-> if you want
:-> > to use the junkbean again after that, you have to save it again,
:-> > either in the new request or in the session (or possibly other
:-> > places, but those are the 2 most obvious).
:-> 
:-> Right -- I am putting it in the request scope in the second action,
:-> which is what LogonAction forwards to after it's finished.
:-> 
:-> 
:-> > So LogonAction would only be able to get junkbean from 
:-> the request if
:-> > index.jsp put it there (again).
:-> 
:-> LogonAction doesn't need junkbean.  It only needs to forward to
:-> IndexAction, which it is doing.  But when I get to 
:-> IndexAction (which
:-> loads index.jsp), it doesn't seem to be populating the bean 
:-> with data
:-> for index.jsp to access, hence the problem.  It seems to me that it
:-> should, hence my initial question.
:-> 
:-> 
:-> 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 Randy Dillon
I'm not sure I fully understand what you're trying to do, but it seems like there is 
some confusion over the request scope and how long it lasts.  Your first request scope 
ends once index.jsp loads; if you want to use the junkbean again after that, you have 
to save it again, either in the new request or in the session (or possibly other 
places, but those are the 2 most obvious).  So LogonAction would only be able to get 
junkbean from the request if index.jsp put it there (again).

:-> -Original Message-
:-> From: Andy Engle [mailto:[EMAIL PROTECTED]
:-> Sent: Thursday, March 04, 2004 5:13 PM
:-> To: Struts Users Mailing List
:-> Subject: Re: Returning fully-stocked Actions/JSPs from other Actions
:-> 
:-> 
:-> Michael McGrady wrote:
:-> 
:-> > I am having a hard time seeing what you want to do, but I 
:-> know that
:-> > your issues with the "junkbean" are unrelated to the 
:-> "hiding" of the
:-> > JSPs behind/beneath/be-whatever WEB-INF.  If you want to 
:-> access data,
:-> > including an object, then the data must be saved 
:-> somewhere and then
:-> > accessed where it is saved during the time it is saved.  
:-> That is the
:-> > simple truth that is required for this situation.
:-> 
:-> 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:
:-> 
:->  path="/login"
:-> type="com.andyengle.actions.LogonAction"
:-> name="logonForm"
:-> scope="request"
:-> input="/WEB-INF/pages/index.jsp">
:->   
:-> 
:-> 
:-> 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: JavaScript Parameter

2004-02-26 Thread Randy Dillon
Have you tried:




:-> -Original Message-
:-> From: Anirudh Jayanth [mailto:[EMAIL PROTECTED]
:-> Sent: Wednesday, February 25, 2004 10:32 PM
:-> To: 'Struts Users Mailing List'
:-> Subject: JavaScript Parameter
:-> 
:-> 
:-> Hi,
:-> I have a scriptlet
:-> <% String val=obj.getValue("Key"); %>
:-> I need to use this value to be passed as a javascript 
:-> parameter inorder
:-> to set a property value.
:-> 
:->  onclick="jsFunction(form,"<%=val%>")" />
:-> The parameter value is not being passed to jsFunction
:-> 
:-> This works when I use a hardcoded value
:->  onclick="jsFunction(form,"1234")"
:-> />
:-> 
:-> I have tried these variations aswell
:->  onclick="jsFunction(form,<%=val%>)" />
:->  onclick="jsFunction(form,'<%=val%>')" />
:-> 
:-> Cud somebody please tell me the correct way to do this.
:-> Regards,
:-> Anirudh
:-> 
:-> 
:-> 
:-> 
:-> 
:-> -
:-> 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: Logic:iterate Exception

2004-02-20 Thread Randy Dillon
I forgot to add, parms is a bean declared as such:



and is used all over this JSP.  I don't get it.

:-> -Original Message-
:-> From: Randy Dillon 
:-> Sent: Friday, February 20, 2004 12:48 PM
:-> To: 'Struts Users Mailing List'
:-> Subject: Logic:iterate Exception
:-> 
:-> 
:-> I have logic that looks like this:
:-> 
:-> <% int n = 0;
:->String strCat = ( (String[]) parms.get("cboCategory") )[n];
:->out.println(strCat + strCat + strCat);
:-> %>
:-> name="parms" property="cboCategory" >
:-> , 
:-> <%strCat=( (String[]) parms.get("cboCategory") )[n];%>
:->   
:-> <%=strCat%>
:-> 
:-> 
:-> The scriptlets are strictly for debugging purposes, because 
:-> the  
:-> javax.servlet.jsp.JspException: Cannot find bean cat in scope page
:-> at 
:-> org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717)
:-> at 
:-> org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:290)
:-> at _pages._product._orderdetail._jspService(orderdetail.jsp:48)
:-> 
:-> Otherwise, everthing in the code block above works.  In 
:-> fact, the code block (minus the scriptlets) was copied from 
:-> another page where it works without fail.  Isn't the 
:-> parms.get(...) doing the same thing as the  ...> combined with the ?
:-> 


Logic:iterate Exception

2004-02-20 Thread Randy Dillon
I have logic that looks like this:

<% int n = 0;
   String strCat = ( (String[]) parms.get("cboCategory") )[n];
   out.println(strCat + strCat + strCat);
%>

, 
<%strCat=( (String[]) parms.get("cboCategory") )[n];%>
  
<%=strCat%>


The scriptlets are strictly for debugging purposes, because the  combined with the 
?


RE: How to make readonly in Select Box

2004-02-20 Thread Randy Dillon
Seems to me that this violates good UI design.  I mean, what purpose does a Select Box 
have if you can't select anything.  If I rememember my UI theory correctly, the 
selections should be displayed in a form such as static text that makes it clear that 
they aren't changeable.

I might use a table (single column to mimic the layout of the Select) and display 
static text in it for the selected items.


:-> -Original Message-
:-> From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
:-> Sent: Friday, February 20, 2004 10:11 AM
:-> To: [EMAIL PROTECTED]
:-> Subject: Re: How to make readonly in Select Box
:-> 
:-> 
:-> 
:-> We are achieving the same using disabled property. First 
:-> you need to check for the mode if it is edit then make your 
:-> select box is disabled with the selected value (you might 
:-> be having this already selected value in some where 
:-> session.). If you need to retrieve the value in this 
:-> edit mode retrieve it from the already stored value (session).
:-> 
:-> otherwise as meeru suggested display it in a readonly textbox.
:-> 
:-> Thanks,
:-> Srini
:-> 
:-> 
:-> >>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
:-> Hi,
:-> 
:-> I want to make readyonly in Select Box. If i gave 
:-> readonly="true".
:-> There is no property
:-> called readonly..What i have to do for that one
:-> 
:-> 
:->   
:-> Marketing
:->   
:->   
:-> Human Resource
:->   
:->   
:-> Administration
:->   
:-> 
:-> 
:-> Bye
:-> Ram
:-> 
:-> 
:-> 
:-> -
:-> 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]