Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Vijay Bala

Greenhorn
+ Follow
since Oct 25, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vijay Bala

Hi,

I have been trying to get JSF to work with DWR.I keep getting a javascript error on the onblur where I call the Serverside JavascriptBasic HTMl code works fine but it sarts failing as soon as I introduce JSF JSP tags. I have read the DWR links on JSF Integration.

I am trying to populate the city and state based on the zip from a DB.I have dwr.xml setup along with web.xml. As i said, the example works fine with plain old HTML but when i try to introduce JSF , it doesn't like the
DWR tags to get the value in the onblur.
Any help or any example showing some code example is appreciated.

I am not able to post my code.Tried a few times and changed the < etc.

TIA,
Vijay
14 years ago
JSF
HI,
Is it possible to use 2 phase commit without using EJB ?
This is what i want to do:
1.
InitialContext ctx = new InitialContext();
javax.transaction.UserTransaction userTran = ctx.getuserTransaction();
try {
userTran.begin();
do updates to 2 distributed databases
userTran.commit();
} catch(Exception e) { userTran.rollback() }

2. Another optionI have seen is :
java.util.Properties env = ..
Context ctx = new IntialContext(env);
userTran = (userTransaction)ctx.lookup("java:comp/UserTransaction");
Rest of the code is the same.
Can i use such code in a simple helper class which is called by a servlet or does it have to be within a Session bean ? All i reallyw ant to do is geta UserTransaction instance and do updates to 2 databases within the transaction without using EJB ? I can't use EJB becoz the client doesn't want to use it.
Thanx,
Vijay
Hi,
I am using a SQL Server stored proc.I am trying to update a smalldatetime column and get the error "error converting datetime to smalldatetime". Another smalldatetime column in the table has the format "yyyy-mm-dd hh:mm:ss".
I tried the foll code:
long i = drvo.getDateOfBirth().getTime();//getDateOfBirth returns a java.util.Date
call.setDate(1,new java.sql.Date(i));
//call.setTimestamp(1,new java.sql.Timestamp(i));
Using both the setDate and setTimestamp gave me the same error.I am using the sql server type 4 driver for 7.0.I tried using Resultsetmetadata and got the column type to be Timestamp from the table.Its defined as smalldatetime in the table.
Thanx in advance for any help,
Vijay
Hi,
Could you give me an example of how to use the partial export. I am trying to use it to partially export just 1 application server from my Websphere setup which has multiple application servers.
X:\XMLConfig -export <xml output file> [-partial <xml data file>] ]

What would be inside this xml data file ?
Thanx in advance,
Vijay
18 years ago
Hi,
Could soembody give some examples of things that WSCL can do that xmlconfig can't do ?
Thanx,
Vijay
18 years ago
Hi,
What is the process to add Sql Server jdbc driver to Websphere 3.5.4. I have been scouring the manual and it says you can't add sql server driver from Microsoft to WebSphere 3.5.4.I have been loking at a few files under /properties directory under websphere root.
Any help is appreciated in setting up the driver and being able to pull it up through WTE to setup the datasource.
18 years ago
Hi,
I am scrolling through a list of viewbeans, whose selective data are being displayed in an href link respectively. The user selects an href link. I need to pass the viewbean corresponding to the href link clicked. There are way too many parameters to pass via the url.
Is there any way I can do that ? Right now I pass some unique key to the next page and have to requery the database for the viewbean.i want to avoid the extra call to the database when i already have the viewbean in the earlier page.
Any help is appreciated.
Thanx,
Vijay
18 years ago
JSP
I just think SCW.. is much more useful as it gives you an understanding of the fundamentals which you can apply to WEbsphere or Weblogic etc.
Vijay
Hi,
I am trying to install a war file into WebSphere 4.0 AES. I get the following error -"Exception:
com.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN;SYSTEM_ID=http://java.sun.com/dtd/web-app_2_3.dtd".
I have this DTD defined in WEB-INF/web.xml file. What do i need to get it to work on WEbsphere 4.0 ?
Thanx,
Vijay
18 years ago
Hi,
I am trying to install fix patch 4 over websphere 3.5 and want to use websphere with jsp custom tags using jsp 1.1. I can't seem to be able to update the software properly. I look at the logs was35_ptf_1.log; jdk_ptf_4.log and it shows that the installation took place properly but the software is not updated properly. I had stopped the websphere service before installing and tried rebooting etc.
I have the directory structure as e:\websphere\appserver and i also have VAJ at e:\vaj. I was able to update vaj to version 4.0 and it seems to show a product.xml file under e:vaj\...\properties\com\ibm\websphere\product.xml with the correct version of 3.5.3. But when i look at the e:\websphere\appserver\\properties\com\ibm\websphere\product.xml it still shows version 3.5.0 ??
In webshere test environment, you can update default.servlet_engine to change your jsp servlet for compiling-can i do something similar and get it working for jsp 1.1 ?
Thanx,
Vijay
18 years ago
Hi,
How can i run a Coldfusion page with a *.cfm extension from Websphere test environment(WTE) in Vaj 3.5. I did see the default.servlet_engine with mime types.
<pre>
<mime type="application/oda">
<ext>oda</ext>
</mime>
</pre>



