Manjesh Patil

Ranch Hand
+ Follow
since Sep 24, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Manjesh Patil

This is a question about Java 8u51 update which has security fixes. We are evaluating if the vulnerability affects the jdk version we use.

What I want to know is :

For some CVE when it says 6u95,7u80 are affected, does it mean earlier versions (6u31,7u55, 7u71) are also affected? or they affect only the specific versions mentioned in "Supported Versions Affected" column of the table ?

http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html#AppendixJAVA
9 years ago
Hi,
I am using Apache Commons libraries to upload a .docx file . I want to extract the text using Apache POI at the same time. My application server(Google App egine) does not allow to create files so I cannot write to file. This is the reason I need to extract the text from uploaded file and store it as String object or BLOB in database.

While doing so I cannot pass the inputStream returned by ServletFileUpload to Apache POI API, it is throwing an exception Your InputStream was neither an OLE2 stream, nor an OOXML stream
the POI API expects a FileInputStream but the inputStream returned by ServletFileUpload is not compatible ..


I am passing a valid .docx file.
how should I handle this?
In Jboss say If your application name TestApp, then on deployment the server shows message like ...

14:18:42,752 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/TestApp

which application server do you use?

If you know where is your hosting server located , server's log locations you can debug it easily.
11 years ago
Also , using UPPER cases for package name is discouraged. As a best practice use smaller cases for package names.
Example :



Do you see your application Context loaded messages in server.log?
11 years ago
So you do not want to show anything to the user until your stored proc completes? If the stored proc takes too much time to complete its activity why cannot you trigger a separate thread for this ?
incase if its required to wait until the proc finishes , you can try something like WaitAndExecute filters to notify the GUI that something is happening behind the screen..


-regards
Manjesh
12 years ago
I wish some plugin would come up though I do not see any roadmap for struts2 on their official site.
12 years ago
Struts2 as of now does not seems to be supporting HTML5. you have to use s:textfield only.
here is the list of HTML elelments that struts2 tags can render....


http://struts.apache.org/2.0.6/docs/ui-tag-reference.html



regards
Manjesh
12 years ago
Sounds it is programmatic issue and the way you are handling the shared objects in the Action classes/Beans .This Issue does not seems to be originated from the framework, try putting more logs/debugs ..
Good luck.

rerards.

12 years ago
From Ajax call or by URL alone you cannot direct struts framework to invoke any method present in the Action class, as you have mentioned you have to make use of struts.xml file to instruct which method to be invoked unless you want default( execute) to be get executed.

-regards
Ma
12 years ago
Where do you see the NullPointerException ? written to the browser ? Exception trace is not available?
try chaning the bean scope to "request" and see ..

12 years ago
Which version of struts you are using .. struts2 or struts1.x?
12 years ago
Hi I have Struts2 application Running on Google App Engine.
When I add "tokenSession" interceptor to any of the actions (say registration.action) , I do get the following exception. If I remove "tokenSession" Interceptor.. things works fine.., what could be the issue?
I have even tried with latest xwork-core-2.3.5-.jar file but no gain.
I use struts2-core.2.3.1.2 and dependent jars. please help me to fix this issue.



Thanks
Manjesh
12 years ago
Thanks for Reply

yes ...there is . It writes the output but in single line.............

how to configure these outputstreams so as to consider the new line character?

-thanks
Ma
12 years ago
I agree. But what I understand from mail is that , the developer is trying to apply high level authorisation to the URL (allow/deny).

If all my jsps are in the path : /jsp/example/ I can still uses security-constraint tag to protect /jsp/example/*.jsp same way for Servlets.

regards
Ma
12 years ago
Hi I have the following requirement





When I write this to browser from servlet, the output will be printed in the same line but I am expecting in two lines (in text form not HTML form which can be achived using <br/>).
If I use System.out.println(s) , it prints as I am expecting.

I have tried the following things but no gain!



Also I have noticed one thing that . I am using JRE6 WINDOWS 7 and ECLIPSE
is this the problem?

can someone help me..?
thanks in advance
Ma
12 years ago