Re: Need Urgent help

2002-06-13 Thread Bharat Nagwani

use logic:present as a wrapper

At 08:10 PM 6/25/2002 +0530, you wrote:
Hi,
I have a problem in using logic:equal tag given below
logic:equal name=beaninstance property=method value=A 
  DO SOME.
/logic:equal
This code is working fine when it is not null. But when ever it {
beaninstance.getMethod() }
is becoming null, page is getting exception as below...

javax.servlet.jsp.JspException: Cannot compare null variable to value A
 at 
 org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
 at 
 org.apache.jsp.HNCTemplate$jsp._jspService(HNCTemplate$jsp.java:317)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)

Can any one help me out in this, I tried to break this in logic:equal source
file..

TIA
rayaku


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


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




Re: WebLogic 6.1SP2 with Struts 1.1b-1

2002-06-11 Thread Bharat Nagwani

Did you try searching weblogic newsgroups at
http://search.bea.com/weblogic/gonews/

At 02:23 PM 6/11/2002 -0400, you wrote:
I've read every one of the 62 messages in the thread in the archive and
AFAICT, we are f*cked.  One message referenced a tech update on BEA's
website recognizing the ClassNotFoundException being thrown by the
classloader, but I've found nothing whatsoever to indicate that Struts
1.1b-1 can be integrated with WebLogic 6.1SP2 or 7.0  (1.02 deploys just
fine).

Has anybody found a work-around for this bug?  This has become a brick wall
on our development path and everyone is getting quite frantic as we are
right in the midst of converting from JRun 3.1 to WLS and are under an
already unrealistic schedule (so what else is new?).

BTW: to those individuals I was helping, I apologize...we have been in
crisis mode at the office for the past 4 days and am getting barely 4 hours
of sleep/night as is.

Thanks,
Mark


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




Re: WebLogic 6.1SP2 with Struts 1.1b-1

2002-06-11 Thread Bharat Nagwani

check this out. Bug confirmed.
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=articlegroup=weblogic.developer.interest.servletitem=7236utag=

At 02:23 PM 6/11/2002 -0400, you wrote:
I've read every one of the 62 messages in the thread in the archive and
AFAICT, we are f*cked.  One message referenced a tech update on BEA's
website recognizing the ClassNotFoundException being thrown by the
classloader, but I've found nothing whatsoever to indicate that Struts
1.1b-1 can be integrated with WebLogic 6.1SP2 or 7.0  (1.02 deploys just
fine).

Has anybody found a work-around for this bug?  This has become a brick wall
on our development path and everyone is getting quite frantic as we are
right in the midst of converting from JRun 3.1 to WLS and are under an
already unrealistic schedule (so what else is new?).

BTW: to those individuals I was helping, I apologize...we have been in
crisis mode at the office for the past 4 days and am getting barely 4 hours
of sleep/night as is.

Thanks,
Mark


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




Re: Cannot find bean in scope null

2002-06-11 Thread Bharat Nagwani

You need to instantiate the bean in the action class and store in request 
object.

At 11:43 AM 6/11/2002 -0700, you wrote:
I am trying to create a drop-down selection box using the html:select and
html:options tags.  I have a form bean - dataViewerForm.  I am getting the
error cannot find bean in scope null.  I have gone over and over my code and
am not sure what I am missing.

Here is the jsp snippet:

type=org.trimet.gis.buds.forms.DataViewerForm 
action=selectionChange.do focus=trips
property=tripNumber labelProperty=tripNumber/
I have a form bean - DataViewerForm with a variable, trips that is a 
collection. Here is the info from my struts_config.xml file: What am I 
missing? Thanks Courtney -- To unsubscribe, e-mail: For additional 
commands, e-mail:



Re: Java Website ISP

2002-06-07 Thread Bharat Nagwani

Host at home and install the latest/greatest with whatever db you want. 
Thats my preference.
I have seen most of the ISP supporting older versions and expensive.

If you have dynamic ip check out easydns.com or
search google for dynamic ip hosting


At 10:25 AM 6/7/2002 -0400, you wrote:
I fired my ISP yesterday for refusing to support server-side Java and am now
actively looking at alternatives.  I was surprised to find that there are
only about 70 ISPs in the US supporting server-side Java.  The good news is
that most use Tomcat 3.2 on Apache and support JDK 1.3.1, Servlet 2.2 and
JSP 1.1 with access to MySQL, and all that I have contacted are planning to
upgrade to Tomcat 4.0x, JDK 1.4, Servlet 2.3 and JSP 1.2 within the next 8
weeks.  One (SpinWeb.com) even will let you upload your own versions of
Tomcat and JDK.  The bad news is prices range from $350/year to $750 and I
have no qualitative anecdotes regarding the level of service any provide.

If anyone has first-hand knowledge of same, I'd appreciate the information.
I want to make a decision in the next couple of hours so I can (hopefully)
get the new DNS IPs propagated by tomorrow night.

Thanks,
Mark


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




Re: Multiple search on single page - approach

2002-06-05 Thread Bharat Nagwani

