sankey jain

Ranch Hand
+ Follow
since Apr 29, 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 sankey jain

Hello all,

i have managed to complete a wget script to download all files recursively off a particular URL with HTTPS.



can someone please help me with the change i have to make to download files with a particular pattern like abc%.
there is option for suffix, not sure for prefix
10 years ago
This is the Total Jsp code. Use the function, it should solve it

chets patel wrote:can you please post your full jsp and javascript code. I am facing same issue and not able to solve.

Thanks in advance.

11 years ago

Robin John wrote:Hey Sankey...

I think it should work.

You can also set the variable first and then use it in your script using ognl.



I'll not be able to confirm the above as I can't test...



ok here is the funny thing.
i used the same thing on the property, and now i dont see the browser error.
Now, i want to see how the value looks like and i cant find the freakin code in the firebug.
it s got 12000 line of script.

running in loops

Nightmare !!

Anwyay.. think it worked..Thanks a ton
11 years ago

Joe Ess wrote:

sankey jain wrote:
missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';



I would take that error to indicate that the problem occurs before the line you indicate. What comes before this line?


The following comes before this line

11 years ago

Robin John wrote:THANKS !! SIR it worked fine. "value" i had missed !! Thanks again.



hi Robin ,

I am having a similar error while using struts tag in javascript.


will the above solution apply to this ?
11 years ago
Hello all,

An error while using struts tags



I get the below error from Firebug in mozilla

missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';

how can i resolve this ?

i have tried escapeJavaScript=true. but it does not work

gives me an error that the tld defined does not support this

TLD defined is

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
11 years ago
Hello all,

An error while using struts tags



I get the below error from Firebug in mozilla

missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';

how can i resolve this ?

i have tried escapeJavaScript=true. but it does not work

gives me an error that the tld defined does not support this

TLD defined is

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
11 years ago
Hello all,

I am encountering an hibernate stale state exception using the following piece of codes

Step 1. List of Emails are got from the View Layer, and are assigned to a hasmap
---------


Now every email has an id associated with it, this is assigned to the session and the story continues

there is a send button which is clicked if the user wants to send out all the emails, the below happens when that is done

Step 2:
----------


Step 3:
--------

Now, Flow continues, and there is a new player, selectedEmailsToSend, which is list, and contains the emails which were chosen by the user ( User does this by using a check box )


Step 4

What we have now is a list of emails to be sent, now we call the function which formats the emails and send them



after each email is sent i do the below, this is where i get the Stale State exception, please help



Above code is where i get the stale state exception, i am really not able to find out the reason, assistance of fellow ranchers required

madhur taneja wrote:Thanks Paul , my problem has been figured .
The insert into Team is working , but entry in players table is not coming .
when i run the hibernate code , the following thing comes on console :



Inserting Records
Hibernate:
insert
into
teams
(team_name, city, team_id)
values
(?, ?, ?)
Hibernate:
update
players
set
first_name=?,
last_name=?,
team_id=?
where
player_id=?
org.hibernate.StaleStateException: Unexpected row count: 0 expected: 1
at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:27)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2204)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2118)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2374)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at abc.hiber.teamexample.main(teamexample.java:43)


insert into teams is fine , but why update in players and not insert , does it has to take something from - inverse="true" that i used in team.hbm.xml.
Also , why this stale state exception is coming ?

Thanks.



Hello Madhur,

I am facing a similar issue, how did you solve this ?
Hi Swati,

I am getting a similar error here. i dont see any replies to your post.
Did you manage to solve this ? if so, can you please advice how ?

sankey jain wrote:

Jaikiran Pai wrote:Sankey, is that complete web.xml?

i am accessing the application via https://10.20.169.170:8081/conflict/monitoring



Assuming "conflict" is the context of your deployed web application, I don't see a servlet-mapping for "monitoring" in your web.xml.



Hi JaiKiran,

Yes, you were right. we fixed that. now melody is up.
but we now have another challenge, the sql transactions are not being recorded, table remains empty all the time

we are using hibernate with c3po pooling. are there any exclusive configurations to be made for hibernate ?



we referred to the advanced documentation on melody present in google groups.
it had exclusive configuration for hibernate. once we included that, sql transactions were being recorded as well
11 years ago

David Newton wrote:Yes. If you can't retrieve it, then it isn't being set.



okay. Thanks :thumbup:
11 years ago
JSP

David Newton wrote:Obviously your first attempt won't work, because it's a new request on form submission.

If the hidden field is set to a value, and the form is submitted, it's a parameter, not an attribute.



Hi David,

Your reply on approach 1 understood.

On approach 2, you are telling me that when we set a value to a hidden type, then it s a parameter and not an attribute.
but, in the action class, i am using the getparameter to retrieve the value

wouldnt that be the correct way to retrieve it ? if not how should i receive it.
11 years ago
JSP

Prasad Krishnegowda wrote:Are you sure, cname itself is not null..



Yes, i have already tried printing it, it is showing up
11 years ago
JSP

sankey jain wrote:Unable to receive the String parameter value set through request.setAttribute(...) method in the immediate action class


The above code is to set the value in the attribute called Att

Retrieving the same in the immediate action class as:


The output is displaying as "From Attributenull"

Please help me in this



Apart from the aboove I tried the option of setting in hidden variable........as below


Retrieving as


Even this is failing and returning as null
11 years ago
JSP