Amit Shanker

Greenhorn
+ Follow
since Mar 08, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Amit Shanker

Hi All,

I've deployed my application on Oracle 10g. Unfortunately, the in-built webserver (Apache) does not translate encoded URL's.

For example:

http://www.mysite.com/test/test.jsp%3Fmode%3Dprocess

instead of,

http://www.mysite.com/test/test.jsp?mode=process

Can you help me out where the setting needs to be made?

Thank you,
Amit.
19 years ago
Hi All,

I've deployed my application on Oracle 10g. Unfortunately, the in-built webserver (Apache) does not translate encoded URL's.

For example:

http://www.mysite.com/test/test.jsp%3Fmode%3Dprocess

instead of,

http://www.mysite.com/test/test.jsp?mode=process

Can you help me out where the setting needs to be made?
20 years ago
Hi All,

I've deployed my application on Oracle 10g. Unfortunately, the in-built webserver (Apache) does not translate encoded URL's.

For example:

http://www.mysite.com/test/test.jsp%3Fmode%3Dprocess

instead of,

http://www.mysite.com/test/test.jsp?mode=process

Can you help me out where the setting needs to be made?

Thank you,
Amit.
20 years ago
Hi All,

I had my thoughts mixed up! After the post, I realised that an include JSP (static) eventually gets compiled into a single servlet :-);but while submitting parameters to a servlet and redirecting back to the original JSP, these are two different servlets interacting. So the only option would be to set return values in session and pass them back to the JSP.

Thank you for your responses.

Cheers,
Amit.
20 years ago
Yes..storing them in sessions is definitely one option. But imagine this servlet to be a "ProcessingServlet" for all the forms in JSPs(all JSPs submitting values to this servlet). There is an overhead of removing these attributes after completion of processing. Currently we use an include JSP which does this job. I was just wondering if JSPS are eventually compiled as servlets, why can't we persist or forward the request parameters back to the calling JSP??

Thanks,
Amit.
20 years ago
Hi All,

I have a JSP page which has plenty of form variables. Now I want the form to submit to a servlet(say for validations!) which will do all the processing and return back to the JSP. How can my JSP page access the request parameters of the form variables?

Any suggestions?

Regards,

Amit.
20 years ago
Hi All,

In our application, we fire SQL queries from SB methods. Now whenever we change the query, we need to compile the SB and restart the application server.

To avoid the above scenario, we are planning to create oracle views and to fetch data just fire a "SELECT" on the view. If the query changes, we just have to modify the view, so there is no need to modify SB or restart the application server.

Are there any problems in using views or calling them through SB methods??

Your experience and answers will be highly appreciated.

We are using iPlanet Application server version 6.5 SP1 and database is Oracle 8i.

Thank you very much.

Amit.
Hi All,

I need to modify/scan the request parameters and set them to different values. I've heard that it is possible through filters. Can it be achieved in iPlanet 6.5 application server and are there any known problems, say of performance in using the filter class?

Is there a simpler solution by which deployment can be avoided? Because for implementing filters the web.xml file will require changes and will call for redeployment.

Awaiting responses.

Cheers,
Amit.
21 years ago
Hi Sahil,

You may also want to try out something like the below code snippet for forwarding :-)

<html>
<head>
<meta http-equiv="Refresh" content="0; url=http://www.hotmail.com">
</head>
<body>
</body>
</html>

Cheers,
Amit.
21 years ago
Hi Nicolas,

ClassCastException is thrown when your java code cannot find the specified class. That may be because you may not have imported the class or qualified it with the package name.

Hope this helps!

Regards,

Amit.
21 years ago
Hi All,

I'm trying to use content type "alternate", which sends HTMT & plain text in an email. Depending on the client, whether it supports HTML, it displays text or HTML part. Now my problem is that on HTML based email client the code works fine. On non-HTML, it strips of certain tags. But I want to display my own custom message for plain text, which doesn't seem to work :-(

I've pasted the code snippet. On non-HTML email clients, I want my customised message "You need a HTML email client to read this mail." to be displayed. Now it just shows a stripped down version of the original HTML.

Any help would be really appreciated.

MimeMultipart mp = new MimeMultipart("alternative");

/** create the bodypart for the content */
MimeBodyPart htmlBody= new MimeBodyPart();
MimeBodyPart plainTextBody= new MimeBodyPart();

plainTextBody.setContent("You need a HTML email client to read this mail.","text/plain");
plainTextBody.setHeader("MIME-Version" , "1.0" );

htmlBody.setContent(htmlText,"text/html");
htmlBody.setHeader("MIME-Version" , "1.0" );
21 years ago
Hi Gregg,
You are right. I have not worded my question correctly. Actually, I want to crop an image to get the aspect ratio I want.
If the original aspect ratio of image is 2 ( 200 x 100 pixels image size), I may want to crop the image to get the aspect ratio of 1 (100 x 100 pixels image size) reducing 50 pixels on either sides.
Hope I'm clear this time.
Thanks,
Amit.
21 years ago
How can I crop a JPEG image in JAVA maintaining the aspect ratio of the image. Help will be appreciated.
Thanks,
Amit.
21 years ago
Well..I'm surprised. How have these people done it. Visit the site listed below. Any clue ?
http://www.readnotify.com
21 years ago
Thanks for you mail. Well..I was confident of receiving such a response Now I've confirmed that this really is an impossible task assigned :-) and I shall definitely forward your reply to the concerned person.
Thanks again for your reply.
21 years ago