Rubal Sidhu

Greenhorn
+ Follow
since Aug 24, 2002
Merit badge: grant badges
For More
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 Rubal Sidhu

Hi James,
Sorry for not clarifying this in previous reply.Anyway the problem is solved.You were right I was using keytool to create key in keystore.I created the key using below code & it worked.

Thanks for your help & patience.
Rouble



[ August 09, 2006: Message edited by: Rubal Sidhu ]
[ August 09, 2006: Message edited by: Rubal Sidhu ]
17 years ago
Hello,I am new to Security & I think I am not generating keystore correctly.Can you tell me how to generate correct keystore for my code to work.
Thanks,
Rouble
17 years ago
Hi,
I will really appreciate if someone can help me on this.
I created a keystore using below tool



I am using following code to encrypt the data.



But I get following error everytime,




I will appreciate if who can advice me on this issue.

Thanks,
Rouble
17 years ago
Hi all,
I am new to XSL & I have 2 doubts.
1>
I have a XML file & using a XSL file I have to extract a portion of input XML(say SuperXML) to get a new XML(say subXML).The XSL file has to read a properties or CSV file to fetch some IDs & for each ID picked XSL has to transfrom super XML to generate subXML.Question, XSL is reading 2 files,properties/CSV & SuperXML,how can I do this.Is it possible that XSL reads 2 input files.I hope I m not confusing you.
2>
Now,a simple one I have following skeleton of a XML file
<tag1>
..<tag2>
...<tag3>
...<catchme>first<catchme>
...<catchme>second<catchme>

& I want to get data from 2 <catchme> tags.I am using following in XSL but it is not getting data.Please advise where I m wrong.

Thanks in advance.
----------------------------------------------------------------------------

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl utput method="xml" encoding="ISO-8859-1" indent="yes" />

<!-- tag1 -->
<xsl:template match="/">
<tag1>
<xsl:apply-templates/>
</tag1>
</xsl:template>

<!-- tag2 -->
<xsl:template match="tag1/tag2">
<tag2>
<xsl:apply-templates select="tag3"/>
</tag2>
</xsl:template>

<!-- tag3 -->
<xsl:template match="tag1/tag2/tag3">
<tag3>
<xsl:for-each select="catchme">
<catchme><xsl:value-of select="catchme"/></catchme>
</xsl:for-each>
</tag3>
</xsl:template>
I think the exception occurs because Stream is already open.out implicit object is open during jsp translation & may be due to this it throws IllegalStateException if we try to write.
What du u say, David?
20 years ago
JSP
A JSP page is compiled into a Servlet; therefore, it can do everything
that a Servlet can do.
If the above statement is TRUE, then why is an IllegalStateException
thrown when opening a Binary Stream output to the client from a JSP page
but NOT to a Servlet?
Choice 1,JSP pages can write a Binary Stream using its implicit out stream.
Choice 2,JSP has already opened the stream as a JspWriter.
Choice 3,JSP pages must flush their buffers before changing the stream type;
Servlets do not have this limitation.
A JSP page is compiled into a Servlet; therefore, it can do everything
that a Servlet can do.
If the above statement is TRUE, then why is an IllegalStateException
thrown when opening a Binary Stream output to the client from a JSP page
but NOT to a Servlet?
Choice 1,JSP pages can write a Binary Stream using its implicit out stream.
Choice 2,JSP has already opened the stream as a JspWriter.
Choice 3,JSP pages must flush their buffers before changing the stream type;
Servlets do not have this limitation.
20 years ago
JSP
David
Here is you solution
1.In main.jsp specify the target in <form> say tmain
2.On submitting main.jsp use javascript.open() function & mention target="new/child" to open adduser.jsp in new window.
3.Submit adduser.jsp to main.jsp provided the target here is tmain.
4.In main.jsp include your code that if some request is coming from adduser.jsp,redirect it to someotherpage.jsp else display main.jsp
Pseudocode for main.jsp
if(request.getparameter("addusername")!=null)
response.redirect("someotherpage.jsp")
else
//show main.jsp
I hope it will work
njoi
20 years ago
JSP
Sam,
I also faced this problem & I used sessions to resolve this.If you want to prevent page to refresh,its better you create a session or use setAttribute() from previous page..& in original page check the session or getattribute() for the first time & display the contents & make it null at the end.Now if you refresh do whatever action you want coz session is null now
the pseudocode should look like this
if(request.getAttribute("someObj")!= null)
{
//show whatever u want for first time
request.setAttribute("someObj")=null
}
else
{
response.redirect("tosomepage")
//or do whatever action u want here to prevent refresh
}
Try this it will work

njoi
20 years ago
JSP
As far as I understand,itz better if you test your jsp with a simple input xml.The info u provided is not enuf to understand the problem Can you share your code?
njoi
20 years ago
JSP
Check if your TextArea is in <form> tag else send me the code.
njoi
20 years ago
JSP
Hi all,
This is my first posting to this group.For past 2 years I have been working on web tier.Can anybody guide me about much time(in months) it will take to give the exam.I have never worked at middle tier.
Thanx
Hi friends,
I am appearing for SCWCD.Can anybody who had passed the exam give me notes or other study material.Those who want to earn money should not hesitate to ask me.
I prefer
-Book by Deshmukh, Manning Publishers
-Jwebplus
-SCWCD @Whizlabs
Pls feel free to mail me,my email is charanpreets@netsoftglobal.com.
Thanx in advance