Praneet Mirchandani

Ranch Hand
+ Follow
since Dec 16, 2009
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 Praneet Mirchandani


Hi,

I am trying to exclude multiple JAR files through my build script. For now I have successfully managed to exclude only one JAR file. Here is the code:



I tried to exclude multiple JAR files using the below code. However this didnt work.



Any idea how to exclude multiple JAR files?

Please let me know.
10 years ago

Followed your suggestion. The warning disappeared. Thanks:-).
10 years ago
JSP

Thanks for the info. I will keep that in mind. As of now the application seems to be working fine. It does give me the following line on the console though (when I start the server).

INFO: validateJarFile(C:\apache-tomcat-6.0.29\webapps\WMCPricingWeb\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class.

However, this doesnt seem to be causing an issue as of now, but if any issues come up, I will try removing the the servlet-api.jar file. Any idea what kind of issues it would cause?
10 years ago
JSP
Thanks. I got the issue. The below code was causing a problem when null values were returned:



So, I enclosed it within a c:choose block:



This resolved the issue:-)
10 years ago
JSP

Hi,

I am trying to migrate my application from weblogic 9.2 to Tomcat 6.

Most of the pages work fine. However, there is one page that doesnt work properly. I am getting the below errors on the console. I have included servlet-api.jar in the lib folder of my application.

Any idea what's causing this. I searched the web, but couldnt figure out what's the issue. Please let me know if you need some more information.

10 years ago
JSP

Hi,

I am trying to migrate my project from Weblogic 9.2 to Tomcat 6.0.29. I downloaded apache-tomcat-6.0.29 from the tomcat website - managed to add the server in eclipse also.

I am not sure how exactly to create the web.xml file and configure database connection through it. This is my current web-xml I use with weblogic. Have absoultely no idea how to go about with this migration to tomcat. It would be great if anyone has any ideas.

10 years ago

Basically it never evaluates the <c:otherwise> element when the <c:when test> condition is false.
11 years ago
JSP
I do intent my code and this part is in<c:choose>. Probably didnt copy it properly.

I tried using not empty.



This did not work. Do I have to use StringA.value instead?

11 years ago
JSP

It prints a blank. So I tried this:



Even this doesnt go to the <c:otherwise> element.
11 years ago
JSP

Hi,

It is in <c:choose> element.

I tried both null and "null". It still never goes to <c:otherwise>.


Praneet
11 years ago
JSP

Hi,

I want to check for multiple conditions using <c: when test>.

Here is what I have written:



This code never seems to go to the <c:otherwise> part even though I checked for values of A and B.
Where am I going wrong?

Thanks,
Praneet
11 years ago
JSP

Hi

I need to modify a certain JSP page to include a Pop Up window. I am using Struts and Tiles.

Currently the page is something like this.

Label1:Value Label2:Value Label3:Value

and so on.

What I need to do is include a link as below:

Label1:Value Label2:Value Label3:Value Link:

On clicking "Link", a new pop up is required to be shown. The contents of the Pop Up should be the the existing labels, plus some additional labels.

I am not too sure as to how to go about it. Any suggestions.

Thanks,
Praneet
11 years ago
Hi

I managed to install the external jar. Thanks David.

But when I ran mvn compile after that, it still threw me errors saying it cannot recognise certain packages which were in the newly installed jar. Any idea why this happened?

11 years ago
Hi,

Actually if I didnt include the ojdbc jar file, it threw me an error saying that this jar is missing.

So I included it. The project does use a lot of Sql queries etc.

Thanks,
Praneet
11 years ago

Sorry. Noted for next time.

I had to include a certain jar as a dependency. So I pasted it in the local repository and then ran the command below.



It gave the following error:
The plugin 'org.apache.maven.plugins:maven-D-plugin' does not exist or no valid version could be found.

Tried searching a lot for this error, but could not figure out.

Thanks,
Praneet
11 years ago