Dont think that is a good idea to have 1 values in a list.
If you can avoid it, you can try the navigation tag as another
user suggested. Dont think its a good idea to use Javascript
with this amount of data either. Best is if you can add one more
search criteria in addition to id to narrow search results.

At 01:58 PM 6/5/2002 -0700, you wrote:
Hello All,

I have single page ( JSP) which has multiple (5)
search criteria where user enters corresponding ids .
User can eneter id's and onchange event populates the
corresponding drop down lists. Lists are popultaed
from DB so there is server trip for every onchange
event. Page refreshes every time. I am looking forward
to implement some thing simple which will avoid
multiple trips to server so that single server submit
can help. Drop downs still needs to be populated from
DB and has more than 1 records. Are there any
other good approaches ?

thanx in advance


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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


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




Re: Global-Forwards Question

2002-06-03 Thread Bharat Nagwani

have you defined the servlet in web.xml


At 10:46 AM 6/3/2002 -0700, you wrote:
Have you tried:
global-forwards
 forward name=thirdAction path=/thirdAction.do /
 /global-forwards
or
global-forwards
 forward name=thirdAction path=/do/thirdAction /
 /global-forwards

-vincent.

Jerry Jalenak wrote:

  Hi All,
 
  Is it possible to use the mapping.findForward method to forward to another
  ActionServlet?  I have two ActionServlets that both need to forward to a
  third, common ActionServlet.  In my struts-config, I have the following
  line:
 
  global-forwards
  forward name=thirdAction path=/thirdAction /
  /global-forwards
 
  where 'thirdAction' is the common ActionServlet.  In both of the other two
  ActionServlet, I have
 
  actionForward = mapping.findForward(thirdAction);
  return actionForward;
 
  It doesn't seem as though the forward is happening as I never get into the
  'thirdAction'.  Can this be done this way?
 
  Thanks!
 
  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 (800)388-4675.
 
  --
  To unsubscribe, 
 e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]


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


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




Re: servlet context/Action class - performance question.

2002-06-03 Thread Bharat Nagwani

We store much more information that in our
application context and dont have any performance issues.
We store all our master data (static) on startup. The
performance is enhanced.

Again it depends on how much
data you have and how much it is supposed to grow over time.
That you should consider.

At 01:01 PM 6/3/2002 -0500, you wrote:
The requirement is to display a page with some categories just like the
yahoo homepage. The link of each main category will have to show the
subcategories of that category in a similar page. The level of this tree
goes one more level inside. All this information is built ofcourse by
retrieving from the database.

First thought was to build the relevant section of the category/subcategory
tree based on the request parameters. Since these pages are going to be the
most viewed (and does not change based on the user), I thought it would
be better for performance if the whole tree is created in a startup servlet
and put in servlet context instead of creating a part of it in the Action
class and setting it into the HttpServletRequest. This would mean that I
wont have to hit the database for every user request. I will just have to
get the relevant part of the category tree from the (big) object in servlet
context based on a key lookup on the TreeMap.

The pages load surely very fast, ~but~ I am wary of such a big object in
memory and its effect on the performance once it goes into production.

To give a rough idea about the size of this tree: 1 main category (TreeMap)
has about 12 subcategories (TreeMaps again). Each of the subcategories has
about 10 child categories. Each child category is a ArrayList of strings.
So its a TreeMap of TreeMaps of ArrayLists.

Did anybody face similar design choice and had to choose against a setting
so much information in the servlet context? Any input is greatly
appreciated!

I apologize for the subject being a little off-topic.

Thanks,
-Shyam Gouri


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


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




Re: Button pressed

2002-06-03 Thread Bharat Nagwani

one more alternative
create a hidden field and assign a value to it (edit or continue) using 
javascript

and check that hidden field in request.getParameter...

At 02:26 PM 6/3/2002 -0400, you wrote:
Hi guys,

I'd like to know if there is a way that I will know which button was 
pressed. I have two buttons in the JSP (Edit and Continue). In my action 
class I need to know which one of those was pressed.

Thanks in advance.

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



Re: Button pressed

2002-06-03 Thread Bharat Nagwani

Dont know if this will work

Try using IMG SRC=URL instead of regular button with the URL having a 
different query string for edit and continue.
eg ...?action=edit

At 02:26 PM 6/3/2002 -0400, you wrote:
Hi guys,

I'd like to know if there is a way that I will know which button was 
pressed. I have two buttons in the JSP (Edit and Continue). In my action 
class I need to know which one of those was pressed.

Thanks in advance.

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



Re: Pros and Cons of Struts

2002-06-03 Thread Bharat Nagwani

referring to the four taglibs - bean, html, logic and template

we make use of all. All work very nice. thats the pro.

For cons, i think these taglib's can make the app slower since
there are now more classes being instantiated/re-used compared to using
straight scriptlets or html.

At 12:55 PM 6/3/2002 -0700, you wrote:
Subject: Pros and Cons of Struts
From: Sanjib Islam [EMAIL PROTECTED]
  ===
I am presently evaluating struts as a presentation framework for our
upcoming project.
Could anyone please provide a list of some of the pros and cons that they
might have experienced in their projects?

Thanks.




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


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