Jithesh Kumar

Ranch Hand
+ Follow
since Mar 09, 2010
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 Jithesh Kumar

Hi,

After importing a jsf file from another context through c import tag of jstl, i am getting the
error as


org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassCastException: org.ajax4jsf.renderkit.ChameleonRenderKitFactory cannot be cast to javax.faces.render.RenderKitFactory



below is the code for importing


whats wrong with this code

Thanks in advance

Jithesh
10 years ago
JSF

Is the following possible?

in tomcat there is an attribute called "crosscontext", which i think is used for cross context communication.
And after getting the other context, can we can pass the values of the first war to the second wars(jsp or servlet) through url

like this.../contextA/oneServlet?values=1


Thanks in advance

Jithesh


10 years ago
JSF
hi,

thank you for responding..

is it possible if the war is in same webserver ? , if not is there any solution in jsf for the above problem..

thanks,

Jithesh
10 years ago
JSF
Hello all,

I have two war files in my jsf application.I would like to access the managed bean of second war file from the first war file.
Is it possible ?

Thanks in advance,

jithesh kumar
10 years ago
JSF

Rob Prime wrote:ServletContext.getRealPath is exactly the way to go.



Thank you....

Whether the ServletContext.getRealPath() will work if i am using apache tomcat as web server. I read that it wont work if i deploy the application in
war format. is that correct? and if so, is there any workaround for that ?

Jithesh.
10 years ago

Rob Prime wrote: and move it to your img folder.



Thank you for responding.

I forget to mention that i have the inputstream which i want to write to the file. But my doubt is that how to get the
path for writing the file. The application will have its own path depending on where it is deployed.

Can we use something like getcontextpath or getRealpath or any other method is there to find the path?
10 years ago
Hello all,

i would like to write a file to the webservers directory...is it possible?

If i have a url in my webserver like this --http://localhost:8080/context/img
is it possible to write a file to the "img" folder ?

Thanks in advance,


regards,
jithesh
10 years ago
thank you for responding.

for communicating a servlet with another servlet (in same webserver)if i use HttpURLConnection, can we send the request object from one servlet to another servlet or i have to send each parameter one by one to another servlet ?
10 years ago



what you are using to connect to the Web Server



I think we are connecting to the webserver using request and response. So the issue is to get the stream of response where the webserver is writing.
10 years ago
Hi all,

How can we read the outputstream which we get as a response from webserver ?.
Actually i want to read the outputstream as i am getting a file as response?

Thanks in advance,

Jithesh
10 years ago
Actually it will contain bmp image embedded in it.
10 years ago
Thank you for responding.

But the length of byte array is giving me the value.

Actually i am getting this byte array from a dcm file(dicom). I am parsing the dcm file and am getting the byte array


Jithesh
10 years ago
Hi all,
i am trying to convert a byte array into a bmp file using the following code


While running this code i am getting an error


Thanks in advance,
Jithesh
10 years ago
I think i have found out the answer. we should look at the war, ear and jar file to find out the correct interface.
Thanks to all
Hi all,
I am using Ejb 2.0 and jdeveloper for my application. When i am running it i am getting the following error:


I am using a SessionBean to access the Entity Bean. i think here is the error



Thanks in advance,

Jithesh