But i did not know what to put in for .cfm and what ese i need to do if the web server being used was IIS. What if i could avoid usin IIS in my test environment and just use WTE ?


Thanx in advance,
Vijay
18 years ago
I have defined a bean using useBean and want to use it within a scriptlet to get a string value from a getter method. It gives me an error saying method getSilo() not found in test1.UserFormBean. I have defined the class UserFormBean as public and the method getSilo() as public. Here is my bean definition :

package test1;
import com.client.JspBean;
public class UserFormBean extends JspBean {...
String silo = null;
public UserFormBean() {
super();
setJspDataName("UserFormBean");
}
public String getSilo()
{
return silo;
}
I have used the foll. code in my jsp page :
<%@ page import="test1.*"%>
<jsp:useBean id="UserFormBean" class="test1.UserFormBean" scope="request">
</jsp:useBean>
<%
String silo = null;
String objSilo1 = UserFormBean.getSilo(); <======//error obtained here
if (objSilo1 == null) {
silo = "personal";
}
%>
I keep getting the error : Method getSilo() not found in class test1.UserFormBean. How can i use
UserFormBean.getSilo()
to store it in a string since i need to manipulate in diff. ways in my code and need to store the value in a string instead of using <jsp:getProperty..
I even tried using the code directly and not using useBean with request scope.

test1.UserFormBean UserFormBean = (test1.UserFormBean)request.getAttribute("UserFormBean");
if (UserFormBean == null) {
UserFormBean = new test1.UserFormBean();
request.setAttribute("UserFormBean", UserFormBean);
}
Thanx in advance,
Vijay
18 years ago
JSP
Not sure if this helps a bit it almost looks like you are trying to do a JNDI lookup. Have you looked at the options on WTE for persistent name server and DataSource Configuration ? Just a thought but i might be way offbase.
18 years ago
I found the problem finally. It was with calling the servlet using /servlet/com.... instead of using just /ControlServlet (i used this finally and it worked)which is how i had defined it in the default_app.webapp. I am not sure but i think the invoker servlet actually calls a new copy of the servlet if it sees /servlet.
But i am still confused - i use <autostart>false which is what i wanted. But why doesn't the invoker servlet do it the same way whether i use /servlet/com... or /ControlServlet. In the former case, it doesn't seem to get the getInitParameterNames() while in the latter case(/ControlServlet), it gets all the servlet Init parameter values.
Beats me why-i thought both options could be used ??
Thanx,
Vijay
18 years ago
Hi,
I am using a Control servlet with websphere test environment with vaj 3.5 with servlet 2.1 .
I am having a problem with getting the init parms with the command -
Enumeration enum = getInitParameterNames();
The enum comes out to be null.
Looking at the console i noticed that the servlet invoker loads the servlet initialization parms when the wte environment is being setup and loads the Control servlet. I tried changing the default_app.webapp for the autostartto make it false so that the invoker doesn't run the init parameter but then it doesn't load the init parms at all as i see in the Console.
<autostart> was set to true initially and then though the servlet init parms are loaded when the WTE starts up and shows up in the console, my program doesn't seem to pick up the init parms when i run my servlet even though it goes through the init(ServletConfig) method. I also have a super(Servletconfig) as the first statement to save the ServletConfig information.

Any help is appreciated,
Thanx,
Vijay
18 years ago